<?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: Mapping problem in context handling in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819317#M1490729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function myudf(String a[], ResultList result, Container container)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for(int i=0;i&amp;lt;a.length;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if(!a&amp;lt;i&amp;gt;.equals(""))&lt;/P&gt;&lt;P&gt;result.addValue(a&amp;lt;i&amp;gt;);&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;result.addContextChange();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 18:03:36 GMT</pubDate>
    <dc:creator>GabrielSagaya</dc:creator>
    <dc:date>2008-05-21T18:03:36Z</dc:date>
    <item>
      <title>Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaq-p/3819312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;               I am doing a file to file scenario in which i have to change the queue context is it possible? for simple context change we use ResultList.CC in advance UDF but what to do if we want to add a &lt;STRONG&gt;queue cahnge&lt;/STRONG&gt; .To dig more deep into the problem i am explaining my scenario.&lt;/P&gt;&lt;P&gt;my output structure is &amp;lt;GROUP&amp;gt; .....(1 to unbounded)            &lt;/P&gt;&lt;P&gt;                                    &amp;lt;Records&amp;gt;....(1 to unbounded)&lt;/P&gt;&lt;P&gt;                                       field1&lt;/P&gt;&lt;P&gt;                                       field2&lt;/P&gt;&lt;P&gt;                                        ..&lt;/P&gt;&lt;P&gt;                                        ..&lt;/P&gt;&lt;P&gt;                                        ..&lt;/P&gt;&lt;P&gt;                                         field13  &lt;/P&gt;&lt;P&gt;   In one group there can be many records and there will be multiple Groups.Suppose in my udf i want to add a queue change to add some field in other group then how will i achive it ? please guide me with ur inputs  &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 04:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaq-p/3819312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T04:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819313#M1490725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to force a context change in UDF, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ResultList.addContextChange();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 05:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819313#M1490725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T05:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819314#M1490726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;             Thanks for ur quick reply,but when i used it i got the error" non-static method addContextChange() cannot be referenced from a static context ResultList.addContextChange();".please tell me if i have to do any other setting to use this code.Secondly hope u understand my requirement i have to add context change to move to diffrent queue not simple context change.&lt;/P&gt;&lt;P&gt;Please feel free to ask any question if u have not understood clearly .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saueabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 05:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819314#M1490726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T05:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819315#M1490727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use result.addContextChange()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 16:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819315#M1490727</guid>
      <dc:creator>stefan_grube</dc:creator>
      <dc:date>2008-05-21T16:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819316#M1490728</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;context object is a generic term used to make a reference to message heder fileds in the XML file (also vth XPATH). Context of an element is nothing but just the level (with reference to its parent node) where the XML tag appears in the given XML document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this links for more info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio&lt;/P&gt;&lt;P&gt;/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/venkataramanan.parameswaran/blog/2007/02/06/is-there-a-possibility-to-access-xi-standard-functions-in-user-defined-functions-yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if this helps&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pragathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 17:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819316#M1490728</guid>
      <dc:creator>vijay_b4</dc:creator>
      <dc:date>2008-05-21T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819317#M1490729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function myudf(String a[], ResultList result, Container container)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for(int i=0;i&amp;lt;a.length;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if(!a&amp;lt;i&amp;gt;.equals(""))&lt;/P&gt;&lt;P&gt;result.addValue(a&amp;lt;i&amp;gt;);&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;result.addContextChange();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 18:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819317#M1490729</guid>
      <dc:creator>GabrielSagaya</dc:creator>
      <dc:date>2008-05-21T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819318#M1490730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have addContextChange() in your UDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function myudf(String a[], ResultList result, Container container)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for(int i=0;i&amp;lt;a.length;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if(!a[&amp;lt;i&amp;gt;].equals(""))&lt;/P&gt;&lt;P&gt;result.addValue(a[&amp;lt;i&amp;gt;]);&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;result.addContextChange();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 18:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819318#M1490730</guid>
      <dc:creator>GabrielSagaya</dc:creator>
      <dc:date>2008-05-21T18:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping problem in context handling</title>
      <link>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819319#M1490731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution i got by appending as many space as the suprressed values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 14:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mapping-problem-in-context-handling/qaa-p/3819319#M1490731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T14:01:11Z</dc:date>
    </item>
  </channel>
</rss>

