on 04-04-2011 10:49 AM
Hi,
i am doing a file-file scenario.. some times the source fields might come empty and sometimes with values..
When a source field value is blank then it shouldnt create a field on target side,if it has some value it has to be passed as iti is..
Can you gimme some idea on this.
Use Equal function comparing <empty> value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess there will be 5 blank spaces (check the xml source), If yes then XI will consider it as value and in that case node will be generated at target side.
But if you don't want to generate the target node for this case, then use the "Trim" function in your mapping just after the source field. You can find "trim" under "Text" function.
Use "IfWithoutEsle", "EqualS", "Constant" and "NOT" functions.. eg.
Logic: If not source equals empty then map source.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kiran,
A ver basic question, would have appreciated if you have searched a bit and then asked your doubt (if any)
Still..follow the below logic:
Source>equalsS Constant (blank)> Not>Ifwithoutelse->Target
Source> then--
>Target
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Use mapWithDefault standard function.
Please see the below link, it might be helpful to you.
[mapWithDefault|http://help.sap.com/saphelp_nwpi71/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm]
Regards,
P.Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.