Hi Eric
Let's forget the syntax for a minute. You have Positions with Roles. You want to delete a Role in a Position. If you were looking at this in SAP, you'd want to find and open the right position and then find the right role, then do the deletion action. This is much like you'd do it in Winshuttle.
The LOOP will match the header and detail rows on separate sheets - for you based on position number. The header data will have the position, so that is taken care of to find the right position. However, since you have the ACTIONS sheet with both, you could run this just off of the Actions sheet without a multi-sheet loop - instead using a standard loop. Your call.
Then you want to find the right Role to delete.. So you'll want an Indexed IF on Role (not the delete flag you have now) to position to the correct role if it is equal to the value in column B. Then you can do the delete action inside of the Indexed IF.
Note for anyone reading this - he's using GUI scripting in a custom tcode that doesn't have a way to position to a specific row (role in this case), so that's why we need the Indexed If.
HTH,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
------------------------------
Original Message:
Sent: 03-09-2020 20:40
From: Eric Sandberg
Subject: Multiple Sheet Loop Command, Command on Line Item Sheet Help
What do I need on either the main master sheet, or the line item sheet to make this work? Identify unique on both master and then line item sheets, then search and delete if what is in column B (Line Item Sheet) in existing (if exists)?
------------------------------
Eric Sandberg | Sr Financial Systems Analyst
Walt Disney Company - Studio Entertainment | 818-544-9898
------------------------------