<?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>topic Proxy inbound message INPUT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381926#M811969</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;P&gt;i am new with ABAP proxy and only have some theoretical knowledge about ABAP object oriented programmering so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have been told to inplement code in a method of a generated proxy class to deal with material data sent to SAP from an external agent. i know what i have to do with the data, i mean, i am gonna update material master using a BAPI and i know that the data is in the INPUT parameter of the method, i can see the method where i have to write code, and i can see the structure of that INPUT and identify the fields i need, but, how can i reference the parameter in the method, its fields, how do i read that data?? surely is a very stupid cuestion once one knows about proxy and methods and so but by know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Javier Casillas on Feb 7, 2008 6:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 17:37:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T17:37:50Z</dc:date>
    <item>
      <title>Proxy inbound message INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381926#M811969</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;P&gt;i am new with ABAP proxy and only have some theoretical knowledge about ABAP object oriented programmering so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have been told to inplement code in a method of a generated proxy class to deal with material data sent to SAP from an external agent. i know what i have to do with the data, i mean, i am gonna update material master using a BAPI and i know that the data is in the INPUT parameter of the method, i can see the method where i have to write code, and i can see the structure of that INPUT and identify the fields i need, but, how can i reference the parameter in the method, its fields, how do i read that data?? surely is a very stupid cuestion once one knows about proxy and methods and so but by know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Javier Casillas on Feb 7, 2008 6:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 17:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381926#M811969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T17:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy inbound message INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381927#M811970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If an input parameter is call &lt;STRONG&gt;i_data&lt;/STRONG&gt; and has structure &lt;STRONG&gt;struc&lt;/STRONG&gt;, then &lt;STRONG&gt;i_data&lt;/STRONG&gt; is available in your method as a variable with structure &lt;STRONG&gt;struc&lt;/STRONG&gt;.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's there.  You use it.  It's defined for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or does the difficulty lie elsewhere?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 07:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381927#M811970</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-08T07:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy inbound message INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381928#M811971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The input and output parameters are structures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can refer it just like a workarea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data: vl_matnr type mara-matnr.

*Reading
vl_matnr = input-matnr.

*Writing
output-matnr = vl_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;if your mapping on XI have a deep structure, the workarea of input and output parameters will have the same deep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
vl_matnr = input-material-matnr.

input-material-matnr = vl_matnr
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 10:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381928#M811971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T10:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy inbound message INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381929#M811972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, thank you Matthew and Darley.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i was asking is what Darley explains. I understand that the question was actualy too silly or obvious maybe, but it is clear that i havent understand yet how this classes work. So now i have an idea of how to "see" a field of the input structure. but i am not still able to "loop" at data, the materials, and take out the information. i receive this collection of materials from XI:&lt;/P&gt;&lt;P&gt;&amp;lt;ARTICLE_INFO VERSION="1.0"&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;DEF_ARTICLE ID="1002423" ACTION="SYNC"&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;MCLASS&amp;gt;533000&amp;lt;/MCLASS&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;MSORT&amp;gt;473760&amp;lt;/MSORT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;REGLANG&amp;gt;SWE&amp;lt;/REGLANG&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;NAME LANG="SWE"&amp;gt;KUGGKRANS&amp;lt;/NAME&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;STD_MANUF_FLAG&amp;gt;M&amp;lt;/STD_MANUF_FLAG&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;MANUF&amp;gt;KUPPLUNGSTECHNIK&amp;lt;/MANUF&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;REF LANG="SWE"&amp;gt;ROTEX 42-55&amp;lt;/REF&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;SUPPLEMENT LANG="SWE"&amp;gt;92 SHORE GUL&amp;lt;/SUPPLEMENT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/DEF_ARTICLE&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;DEF_ARTICLE ID="1002818" ACTION="SYNC"&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;MCLASS&amp;gt;641000&amp;lt;/MCLASS&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;MSORT&amp;gt;230416&amp;lt;/MSORT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;REGLANG&amp;gt;SWE&amp;lt;/REGLANG&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;NAME LANG="SWE"&amp;gt;TONERKASSETT&amp;lt;/NAME&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;STD_MANUF_FLAG&amp;gt;M&amp;lt;/STD_MANUF_FLAG&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;MANUF&amp;gt;HEWLETT-PACKARD&amp;lt;/MANUF&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;REF LANG="SWE"&amp;gt;Q6470A&amp;lt;/REF&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;SUPPLEMENT LANG="SWE"&amp;gt;SVART CLJ 3600/3800&amp;lt;/SUPPLEMENT&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the same structure i see in the INPUT parameter of the method. So imagine that i want to pick every material number i receive and take some data from then. to loop through the materials i thought i could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at input-article_info-def_article.&lt;/P&gt;&lt;P&gt;    w_matnr = input-article_info-def_article-ID.&lt;/P&gt;&lt;P&gt;    w_spras = input-article_info-name-lang.&lt;/P&gt;&lt;P&gt;    w_matkx = input-article_info-name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But first, in OO i have to do de loop with a "INTO" or "ASSING" addition. i tried to do:&lt;/P&gt;&lt;P&gt;data: wa_def_article like ZMI_SKC_ARTICLES_DEF_ARTICLE. &lt;/P&gt;&lt;P&gt;(this is the line type of the proxy type for def_article)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then: LOOP AT input-article_info-def_article INTO wa_def_article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesnt work becouse the right side of the input must be a "flat structure". what does it mean?&lt;/P&gt;&lt;P&gt;and then, i am not sure either if the way i am assigning the material number or the language, for example, are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess i am doing it much more confussing that it really is because my ignorance of ABAP classes and proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but thank you for your time and help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Javier Casillas on Feb 8, 2008 1:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381929#M811972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T12:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy inbound message INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381930#M811973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd guess that you've not actually defined wa_def_article.  It's difficult to tell without knowing the definition of ZMI_SKC_ARTICLES_DEF_ARTICLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_def_article LIKE LINE OF input-article_info-def_article. 
LOOP AT input-article_info-def_article INTO wa_def_article.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 13:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/proxy-inbound-message-input/m-p/3381930#M811973</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-08T13:24:42Z</dc:date>
    </item>
  </channel>
</rss>

