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: 

BADI or enhancement for update the Delivery Address inME21N transacion

Former Member
0 Kudos

Hi All,

<removed by moderator>

Requirement is:

-


I am looking for any BADI / Enhancement to update the delivery address in the delivery address Tab of 'ME21n' Transaction for all line items.

The shipping address should be determined based on the plant number & currency key on each line item.

Scenario is:

-


If Plant (EKPO-WERKS) = 3020 and EKKO-WAERS does NOT equal 'CNY', then address number of the plant which is detrmined from table TWLAD needs to be passed to EKPO-ADRN2.

Thanks a lot for your kind support.

Regards,

Hari.

Edited by: Thomas Zloch on Mar 2, 2012

2 REPLIES 2

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try with badi ME_PROCESS_PO_CUST, method PROCESS_ITEM

So, in this coding.


  DATA: ls_mepoitem TYPE mepoitem.
  ls_mepoitem = im_item->get_data( ).


* do your changings 

  im_item->set_data( ls_mepoitem ).       "you save

Search in MEPOITEM these fields (ADRNR, ADRN2,...)

I hope this helps you

Regards

Eduardo

0 Kudos

Hi ,

Thanks a lot for your quick response.

I have tried with the same BADI & method in the way you suggested.But it is not working.

Can you please suggest any other solution.

Regards,

Hari.