cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for Spl.Gl.Indicator

Former Member
0 Kudos

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 ?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks for the inputs. Thread is closed.

madhusoodanan_ramachandra
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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