Skip to Content
author's profile photo Former Member
Former Member

concatenating the stings

Hi friends ,

This is a scenerio from idoc to file . I need to concatnate 3 fields from the same segment . I concatenate the fields and map to the target . What I found is in source payload the field combination mapping does not exist .

If I look at the fields say a,b,c , In this case a is initial , b has a value and c is initial .

If i concat b first , a and c in sequqnce then It works fine .

So , I tried to use a constant as firts field and did the concat but it fails .

Please suggest .



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 21, 2006 at 03:40 AM


    Can you let us know what do you mean by Initial? Does it imply that the element has no value in the source or that the element has not occured in the source at all.

    Also, when you say that the concatenetion fails, does it mply a mapping error or just that the concat is not giving result as expected?



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi chan,

      Yes, it happens like that (don't know why). It's better if you check that the field exists and has a value before you concatenate.

      In case you have the field but is intial then you will get the concatenated value but if the field itself does not exist in the payload then you will not get a output.



  • Posted on Jun 21, 2006 at 04:05 AM

    Hi Chan,

    One simple solution for this problem is having a <b>MapWithDefault (with Empty string)</b> for every source field and the concatenating using Concat.


    A -> MapWithDefault ->| |

    B -> MapWithDefault ->| Concat | ->Target

    C -> MapWithDefault ->| |</b>



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.