Skip to Content
author's profile photo
Former Member

MIRO USEREXIT for change GL account

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 12: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,

    Add comment
    10|10000 characters needed characters exceeded