<?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 Re: current statement is not supported  for deep internal structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215661#M1206253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think the logic is bit wrong...please go thr the below documentation and modify ur code accordingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab [PACKAGE SIZE n] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the result set consists of multiple lines, an internal table itab of any table type can be specified after INTO or APPENDING. The row type of the internal table must meet the prerequisites. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result set is inserted into the internal table itab line-by-line; a sorting process is executed in the case of a sorted table. If INTO is used, the internal table is initialized before the first line is inserted. Previous lines remain intact if APPENDING is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before any assignment of a line of the result set, an initial row of the internal table itab is created and the line of the result set is assigned to this row. When assigning a line of the result set to a row of the internal table with or without CORRESPONDING FIELDS, the same rules apply as when assigning to an individual work area wa (see above). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the PACKAGE SIZE addition is not used, all lines of the result set are inserted in the internal table itab and the ENDSELECT statement must not be specified after SELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify the PACKAGE SIZE addition, all lines of the result set for SELECT are processed in a loop, which must be closed with ENDSELECT. The lines are inserted in the internal table itab in packages of n lines. n must be a type i data object that contains the number of lines. If the value of n is smaller than 0, an exception that cannot be handled occurs. If n is equal to 0, all lines of the result set are inserted in the internal table itab. If used in the FETCH statement, n lines are extracted from the current cursor position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If INTO is used, the internal table is initialized before each insertion and, in the SELECT loop, it only contains the lines of the current package. If APPENDING is used, a further package is added to the existing rows of the internal table for each SELECT loop or for each extraction using FETCH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ENDSELECT, the content of itab is not defined if INTO is used - that is, the table can either contain the lines of the last package or it can be initial. If APPENDING is used, the content of itab retains the state of the last loop pass. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2009 10:35:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-18T10:35:28Z</dc:date>
    <item>
      <title>current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215659#M1206251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Iam Using abap objects in alv report , when i run ..it is goin to dump giving me the error &amp;lt;current statement is not supported to deep internal structures&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF  itab OCCURS 0,&lt;/P&gt;&lt;P&gt;     vbeln LIKE likp-vbeln,&lt;/P&gt;&lt;P&gt;     posnr LIKE lips-posnr,&lt;/P&gt;&lt;P&gt;     lfdat LIKE lips-vfdat,&lt;/P&gt;&lt;P&gt;     box(1),&lt;/P&gt;&lt;P&gt;     handle_style TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;     END OF itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         FROM lips&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;          UP TO 20 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215659#M1206251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215660#M1206252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You need to comment  line ---  &lt;STRONG&gt;handle_style TYPE lvc_t_styl,&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;Try the following code -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:BEGIN OF itab OCCURS 0,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
lfdat LIKE lips-vfdat,
box(1),
*handle_style TYPE lvc_t_styl,           " Commented
END OF itab. 

SELECT vbeln
posnr
FROM lips
INTO CORRESPONDING FIELDS OF TABLE itab
UP TO 20 ROWS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215660#M1206252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215661#M1206253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think the logic is bit wrong...please go thr the below documentation and modify ur code accordingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab [PACKAGE SIZE n] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the result set consists of multiple lines, an internal table itab of any table type can be specified after INTO or APPENDING. The row type of the internal table must meet the prerequisites. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result set is inserted into the internal table itab line-by-line; a sorting process is executed in the case of a sorted table. If INTO is used, the internal table is initialized before the first line is inserted. Previous lines remain intact if APPENDING is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before any assignment of a line of the result set, an initial row of the internal table itab is created and the line of the result set is assigned to this row. When assigning a line of the result set to a row of the internal table with or without CORRESPONDING FIELDS, the same rules apply as when assigning to an individual work area wa (see above). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the PACKAGE SIZE addition is not used, all lines of the result set are inserted in the internal table itab and the ENDSELECT statement must not be specified after SELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify the PACKAGE SIZE addition, all lines of the result set for SELECT are processed in a loop, which must be closed with ENDSELECT. The lines are inserted in the internal table itab in packages of n lines. n must be a type i data object that contains the number of lines. If the value of n is smaller than 0, an exception that cannot be handled occurs. If n is equal to 0, all lines of the result set are inserted in the internal table itab. If used in the FETCH statement, n lines are extracted from the current cursor position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If INTO is used, the internal table is initialized before each insertion and, in the SELECT loop, it only contains the lines of the current package. If APPENDING is used, a further package is added to the existing rows of the internal table for each SELECT loop or for each extraction using FETCH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ENDSELECT, the content of itab is not defined if INTO is used - that is, the table can either contain the lines of the last package or it can be initial. If APPENDING is used, the content of itab retains the state of the last loop pass. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215661#M1206253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215662#M1206254</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;You could&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA:BEGIN OF itab1 OCCURS 0,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
lfdat LIKE lips-vfdat,
box(1),
END OF itab1.

