Skip to Content
0

Function context issue

Dec 17, 2016 at 05:11 AM

43

avatar image

There are two decision tables:

Step1:

First Decision table say dec1

Table settings: Return all match found is checked

Input elements : ele1 & ele2

Output elements : result data object is of type table say tab1 ; tab1 contains ele3 and ele4

Step2:

Second Decision table say dec2

Table settings: Return all match found is checked

Input elements : ele5

Output elements : result data object is of type table say tab2 ; tab2 contains ele3

Step3:

Now in the function context ( function name say func )

context data objects: ele1, ele2 and ele5

result data object: structure say str with two elements ele3 and ele4

Step4:

Created a ruleset say Ruleset1

Created a rule inside the ruleset

Processing expression dec1

Processing expression dec2

After checking ( clicking on check )

  • ELE3 (Data Object) : Multiple use of identical objects (TAB1-STR1-ELE3 and STR-ELE3) in context/temporary ruleset variable not allowed Display Related Object (Detail) Display Help
  • ELE4 (Data Object) : Multiple use of identical objects (TAB1-STR1-ELE4 and STR-ELE4) in context/temporary ruleset variable not allowed Display Related Object (Detail) Display Help
  • ELE3 (Data Object) : Multiple use of identical objects (TAB2-STR2-ELE3 and STR-ELE3) in context/temporary ruleset variable not allowed Display Related Object (Detail) Display Help

untitled.png (81.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Christian Lechner Moderator SAP Mentor Dec 19, 2016 at 09:27 PM
0

Hi,

as the message states: you are not allowed to use the same object (identical UUID) as the result structure (data object) and within your ruleset as an intermediate variable in a table.

If you use different data objects as results from your decision table operations and finally move the desired result into the result structure of your function.

Best regards,

Christian

Share
10 |10000 characters needed characters left characters exceeded
GOPAKUMAR PILLAI Dec 21, 2016 at 06:50 AM
0

Hi Christian,

What if I have a scenario wherein I have same data object as above? Is there any other way to handle it?

BR,

Gopa

Share
10 |10000 characters needed characters left characters exceeded
Christian Lechner Moderator SAP Mentor Dec 21, 2016 at 12:04 PM
0

Hi Gopa,

unfortunately not. You really have to kind of "duplicate" them

BR

Christian

Share
10 |10000 characters needed characters left characters exceeded