How to record loop with scales in ME12. PDF with screenshots attached.
To create the script we will be using the Insert Row (green plus button) and Delete Row (red line button).
Enter the Quantity and Amount on the first row and click on the Insert Row button. This only needs to be done once to have the loop recorded. If more scales are added during the recording they will need to be removed in the Mapper.
When the Insert Row is added it creates a blank row. If the blank row is not deleted SAP will place a ‘0’ for scale and quantity. Make sure the cursor is on the first row then hit the Delete Row button.
This is how it will look. Now either hit Save to close the transaction or the back arrow to return to the main Condition screen.
This is where the loop will be placed in the Mapper.
Since the largest Quantity needs to be entered first in it is listed as the top Detail item. As the loop progresses it will place the second item above the first in SAP. Example: It will enter 80 on the first row > Insert Row then 70 on the first row >Insert row and so on. The old value will be pushed down and the new value will always be above it.
If the script errors out when doing testing make sure the Launch GUI button is checked and retry.