Skip to Content
0

Subtitution Rule with constant

Sep 18, 2017 at 10:13 PM

72

avatar image

I have developed the following substitution rule

BKPF-BUKRS = '8093' AND ( BKPF-BLART = 'KR' OR

BKPF-BLART = 'KN' )

AND

BSEG-LIFNR = '1080112'

(if prerequisite is met) substitute with constant value in BSEG-ZLSPR constant value = "I"

So basically the rule sets all invoices for that vendor to be blocked by "I"

The problem is, that when I am at the line item FBL1N, I can not remove the "I" payment block, not too sure why

is the substitution keeps looping in the background ? do I need to end the code with a special command ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sanil Bhandari Sep 19, 2017 at 12:46 AM
0

Hi

In your prerequisite, please also add the T Code, where you actually want the block to be triggered (Eg, FB60 or FB01 etc).

regards

Sanil Bhandari

Show 4 Share
10 |10000 characters needed characters left characters exceeded

So by adding the T-code, this will limit the insertion of "i" to block to only one time by using the

FB60 for example ?

0

yup

That would do it. Now the question is, what if the invoice is coming from an external interface, how can i apply the block ?

0

Hi

Interface would be a custom program. Check with your ABAP colleague on the same.

regards

Sanil Bhandari

1

Very good.

Thanks for all your help.

0
Eli Klovski
Sep 19, 2017 at 08:24 AM
0

Hi,

Your conditions don't allow to remove a blocking code, as it will always be put in place following the logic you defined. If you want to allow its removal, add a prerequisite of, say, user name. So, that this use will be able to remove the flag. In your rules it will look as "AND SYST-UNAME <> 'XXXXX'".

Regards,

Eli

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Greatly appreciate your feedback

but isn't <> is like saying not equal to ?

0

Well, exactly. The substitution rule will work for all users, except one (or whatever). That one user will be able to clear the block flag, as substitution won't apply.

1

Very Good.

Thanks for the feedback.

0