<?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 Problem With a INDX Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-indx-table/m-p/5280594#M1218786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Created a ztable ZINDX along with Fileds of  table INDX and added two more fileds in the table, Description( string ), and Global(char01).After filling these fileds in the program,I am trying to Export the Whole internal table into the ZINDX table using EXPORT Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR W_VARIANT_REC_KEY.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-RELID = 'PX'.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-SRTFD = LV_SRTFD1.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-SRTF2 = SY-DBCNT.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-PGMID  = LS_VARIANT_STRUCTURE-variant.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-description  = LS_VARIANT_STRUCTURE-desription.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-global1  = LS_VARIANT_STRUCTURE-global.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING W_VARIANT_REC_KEY TO L_INDX.&lt;/P&gt;&lt;P&gt;  L_INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;P&gt;  L_INDX-BEGDT = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TAB = IT_CONTENTS TO DATABASE ZINDX(PX) FROM L_INDX ID L_INDX-SRTFD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at Export Statement it gives me an error as  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ZINDX" must be a flat structure. You cannot use internal tables,strings, references, or structures as components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly,Help me regarding this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xavier.P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Xavier on Mar 5, 2009 6:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2009 05:15:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-05T05:15:01Z</dc:date>
    <item>
      <title>Problem With a INDX Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-indx-table/m-p/5280594#M1218786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Created a ztable ZINDX along with Fileds of  table INDX and added two more fileds in the table, Description( string ), and Global(char01).After filling these fileds in the program,I am trying to Export the Whole internal table into the ZINDX table using EXPORT Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR W_VARIANT_REC_KEY.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-RELID = 'PX'.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-SRTFD = LV_SRTFD1.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-SRTF2 = SY-DBCNT.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-PGMID  = LS_VARIANT_STRUCTURE-variant.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-description  = LS_VARIANT_STRUCTURE-desription.&lt;/P&gt;&lt;P&gt;  W_VARIANT_REC_KEY-global1  = LS_VARIANT_STRUCTURE-global.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING W_VARIANT_REC_KEY TO L_INDX.&lt;/P&gt;&lt;P&gt;  L_INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;P&gt;  L_INDX-BEGDT = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TAB = IT_CONTENTS TO DATABASE ZINDX(PX) FROM L_INDX ID L_INDX-SRTFD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at Export Statement it gives me an error as  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ZINDX" must be a flat structure. You cannot use internal tables,strings, references, or structures as components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly,Help me regarding this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xavier.P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Xavier on Mar 5, 2009 6:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 05:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-indx-table/m-p/5280594#M1218786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T05:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem With a INDX Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-indx-table/m-p/5280595#M1218787</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;This is because u are having a string field in the ZINDEX table. So it is better to change the data element of that field to char value. Even u can create a custom data element which is suitable for ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 05:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-indx-table/m-p/5280595#M1218787</guid>
      <dc:creator>keerthy_k</dc:creator>
      <dc:date>2009-03-05T05:26:24Z</dc:date>
    </item>
  </channel>
</rss>

