Skip to Content

MIRO G/L account validation

Dear Expert,

I have an requirement to validate G/L account in MIRO tcode (only allow some g/l account) i have tried badi MRM_HEADER_CHECK , INVOICE_UPDATE but it did not worked and i also check implicit enhancement and user exit. can you please suggest me for the same.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Apr 23 at 05:55 PM

    Hi Trilok,

    Do try with FI-Substitutions through T-Code GGB1 and create a step inside Financial Accounting line Item and provide prerequisite and Substitutions.. and in ZRGGBS000 create a perform inside for new step and write validations over there..

    Regards,

    Abinath


    ggb1.jpg (40.0 kB)
    ggb1-performs.jpg (47.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 24 at 06:38 AM

    Hello Sir,

    I have done that through GGB0 but it did not worked as i debug it was not fetching MIRO Screen G/L acc number it was fetching some other alternative gl relative to po refrence.

    and now i am doing as you suggest through GGB1 but its also not fetching MIRO screen g/l

    so my question is how we will get miro screen gl acc number.

    and i have provide prerequisite and Substitution.

    and i have created program ZRGGBS000 bt when this exit will trigger.

      exits-name  = 'U201'.
      exits-param = c_exit_param_field.
      exits-title = 'G/L Account'.             "G/L account
      APPEND exits.
    
    FORM U201.
    BREAK-POINT.
    ENDFORM.
    
    


    miro-gl.jpg (35.3 kB)
    ggb1-user.jpg (114.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Hi Trilok,

      1. Have you maintained program ZRGGBS000 in GCX2 transaction. If not , maintain to trigger your code.

      2. In Substitution per-requisite use SYST-TCODE instead of BKPF-TCODE.

      3. What is the call-up point for this substitution. I suggest creation of validation rule for any validations. Search with 'OB28' to know more about validation rules.

      4. Regenerate substitution/validation by running standard report RGUGBR00

      Regards,

      Muhammed M

  • Apr 24 at 07:26 AM

    Hello Sir,

    My requirement is to validate GL acc. but i am not getting these G/l acc in any badi and user exit.

    i tired from field symbol but it din't work.


    badi-at-save.jpg (156.5 kB)
    miro1.jpg (220.1 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 24 at 09:41 AM

    Dear Muhammed,

    I have done as you said.

    But I have doubt when this ZRGGBS000 program is trigger.

    I think when ggb1 prerequisite and Substitution condition will True right.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 25 at 06:29 AM

    Solved, i have done implicit enhancement for that.

    Add comment
    10|10000 characters needed characters exceeded