on 03-30-2007 12:02 AM
How do I bring in all source data elements that have no values into target elements. I would like to bring the empty source data elements with spaces in the target data elements. Not all the data elements are mapped. Any idea?
Rajan,
Use the combinaiton of exists and if-else function in message mapping. Check for that field exists or not? If it exists then pass that field and if it doesnot pass the constants in the else part.
If you get suppress then have a look at this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3468. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
In solution 3 under 3. Mapping of <ProductQuantity> you find a solution for a very similar problem. I think the trick is to keep the SUPPRESS value in your result list.
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>I'm not sure if the field exists, how to pass the value since the value is not constant. If there is no value coming in, then how do I fill with empty spaces in the target?
Exactly the function of "MapWIthDefault" Function. Map your source to MapWithDefault function and map the output to the target node. In runtime, if te source node is present with some value then it is passed to the target node. If the source doesnot exist, then empty value is passed. You can change this value too. By changing the property of MapWithDefault function.
Regards,
Jai Shankar
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.