<?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: selecting records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096040#M734464</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; Check the data type u have given..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is type N means..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u declared the Number variable as this type means ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data number(5) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should assign the value like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Number = '00005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then u may use ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dptype from ztab into dtab where kunnr = number.&lt;/P&gt;&lt;P&gt;append dtab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 13:49:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-16T13:49:14Z</dc:date>
    <item>
      <title>selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096036#M734460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a transparent table ztab with fields kunnr , dptype ,etc..&lt;/P&gt;&lt;P&gt;I have internal table dtab with only field dptype.&lt;/P&gt;&lt;P&gt;In ztab,for kunnr = 1, i have 'n' no. of entries(records).&lt;/P&gt;&lt;P&gt;let number = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for kunnr =1, i want all records from ztab to b appended into dtab.i have written the following code.i think its correct.but its taking only 1 record out of 'n' records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dptype from ztab into dtab where kunnr = number.&lt;/P&gt;&lt;P&gt;append dtab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz. help me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shivaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096036#M734460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096037#M734461</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 USING&lt;/P&gt;&lt;P&gt;SELECT DPTYPE FROM ZTAB INTO TABLE DTAB WHERE KUNNR = NUMBER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096037#M734461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096038#M734462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this will work but for better performance it is advisable to fetch directly to internal table.  rather than record by record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dptype from ztab into dtab into table dtab where kunnr = number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096038#M734462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096039#M734463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the receiving data type and the transparent table type are different, you have to use "INTO CORRESPONDING FIELDS OF". This will ensure that fields with the same name in both structures are copied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-ENDSELECT has very poor performance, because for every single record, the database server sends one table row to the application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code wil work much better:&lt;/P&gt;&lt;P&gt;SELECT dptype&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE dtab&lt;/P&gt;&lt;P&gt;  FROM ztab&lt;/P&gt;&lt;P&gt;WHERE kunnr = number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will copy all rows of your database table and fill your internal table in one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have fun,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096039#M734463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096040#M734464</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; Check the data type u have given..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is type N means..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u declared the Number variable as this type means ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data number(5) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should assign the value like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Number = '00005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then u may use ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dptype from ztab into dtab where kunnr = number.&lt;/P&gt;&lt;P&gt;append dtab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096040#M734464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096041#M734465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess into corresponding fileds is not required in this case.&lt;/P&gt;&lt;P&gt;If he is using SELECT * from  ztab,then only we need to use into corresponding fileds.But in this case he is selecting single filed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096041#M734465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096042#M734466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt; i used &lt;/P&gt;&lt;P&gt;SELECT DPTYPE FROM ZTAB INTO TABLE DTAB WHERE KUNNR = NUMBER,&lt;/P&gt;&lt;P&gt;but still only 1 out of 'n' records is getting inserted into dtab from ztab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096042#M734466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096043#M734467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bcos kunnr = 1, has 'n' entries ,should i use anythinmg like 'ALLOWING DUPLICATES'.plz correct me if am wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 13:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096043#M734467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096044#M734468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the select query fills the internal table with data from database table that satisfies the where condition.how did you declare the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096044#M734468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096045#M734469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of dtab occurs 0,&lt;/P&gt;&lt;P&gt;        dptype like ztab-dptype,&lt;/P&gt;&lt;P&gt;        end of dtab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096045#M734469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096046#M734470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then it should work.Did you check in debugging mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096046#M734470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096047#M734471</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 the following code,&lt;/P&gt;&lt;P&gt;select dptype from ztab appending table dtab where kunnr = number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096047#M734471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096048#M734472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK THIS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT SHOULD WORK...IF NOT THERE IS NO DATA IN ZTAB AGAINST NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT dptype INTO CORRESPONDING FIELDS OF TABLE dtab FROM ztab
WHERE kunnr = number.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096048#M734472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096049#M734473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check it,&lt;/P&gt;&lt;P&gt;tables: ztab.&lt;/P&gt;&lt;P&gt;data: begin of dtab occurs 0,&lt;/P&gt;&lt;P&gt;dptype like ztab-dptype,&lt;/P&gt;&lt;P&gt;end of dtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: number(10) type  c.&lt;/P&gt;&lt;P&gt; number = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dptype from ztab into table dtab where kunnr = number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096049#M734473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096050#M734474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, actually the code which i have written above is part of a 1000-line code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used only the code --select dptype from ztab into table dtab where kunnr = number, in seperate pgm.here, its working.am getting all records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, when i use the above code in my 1000-line pgm., only 1 record is getting retrieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 1000-lne pgm., i used thr 'select' stmt. inside a loop.does it make any difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 16:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096050#M734474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: selecting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096051#M734475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be your system is corrupted. KUNNR should have 10 digits like '0000000001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ALLOWING DUPLICATES can be used for table inserts into database tables. This has nothing to do with your task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 17:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-records/m-p/3096051#M734475</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-11-16T17:05:59Z</dc:date>
    </item>
  </channel>
</rss>

