<?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: why this query does not work???? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263405#M490927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankx Santhosh....it is working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 08:47:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T08:47:42Z</dc:date>
    <item>
      <title>why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263400#M490922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a record in the lips table with the parameters given below. Why this query is not fetching any value from the table. Please help me to resolver this issue.&lt;/P&gt;&lt;P&gt;    SELECT vbeln&lt;/P&gt;&lt;P&gt;           posnr&lt;/P&gt;&lt;P&gt;           vgbel&lt;/P&gt;&lt;P&gt;           vgpos&lt;/P&gt;&lt;P&gt;      FROM lips&lt;/P&gt;&lt;P&gt;      INTO TABLE lt_lips&lt;/P&gt;&lt;P&gt;    WHERE VGBEL = '170000122'&lt;/P&gt;&lt;P&gt;    AND VGPOS = '100'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263400#M490922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263401#M490923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could anyone tellme what is the problem to retrieve. I am not using select single and also i am not refering to the primary keys of the table. Please help me to resolve this issue. &lt;/P&gt;&lt;P&gt;Relevant answers will be highly rewarded...&lt;/P&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;P&gt;Ramineni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263401#M490923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263402#M490924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also faced the same problem like this,then i changed the query to&lt;/P&gt;&lt;P&gt;select * from table into table it_table of table where condition.&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263402#M490924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263403#M490925</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 with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INTO TABLE lt_lips&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WHERE VGBEL = '0170000122'&lt;/P&gt;&lt;P&gt;AND VGPOS = '000100'.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263403#M490925</guid>
      <dc:creator>santhosh_patil</dc:creator>
      <dc:date>2007-05-15T08:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263404#M490926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG you always will get an error like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EIther do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INTO &lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;START INSERT&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;Corresponding fields of&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;END    INSERT&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;TABLE lt_lips&lt;/P&gt;&lt;P&gt;WHERE VGBEL = '170000122'&lt;/P&gt;&lt;P&gt;AND VGPOS = '100'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lv_vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;lv_posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;lv_vbgel type vbak-vbeln,&lt;/P&gt;&lt;P&gt;lv_vgpos type vbap-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;START INSERT&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;SINGLE&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;END    INSERT&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;START INSERT&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;INTO (lv_vbeln, lv_posnr, lv_vgbel, lv_vgpos )&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;END    INSERT&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;WHERE VGBEL = '170000122'&lt;/P&gt;&lt;P&gt;AND VGPOS = '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are selecting Single fields out of a database table you HAVE to use INTO CORRESPONDING FIELDS OF, when you want to move them ot a structure or an internal table.&lt;/P&gt;&lt;P&gt;there´s no way round it, besides declaring yourself a structure containing just THOSE fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Florian Kemmer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263404#M490926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263405#M490927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankx Santhosh....it is working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263405#M490927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263406#M490928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the query which i had posted above is working fine if i pad 0's . But i want to replace this charecter set with a work area variable. i mean to say like the following query:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INTO TABLE lt_lips&lt;/P&gt;&lt;P&gt;WHERE VGBEL = wa_disp-vbeln&lt;/P&gt;&lt;P&gt;AND VGPOS = wa_disp-posnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263406#M490928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263407#M490929</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;&lt;/P&gt;&lt;P&gt;Wht is the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263407#M490929</guid>
      <dc:creator>santhosh_patil</dc:creator>
      <dc:date>2007-05-15T09:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263408#M490930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Santhosh...i had rewarded you and waiting for one more issue (what i had mentioned above)to be resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263408#M490930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263409#M490931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;try this..

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
     EXPORTING
          input   = wa_disp-vbeln
    IMPORTING
        OUTPUT  =  wa_disp-vbeln.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
     EXPORTING
          input   = wa_disp-posnr
    IMPORTING
        OUTPUT  =  wa_disp-posnr.
          

SELECT vbeln
posnr
vgbel
vgpos
FROM lips
INTO TABLE lt_lips
WHERE VGBEL = wa_disp-vbeln
AND VGPOS = wa_disp-posnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263409#M490931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263410#M490932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the FM :for Conversion Exits which will add the necessary paddings that are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM like CONVERSION_EXIT_ALPHA_INPUT may be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass wa_disp-vbeln and wa_disp-posnr to the FM and save the output in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use these in your select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263410#M490932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: why this query does not work????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263411#M490933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks sachin....awarded points for you.thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 09:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-this-query-does-not-work/m-p/2263411#M490933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T09:28:17Z</dc:date>
    </item>
  </channel>
</rss>

