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: 

Populating Line Items in Account Assignment tab automatically in Purchase Order Creation

Former Member
0 Kudos

Hi,

Our requirement – In T Code ME21N When we enter Asset Quantity in the PO Line Item, same number of Line Items should be automatically populated in Account Assignment tab with 1 Quantity each.

For example, we have entered 5 Quantity in PO Line Item; we want 5 line items with 1 Quantity each in Account Assignment tab

Regards,

PK

3 REPLIES 3

raymond_giuseppi
Active Contributor

Did you look at BAdI ME_PROCESS_PO_CUST, there handle the change of quantity in PROCESS_ITEM (compare IM_ITEM->GET_DATA vs. GET_PREVIOUS_DATA result) then adapt account assignments (IM_ITEM->GET_ACCOUNTINGS, LOOP AT re_accountings-accounting->GET_DATA to read current records and IM_ITEM->CREATE_ACCOUNT to create new ones, then accounting->SET_DATA to update account records)

Regards,
Raymond

0 Kudos

Thanks so much

Former Member
0 Kudos

Hi Raymond,

Thanks for the reply.

Could you please explain in some more details?

Regards,

PK