Skip to Content
avatar image
Former Member

Validation for Spl.Gl.Indicator

I want to make a validation as follows:

For a user with name "TOM101", he should not be allowed to do Special GL Transaction with indicator '1'. I have written the validation as follows:

Pre-requisite : User Name = 'TOM101'

Check : Special G/L ind = '1'

Message : No Spl Gl Indicator other than 1 is allowed

However it issues error in the document entry screen whatever special GL indicator is used.

Have I done the validation correctly ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jun 24, 2010 at 02:18 PM

    Hi,

    in the validation maintenance change to display mode and goto "extras / expert trace / set breakpoint".

    After that post your testcase to see what happens during validation processing.

    I guess the reason is that you are processing every line item but only some line items contain a special GL indicator, most of them have spl.GL indicator " " and thats why the message is raised.

    best regards, Christian

    Edited by: Christian Ortner on Jun 24, 2010 4:18 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 24, 2010 at 04:21 PM

    Hi

    I think you Validation set up is correct except following one point...

    Check: Special GL = 1

    with my knowledge, it should be as follows

    Check: Special GL "Not Equal to" 1

    try this.. hope it works. Please update me the response.

    reg

    S Habib Pasha

    Edited by: Sayyad Habib Pasha on Jun 24, 2010 6:21 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 24, 2010 at 04:45 PM

    Hi,

    With this validation code, you are preventing the user TOM101 from posting any special GL indicator other than 1. Which means, if the user tries to enter any special GL indicator other than 1 will result in error.

    The logic of validation is

    If the prerequisite is met and check is not fulfilled, it should result in error.

    So if you want to preven this user from posting special GL indicator 1, as Sayyed rightly mentioned, the check should be "Special G/L indicator not equal to 1"

    Hope this helps.

    Best Regards,

    Madhu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 07, 2010 at 08:19 AM

    Thanks for the inputs. Thread is closed.

    Add comment
    10|10000 characters needed characters exceeded