<?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: Help: Read table structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893219#M1143088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbap-vbeln,&lt;/P&gt;&lt;P&gt;        posnr LIKE vbap-posnr,&lt;/P&gt;&lt;P&gt;      END OF it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR' OF STRUCTURE it TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc  = 0    --&amp;gt; Means there is Matnr in the structure&lt;/P&gt;&lt;P&gt;sy-subrc  = 4   --&amp;gt; Means there is NO Matnr in the structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case return code should be 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 22:00:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-05T22:00:18Z</dc:date>
    <item>
      <title>Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893213#M1143082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;is it possible to read a table structure of a intern Table to check whether in this table some specific data field exists or not. for example ,to check table1 if matnr is a data field in it. &lt;/P&gt;&lt;P&gt;the best will be using a loop to check all data fields name and type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone can solve this problem???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893213#M1143082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893214#M1143083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yunfan Wang  &lt;/P&gt;&lt;P&gt;WELCOME to SDN &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Structure dont have data .So u can fetch the data from structure in into internal table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893214#M1143083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893215#M1143084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first thanks for replying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my question is, &lt;/P&gt;&lt;P&gt;i have an intern table&lt;/P&gt;&lt;P&gt;but i want to check whether matnr is a data field in this table or not, how to do that?&lt;/P&gt;&lt;P&gt;has nothing to do with structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893215#M1143084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893216#M1143085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Debug ur program and find tht matnr has data or not.&lt;/P&gt;&lt;P&gt;you can ask ur team mates for debugging if u a fresher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893216#M1143085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893217#M1143086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuwang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take the help of key word *DESCRIBE FIELD INTO *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an example tooo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this example i can check the fields of structure in debug mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ramchander krishnamraju on Dec 12, 2008 12:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893217#M1143086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893218#M1143087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you get the into your internal table.. &lt;/P&gt;&lt;P&gt;just &lt;STRONG&gt;loop&lt;/STRONG&gt; the  table  for searching..&lt;/P&gt;&lt;P&gt;and regarding the performance &lt;/P&gt;&lt;P&gt;you can follow the follow this steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) first short the table with MATNR&lt;/P&gt;&lt;P&gt;2) pass all the varible to some another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; just first pass the table to another table.&lt;/P&gt;&lt;P&gt;and delete all the records where matnr NE your MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is all just for performance.. only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;GSANA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893218#M1143087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help: Read table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893219#M1143088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbap-vbeln,&lt;/P&gt;&lt;P&gt;        posnr LIKE vbap-posnr,&lt;/P&gt;&lt;P&gt;      END OF it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR' OF STRUCTURE it TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc  = 0    --&amp;gt; Means there is Matnr in the structure&lt;/P&gt;&lt;P&gt;sy-subrc  = 4   --&amp;gt; Means there is NO Matnr in the structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case return code should be 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 22:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-read-table-structure/m-p/4893219#M1143088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T22:00:18Z</dc:date>
    </item>
  </channel>
</rss>

