cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an Expert rule to update existing VAT instance(s) ?

0 Kudos

Hello Experts,

I would like to write an SAP Expert rule to change existing value assignment instance(s).

I'm quite new with rules development... I tried the following :

FACTS

          RECORD IO_SUMMARY(IN,OUT)

                    sum_prot_01,

                    sum_prot_02

          END

  ;Rules

RULES

RULE SUMMARIZE_01

          IF

                    TRUE()

          THEN

                    IO_SUMMARY.sum_prot_01 := "[#P1_V1#]"

          END

END;

This is actually changing the characteristic in the way I want but it is duplicating the value assignment instances.

So, for example, before executing the rule I have :

VAT: IO_SUMMARY

Instance 1

     sum_prot_01 - Value "XXX"

     sum_prot_02 - Value "YYY"

After running the rule, I get :

VAT: IO_SUMMARY

Instance 1

     sum_prot_01 - Value "XXX"

     sum_prot_02 - Value "YYY"

Instance 2

     sum_prot_01 - Value "[#P1_V1#]"

     sum_prot_02 - Value "YYY"

I tried to change the user-exit parameter "EXPERT_COMMIT_MODE" but the behaviour is the same with value "C" or "D".

Is there a way to change existing value assignment type with Expert ? If yes, how ? Please give me some clues.

Thanks in advance for your help.

Jean-Philippe

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

How about try EXPERT_COMMIT_MODE = R?