<?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: Data from BI query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762981#M643282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You &lt;STRONG&gt;Might&lt;/STRONG&gt; (I say Might) possibly have better luck if you can use the BI accelerator. On 640 of course the old BW methods and classes are still in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't actually used the BI accelerator but I'm told by people who have that it's an excellent tool for almost limitless queries. I'm sure some "Googling" or browsing the BI Forum might also help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often when a new release is installed people try and "replicate" old stuff. In general (although I know it's not always true in SAP's case) if stuff has been removed in  a new release it's either because the old method is "deprecated" or there's a hugely better method available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry I can't be more helpful than that but if you MUST have this query class you can always I suppose try and get it "Retrofitted" to your system. I'd advise against that approach however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 11:39:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T11:39:15Z</dc:date>
    <item>
      <title>Data from BI query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762980#M643281</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'm stuck on an Abap program&lt;/P&gt;&lt;P&gt;I have to execute a Bex Query then store the retreived data, the old logic uses classe cl_RSR_Query_variables, this doesn't exist any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep my logic and substitute only the type of my query variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it is the part of logic to modify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wf_query_var TYPE REF TO cl_rsr_query_variables .&lt;/P&gt;&lt;P&gt;DATA: r_request TYPE REF TO cl_rsr_request.&lt;/P&gt;&lt;P&gt;DATA: r_dataset TYPE REF TO cl_rsr_data_set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: query_name TO cube_name .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert the query name to technical id&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR p_genuniid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = query_name&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = p_genuniid.&lt;/P&gt;&lt;P&gt;IF p_genuniid IS INITIAL .&lt;/P&gt;&lt;P&gt;RAISE query_not_found .&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;Create instance of cl_rsr_request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE OBJECT r_request&lt;/P&gt;&lt;P&gt;EXPORTING i_genuniid = p_genuniid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create instance of cl_rsr_variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_var[] = query_variables[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT wf_query_var&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_r_request = r_request&lt;/P&gt;&lt;P&gt;i_t_nvar = i_var&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;user_not_authorized = 1&lt;/P&gt;&lt;P&gt;no_processing = 2&lt;/P&gt;&lt;P&gt;bad_value_combination = 3&lt;/P&gt;&lt;P&gt;x_message = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;CASE sy-subrc .&lt;/P&gt;&lt;P&gt;WHEN 1 .&lt;/P&gt;&lt;P&gt;RAISE user_not_authorized .&lt;/P&gt;&lt;P&gt;WHEN 3 .&lt;/P&gt;&lt;P&gt;RAISE bad_value_combination .&lt;/P&gt;&lt;P&gt;WHEN OTHERS .&lt;/P&gt;&lt;P&gt;RAISE unknown_error .&lt;/P&gt;&lt;P&gt;ENDCASE .&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;Set the variable and execute the query&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;r_request-&amp;gt;variables_set( i_t_var = i_var ).&lt;/P&gt;&lt;P&gt;r_request-&amp;gt;variables_start( ).&lt;/P&gt;&lt;P&gt;r_request-&amp;gt;read_data( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_dataset = cl_rsr_data_set=&amp;gt;get( i_r_request = r_request ).&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 09:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762980#M643281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BI query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762981#M643282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You &lt;STRONG&gt;Might&lt;/STRONG&gt; (I say Might) possibly have better luck if you can use the BI accelerator. On 640 of course the old BW methods and classes are still in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't actually used the BI accelerator but I'm told by people who have that it's an excellent tool for almost limitless queries. I'm sure some "Googling" or browsing the BI Forum might also help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often when a new release is installed people try and "replicate" old stuff. In general (although I know it's not always true in SAP's case) if stuff has been removed in  a new release it's either because the old method is "deprecated" or there's a hugely better method available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry I can't be more helpful than that but if you MUST have this query class you can always I suppose try and get it "Retrofitted" to your system. I'd advise against that approach however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 11:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762981#M643282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T11:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BI query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762982#M643283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll redo the all FM&lt;/P&gt;&lt;P&gt;the only solution I've seen so far&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 15:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bi-query/m-p/2762982#M643283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T15:47:56Z</dc:date>
    </item>
  </channel>
</rss>

