Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 13, 2013 at 08:57 PM

    How about try EXPERT_COMMIT_MODE = R?

    Add comment
    10|10000 characters needed characters exceeded