<?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>Question Re: Query Req in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141820#M2255661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; We can code in CMOD by checking teh report name only as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE I_S_RKB1D-COMPID.&lt;/P&gt;&lt;P&gt;  WHEN 'QUERY1' OR 'QUERY2' OR 'Query 3'.&lt;/P&gt;&lt;P&gt;    CASE I_VNAM.&lt;/P&gt;&lt;P&gt;      WHEN ' A or B or E or F'.&lt;/P&gt;&lt;P&gt;        IF I_STEP = 2.                    "This is to process the variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please use the idea to implement your functionality , the ideas are already been discussed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2009 17:33:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-31T17:33:25Z</dc:date>
    <item>
      <title>Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaq-p/6141811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have 2 queries. In the first query I have variables on A, B and C. In the 2nd query I have variables on E and F. Now I need to embedd both these queries in to Workbook.&lt;/P&gt;&lt;P&gt;Requirement is when I give a value to variable on A, this variable value should be my Input variable value (using user exit) for my variable on E &amp;amp; F which is 2nd query. Replacement path can not be a solution, coz i need to perform some coding based on variable value A and then use the result as values for E &amp;amp; F.&lt;/P&gt;&lt;P&gt;Can this be possible! I mean using a variable value as input variable value for a diff variable on a diff query!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 13:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaq-p/6141811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T13:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141812#M2255653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating second query, you can use variable A as your input variable and in customer exit (I_STEP = 2) you can read value for A to get variable E &amp;amp; F. At the same time you can use variabe A along with B &amp;amp; C in first query. When using the variables in workbook you can select option display repeated variable once. When workbook will be executed user will get A, B &amp;amp; C variable as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kams&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 13:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141812#M2255653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141813#M2255654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variables A is on 1st query and E &amp;amp; F are on  2nd query. How do we pass the query name in the user exit for E &amp;amp; F! Coz Variable is used in many other queries. How does the user exit know that its should get the variable A  value only from the 1st query!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 13:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141813#M2255654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T13:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141814#M2255655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you use variable A in query 2 as well, do you have the characterstic available in query 2 or can you add characteristic in query 2  on which you created variable A?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kams&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 13:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141814#M2255655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T13:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141815#M2255656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I cant add the Variable A infoobject in my 2nd query infoprvider. Thats the issue./&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 13:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141815#M2255656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141816#M2255657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any solutions plz!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 15:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141816#M2255657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T15:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141817#M2255658</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;I think you should be able to get this using Jump queries. Try using RSBBS. Not sure if it suits your requirement. But you can pass the values as input selection to next query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 16:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141817#M2255658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141818#M2255659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jump Query functionalities can be used only after we run the Source query rite! My reuirement is to see the data of 2 queries at 1 shot/execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 16:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141818#M2255659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141819#M2255660</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;Yes you are rt. You can make the selection variable common to queries in workbook but i dont think you will be able to fetch one variables input in one query and pass it to user exit variable of another query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 17:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141819#M2255660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T17:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141820#M2255661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; We can code in CMOD by checking teh report name only as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE I_S_RKB1D-COMPID.&lt;/P&gt;&lt;P&gt;  WHEN 'QUERY1' OR 'QUERY2' OR 'Query 3'.&lt;/P&gt;&lt;P&gt;    CASE I_VNAM.&lt;/P&gt;&lt;P&gt;      WHEN ' A or B or E or F'.&lt;/P&gt;&lt;P&gt;        IF I_STEP = 2.                    "This is to process the variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please use the idea to implement your functionality , the ideas are already been discussed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 17:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141820#M2255661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T17:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141821#M2255662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mukesh,&lt;/P&gt;&lt;P&gt;How can I use I_S_RKB1D-COMPI in my case? Coz' my Exit variable E is in Query2 and my input variable A is in Query1! Plz let me know&lt;/P&gt;&lt;P&gt;whether the following is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE I_S_RKB1D-COMPID.&lt;/P&gt;&lt;P&gt;WHEN 'QUERY1'.&lt;/P&gt;&lt;P&gt;CASE I_VNAM.&lt;/P&gt;&lt;P&gt;WHEN 'E'.&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above cant be rite,. coz I need to call the user exit when Query is executed, not Query 1. If i take WHEN 'QUERY2', it cant be rite coz &lt;/P&gt;&lt;P&gt;I need to get the variable A value from Query1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 18:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141821#M2255662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T18:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141822#M2255663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meean to say we can try  like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE I_S_RKB1D-COMPID.&lt;/P&gt;&lt;P&gt;WHEN 'QUERY2'.&lt;/P&gt;&lt;P&gt;CASE I_VNAM.&lt;/P&gt;&lt;P&gt;WHEN 'E'. " &lt;STRONG&gt;Your Query 2 variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: yy(4).&lt;/P&gt;&lt;P&gt;IF i_step = 2.&lt;/P&gt;&lt;P&gt;LOOP AT i_t_var_range INTO loc_var_range&lt;/P&gt;&lt;P&gt;WHERE iobjnm = 'A'  " &lt;STRONG&gt;Your Query 1 variable&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;CLEAR l_s_range.&lt;/P&gt;&lt;P&gt;l_s_range-low = loc_var_range-low.&lt;/P&gt;&lt;P&gt;l_s_range-high = loc_var_range-high.&lt;/P&gt;&lt;P&gt;l_s_range-sign = 'I'.&lt;/P&gt;&lt;P&gt;l_s_range-opt = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND l_s_range TO e_t_range.&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;Please try if that works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 20:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141822#M2255663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T20:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141823#M2255664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But how can we get the Query1-Variable A value here using your code as you have taken Query2 execution as reference in case stsmt not Query1!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 20:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141823#M2255664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141824#M2255665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu, &lt;/P&gt;&lt;P&gt;WHat i saw up is u r query 2 executes after query 1 .&lt;/P&gt;&lt;P&gt;The Query 1 variable values cab read once it was run in th user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't depend on the query 2 execution , so u r good when u execute the Query 2 and your query 1 variable have values in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks &lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 20:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141824#M2255665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T20:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141825#M2255666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Varaible A might have been used in different queries other than Query1. So in your code, where are you contrlloling that variable E whould get the variable A value from Query1! I see only Query2.&lt;/P&gt;&lt;P&gt;Your code means, when the Query execution is 2, and when V_NAM = E, then E = A.?? How does this code know that A should get value from Query 1!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 21:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141825#M2255666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Req</title>
      <link>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141826#M2255667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;You can CASE with in CASE for checking QUery 1 when u heck the variable E.&lt;/P&gt;&lt;P&gt;CAse WHEN Q1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CAse when Variable 1&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;       Case Q2&lt;/P&gt;&lt;P&gt;     ENDCASE&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;ENDCASE 2&lt;/P&gt;&lt;P&gt;ENDCASE1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 07:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-req/qaa-p/6141826#M2255667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T07:17:35Z</dc:date>
    </item>
  </channel>
</rss>

