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: 

MIRO USEREXIT for change GL account

Former Member
0 Kudos

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?

1 REPLY 1

Former Member
0 Kudos

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,