Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a purchase order with an ORDERS05 inbound idoc?

adrian_mejido
Contributor
0 Kudos

I have a requirement which is creating a purchase order with ORDERS05 inbound idoc.

Any idea?

Best regards!

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

Thanks for your tips, but I have already done that...Sorry but your reply didn't help me.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Before asking for help, I had taken into account this solution if there wasn't any standard solution.

Best Regards