Skip to Content



we want restrict the gl while payment

EG: 200004g/l cash in hand ,balance having 10000 and payment is 11000 in this case system does not allow the user for payment and if there is 0 balance in that case also does not allow the user.I did the validation like..

prerequisite gl a/c=200004

check debit/credit =h and amount local currency <=gl account

but it is not working ..please guide me

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2010 at 12:29 PM

    Nope, you have to define the validation like this:-

    Step 1:-

    Create a message ID via transaction code SE91 for message class /EACC/MSG/ACC_COMP as you want to display to user.

    Step 2:-

    Go to transaction GGB0 and create the validation step at Line Item level in Financial Accounting as below:-

    Pre Requisits:-

    BKPF-HKONT = '0000200004'.


    Create a exit code using user exit and check the open balance of the GL 200004 as on posting date.

    For this take the help of ABAPer and create a copy of the program RGGBR000 and code your check here and assign to the application area GBLR in view V_T80D via transaction code SM30.


    Message created in step 1 as error message.

    Step 3:-

    Please also check that this validation has active status (Status=1) at line line item level (level 2) for your company code in transaction OB28.



    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2010 at 07:12 AM


    Add comment
    10|10000 characters needed characters exceeded