on 05-06-2009 1:44 AM
Hi
i have requirement where i have to generate the target element if the value exists in Source element
suppose if i have a value in <name>test</name> then generate the element on target side <name>test</name>
if i dont have value on source side <name></name> then i dont want to generate the element on target side
how i will achieve that
S V
Source
---------> equalS ----> Not -----> IfWithoutElse ----------------Target
Constant(blank) THEN---Source
Its working for me...rather i tested the logic:)
I hope that your target element has at least 0..1 cardinality...else will give an error...
Regards,
Abhishek.
Edited by: abhishek salvi on May 6, 2009 9:30 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi S V,
name------->equals----->not------>if------->target
constant()/ name--->then/
dont give any thing in the constant.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi S V,
Try this...........
First change the occurance of element <name> to '0..unbounded'.
Now do the mapping,
name & -
>Equals--
>name
Constant
Check this link to know much about Node functions.
thanks,
Ravi.
Edited by: P.Ravi Varma on May 6, 2009 11:10 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use the createIf functionality of Node function, make sure that min occurence should be '0'
example:
If Name(Source) exist --> createIf --> Name (target)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly check this link has provided an example
[http://help.sap.com/saphelp_nw04/helpdata/en/d9/3033f96c79674f90e3ab8d101a595b/frameset.htm]
<h5>in ur mapping u should not give any value there and use not after equalS std function<h5>
Or u can use mapping like this
name(Source Field)--------equalS------------not---------ifWithoutElse--------------name(target Field)
constant()/ Source/
for constant dont give any value
target field occurence 0....unbounded
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use createIf function for this
make sure that the cardinality of target element/node is 0...1
Rajesh
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 |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.