‎2007 May 29 4:35 PM
Hi All..
Iam using the following bapi " BAPI_SALESORDER_CREATEFROMDAT2" to create credit/debit memo requests in sap. If the bapi fails, i want to create an idoc and post the application document.
For that purpose, iam using the idoc type SALESORDER_CREATEFROMDAT2 which has the same strucutures as needed for the above bapi. Since the existing message type SALESORDER_CREATEFROMDAT2 is used for other purpose, for my scenarion iam creating a zmessage type. Iam also copying the FM: IDOC_INPUT_SALESORDER_CREATEFR to Z functionmodule to remove the hardcoded value for business object. Iam also creating my own process code.
In this scenario.. iam getting a flat file to SAP. Iam reading the flat file into internal tables and creating the needed internal table for the bapi structurres and passing them to the bapi to create credit/debit memo request. Whenever the bapi fails, i have to pass those structures to the IDoc type to create and idoc and after creation of idoc, it should try to post the application document using the Zfunctionmodule above.
Can you please let me know what are all the settings needed for this Idoc configuration. Also in this case do we need partner profile set up or not.. Where can we set up all those process code, FM, message types etc..
Appreciate your help..
‎2007 May 29 4:41 PM