SELECT vbeln
posnr
FROM lips
INTO CORRESPONDING FIELDS OF TABLE itab1
UP TO 20 ROWS.

LOOP AT itab1.
MOVE CORRESPONDING itab1 TO itab.
APPEND itab.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215662#M1206254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215663#M1206255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The dump is not because of the code that you have pasted in your thread. Please see the dump analysis to see where exactly you are getting this dump. If you can't solve the problem then get back with the dump analysis and the code snippet where the dump is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215663#M1206255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215664#M1206256</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;Please Change the Code Like the following Hope will Solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:BEGIN OF itab OCCURS 0,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
lfdat LIKE lips-vfdat,
box(1).
        INCLUDE STRUCTURE lvc_s_styl.
DATA:
END OF itab.

SELECT vbeln posnr
FROM lips
INTO CORRESPONDING FIELDS OF TABLE itab
UP TO 20 ROWS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215664#M1206256</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-18T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215665#M1206257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your  reply....if i comment that iam getting an error&amp;lt;data object  "ls_outatb&amp;gt; doesnt have a component called handle_style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215665#M1206257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215666#M1206258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nothing seems to be working.plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215666#M1206258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215667#M1206259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you paste the dump analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do not comment the style field in the itab. It wont make any difference.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your declaration and select statement are &lt;STRONG&gt;correct.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215667#M1206259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215668#M1206260</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;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;appending CORRESPONDING FIELDS OF TABLE itab1&lt;/P&gt;&lt;P&gt;UP TO 20 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215668#M1206260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215669#M1206261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the statement&lt;/P&gt;&lt;P&gt;   "SELECT ... INTO TABLE itab"&lt;/P&gt;&lt;P&gt;internal tables with a deep line type are not supported at the argument&lt;/P&gt;&lt;P&gt;position "itab".&lt;/P&gt;&lt;P&gt;Internal tables with a deep line type are internal tables&lt;/P&gt;&lt;P&gt;with lines that are themselves either internal tables or&lt;/P&gt;&lt;P&gt;structurese that contain internal tables directly or indirectly as&lt;/P&gt;&lt;P&gt;components.&lt;/P&gt;&lt;P&gt;In this case, the internal table "itab" has the non-flat&lt;/P&gt;&lt;P&gt;line type "v".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215669#M1206261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T10:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215670#M1206262</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;Have you tested my Sample Code with INCLUDE STRUCTURE may it will solve out your problem.&lt;/P&gt;&lt;P&gt;after this you will be able to use the Field like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-STYLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean to use the Field of the STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Feb 18, 2009 3:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 10:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215670#M1206262</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-18T10:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215671#M1206263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but it aint working.but i dont know what you meant by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-STYLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean to use the Field of the STRUCTURE.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 11:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215671#M1206263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T11:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215672#M1206264</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;Test the Sample Code Bellow Hope you will understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:BEGIN OF itab OCCURS 0,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
lfdat LIKE lips-vfdat,
box(1).
        INCLUDE STRUCTURE lvc_s_styl.
