11-03-2015 3:34 PM
I have a requirement which is creating a purchase order with ORDERS05 inbound idoc.
Any idea?
Best regards!
11-03-2015 4:06 PM
First read some online help (IDoc Interface / Electronic Data Interchange (BC-SRV-EDI)) e.g. Processing IDocs, Inbound Processing or use search tool to understand required configuration and how to use transactions as WE21 ports, WE20 Partner Profiles, etc.
Regards,
Raymond
11-03-2015 4:29 PM
Thanks for your tips, but I have already done that...Sorry but your reply didn't help me.
11-03-2015 4:16 PM
Inbound ORDERS05 always creates a Sales Order ( VA01 ) in SAP. From Business Perspective also it is right thing.
Please clarify if you actually mean while saving the SO you want to create a PO ( ME21N ) ?
R
11-03-2015 4:26 PM
Hi Rudra,
Thanks for your reply, but I create a SO if the transport is between a SAP system and a NON-SAP system.
If the transport is between two SAP systems, I would need a PO, I mean an STO.
Best regards
11-03-2015 4:33 PM
Hiya,
Then AFAIK you would need a total custom solution and can use some BAPI like BAPI_PO_CREATE1 . Standard inbound posting FM is not going to help.
So the logic should be
1. Create a new Inbound Posting FM and Inside the FM you can use the following logic
2. If between SAP and NON SAP call standard FM IDOC_INPUT_ORDERS( It will create SO )
3. If between SAP to SAP call BAPI_PO_CREATE1 ( It will create PO )
Obviously you have to do some ALE configurations in order to make it work and write some custom code.
R
11-03-2015 4:42 PM
Before asking for help, I had taken into account this solution if there wasn't any standard solution.
Best Regards