<?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 Reg : Internal Table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666432#M615421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;Logic : &lt;/P&gt;&lt;P&gt;   data: l_vposnr TYPE vbap-posnr.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         FROM vbap&lt;/P&gt;&lt;P&gt;         INTO l_vposnr&lt;/P&gt;&lt;P&gt;        WHERE vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the items Value ( posnr ) wil be stored in varibale l_vposnr.&lt;/P&gt;&lt;P&gt;My Questions is ??&lt;/P&gt;&lt;P&gt;How can i know how many items are der in this Particular Variable (l_posnr)&lt;/P&gt;&lt;P&gt;Based on this Line Items , i can go futher processing ??&lt;/P&gt;&lt;P&gt;Plz Provide Me some Logic ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2007 10:52:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-17T10:52:11Z</dc:date>
    <item>
      <title>Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666432#M615421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;Logic : &lt;/P&gt;&lt;P&gt;   data: l_vposnr TYPE vbap-posnr.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         FROM vbap&lt;/P&gt;&lt;P&gt;         INTO l_vposnr&lt;/P&gt;&lt;P&gt;        WHERE vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the items Value ( posnr ) wil be stored in varibale l_vposnr.&lt;/P&gt;&lt;P&gt;My Questions is ??&lt;/P&gt;&lt;P&gt;How can i know how many items are der in this Particular Variable (l_posnr)&lt;/P&gt;&lt;P&gt;Based on this Line Items , i can go futher processing ??&lt;/P&gt;&lt;P&gt;Plz Provide Me some Logic ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 10:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666432#M615421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T10:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666433#M615422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select INTO TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO l_vposnr&lt;/P&gt;&lt;P&gt;WHERE vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 10:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666433#M615422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666434#M615423</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;after that select query put loop at that internal table and put count &lt;/P&gt;&lt;P&gt;field so you will know how many fields are there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 10:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666434#M615423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666435#M615424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since u r using single addtion with select statement , there will be only one value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also since it is a variable it can hold only one value at a time..nyways&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 10:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666435#M615424</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-17T10:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666436#M615425</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;DATA: L_VOSPNR TYPE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;      COUNT(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE POSNR FROM VBAP INTO I_VPOSNR WHERE&lt;/P&gt;&lt;P&gt;       VBELN = COM_KBV1-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE I_VPOSNR LINES COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: COUNT. " this gives the no. of lines in int. tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 10:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666436#M615425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T10:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666437#M615426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narayana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding on your question - you want to know, how many values this variable wil have??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see in the declaration, it is just a variable which means that will hold ONE valule at any given point of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also as you have Select SINGLE - it will also return only one value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what ever may be the case, it will hold ONLY ONE value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Reward if helpful&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 10:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666437#M615426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T10:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666438#M615427</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;  there exists single value only beacuse it is variable (not internal table to store more than one record) and using select single statements, it selects single record only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare internal table and select data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of t_vbap,&lt;/P&gt;&lt;P&gt;        vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;        posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;     end of t_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_vbap type table of t_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln posnr from vbap into table it_vbap where vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 11:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666438#M615427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666439#M615428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: l_vposnr TYPE vbap-posnr.&lt;/P&gt;&lt;P&gt;SELECT SINGLE&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO l_vposnr&lt;/P&gt;&lt;P&gt;WHERE vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above statement gets only one POSNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all POSNR consider the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: &lt;/P&gt;&lt;P&gt;begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;l_vposnr TYPE vbap-posnr,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO table itab&lt;/P&gt;&lt;P&gt;WHERE vbeln = com_kbv1-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-l_vposnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 11:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/2666439#M615428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T11:25:38Z</dc:date>
    </item>
  </channel>
</rss>

