Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding FI Validation and Check

Former Member
0 Kudos

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

9 REPLIES 9

ChandraMahajan
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

deepak_dhamat
Active Contributor
0 Kudos

Hi,

no problem with this code .

( BSEG-KOART = 'D' OR BKPF-BLART = 'K' )  
AND  ( BSEG-VERTN =  '  '  )

regards

Deepak.

0 Kudos

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

deepak_dhamat
Active Contributor
0 Kudos

Hi,

Both Condition are Different : You might be satisfiying that condition .

regards

Deepak .

0 Kudos

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

Former Member
0 Kudos

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