How to put validations for Bank Gl accounts
I have a requirement, where i want to make Profit center mandatory for the Bank Debits only.
Can you please suggest if my below written Validation would be useful in this respect.
Please correct my coding also. As i am doing validation for first time.
My working in Validation at line item level is :
Prerequisite: BKPF-BURKS = "ABCD"
Check : BSEG-BSCHL = 40 and BSEG-HKONT = "xxxxxx" to "yyyyyy"
Message: Please enter profit center.
You can acheive it in 2 ways.
1. (GL account >= xxxxx AND <= yyyyy)
2. Create a set for GL account using t-code GS03 and use as -
GL Account in <set name>