Can any body help me in the following validation -
Requirement - I'm trying to create a validation so that only specific document types can post to specific GL accounts.
I'm implementing this requirement by line item validation.
I started with the simple validation as below -
Prerequisite - BKPF-BLART = 'S1'
Check - BSEG-HKONT <> '0000343433' (ABAP not equal to since can not be displayed between BSEG-HKONT and the account number)
Message - Error Message
It is not working. I have also tried the below -
Prerequisite - BSEG-HKONT NOT IN ZTEST
Check - BKPF-BLART = 'S1'
Message - Error Message
where ZTEST is a set of GL accounts. It is not working either.
I have even generated everything by program RGUGBR00. I tried it by setting breaking point also; it satisfies the condition but message does not show up.
Also system is not allowing me to put something like this -
Prerequisite - BKPF-BLART = 'S1'
Check - BSEG-HKONT NOT IN ZTEST
Message - Error Message
Please help.
MV
Edited by: mv reddy on Feb 11, 2008 11:37 PM