10-14-2011 9:43 AM
Hi
This question is regariding FI Check and Validation Rule condition definition.
This validation rule should trigger only for BSEG-KOART VALUE (K,D) and BSEG-KOART = BLANK.
so we used
(BSEG-KOART = 'D' OR BKPF-BLART ='K') AND
(BSEG-VERTN = BLANK)
But it does not get triggered.
But it triggers for below alteration
(BSEG-KOART = 'D' AND BSEG-VERTN = BLANK) OR
(BKPF-BLART ='K' AND BSEG-VERTN = BLANK)
Does the check and validation rule has any priority for AND and then OR like that.
Pls guide how to decide that it will trigger definitely.
Regards
Chandra
10-14-2011 10:15 AM
Hi,
The VSR pre-requisites are generated as per the configuration and evaluated in order. but sometime it is very difficult as the rules are automatically generated based on our config and you may not get the desired result.
we also faced the simmilar problem in our VSR.
you will find the auto generated conditions in include GBTDWWYE. Just put the breakpoint there and you will see how it is evaluated and then accordingly reconfig the pre-requisite.
I hope this will solve your problem.
Thanks,
Chandra
10-17-2011 6:34 AM
Hello Chandrasekhar
Thanks for your reply.
Looks like Reading logic in autogenerated code is not consistent one. Becuase not sure in what basis autocode is generated.
Anyother way can confirm the written logic is correct?
Teddy, Can you be specific what you want me to check in logic?
Regards
Chandra
10-18-2011 7:11 AM
Hi,
with AND/OR conditions, we also faced issue with not getting proper result. I will suggest you to use proper brackets and then also check in auto-genrated code in the mentioned includes. you will get the idea how to put the conditions.
I am not sure if there is any SAP note to correct this problem.
Thanks,
Chandra
10-14-2011 10:22 AM
Hi Chandra,
Please check again your logic. They may have some differences. If you want to ensure the priority, you can always use the bracket ().
Regards,
Teddy
10-17-2011 6:55 AM
Hi,
no problem with this code .
( BSEG-KOART = 'D' OR BKPF-BLART = 'K' )
AND ( BSEG-VERTN = ' ' )
regards
Deepak.
10-17-2011 7:04 AM
Hello Deepak
Thanks for your reply.
But why it was not triggered in my case? and it works in other way?
Anything i have to check for this?
Regards
10-17-2011 7:18 AM
Hi,
Both Condition are Different : You might be satisfiying that condition .
regards
Deepak .
10-18-2011 6:06 AM
Hi
Check in OB28, if you have maintained your Validation specifying company code ,call point & activation level
accordingly.
Hope this helps .
Regds,
AS
Edited by: abheesawant on Oct 18, 2011 7:06 AM
10-18-2011 6:54 AM
Hi,
What you have used below looks like wrong;
(BSEG-KOART = 'D' OR BKPF-BLART ='K') AND
(BSEG-VERTN = BLANK)
It should have been as below;
( BSEG-KOART = 'D' OR BSEG-KOART ='K' ) AND
( BSEG-VERTN = '' )
Try this and let me know whether it is working.
Regards,
Karthik D