DATA:
END OF itab.

SELECT vbeln posnr
FROM lips
INTO CORRESPONDING FIELDS OF itab
UP TO 20 ROWS.
  itab-fieldname = 'Field Name'.
  APPEND itab to itab.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 11:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215672#M1206264</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-18T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215673#M1206265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Ive changed it but its still bugging me with errors.Im p&lt;/P&gt;&lt;P&gt;asting my code please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ztest_alv_oo    MESSAGE-ID zz                           .&lt;/P&gt;&lt;P&gt;DATA: g_grid TYPE REF TO cl_gui_alv_grid,  "First&lt;/P&gt;&lt;P&gt;      g_grid1 TYPE REF TO cl_gui_alv_grid. "Second&lt;/P&gt;&lt;P&gt;DATA: l_valid TYPE c,&lt;/P&gt;&lt;P&gt;      v_flag,&lt;/P&gt;&lt;P&gt;      v_data_change,&lt;/P&gt;&lt;P&gt;      v_row TYPE lvc_s_row,&lt;/P&gt;&lt;P&gt;      v_column TYPE lvc_s_col,&lt;/P&gt;&lt;P&gt;      v_row_num TYPE lvc_s_roid.&lt;/P&gt;&lt;P&gt;DATA: ok_code LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;      save_ok LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;      g_container1 TYPE scrfname VALUE 'TEST', "First Container&lt;/P&gt;&lt;P&gt;      g_container2 TYPE scrfname VALUE 'TEST1',"Second container&lt;/P&gt;&lt;P&gt;      gs_layout TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF  itab OCCURS 0,&lt;/P&gt;&lt;P&gt;     vbeln LIKE likp-vbeln,&lt;/P&gt;&lt;P&gt;     posnr LIKE lips-posnr,&lt;/P&gt;&lt;P&gt;     lfdat LIKE lips-vfdat,&lt;/P&gt;&lt;P&gt;     box(1).&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE lvc_s_styl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*handle_style type lvc_t_styl.&lt;/P&gt;&lt;P&gt;DATA:    END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_event_handler DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler DEFINITION .&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION .&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;**Hot spot Handler&lt;/P&gt;&lt;P&gt;    handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                      IMPORTING e_row_id e_column_id es_row_no,&lt;/P&gt;&lt;P&gt;**Handler to Check the Data Change&lt;/P&gt;&lt;P&gt;    handle_data_changed FOR EVENT data_changed&lt;/P&gt;&lt;P&gt;                         OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                         IMPORTING er_data_changed&lt;/P&gt;&lt;P&gt;                                   e_onf4&lt;/P&gt;&lt;P&gt;                                   e_onf4_before&lt;/P&gt;&lt;P&gt;                                   e_onf4_after,&lt;/P&gt;&lt;P&gt;**Double Click Handler&lt;/P&gt;&lt;P&gt;    handle_double_click FOR EVENT double_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                                     IMPORTING e_row e_column es_row_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_event_handler DEFINITION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_event_handler IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;*Handle Hotspot Click&lt;/P&gt;&lt;P&gt;  METHOD handle_hotspot_click .&lt;/P&gt;&lt;P&gt;    CLEAR: v_row,v_column,v_row_num.&lt;/P&gt;&lt;P&gt;    v_row  = e_row_id.&lt;/P&gt;&lt;P&gt;    v_column = e_column_id.&lt;/P&gt;&lt;P&gt;    v_row_num = es_row_no.&lt;/P&gt;&lt;P&gt;    MESSAGE i000 WITH v_row 'clicked'.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "lcl_event_handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Handle Double Click&lt;/P&gt;&lt;P&gt;  METHOD  handle_double_click.&lt;/P&gt;&lt;P&gt;    CLEAR: v_row,v_column,v_row_num.&lt;/P&gt;&lt;P&gt;    v_row  = e_row.&lt;/P&gt;&lt;P&gt;    v_column = e_column.&lt;/P&gt;&lt;P&gt;    v_row_num = es_row_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF e_column = 'VBELN'.&lt;/P&gt;&lt;P&gt;      SET PARAMETER ID 'VL' FIELD itab-vbeln.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF e_column = 'POSNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE i000 WITH 'Click on POSNR row number '  e_row.&lt;/P&gt;&lt;P&gt;      "with this row num you can get the data&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_double_click&lt;/P&gt;&lt;P&gt;**Handle Data Change&lt;/P&gt;&lt;P&gt;  METHOD handle_data_changed.&lt;/P&gt;&lt;P&gt;    DATA:stable TYPE lvc_s_stbl.&lt;/P&gt;&lt;P&gt;    stable-row = 'X'.&lt;/P&gt;&lt;P&gt;    stable-col = 'X'.&lt;/P&gt;&lt;P&gt;    CALL METHOD g_grid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_stable      =  stable&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        finished       = 1&lt;/P&gt;&lt;P&gt;        OTHERS         = 2&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt;  0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_DATA_CHANGED&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "LCL_EVENT_HANDLER IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;             Global Definitions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:      g_custom_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;                                                            "Container1&lt;/P&gt;&lt;P&gt;            g_handler TYPE REF TO lcl_event_handler, "handler&lt;/P&gt;&lt;P&gt;            g_custom_container1 TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;                                                            "Container2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Fieldcatalog for First and second Report&lt;/P&gt;&lt;P&gt;DATA: it_fieldcat  TYPE  lvc_t_fcat,&lt;/P&gt;&lt;P&gt;      x_fieldcat TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      ls_vari  TYPE disvariant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               START-OF_SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         FROM lips&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;          UP TO 20 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  IF NOT itab[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE i002 WITH 'NO DATA FOR THE SELECTION'(004).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CREATE_AND_INIT_ALV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_and_init_alv .&lt;/P&gt;&lt;P&gt;  DATA: lt_exclude TYPE ui_functions.&lt;/P&gt;&lt;P&gt;  "First Grid&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;         EXPORTING container_name = g_container1.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_grid&lt;/P&gt;&lt;P&gt;         EXPORTING i_parent = g_custom_container.&lt;/P&gt;&lt;P&gt;  "Second Grid&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_custom_container1&lt;/P&gt;&lt;P&gt;         EXPORTING container_name = g_container2.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_grid1&lt;/P&gt;&lt;P&gt;         EXPORTING i_parent = g_custom_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set a titlebar for the grid control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR gs_layout.&lt;/P&gt;&lt;P&gt;  gs_layout-grid_title = text-003.&lt;/P&gt;&lt;P&gt;  gs_layout-zebra = space.&lt;/P&gt;&lt;P&gt;  gs_layout-cwidth_opt = 'X'.&lt;/P&gt;&lt;P&gt;  gs_layout-no_rowmark = 'X'.&lt;/P&gt;&lt;P&gt;  gs_layout-box_fname = 'BOX'.&lt;/P&gt;&lt;P&gt;  gs_layout-ctab_fname = 'CELLCOLOR'.&lt;/P&gt;&lt;P&gt;  gs_layout-stylefname = 'HANDLE_STYLE'.&lt;/P&gt;&lt;P&gt;  CALL METHOD g_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT g_handler.&lt;/P&gt;&lt;P&gt;  SET HANDLER g_handler-&amp;gt;handle_double_click FOR g_grid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET HANDLER G_HANDLER-&amp;gt;HANDLE_HOTSPOT_CLICK FOR G_GRID.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SET HANDLER g_handler-&amp;gt;handle_data_changed FOR g_grid.&lt;/P&gt;&lt;P&gt;  DATA: ls_outatb LIKE LINE OF itab,&lt;/P&gt;&lt;P&gt;        v_index TYPE sy-tabix.&lt;/P&gt;&lt;P&gt;  DATA: ls_edit TYPE lvc_s_styl,&lt;/P&gt;&lt;P&gt;         lt_edit TYPE lvc_t_styl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab INTO ls_outatb WHERE posnr = '000010'.&lt;/P&gt;&lt;P&gt;    v_index = sy-tabix.&lt;/P&gt;&lt;P&gt;    ls_edit-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;    ls_edit-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;    ls_edit-style2 = space.&lt;/P&gt;&lt;P&gt;    ls_edit-style3 = space.&lt;/P&gt;&lt;P&gt;    ls_edit-style4 = space.&lt;/P&gt;&lt;P&gt;    ls_edit-maxlen = 8.&lt;/P&gt;&lt;P&gt;    INSERT ls_edit INTO TABLE lt_edit.&lt;/P&gt;&lt;P&gt;    INSERT LINES OF lt_edit INTO TABLE ls_outatb-handle_style.&lt;/P&gt;&lt;P&gt;    MODIFY itab INDEX v_index FROM ls_outatb  TRANSPORTING&lt;/P&gt;&lt;P&gt;                                      handle_style.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;setting focus for created grid control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_gui_control=&amp;gt;set_focus&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      control = g_grid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build fieldcat and set editable for date and reason code&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;edit enabled. Assign a handle for the dropdown listbox.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM build_fieldcat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Optionally restrict generic functions to 'change only'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  (The user shall not be able to add new lines).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM exclude_tb_functions CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;**Vaiant to save the layout&lt;/P&gt;&lt;P&gt;  ls_vari-report      = sy-repid.&lt;/P&gt;&lt;P&gt;  ls_vari-handle      = space.&lt;/P&gt;&lt;P&gt;  ls_vari-log_group   = space.&lt;/P&gt;&lt;P&gt;  ls_vari-username    = space.&lt;/P&gt;&lt;P&gt;  ls_vari-variant     = space.&lt;/P&gt;&lt;P&gt;  ls_vari-text        = space.&lt;/P&gt;&lt;P&gt;  ls_vari-dependvars  = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Calling the Method for ALV output for First Grid&lt;/P&gt;&lt;P&gt;  CALL METHOD g_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;      is_variant           = ls_vari&lt;/P&gt;&lt;P&gt;      is_layout            = gs_layout&lt;/P&gt;&lt;P&gt;      i_save               = 'A'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog      = it_fieldcat&lt;/P&gt;&lt;P&gt;      it_outtab            = itab[].&lt;/P&gt;&lt;P&gt;**Calling the Method for ALV output for Second Grid&lt;/P&gt;&lt;P&gt;  CALL METHOD g_grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IT_TOOLBAR_EXCLUDING = LT_EXCLUDE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;P&gt;     it_fieldcatalog      = it_fieldcat&lt;/P&gt;&lt;P&gt;     it_outtab            = itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set editable cells to ready for input initially&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD g_grid-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_ready_for_input = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                               "CREATE_AND_INIT_ALV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  EXCLUDE_TB_FUNCTIONS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;PT_EXCLUDE text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Only allow to change data not to create new entries (exclude&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;generic functions).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA ls_exclude TYPE ui_func.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy_row.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_delete_row.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_append_row.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_insert_row.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_move_row.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_cut.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste_new_row.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_undo.&lt;/P&gt;&lt;P&gt;  APPEND ls_exclude TO pt_exclude.&lt;/P&gt;&lt;P&gt;ENDFORM.                               " EXCLUDE_TB_FUNCTIONS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  build_fieldcat&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_fieldcat .&lt;/P&gt;&lt;P&gt;  DATA: l_pos TYPE i.&lt;/P&gt;&lt;P&gt;  l_pos = l_pos + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  x_fieldcat-scrtext_m = 'Delivery'(024).&lt;/P&gt;&lt;P&gt;  x_fieldcat-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-col_pos    = l_pos.&lt;/P&gt;&lt;P&gt;  x_fieldcat-no_zero    = 'X'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-edit      = 'X'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-outputlen = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND x_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR x_fieldcat.&lt;/P&gt;&lt;P&gt;  l_pos = l_pos + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  x_fieldcat-scrtext_m = 'Item'(025).&lt;/P&gt;&lt;P&gt;  x_fieldcat-fieldname = 'POSNR'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-col_pos    = l_pos.&lt;/P&gt;&lt;P&gt;  x_fieldcat-outputlen = '5'.&lt;/P&gt;&lt;P&gt;  APPEND x_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR x_fieldcat.&lt;/P&gt;&lt;P&gt;  l_pos = l_pos + 1.&lt;/P&gt;&lt;P&gt;  x_fieldcat-scrtext_m = 'Del Date'(015).&lt;/P&gt;&lt;P&gt;  x_fieldcat-fieldname = 'LFDAT'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  x_fieldcat-col_pos    = l_pos.&lt;/P&gt;&lt;P&gt;  x_fieldcat-outputlen = '10'.&lt;/P&gt;&lt;P&gt;  APPEND x_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR x_fieldcat.&lt;/P&gt;&lt;P&gt;  l_pos = l_pos + 1.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " build_fieldcat&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MAIN100'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'MAIN100'.&lt;/P&gt;&lt;P&gt;  IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;**Initializing the grid and calling the fm to Display the O/P&lt;/P&gt;&lt;P&gt;    PERFORM create_and_init_alv.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 11:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215673#M1206265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T11:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215674#M1206266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well , that is strange, i ran your code in my system by it went through fine without any dump. &lt;/P&gt;&lt;P&gt;Anyways you can try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:BEGIN OF itab OCCURS 0,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
