Skip to Content

Advanced Shipping Notification


I would like to generate an ASN(Advance Shipping Notification) based on a Purchase order. The ASN will generate an Inbound delivery which is then referenced for Goods Receipt.

This is my requirement. But I need to know the following

1. Partner type

2. Message Type

3. Basic Type

4. Process code

I would like to create a Partner type for vendor as that would be simple and easy to test. Is it possible that I create a Purchase Order via ME21N and then use some tool (Transaction or Program in SAP ) to create an IDOC for the details as per the PO and then process this IDOC to generate an Inbound Delivery ?

Pl. do share in your thoughts and ideas.

Points Assured.

Thanks & regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2008 at 08:06 PM

    Hi Govind,

    I'm not really sure I've understood your question. I'll assume you have to:

    1. Create a ASN based on a purchase order. You can actually use an outbound IDOC associated to the purchase order for this. The IDOC could be ORDERSxx or DES_ID01. For the 2nd you would have to create a new function to create the IDOC.

    2.You have to setup the IDOC reception. I guess the best way is to divide the problem in two different ones. The first is to send the ASN and the other is to process the ASN. The first part is solved in last point. You just have to determine the partner, which should be understood as the SAP system. You might want to create a new partner for this. My advice would be to create a partner for each enterprise that might use this process. Whatever you use to create and receive IDOC's (XI?) has to be set up to create the inbound IDOC based on this one. And this IDOC should be a DES_ID01.

    3. You have to process the ASN IDOC. And that should be fairly straight forward, since it can be processed by the standard function.

    By now you'll end up with a ASN in your purchase order.

    I hope this is what you want.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Govind Ramesh

      Hi Govind,

      When I want to test an IDOC I use tc WE19, construct the idoc manually and test the processing with the function module I intend to use. So, i guess this is not very helpful :-).

      If I remember correctly, the IDOC message to create an inbound delivery is SHP_IBDLV_SAVE_REPLICA.

      You can create an IDOC in WE19 and process it with function BAPI_INB_DELIVERY_SAVEREPLICA.



  • Posted on Dec 22, 2008 at 12:59 PM


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2008 at 01:00 PM

    Thanks a lot.

    Edited by: Govind Ramesh on Dec 22, 2008 2:00 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.