2018 Oct 01 9:54 AM
Hello Gurus,
I am a newbie on SAP, we have newly implemented SAP, and we are doing the integration with the already existing system. What we want to to do is transfer the data to our old system on any new or update record on the MIGO and MIRO.
Please advice what is the best way to do so.
Thank you in advance.
Jack
2018 Oct 01 9:57 AM
What mechanisms does your old system offer to interface to it?
2018 Oct 01 12:14 PM
2018 Oct 06 7:06 AM
Hello Jack,
there are basically two ways of realizing this requirement:
1) Using SAP standard interface technology
You can use the standard IDoc interface technology of SAP to trigger an sending process each time when a goods or invoice document is created or changed. The relevant IDoc types can be found easily and you need to make sure, that the change pointers for the IDoc types are activated in transaction BD61.
Then you can create a web service out of the outbound IDoc like described here:
https://blogs.sap.com/2017/03/07/outbound-idoc-as-web-service-xmljson/
Each time, when den SAP standard IDoc framework triggers an IDoc, this is sent out to the partner system. The advantage is, that you don't need to do much coding and maintain customer code later on.
2) Programming a BAdI with manual service call
You can also have a look for a BAdI, which is processed when a SAVE event is triggered in MIGO or MIRO. If you don't know, how to find a BAdI, this article will help you:
https://wiki.scn.sap.com/wiki/display/ABAP/Find+a+BADI+in+a+minute
You can then finally implement the web service call like described in this very good article within the BAdI:
You should maybe put this coding in a wrapper function module and call this in a separate process to make sure, that the web service call does not affect or delay the main SAVE process in MIGO or MIRO.
I would prefer variant 1, as it is more SAP standard conform and you can use all out-of-the-box features of IDoc framework.
Hope this helps you to solve your issue.
Best regards
Markus