<?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: Internal Table Structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080485#M97680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Simple way is to use DESCRIBE statement.&lt;/P&gt;&lt;P&gt; This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Nov 2005 06:34:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-26T06:34:17Z</dc:date>
    <item>
      <title>Internal Table Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080481#M97676</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 have an internal table itab with fields&lt;/P&gt;&lt;P&gt;f1(20) type c,&lt;/P&gt;&lt;P&gt;f2     type p,&lt;/P&gt;&lt;P&gt;f3     type p decimals 2,&lt;/P&gt;&lt;P&gt;f4     like mseg-matnr,&lt;/P&gt;&lt;P&gt;f5     like makt-maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i know the structure and dat type of the firleds at run time of an internal table..... like what we get thru FM &amp;lt;b&amp;gt;DDIF_FIELDINFO_GET&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2005 04:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080481#M97676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-26T04:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080482#M97677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This can be done using Class/Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The required class (SE24) is&lt;/P&gt;&lt;P&gt;   CL_ABAP_structDESCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Sample Program : (Just copy and paste)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT typedescr_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------- Variables&lt;/P&gt;&lt;P&gt;data : det type ref to CL_ABAP_structDESCR.&lt;/P&gt;&lt;P&gt;data : wa like line of det-&amp;gt;components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------ Internal Table&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       MANDT TYPE T001-MANDT,  "--- type&lt;/P&gt;&lt;P&gt;       PERNR LIKE P0001-PERNR, " --- like&lt;/P&gt;&lt;P&gt;       MATNR TYPE MARA-MATNR,  "--- type&lt;/P&gt;&lt;P&gt;       EBELN LIKE EKKO-EBELN,  "--- like&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Start of selection&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;det ?= cl_abap_typedescr=&amp;gt;describe_by_DATA( ITAB ).&lt;/P&gt;&lt;P&gt;loop at det-&amp;gt;components into wa.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; wa-name , wa-type_kind , wa-length.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Number Of columns&lt;/P&gt;&lt;P&gt;describe table det-&amp;gt;components.&lt;/P&gt;&lt;P&gt;write /: sy-tfill.&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;HR originaltext="-----------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope the above helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2005 04:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080482#M97677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-26T04:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080483#M97678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the methods of the class CL_ABAP_DATADESCR. The method is GET_DATA_TYPE_KIND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward points if the posts are helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2005 04:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080483#M97678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-26T04:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080484#M97679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, except the CL_ABAP_XXXX class, you can also try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:BEGIN OF IT_TEST OCCURS 0,
      F1(20) TYPE C,
      F2 TYPE P,
      F3 TYPE P DECIMALS 2,
      F4 LIKE MSEG-MATNR,
      F5 LIKE MAKT-MAKTX,
END OF IT_TEST.
DATA: IT_RSTRUCINFO  TYPE STANDARD TABLE OF RSTRUCINFO.

CALL FUNCTION 'GET_COMPONENT_LIST'
     EXPORTING
          PROGRAM    = 'XXXX'   " your application name
          FIELDNAME  = 'IT_TEST'
     TABLES
          COMPONENTS = IT_RSTRUCINFO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table definition info will be restored in IT_RSTRUCINFO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be helpful&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2005 05:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080484#M97679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-26T05:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080485#M97680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Simple way is to use DESCRIBE statement.&lt;/P&gt;&lt;P&gt; This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2005 06:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080485#M97680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-26T06:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080486#M97681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx zhenglin gu &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Points given&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhishek Suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2005 08:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-structure/m-p/1080486#M97681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-26T08:25:59Z</dc:date>
    </item>
  </channel>
</rss>

