Recording Mode: Batch (all versions) | Non-Batch with SAP Controls (only for Transaction 10.2 or newer)
Scenario 1: Change data in the Item Overview section.
Solution: Utilize the Filter button to isolate a specific item to change. Click on the arrow button to move the appropriate Value to the Filter Criteria section. Click on the filter button and enter in the Item number. This will show the Item Overview section with only that material. Update the data and click on save.


Scenario 2: Change data in the Item Detail section.
Solution: Utilize the Filter button to isolate a specific item to change. Click on the arrow button to move the appropriate Value to the Filter Criteria section. Click on the filter button and enter in the Item number. This will show the Item Overview section with only that material. Highlight the first row which is the filtered material. Click on the detail button. If the detail button is not used the script could change data for the wrong item especially if a loop is used. Click on tab and change data. Hit save.

Tips:
1: A loop can be used for the scenarios above but is not necessary.
2: Disable all the BDC cursors in the mapper. This will cause errors on subsequent rows when processing.
3. Place an IF First Transaction condition around the screen that changes the PO from Display to Change. Look for the screen that contains the OK code =METOGG

4. Place an IF NOT First Transaction condition around the screen that Expands/Collapses the Item Overview section. This may not be in the mapper so it will have to be manually added. When the script runs, after the first transaction row, it will collapse the Item Overview section. This is why the IF condition is needed. Add screen SAPLMEGUI-0014 with OK code =MEV4001BUTTON.

See attached example .TXR and excel.