<?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 Statement not Returning Value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488660#M1557087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; Can you please elaborate your query,,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : rand type ZRAND,
it_book type TABLE OF zcof_booking.

set parameter id 'zcof_booking-random' field zcof_booking-random.  
 "{color:red} what is this set parameter is doing here{color}
MOVE wa_booking-random to rand.      
"{color:red} How the value is comming to wa_booking-random{color}

select * from zcof_booking into TABLE it_book where random = rand.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please debugg through the program and check wether you are passing any values to &lt;STRONG&gt;rand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anmol112 on Nov 16, 2010 3:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 20:40:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-16T20:40:50Z</dc:date>
    <item>
      <title>Select Statement not Returning Value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488659#M1557086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem.&lt;/P&gt;&lt;P&gt;When I am using select statement its not returning anything even it is true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************************************************************************&lt;/P&gt;&lt;P&gt;data : rand type ZRAND,&lt;/P&gt;&lt;P&gt;          it_book  type TABLE OF zcof_booking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      set parameter id 'zcof_booking-random' field zcof_booking-random.&lt;/P&gt;&lt;P&gt;      MOVE wa_booking-random to rand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select * from zcof_booking into TABLE it_book where random = rand.&lt;/P&gt;&lt;P&gt;****************************************************************************************&lt;/P&gt;&lt;P&gt;if I am giving a value instead of rand variable then its returning values.&lt;/P&gt;&lt;P&gt;But when I am using rand variable its not returning anything even both&lt;/P&gt;&lt;P&gt;the types are same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 20:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488659#M1557086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T20:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement not Returning Value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488660#M1557087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; Can you please elaborate your query,,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : rand type ZRAND,
it_book type TABLE OF zcof_booking.

set parameter id 'zcof_booking-random' field zcof_booking-random.  
 "{color:red} what is this set parameter is doing here{color}
MOVE wa_booking-random to rand.      
"{color:red} How the value is comming to wa_booking-random{color}

select * from zcof_booking into TABLE it_book where random = rand.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please debugg through the program and check wether you are passing any values to &lt;STRONG&gt;rand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anmol112 on Nov 16, 2010 3:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 20:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488660#M1557087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T20:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement not Returning Value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488661#M1557088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If zcof_booking-zrandom has a conversion exit, make sure the variable in the WHERE (rand) is left-filled with the correct number of leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 20:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-returning-value/m-p/7488661#M1557088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T20:45:13Z</dc:date>
    </item>
  </channel>
</rss>

