Skip to Content
author's profile photo Former Member
Former Member

Delivery Address change BAPI required

Hi,

I am using the BAPI_PO_CREATE1 for my program. I also need to change the delivery address for the particular item of the Purchase order number. I tried using BAPI_ADDRESSORG_CHANGE for this purpose and i trid doing single test on this bapi but it didnot work.

The parameters i filled in are:

obj_type = BUS2012

obj_id = <purchase order number>

obj_id_ext = ' '

context = 0006

Even then it didnot retrive the address number for the po i had input. I tried putting in item number in obj_id_ext, even this failed to return the ADRNR itself.

But my requirement is to change the delivery address for the given po & item number.

In standard ME21n transaction, whenever delivery address is changed it triggers a new address number & its stored in ADRN2 of EKPO and not in ADRNR of EKPO.I need a BAPI which actually does this purpose that whenever the delivery address changes it should create a new address number & return that number for my processing.

Thanks in advance,

Supriya.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 01, 2006 at 10:08 PM

    Hi Supriya,

    Try implementing the BADI ME_PROCESS_PO_CUST,

    to view/change the item details during the creation/change of the PO.

    Rajeev

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2009 at 11:34 AM

    Hi,

    I am trying to do exactly the same, how did you manage to change the delivery adress in a purchase order item ?

    Thanks

    Marion

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 25, 2019 at 04:55 AM

    Hello Supriya,

    sometimes things are not as they seem.

    Everything you need is just to specify the storage location on the corresponding purchase item in order to store the reference delivery address (which is stored in EKPO-ADRN2) when post the purchase order.

    This operation can be done by both BAPI BAPI_PO_CREATE1 or BAPI_PO_CHANGE or by using OData API Service called API_PURCHASEORDER_PROCESS if you use S/4HANA.

    Best Regards,

    Igor

    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.