HI again
Someone separately asked me for the CS02 script, so I'm attaching it. Column H, the "action" code, drives what happens:
* blank in column H (action code) will do nothing but find the component
* ADD will perform "new entries" click and add it
* UPDATE will update quantity and uom
* REPLACE will find the existing component and let you swap to a new component, along with updating qty and uom
* DELETE will find the component and delete the row
Disclaimers
* This only works with non-stock items.
* Validate in V11.2 does not work but RUN/Debug does
* it's only meant to serve as an example of what is possible
BOM before the script was run

script "action codes"

BOM after script is run

Hope it's useful.
------------------------------
Sigrid Kok
PSE | Winshuttle North America
------------------------------
Original Message:
Sent: 11-12-2018 15:30
From: Molly Miller
Subject: Roundtrip BOM Script
Hi,
I am hoping to create a script where I can read the bom of a material that is similar to the new material I am creating. Then after reading the copy material bom, I can make changes in excel and have a second script create the new bom for my new material.
I am struggling with the read portion. I have not been able to be able to tell the script how many items are on the bom so that it knows how many items to read.
Has anyone found a way around this? I am aware that query could pull the bom, but sometimes I need the read results to be repeated more than once and so query will only show me the data once.
------------------------------
Molly Miller | Supply Chain Analyst II
------------------------------