on ‎2014 Oct 13 6:15 AM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
| User | Count |
|---|---|
| 55 | |
| 28 | |
| 20 | |
| 10 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.