<?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 Error in MOVE-CORRESPONDING  statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345576#M1540016</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 am facing issue in move-corresponding statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_first_data USING   it_lifnr TYPE ty_lifnr&lt;/P&gt;&lt;P&gt;                             it_prdha TYPE ty_prdha&lt;/P&gt;&lt;P&gt;                             it_matnr TYPE ty_matnr&lt;/P&gt;&lt;P&gt;                             ct_list_struct TYPE yt_list_struct&lt;/P&gt;&lt;P&gt;                             pd_datab LIKE sy-datum&lt;/P&gt;&lt;P&gt;                             pd_datbi LIKE sy-datum.&lt;/P&gt;&lt;P&gt;In loop statment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_eket.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Liste mit EKET-Einträgen anreichern&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear ld_subrc.&lt;/P&gt;&lt;P&gt;    CLEAR ct_list_struct.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING lt_eket TO ct_list_struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement it is giving error that, ct_list_struct is not a structure or internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 08:12:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-08T08:12:46Z</dc:date>
    <item>
      <title>Error in MOVE-CORRESPONDING  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345576#M1540016</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 am facing issue in move-corresponding statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_first_data USING   it_lifnr TYPE ty_lifnr&lt;/P&gt;&lt;P&gt;                             it_prdha TYPE ty_prdha&lt;/P&gt;&lt;P&gt;                             it_matnr TYPE ty_matnr&lt;/P&gt;&lt;P&gt;                             ct_list_struct TYPE yt_list_struct&lt;/P&gt;&lt;P&gt;                             pd_datab LIKE sy-datum&lt;/P&gt;&lt;P&gt;                             pd_datbi LIKE sy-datum.&lt;/P&gt;&lt;P&gt;In loop statment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_eket.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Liste mit EKET-Einträgen anreichern&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear ld_subrc.&lt;/P&gt;&lt;P&gt;    CLEAR ct_list_struct.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING lt_eket TO ct_list_struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement it is giving error that, ct_list_struct is not a structure or internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 08:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345576#M1540016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in MOVE-CORRESPONDING  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345577#M1540017</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;Is ct_list_struct an internal table? if so, try to declare a work area for assigning data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM get_first_data USING it_lifnr TYPE ty_lifnr
it_prdha TYPE ty_prdha
it_matnr TYPE ty_matnr
ct_list_struct TYPE yt_list_struct
pd_datab LIKE sy-datum
pd_datbi LIKE sy-datum.
"In loop statment:
data: wa_list_struct like lines of ct_list_struct
LOOP AT lt_eket.
* Liste mit EKET-Einträgen anreichern
clear ld_subrc.
CLEAR ct_list_struct.
MOVE-CORRESPONDING lt_eket TO wa_list_struct.
append wa_list_struct to ct_list_struct.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 08:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345577#M1540017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in MOVE-CORRESPONDING  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345578#M1540018</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;What is type &lt;STRONG&gt;yt_list_struct&lt;/STRONG&gt; variable whether it is a table type or structure? If it is a table type then you can follow&lt;/P&gt;&lt;P&gt;what Thien suggested you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And If it is a structure then it should not have created any issue and also can you give how you have &lt;/P&gt;&lt;P&gt;declared &lt;STRONG&gt;lt_eket&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your other variables are declared as ty_... so may be you mistakenly typed as yt_list_struct , may be it should be &lt;/P&gt;&lt;P&gt;ty_list_struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345578#M1540018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T10:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in MOVE-CORRESPONDING  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345579#M1540019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva&lt;/P&gt;&lt;P&gt;You have declared ct_list_struct as type of yt_list_struct.&lt;/P&gt;&lt;P&gt;SO you need to define ct_list_struct as table withheader line or with separate work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like below:&lt;/P&gt;&lt;P&gt;DATA: ct_list_struct type standard table of yt_list_struct with header line OR&lt;/P&gt;&lt;P&gt;DATA: ct_list_struct type standard table of yt_list_struct, wa_ct_list_struct type yt_list_struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Apply loop at it_eket.&lt;/P&gt;&lt;P&gt;move-corresponding it_eket to wa_ct_list_struct.&lt;/P&gt;&lt;P&gt;append wa_ct_list_struct into ct_list_struct.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 11:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345579#M1540019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T11:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in MOVE-CORRESPONDING  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345580#M1540020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not ask or answer basic questions - thread locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 13:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-move-corresponding-statement/m-p/7345580#M1540020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T13:40:43Z</dc:date>
    </item>
  </channel>
</rss>

