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: 

Need to create sales out of purchase order using idocs

Former Member
0 Kudos

Hi All,

I have a requirement to create sales order based on purchase order with in the same sap system and same client(using orders04 idoc type).I have some doubts below could you please some body clarify?

I know the basic steps in ALE(theritical knowlege)but I need clarifications for below questions.

1)Which tehnology I should use here ALE or EDI?

2)With in the same client how can I create 2 logical systems.

3)How the idoc will go the recevier I mean what all are the ways to trigger outbound idoc from sender side.

4)Inbound side how the sales order will create based on the inbound idoc?Is it automatic from inbound settings or we have to do anyting for this?

5)I need to check some conditions with the inbound purchase order data before creating sales order.I think this one we can do in the user exit of inbound function module .Can I control the type of document that it has to create(ex sales order based on some condition or quotation based on some other condition).

Best regards

Mahesh

1 REPLY 1

Former Member
0 Kudos

Hi Mahesh,

My suggetion is that develope program to do your scenario... Use BAPI to create Sales order. First confirm with the Functional team for the input for sales order about sales area, company code, conditions type to be used while creation a sales order against Purchaser order... If the details is same then. First get the details of the Purchase order from BAPI " 'BAPI_PO_GETDETAIL' or you can get details by select queries on EKKO & EKPO for header and details....

Then pass data to BAPI of sales order creation 'BAPI_PO_CREATE' . to create sales order and handle error with parameter RETURN = IT_BAPIRETURN

by giving loop on that....and display in the output.....

This is the simplest way of doing your process...

If any other help please let me know.....

reward points..

Cheers,

Sagun Desai....