cancel
Showing results for 
Search instead for 
Did you mean: 

Node Creation based on values

Former Member
0 Kudos

Hi,

I have an IDOC node ZATTRIB with elements ZZATTRIBID and ZZATTRIBVALUE.

I have a requirement where I need to create a node at target based on if the value exists in ZZATTRIBID

The problem is that I need only one node to be created even though you have multiple values of ZZATTRIBID

Let me give an example.

I need create target node COLOR for only one time if i have value "COLOR" in ZZATTRIBID.

I have five occurrence of COLOR in ZZATTRIB and I used copyvalue(0) and it created only one node.

Sometimes you might have no COLOR in ZZATTRIB which forced copyvalue to be errored out.

I have tried the following combinations, but didn't work

IF ZZATRIB id eq color then remove context, splitvalue,copyvalue(0) to target node color.

Let me know whether I require UDF for this.

Regards

Anandh.B

Accepted Solutions (0)

Answers (3)

Answers (3)

rajasekhar_reddy14
Active Contributor
0 Kudos

1)use node function exists function followed by create if.

or

2)use if then else block, first check condition if condition satisfy then use counter function other else block suporess it.

nabendu_sen
Active Contributor
0 Kudos

Hi Anandha,

Try like below screenshots. I think the occurrence of "COLOR" Node at Target side is '0---1' like the screen.

Though 2 COLOR queues generated, as the occurrence is '0--1', it creates only 1 node.

smavachee
Active Contributor
0 Kudos

Have a look at this thread..

It may help you.

Regards,

Sunil