lfdat LIKE lips-vfdat,
END OF itab.


DATA:BEGIN OF out_itab OCCURS 0,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
lfdat LIKE lips-vfdat,
box(1),
handle_style TYPE lvc_t_styl,
END OF out_itab.

SELECT vbeln
posnr
FROM lips
APPENDING CORRESPONDING FIELDS OF TABLE itab
UP TO 20 ROWS.

LOOP AT itab.
  MOVE-CORRESPONDING itab TO out_itab.
  APPEND out_itab.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the same effect of your earlier code, but now the target table in the select statement is more specifiic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 11:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215674#M1206266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T11:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: current statement is not supported  for deep internal structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215675#M1206267</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;U need to use 2 different tables: one to select the data and one to be transfered to ALV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:BEGIN OF itab OCCURS 0,
            vbeln LIKE likp-vbeln,
            posnr LIKE lips-posnr,
            lfdat LIKE lips-vfdat,
            box(1),
            handle_style type lvc_t_styl,
DATA: END OF itab.

DATA: BEGIN OF T_ITAB2 OCCURS 0,
            vbeln  LIKE likp-vbeln,
            posnr LIKE lips-posnr,
            lfdat   LIKE lips-vfdat,
          END   OF T_ITAB2.

SELECT vbeln posnr vfdat UP TO 20 ROWS FROM lips INTO TABLE T_ITAB2.


LOOP AT T_ITAB2.
  ITAB-vbeln  = T_ITAB2-vbeln,
  ITAB-posnr = T_ITAB2-posnr.
  ITAB-lfdat   = T_ITAB2-vfdat.

  REFRESH ITAB-handle.
  
  lvc_s_styl-FIELDNAME = .....
  ..............................................
  APPEND  lvc_s_styl TO ITAB-HANDLE.
  APPEND ITAB-
  
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 11:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-statement-is-not-supported-for-deep-internal-structures/m-p/5215675#M1206267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T11:24:51Z</dc:date>
    </item>
  </channel>
</rss>

