Skip to Content
0
Feb 09, 2010 at 06:20 AM

Validation Rule for Two Company Codes

77 Views

Dear Friends,

Previously, I have written the validation for one company code which has worked fine. Now, I have to write validation for two company codes.

Here the code which is not working.

1000,2000 - Company Code.

ABC,DEF,GHI,JKL,MNO,PQR,STV = Business Area

Prerequisite: BSEG-BUKRS = '1000' AND BSEG-BUKRS = '2000'

Check: BSEG-GSBER = 'ABC' OR

BSEG-GSBER = 'DEF' OR

BSEG-GSBER = 'GHI' OR

BSEG-GSBER = 'JKL' AND

BSEG-GSBER = 'MNO' OR

BSEG-GSBER = 'PQR' OR

BSEG-GSBER = 'STV'

Error Message : Please Check Business Area.

Please advise what is wrong in the code and what should i correct to get the validation working for two company codes?

Thanks

Sridhar