Mass changing item numbers
-
Mass changing item numbers
Posted by Jeff Roe on April 18, 2019 at 1:23 pm-
We are going through a cleanup of inventory items and we have thousands of items where the GP Item number should be something other than what was originally created.
I know that the PSTL tool has a function to modify a a GP Item Number to something else and does it against IV, SOP, POP etc. While this process may be sufficient for one off’s, it would likely take a great deal of time for thousands of parts.
Has anyone created a SQL process to do this instead?
I have identified what tables I think would need to be changed and have run against a single part and updated in IV, SOP, POP tables active and history and appears to have not hurt anything but am cautious to say it will work in a bigger scale.
If I were to chose a SQL solution what else would I need to consider related to creating orphaned items or breaking GP business rules.
BTW, the assumption would be that the new item number does not currently exist so there should not be any primary key or line item sequence related issues.
Any help or thoughts is greatly appreciated.
——————————
Jeff Roe
Kele Inc
Bartlett TN
—————————— -
Hi
You can actually create a txt file to do mass changes.Ā See instructions below.Ā Let me know if you have any questions.
To modify a range of Item Numbers via a spreadsheet:
Create a spreadsheet
Enter existing Item Number in first column
Enter the new Item Number in the second column
Save as a text file
Start the PSTL function in Dynamics GP
Select the Item Number Modifier option
Click Next
Select the Import option
Select the Validate button
Select the spreadsheet text file
Select Open
If no errors, Select the Modify button
?——————————
Kristen Hosman
Dynamics ERP Consultant
Mount Evans Consulting
——————————
——————————————- -
Sorry, I do know that I can do en mass with the PSTL tool but my concern is that to do thousands it would be a long process and much faster if I could use basic SQL.
——————————
Jeff Roe
Kele Inc
Bartlett TN
——————————
——————————————- -
Andrew Kennedy
MemberApril 19, 2019 at 6:44 AM
Jeff,
I would stick with using the PSTL tool.Ā
I have a script that loops through information_schema table and finds all tables that have ITEMNMBR in it.Ā But then realized that not all the tables with the item number are called ITEMNMBR.Ā Such as the BOM component table CPN_I and PPN_I. Ā
I believe the PSTL modifier is actually running SQL scripts, which is why you need to be sa or db_admin to run it.Ā If you have a GP client on the server run it there off hours and it shouldn’t take much longer than running direct SQL.——————————
Andrew Kennedy
Principal Consultant
Velosio
Seven Hills OH
——————————
——————————————- -
Hi
You should break down the data into smaller chucks to see how long it takes.Ā Also taking a backup before doing this is a great idea.
I’ve done this before and it’s not as slow as you would think.Ā As someone else noted using the PSTL tool will ensure that everything is updated correctly.
?
——————————
Kristen Hosman
Dynamics ERP Consultant
Mount Evans Consulting——————————
——————————————- -
Knew about the PSTL tool but didn’t know it could handle an entire list.Ā I’m in this same boat and this would be awesome!Ā Thanks!
——————————
Blair Christensen
Database Administrator
Oppenheimer Companies, Inc.
Boise ID
——————————
——————————————- -
Aleiha Hanson
MemberApril 19, 2019 at 11:25 AM
you are a life saver! I never asked much about doing a bulk number of changes…thought about maybe doing it as a macro to save my typing and clicking. NO CLUE PSTL could handle an “import” to do a big list! I’m going to try it this weekend!Ā ?——————————
Aleiha Hanson
Royal Basket Trucks, Inc – IT Manager
GPUG Milwaukee WI Chapter Leader
ahanson@royal-basket.com
——————————
——————————————- -
Keith Koopmans
MemberApril 19, 2019 at 9:38 AM
Good morning –ĀYou’ve received some great advice thus far but I’d just like to throw in another round of support for the PSTL tool.Ā I’ve used the similar .txt method for an extreme amount of GL code combinations (thousands and thousands) and was pleasantly surprised regarding the speed.Ā Some of these codes had thousands and thousands of prior uses.Ā The inventory item numbers may exist in more tables, but again the PSTL tool was bulletproof.
——————————
KEITH KOOPMANS
Controller
GURTLER INDUSTRIES INC
SOUTH HOLLAND IL
——————————
——————————————- -
Bruce Strom
MemberApril 22, 2019 at 10:18 AM
You should be able to record a macro that uses the PSTL tool to update one inventory item,
then use that to create a macro that updates all the inventory items.——————————
Bruce Strom
Programmer Analyst
Associated Grocers of Florida / Supervalu
Sunrise FL
——————————
——————————————-
Jeff Roe replied 6 years, 5 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘Mass changing item numbers’ is closed to new replies.