Skip to Content
avatar image
Former Member

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

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

me21n-screen.jpg (137.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 29, 2016 at 02:53 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2016 at 03:13 PM

    Hi Raymond,

    Thanks for the reply.

    Could you please explain in some more details?

    Regards,

    PK

    Add comment
    10|10000 characters needed characters exceeded