Skip to Content
avatar image
Former Member

Need to create sales out of purchase order using idocs

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 19, 2007 at 10:28 AM

    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..


    Sagun Desai....

    Add comment
    10|10000 characters needed characters exceeded