Hi Experts,
I want to discard PPO2 error " Active ERP shipment not found " through my Zprogram.
In standard PPO2 transaction "/SAPPO/PPO2" we get list of all PPO2 errors as shown below by giving values in below fields on standard screen.
Order status : 1 to 2 ( NEW and IN-Process orders)
Order Assignment : 2 ( All Orders)
Mode of processing Order : 2 to 3 (Only Manual Processing Permitted OR Manual and Automatic Processing Permitted)
We always run this standard transaction by above values only. Every time we need to discard these " Active ERP Shipment not found " errors manually by below two processes.
Step 1. PROCESS the error.
Step 2. DISCARD the error.
In this way we discard this error by above two processes manually. Hence when we again run the transaction PPO2(/SAPPO/PPO2) by giving above values on standard screen i.e. order status : 1 to 2, Order assignment : 2 , Mode of processing : 2 to 3. then these errors does not appear us because there status is changed to 3 ( Completed ).
We want to automate these two steps ( Process AND Discard ) through our ZProgram.
I am able to fetch these errors in my report through standard FM " /SAPPO/BAPI_ORDER_GET_LIST ". as shown below.
I am getting these errors in table ORDERMSGOUT with error type E, MSG class "/SCMTMS/TOR" and MSG number "482" along with their
ORDER ID.
Now Please suggest how to proceed further.
Thanks in advance ...