<?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 CORRESPONDING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618602#M1941615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on NW7.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand from the documentation, the new CORRESPONDING statement works based on components or fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a BAPI returning values in a table as a character-like sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT-VALUEPART1(240)&lt;/P&gt;&lt;P&gt;IT-VALUEPART2(240)&lt;/P&gt;&lt;P&gt;IT-VALUEPART3(240)&lt;/P&gt;&lt;P&gt;IT-VALUEPART4(240)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the first 240 characters for VALUEPART1 are filled, keeps ongoing with VALUEPART2 and so on. It can even fill up all of them and start over the process by adding a new line to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information needs to be moved to a proper field structure. The way I would approach this is by looping through the components of the target structure and matching the relevant character portions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way the new CORRESPONDING or CL_ABAP_CORRESPONDING can help me here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Andres.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 21:08:01 GMT</pubDate>
    <dc:creator>andrs_sarcevic</dc:creator>
    <dc:date>2016-03-02T21:08:01Z</dc:date>
    <item>
      <title>CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618602#M1941615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on NW7.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand from the documentation, the new CORRESPONDING statement works based on components or fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a BAPI returning values in a table as a character-like sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT-VALUEPART1(240)&lt;/P&gt;&lt;P&gt;IT-VALUEPART2(240)&lt;/P&gt;&lt;P&gt;IT-VALUEPART3(240)&lt;/P&gt;&lt;P&gt;IT-VALUEPART4(240)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the first 240 characters for VALUEPART1 are filled, keeps ongoing with VALUEPART2 and so on. It can even fill up all of them and start over the process by adding a new line to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information needs to be moved to a proper field structure. The way I would approach this is by looping through the components of the target structure and matching the relevant character portions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way the new CORRESPONDING or CL_ABAP_CORRESPONDING can help me here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Andres.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 21:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618602#M1941615</guid>
      <dc:creator>andrs_sarcevic</dc:creator>
      <dc:date>2016-03-02T21:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618603#M1941616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what exactly is the content of the valuepart fields, can you give an example?&lt;/P&gt;&lt;P&gt;I assume something in there like: 'field1 = value1, field2 = value2', and you have a target structure with fields field1 and field 2, and want to store value1 and value 2 in there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case, i don't think CORRESPONDING can help. In all its forms, it just compares field names, never the stored values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618603#M1941616</guid>
      <dc:creator>ThomasKruegl</dc:creator>
      <dc:date>2016-03-03T14:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618604#M1941617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas, thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 = valuepart1(2)&lt;/P&gt;&lt;P&gt;field2 = valuepart1+2(10)&lt;/P&gt;&lt;P&gt;field3 = valuepart1+10(1)&lt;/P&gt;&lt;P&gt;field4 = valuepart1+11(3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So characters of VALUEPART# is broken down into the target structure with meaningful fields.&lt;/P&gt;&lt;P&gt;I don't think it can be solved by CORRESPONDING, but thought better ask outside... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andres.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 21:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618604#M1941617</guid>
      <dc:creator>andrs_sarcevic</dc:creator>
      <dc:date>2016-03-06T21:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618605#M1941618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I suggest to use the &lt;A _jive_internal="true" href="https://answers.sap.com/thread/3613225"&gt;methods&lt;/A&gt; of class &lt;/SPAN&gt;CL_ABAP_CONTAINER_UTILITIES to copy data from a &lt;SPAN style="font-size: 13.3333px;"&gt;BAPIPAREX structure to another structure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JNN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 01:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618605#M1941618</guid>
      <dc:creator>nomssi</dc:creator>
      <dc:date>2016-03-07T01:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618606#M1941619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacques,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was useful, although CL_ABAP_CONTAINER won't map the whole BAPIPAREX typed structure to the target structure with meaningful fields, as CL_ABAP_CONTAINER=&amp;gt;READ_CONTAINER_C( ) takes a String Sequence as parameter, not a structure of string sequences as BAPIPAREX is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Andres.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 03:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618606#M1941619</guid>
      <dc:creator>andrs_sarcevic</dc:creator>
      <dc:date>2016-03-07T03:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618607#M1941620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use subfields no, but as all those are character fields you can use a simple offset like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;call&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;method&lt;/SPAN&gt; cl_abap_container_utilities=&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;read_container_c&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;exporting&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; im_container&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;i_extension_out+30&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;importing&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex_value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;e_extend_structure&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;exceptions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; illegal_parameter_type&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;others&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No CORRESPONDING options were harmed in the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 10:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/11618607#M1941620</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-07T10:58:22Z</dc:date>
    </item>
  </channel>
</rss>

