For the PO Interface to our new WMS system, there is a requirement to send all the latest changes on a given time. Here is the scenario
- The STO's received in SAP from an external system.
- The purchasing group will make changes and amend new things in PO.
- Now we do not want to send any idocs. But once the work day is over around 6 PM we need to create one IDOC and send it to our WMS.
How to achieve this.
From your requirement,it is understood that you would potentially look for the Purchase Order History in terms of PO header and PO Item changes and based on that trigger an idoc to WMS at the end of day on a daily basis.
I think you can acheive this by using Function Module ISIDE_PH_PDOC_HIST_READ which actually uses Standard SAP program SAPLDE_PH and then you can schedule a job(SM37) for a specific time.You may also wish to make use of the change pointers to trigger the change by activating ORDCHG message type.(Alternately you may also use FM IDOC_INPUT_ORDCHG).
NOTE : Dont Forget to activate Change Pointers using BD50 for Message Type ORDCHG.
Hope it helps