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: 

Adding an new field in PO screem (ME21n) and save into table level.

divsmart
Participant
0 Kudos

Hi Experts,

I am new to enhanment concept , here i need to add an new field in PO screen and save the value in table.

Requirement: Need to add the AUFK-AUFNR and save same in EKPO table.

I already added the field in Po screen using (MM06E005) and didn't now to save in table level.

Can someone please provide some piece of code which help me lot.

Senthil.G

2 REPLIES 2

venkateswaran_k
Active Contributor
0 Kudos

Hi

You can use the BADi ME_PROCESS_PO_CUST

Check interface method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.

Example code

DATA : lwa_item   TYPE mepoitem, lt_item TYPE TABLE OF mepoitem.
lwa_item = im_item->get_data( ).
"here you check the value of your new field in lwa_item. (assign the value if required )
"and set the data back.
im_item->set_data( EXPORTING im_data = lwa_item ).

Regards,

Venkat

divsmart
Participant
0 Kudos

Thanks Guys,

Issue resolved.

Closing the thread.