09-28-2007 1:22 AM
I have the requirement
when i post the invoicement for good receipt
I need change the GL account by purchase group
anyone can give me some suggestion about use which userexit?
09-28-2007 1:29 AM
Hi,
You can use user exit ZXMBCU02 in enhancement -
MBCF0002 ( EXIT_SAPMM07M_001 ).
However you cannot directly chnage as MSEG is available as importing parameter and whatever you change here will have no impact on main prog. Instead you can use following code -
FIELD-SYMBOLS <F2> TYPE ANY,"Field Symbol for the GL ACCOUNT
DATA : W_KONTO_NAME(50) VALUE '(SAPMM07M)DM07M-KONTO'.
ASSIGN (W_KONTO_NAME) TO <F2>.
MOVE "GLACCOUNT" TO <F2>.
"GLACCOUNT" is the new GL account you want to change.
or try field exit:
report RSMODPRF
Regards,