Skip to Content
0
Former Member
Nov 14, 2011 at 05:00 AM

Updating G/L Account in ME21n using BADI ME_PROCESS_PO_CUST and method PRO

314 Views

Hi,

We have following Requirement in Purchase Order

Whenever we create a Purchase Order (using transaction me21n), we would like the G/L Account to get auto-populated for a specific set of conditions.

The conditions being

Company Code= ABCD

Account Assignment Category = R

Material Group = XYZ

(also in certain cases we will narrow it down to particular materials)

If the above mentioned conditions are true, then sap should fetch the g/l account from a Z table (which we will maintain with the necessary data) and populate it in the G/L Account field in the Account Assignment tab.

We have implemented BADI ME_PROCESS_PO_CUST and method PROCESS_ITEM. My developer tells me it is implemented and updating.

But when i create PO, the G/L Account still doesn't populate. The developer says this has something to do with configuration.

Can somebody assist, can configuration cause any issue to this. As of now, no account is determined automatically for this conditions from OBYC.

For any further information, i will be more than happy to share!!