on 05-01-2013 7:24 AM
Dear Expert
I am writing a FI validation. The logic is:-
With Posting Key 50 one GL code 100301 can not be posted with a line item for F-02 transaction.
In Ob28 I am writing as:-
Prequisite:-
SYST-TCODE = 'F-02' AND BSEG-BSCHL = '50' AND BKPF-BLART = 'KZ'
Check:-
BSEG-HKONT = '100301'
Message:- Error
Pl advise where I am wrong
Regards,
Alok
Hi Alok,
Prerequisite :-
( BSEG-HKONT = '40050020' ) AND ( BSEG-SHKZG = 'H' )
AND ( BKPF-BLART = 'KZ' )
Check
( BKPF-TCODE = 'F-02' )
Assign error message.
Change GL account > Better you can use SETS instead of GL hardcode.
Solution with set :-
Create SET with GS01 as BANKGL
Select SKB1 table > Enter SAKNR as field > Enter all required GL account which are to be control for KZ credit entries.
In Validation
Prerequisite :-
( BSEG-HKONT IN BANKGL' ) AND ( BSEG-SHKZG = 'H' )
AND ( BKPF-BLART = 'KZ' )
Check
( BKPF-TCODE = 'F-02' )
Assign error message.
Regards
Mani Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alok,
Use sets logic, which i mentioned above thread. You have to create one set ,which is through GS01 > maintain all respective GL accounts as master data and assign the same in to Validation as above mentioned.
Solution with set :-
Create SET with GS01 as BANKGL
Select SKB1 table > Enter SAKNR as field > Enter all required GL account which are to be control for KZ credit entries.
In Validation
Prerequisite :-
( BSEG-HKONT IN BANKGL' ) AND ( BSEG-SHKZG = 'H' )
AND ( BKPF-BLART = 'KZ' )
Check
( BKPF-TCODE = 'F-02' )
Assign error message.
According your query ,it should be OR.
Regards
Mani Kumar
Hi Alok,
Please be note that, the foreground t-code and background t-code might be different.
F-02 reads the background t-code as FB01
More over, it is not suggested to involve FB01 and Document type in Validation rule.
Try to do testing on all enjoy transactions once you activate the validation in OB28.
Follow the Manikumar's suggestion for rule.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.