cancel
Showing results for 
Search instead for 
Did you mean: 

How to put validations for Bank Gl accounts

Former Member
0 Kudos

Dear Gurus,

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.

regards

NJP

Accepted Solutions (1)

Accepted Solutions (1)

sridevi_p
Active Contributor
0 Kudos

Hi,

Also you should add the below in 'Check'

Profit center = ' ' <read as PCtr blank)

Else, even if you have enetered the PCtr, the error messgae will be displayed.

Regards,

sridevi

Former Member
0 Kudos

Hi Sridevi,

Thanks for your correction.

But i am Unable to put the range "xxxxxx" to "yyyyyy" for Hkont. it is allowing me tio give only one account no.

can you pls help me regarding this ?

rgds

NJP

sridevi_p
Active Contributor
0 Kudos

Hi,

You can acheive it in 2 ways.

1. (GL account >= xxxxx AND <= yyyyy)

or

2. Create a set for GL account using t-code GS03 and use as -

GL Account in <set name>

Regards,

Sridevi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

U can default a PC for the bank GLs in tcode 3kei

Regards,

Kiran