Hi Petra,
What you're seeing is expected for J7L2. The packaging assignment list isn't a classic SAP screen table; it's an SAP grid/tree control. Batch and Standard (non-batch) recording can only capture classic screen fields, so anything inside the control isn't recorded. That includes the binoculars search, the row selection, the Detail buttons and the quantity/unit/level fields underneath. It's also why those buttons are greyed out while you record.
The way around it is to record the script in GUI Scripting mode:
Make sure SAP GUI scripting is enabled, both on the SAP server (your Basis team can check parameter sapgui/user_scripting) and in your SAP GUI options.
Record J7L2 in GUI Scripting mode. Open the article, use the binoculars to find the packaging assignment, select the row, update quantity, unit and level, then save.
In the mapper, map the article number, the packaging assignment number (the value you search for) and the new quantity, unit and level to columns in your data file.
To update several assignments, use one row per article and packaging assignment in your template rather than extra columns. The script repeats the find-and-update for each row, so the template stays small even with many lines.
Test it on a few rows first, including one near the bottom of the list, to confirm the search always picks the right line.
One thing to be aware of: GUI Scripting scripts drive the SAP GUI screen, so they're slower than batch scripts and need a visible SAP GUI session while they run. If speed matters, it's also worth asking your SAP team whether a BAPI or function module exists for updating REA packaging assignments. A script built on that would avoid the screen entirely.
Precisely's article on recording ALV grids covers the GUI Scripting requirement: https://customer.precisely.com/s/article/Can-t-record-a-Z-transaction-that-have-an-editable-ALV-Grid-360032166672
Hope this helps!
Thanks
------------------------------
jagat kaushal
*Precisely Software Inc.
------------------------------