<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Default value in receiving element in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523894#M3028831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&lt;/P&gt;&lt;P&gt;              I don't think this can be achieved without concatenating individually the field names along with their values. The method you have already explained yourself. In case you need for all fields respective field names to be concatenated with their field values in a generic manner then this is possible using java mapping. The java mapping would traverse the entire source xml and add the required prefix for each of the field.Thus you get everything in target XML as per your requirement. For this you need a mapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 08:01:27 GMT</pubDate>
    <dc:creator>anupam_ghosh2</dc:creator>
    <dc:date>2012-01-24T08:01:27Z</dc:date>
    <item>
      <title>Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaq-p/8523889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to map to a structure which have a "tagname" inside the element. &lt;/P&gt;&lt;P&gt;I map for example a phone number to an element and the receiving value should be "TelephoneNumber = 0345335454"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought was to create a phone number datatype with two sub elements, like Tag and Value and in the data type definition somehow default the Tag value to "TelephoneNumber = " so that i didn´t have to map it at all in the message mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that even possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are there any other ways to do it? I would like to be able to not have the need for mapping a value in message mapping (not even a constant), but use a default from the datatype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Glenn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaq-p/8523889</guid>
      <dc:creator>glenn_karlsson2</dc:creator>
      <dc:date>2012-01-23T14:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523890#M3028827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PI 7.1 you can use global variable for multiple times. and then concat with the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="45763"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis Ortiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523890#M3028827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T14:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523891#M3028828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;Or are there any other ways to do it? I would like to be able to not have the need for mapping a value in message mapping (not even a constant), but use a default from the datatype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Graphical Variable. You can reuse them in the target structure as much you want for many times. Refer the link provided by the above expert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 14:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523891#M3028828</guid>
      <dc:creator>baskar_gopalakrishnan2</dc:creator>
      <dc:date>2012-01-23T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523892#M3028829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to map to a structure which have a "tagname" inside the element. &lt;/P&gt;&lt;P&gt;I map for example a phone number to an element and the receiving value should be "TelephoneNumber = 0345335454"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think you are referring to the attribute of an element e.g&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;elementName telephoneNumber=""/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here, elementName is the element while telephoneNumber is the attribute. You can create this using a datatype called elementName and then press ctrl&lt;EM&gt;shift&lt;/EM&gt;a to add an attribute, alternatively you can just create the add icon and then choose attribute.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somehow default the Tag value to "TelephoneNumber = " so that i didn´t have to map it at all in the message mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not sure what you meant here, but if you don't use it in the mapping, then it will default to TelephoneNumber = "". Please clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 01:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523892#M3028829</guid>
      <dc:creator>markangelo_dihiansan</dc:creator>
      <dc:date>2012-01-24T01:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523893#M3028830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently I have a problem stating my needs  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create a target data strucure that when I map a value to a element I will include a "prefix" to the value, without the need to map the prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could of course do a concat in the graphical mapping so that I concat "TelephoneNumber = " and the source value "1234567" to create target value "TelephoneNumber = 1234567".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the way I want it is to just map the actual phone number and get the prefix "for free". To clarify, the "TelephoneNumber = " -part is not the element name, but part of the element value. &lt;/P&gt;&lt;P&gt;Like this: &amp;lt;TelephoneNumber&amp;gt;TelephoneNumber = 1234567&amp;lt;/TelephoneNumber&amp;gt;. Is that possible? I would like to be able to create the single elements as their own data type for reuse purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Glenn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 07:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523893#M3028830</guid>
      <dc:creator>glenn_karlsson2</dc:creator>
      <dc:date>2012-01-24T07:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523894#M3028831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&lt;/P&gt;&lt;P&gt;              I don't think this can be achieved without concatenating individually the field names along with their values. The method you have already explained yourself. In case you need for all fields respective field names to be concatenated with their field values in a generic manner then this is possible using java mapping. The java mapping would traverse the entire source xml and add the required prefix for each of the field.Thus you get everything in target XML as per your requirement. For this you need a mapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 08:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523894#M3028831</guid>
      <dc:creator>anupam_ghosh2</dc:creator>
      <dc:date>2012-01-24T08:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523895#M3028832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In graphics mapping it can be handled easily, Still you donot want to do it.&lt;/P&gt;&lt;P&gt;make java mapping based on the element name. use it in interface mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N.Gunaseelan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 09:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523895#M3028832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Default value in receiving element</title>
      <link>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523896#M3028833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to not dwell on this issue anymore. I used concat on all fields. A few hours of work but that was all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Glenn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 08:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/default-value-in-receiving-element/qaa-p/8523896#M3028833</guid>
      <dc:creator>glenn_karlsson2</dc:creator>
      <dc:date>2012-02-03T08:53:37Z</dc:date>
    </item>
  </channel>
</rss>

