cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Validation Coding issue

Former Member
0 Likes
1,544

Hello Friends,

I have written the below Validation for make a require entry for "Bank Partner Type" but I think there is some problem due to it is not working properly.

( Transaction code = 'MIR4' OR Transaction code = 'MIR7' OR

Transaction code = 'MIRO' OR Transaction code = 'FB60' OR

Transaction code = 'F-43' OR Transaction code = 'FBA6' OR

Transaction code = 'FBA7' OR Transaction code = 'FB01' OR

Transaction Code = 'FB65' OR Transaction code = 'FBCJ' ) AND

Account Type = 'K' AND Vendor < '80000000' AND

Vendor > '81999999' AND ( Pmt Method = 'E' OR

Pmt Method = 'R'

OR Pmt Method = 'N' OR Pmt Method = 'T' )

I have doubt on above highlighted coding is not correct. Can any one please help me to understand this coding.

Regards,

Rajesh. K

View Entire Topic
former_member182098
Active Contributor
0 Likes

There are two bits in validation.

1. Writing validation in GGB0

2. Assigning it in OB28. (If you miss this step, then your validation will not be triggered for checks).

Ensure you have assigned in OB28, otherwise, it will not work.

Former Member
0 Likes

Hello Ravi,

Yes, I am able to see my validation in OB28 with all the changes I have did recently in GGB0.

Regards,

Rajesh. K

former_member198650
Active Contributor
0 Likes

Hi Rajesh,

Instead of maintaining vendor numbers in validation.You can also create a set in GS01 for vendors list for whom you want to apply validation as mentioned below.

( SYST-TCODE = 'MIR4' OR SYST-TCODE = 'MIR7' OR

SYST-TCODE = 'MIRO' OR SYST-TCODE = 'FB60' OR

SYST-TCODE = 'F - 43' OR SYST-TCODE = 'FBA6' OR

SYST-TCODE = 'FBA7' OR SYST-TCODE = 'FB01' OR

BKPF-TCODE = 'FB65' OR SYST-TCODE = 'FBCJ' ) AND

BSEG-KOART = 'K' AND ( BSEG-ZLSCH = 'C' OR

BSEG-ZLSCH = 'R' OR BSEG-ZLSCH = 'N' OR

BSEG-ZLSCH = 'T' ) AND BSEG-LIFNR IN ZVND (Set name)

Regards,

Mukthar

former_member182098
Active Contributor
0 Likes

Try using BKPF-TCODE instead of SYST-TCODE

Former Member
0 Likes

Hello Ravi,

Thanks for your inputs, but still it is not working after changing from SYST to KBPF.

Hello Mukthar,

Sorry, my scenior dont want to update the table.

Regards,

Rajesh. K

Former Member
0 Likes

Hello Ravi and all the frnds,

Finally it works, the issue with Coding in condition.

(SYST-TCODE = 'MIR4' OR SYST-TCODE = 'MIR7' OR

SYST-TCODE = 'MIRO' OR SYST-TCODE = 'FB60' OR

SYST-TCODE = 'F - 43' OR SYST-TCODE = 'FBA6' OR

SYST-TCODE = 'FBA7' OR SYST-TCODE = 'FB01' OR

BKPF-TCODE = 'FB65' OR SYST-TCODE = 'FBCJ' ) AND

BSEG-KOART = 'K' AND ( BSEG-LIFNR < '80000000' AND

BSEG-LIFNR > '81999999' ) AND ( BSEG-ZLSCH = 'E' OR

BSEG-ZLSCH = 'R' OR BSEG-ZLSCH = 'N' OR

  BSEG-ZLSCH = 'T' )


In the above coding the "AND" should be replaced with "OR" and the Validation is now working.


Once again thanks for all your efforts.



Regards,

Rajesh. K.


sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi

Please close the thread if your issue has been resolved

Regards

Sanil