10-07-2009 7:47 AM
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
10-07-2009 9:12 AM
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
10-07-2009 9:12 AM
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