SO 2 PO

Hi All,
I've a requirement for XI:
external system sends the sales order information, in SAP I can create sales order using BAPI_SALESDOCU_CREATEFROMDATA, I need to create Production order BAPI_PRODORD_CREATE based on the sales order creation. I need to send the list of compoments(BOM) using BAPI_PRODORD_GET_DETAIL to external system. During the process if the production order creation not happend due to errors occured, I need to delete the sales order and send the information to external system.
I'm in design phase, can you let me know, whether the BAPIs are correct or any other efficent functionality is there?
How can I delete the sales order? is there any BAPI or FM available? or is there any standard report which can do all the above steps.
Thanks in Adv.
Zia

One solution I can think of is you have to write Proxy or RFC in such a way that
first it execute BAPI_SALESDOCU_CREATEFROMDATA
then BAPI_PRODORD_CREATE
then call BAPI_COMMIT
I guess this should help you.
Gaurav Jain

Similar Messages

Maybe you are looking for