on 03-06-2013 3:17 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.