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: 

Committment Item same as G/L account in PO(ME21,ME21N,ME22,Me22N)

Former Member
0 Kudos

Hi,

In ME21tcode ,on creation of a PO I have to set the commitment item same as that of G/L account .

But the commitment item field is not open for input (in the tcode i.e it is a display field)

As per ME21N logic , if the commitment item is not same as the G/l account then a warning msg is issued

and teh user can bypass this msg .But in my requiremnt I have to set teh commitment item field to G/l account

if the PO is changed /created.

Is there a user exit/BADi to solve this requirement.Is there any other alternative other than field exit.

Gayathri

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Gayathri Sundaresan,

Not sure this will solve your problem but it will throw some light for u..........

KNT[] is the table tht will hold the data i.e GL and Commitment number, before calling the exits the data from KNT is moved to EKKN table for tht exist. But once you come out the exist the data is not updated in the KNT table again.

So you need to access the gobal data in the exit and change the same that inturn will change the values in the Global Data

Please close the thread, if solved

Regards,

Aditya

Edited by: aditya on Oct 7, 2009 6:46 PM

1 REPLY 1

Former Member
0 Kudos

Hi Gayathri Sundaresan,

Not sure this will solve your problem but it will throw some light for u..........

KNT[] is the table tht will hold the data i.e GL and Commitment number, before calling the exits the data from KNT is moved to EKKN table for tht exist. But once you come out the exist the data is not updated in the KNT table again.

So you need to access the gobal data in the exit and change the same that inturn will change the values in the Global Data

Please close the thread, if solved

Regards,

Aditya

Edited by: aditya on Oct 7, 2009 6:46 PM