Good afternoon.
Sometime ago I posted questions about having a collective MS07 list, which will be able to display the MS04 list for all materials that participate on a scenario (and not based on MRP controller etc as the standard MS07 list is). Finally, my colleague Mr. Angellos Charalambous derived a solution which is based on the principle of collecting the materials that have planned orders creaed in PLAF and are connected to the specific scenario.
Using this as a base, my other colleague, Mr. Marios Golandas has derived the solution of exporting the material of this scenario only. Therefore, we ended up with the code which you can find attached in the ZTEST document. When running this program, if you check the checkboc "With planned orders only" the program will return all materials that belong to this scenario and have planned orders. If this checkbox is unchecked, then the program displays all materials, no matter if they belong to this scenario or not.
In the second attached document (ZTEST_NEW), we have made an attempt to capture the materials of an LTP scenario regardless if they have planned orders or not. But, unfortunatelly, we miss something and it seems that it does not work. If you have any suggestions on how to correct the code, please advise.
Best personal regards,
Nikos Giannopoulos
![1.jpg]()
![2.jpg]()