<?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: Problem with an internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058056#M91003</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;Did you declared ty_bsid in global definition-&amp;gt;Types Tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_bsid,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;end of ty_bsid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you need only single record,then declare&lt;/P&gt;&lt;P&gt;workarea in Global definitions-&amp;gt;Global Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_bsid like ty_bsid.&lt;/P&gt;&lt;P&gt;text type BSID-SGTXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Program logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VERTN SGTXT PSWBT&lt;/P&gt;&lt;P&gt;  FROM BSID INTO wa_BSID.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TEST = WA_BSID-SGTXT.&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;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jayanthi Jayaraman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2005 05:02:18 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-11-24T05:02:18Z</dc:date>
    <item>
      <title>Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058050#M90997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;People,  I have this code into a smartform but I don't know why the system give me this error. Any body can help me!!&lt;/P&gt;&lt;P&gt;This is the part of the select code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE VERTN SGTXT PSWBT
  FROM BSID INTO IT_BSID.

LOOP AT IT_BSID INTO WA_BSID.

TEST = WA_BSID-SGTXT.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error of the system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"IT_BSID" is neither specified under "TABLES" nor is it defined as an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 21:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058050#M90997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T21:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058051#M90998</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 define the table IT_BSID in the global definitions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 21:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058051#M90998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T21:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058052#M90999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IN THE GLOBAL DATA OF GLOBAL DEFINITION I DEFINE THE INTERNAL TABLE LIKE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IT_BSID       STANDARD TABLE OF TY_BSID WITH HEADER LINE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 21:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058052#M90999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T21:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058053#M91000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare IT_BSID in the global def. of the smartforms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 21:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058053#M91000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058054#M91001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't you need to set the INTO TABLE clause instead only INTO  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select x x x from bsid   INTO TABLE  it_bsid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In addition to declare it_bsid and wa_bsid with the same 3 fields you are using)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 22:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058054#M91001</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2005-11-23T22:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058055#M91002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like IT_BSID is declared correctly, referring to BSID.&lt;/P&gt;&lt;P&gt;You should use:&lt;/P&gt;&lt;P&gt;(Don't use SINGLE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VERTN SGTXT PSWBT&lt;/P&gt;&lt;P&gt;  FROM BSID INTO CORRESPONDING FIELDS OF TABLE IT_BSID.&lt;/P&gt;&lt;P&gt;(Or)&lt;/P&gt;&lt;P&gt;SELECT * FROM BSID INTO TABLE IT_BSID. "(If TY_BSID is exactly like BSID or has BSID as the first component)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSID INTO WA_BSID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST = WA_BSID-SGTXT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this helps, please remember to award the points and close the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 22:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058055#M91002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T22:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058056#M91003</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;Did you declared ty_bsid in global definition-&amp;gt;Types Tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_bsid,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;end of ty_bsid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you need only single record,then declare&lt;/P&gt;&lt;P&gt;workarea in Global definitions-&amp;gt;Global Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_bsid like ty_bsid.&lt;/P&gt;&lt;P&gt;text type BSID-SGTXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Program logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VERTN SGTXT PSWBT&lt;/P&gt;&lt;P&gt;  FROM BSID INTO wa_BSID.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TEST = WA_BSID-SGTXT.&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;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jayanthi Jayaraman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 05:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058056#M91003</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-11-24T05:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058057#M91004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason for your error is the omision of TABLE term in your select statement. Without this addition, you are trying to move your selected rows into the header of your ITAB, whereas your itab may not be having a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So change your code as follows and it should work, if not please let us know.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT VERTN SGTXT PSWBT FROM BSID 
                         INTO &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;TABLE&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; IT_BSID.
 
LOOP AT IT_BSID INTO WA_BSID.
  TEST = WA_BSID-SGTXT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 05:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058057#M91004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T05:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058058#M91005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I just noticed that you have a header line for your internal table. Please ignore my previous message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 05:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058058#M91005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T05:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058059#M91006</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;In the program lines specify the IT_BSTD and WA_BSTD in the Input parameters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 05:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058059#M91006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T05:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058060#M91007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  try this....&lt;/P&gt;&lt;P&gt; step 1 .&lt;/P&gt;&lt;P&gt;  in the types tab declare as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  types : begin of ty_itab,&lt;/P&gt;&lt;P&gt;          "required fields ,&lt;/P&gt;&lt;P&gt;          end of ty_itab.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  types : t_itab type table of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; step 2.&lt;/P&gt;&lt;P&gt;  in the global data declare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_itab like t_itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now u can use the table it_itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 06:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-an-internal-table/m-p/1058060#M91007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T06:05:52Z</dc:date>
    </item>
  </channel>
</rss>

