<?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: select queiry is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-queiry-is-not-working/m-p/4189787#M1001579</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; Data from (VBAK,VBAP) both tables are not coming into it_vbak while using the Select statement.Anyway you are moving the data from table it_vbak to it_sorder.So declare an final internal like it_sorder which consists of both tables fields. Instead of using it_vbak, use it_sorder in the Select statement.I hope it will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 06:41:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T06:41:41Z</dc:date>
    <item>
      <title>select queiry is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-queiry-is-not-working/m-p/4189786#M1001578</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;There is a problem that iam unable to get all condition type.&lt;/P&gt;&lt;P&gt;geting only one record&lt;/P&gt;&lt;P&gt;it as to fecth all condition types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select Sales Document: Header Data and Item Data from vbak and vbap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;erdat a&lt;SUB&gt;ernam a&lt;/SUB&gt;auart a&lt;SUB&gt;vkorg a&lt;/SUB&gt;vtweg a&lt;SUB&gt;spart a&lt;/SUB&gt;kunnr a&lt;SUB&gt;vkbur a&lt;/SUB&gt;vkgrp a&lt;SUB&gt;lifsk a&lt;/SUB&gt;faksk a&lt;SUB&gt;augru a&lt;/SUB&gt;knumv&lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;posnr b&lt;/SUB&gt;matnr b&lt;SUB&gt;werks b&lt;/SUB&gt;lgort b&lt;SUB&gt;kwmeng b&lt;/SUB&gt;pstyv b&lt;SUB&gt;abgru b&lt;/SUB&gt;bedae b&lt;SUB&gt;lprio b&lt;/SUB&gt;vstel b&lt;SUB&gt;ntgew b&lt;/SUB&gt;brgew&lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;volum b&lt;/SUB&gt;faksp b&lt;SUB&gt;ktgrm b&lt;/SUB&gt;taxm1 b&lt;SUB&gt;abfor b&lt;/SUB&gt;kalsm_k b&lt;SUB&gt;matkl b&lt;/SUB&gt;kondm b&lt;SUB&gt;gsber b&lt;/SUB&gt;prctr&lt;/P&gt;&lt;P&gt;       into corresponding fields of table it_vbak&lt;/P&gt;&lt;P&gt;       from vbak as a inner join vbap as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;       where a~vbeln in lr_vbeln and&lt;/P&gt;&lt;P&gt;             a~vkorg in lr_vkorg and&lt;/P&gt;&lt;P&gt;             a~vtweg in lr_vtweg and&lt;/P&gt;&lt;P&gt;             a~spart in lr_spart and&lt;/P&gt;&lt;P&gt;             b~werks in lr_plant and&lt;/P&gt;&lt;P&gt;             a~auart in lr_auart and&lt;/P&gt;&lt;P&gt;             a~erdat in lr_erdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move all the data to it_sorder&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT it_vbak.&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING it_vbak TO it_sorder.&lt;/P&gt;&lt;P&gt;          APPEND it_sorder.&lt;/P&gt;&lt;P&gt;          CLEAR it_sorder.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select Conditions from konv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF NOT it_sorder[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT knumv kposn STUNR KAPPL ZAEHK kschl kbetr KAWRT&lt;/P&gt;&lt;P&gt;           INTO CORRESPONDING FIELDS OF TABLE it_konv&lt;/P&gt;&lt;P&gt;           FROM konv FOR ALL ENTRIES IN it_sorder&lt;/P&gt;&lt;P&gt;           WHERE knumv = it_sorder-knumv and&lt;/P&gt;&lt;P&gt;                 kposn = it_sorder-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read Conditions  from it_konv move it to it_sorder&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_sorder.&lt;/P&gt;&lt;P&gt;   Loop at it_konv where knumv = it_sorder-knumv and&lt;/P&gt;&lt;P&gt;                                kposn = it_sorder-POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      it_sorder-kposn = it_konv-kposn.&lt;/P&gt;&lt;P&gt;      it_sorder-STUNR = it_konv-STUNR.&lt;/P&gt;&lt;P&gt;      it_sorder-KAPPL = it_konv-KAPPL.&lt;/P&gt;&lt;P&gt;      it_sorder-ZAEHK = it_konv-ZAEHK.&lt;/P&gt;&lt;P&gt;      it_sorder-kschl = it_konv-kschl.&lt;/P&gt;&lt;P&gt;      it_sorder-kbetr = it_konv-kbetr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY it_sorder transporting kposn STUNR KAPPL&lt;/P&gt;&lt;P&gt;                                    ZAEHK kschl kbetr&lt;/P&gt;&lt;P&gt;                                    Where knumv = it_sorder-knumv and&lt;/P&gt;&lt;P&gt;                                          posnr = it_sorder-POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR it_sorder.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Endloop.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls can you help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;mars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 07:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-queiry-is-not-working/m-p/4189786#M1001578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T07:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: select queiry is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-queiry-is-not-working/m-p/4189787#M1001579</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; Data from (VBAK,VBAP) both tables are not coming into it_vbak while using the Select statement.Anyway you are moving the data from table it_vbak to it_sorder.So declare an final internal like it_sorder which consists of both tables fields. Instead of using it_vbak, use it_sorder in the Select statement.I hope it will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 06:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-queiry-is-not-working/m-p/4189787#M1001579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T06:41:41Z</dc:date>
    </item>
  </channel>
</rss>

