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

Message Mapping Problem

Hi Everybody,

i have the following problem ans hope thet anybody can help me.

i have an input xml file. A part of it seems like this:

L_ANF_TEXT

-item

--EBELP

--TDID

.....

my ouput message seems like this:

Langtexte

- ebelp

- tdid

my problem is that the output message have at every part have 1..1 as occurences.

The Part in the input message have an occurences from 0..1.

How can i do that in the message mapping.

I hope anybody can help me

Best Regards

Markus

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Mar 19, 2009 at 08:10 AM

    Your source has an occurrence of 0-1 and target 1-1.

    There are two ways you can handle it.

    1. Make sure your source system always sends data

    2. Do a check and in case there is no data i.e the node does not exist in the source then pass an empty constant. This empty constant should be interpreted at the target as that the source didnt send any data.

                              Then - (Pass source field)
    source field - EXIST -> IF                                                -> Target
                                       Else - (Pass Empty Constant)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 19, 2009 at 08:10 AM

    Hi Markus,

    Please provide the complete source and target structure, along with their cardinality, to help us visualize more into the problem.

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 19, 2009 at 08:11 AM

    Hi,

    Please use node functions.........

    More help refer this blog........

    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

    /people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2009 at 08:13 AM

    You could do this way:

    IF souce field EXISTS => map to target field

    ELSE => MAP WITH DEFAULT

    This way you will definetely create a target field! If the content (in case the source field is not existing) of the target field is not required to be filled with a specific value - that's you solution.

    Kai

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 19, 2009 at 08:15 AM

    Hi,

    use Source --> exists --> createIf --> target

    Regards,

    Abhishek.

    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.