on 02-18-2008 1:48 PM
Hello to all,
I use the default function "UseOneAsMany" in my mapping to mutiply a value.
My Problem is, the mapping throws an error, if the source field doesn't exist.
Is there a workaround for this problem?
I've tried
<Source> --> exists --> ifwithoutelse --> UseOneAsMany
but this hasn't solved my problem.
Could I use the function "UseOneForMany" for a node with several subnotes to multiply the complete subtree?
Regards Christian
Hi,
please use mapWitDefault API as below
<Source> --> exists --> ifwithoutelse >mapWithDefault> UseOneAsMany
It will avoid the supress value. If you see the queue for this mapping you will get supressed value which raised the exception for UseOneAsMany.
Don't pass any value in mapWithDefault, just use as it is
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I solved the problem with your help.
<source> --> mapwithdefault ---> useoneasmany --> if (exists) --> target
so the target will be created if it's in the source
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Swarup Sawant,
thanks it works fine. Is there a way that the target node wouldn't be created if the source node doesn't exist?
Could I use "UseOneAsMany" for a complete subtree?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kaiser,
If you are using a mapwithdefault then if your source node doesnot exist then also your target will occur becuase it takes the default value.
Since you dont want the target node if your source not doesnot exists then in your case do this:
If -->Source > exists> then use oneas many.
Dont use if else only use if. So the target will create only if source exists else not. Here you have to make sure the UseOneAsMany contexts.
Regards,
---Satish
Hi,
Check this link to know about node funtions,
/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13
Regards,
Phani
Reward points if Helpful
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.
Hello,
guess you need a 'split-by-value'-function.
Please look here:
http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm
Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.