<?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: execute query using RFC in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768534#M2782002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudeep,&lt;/P&gt;&lt;P&gt;                        I tried as per the pdf u shared but my problem is, when am passing value for particular field, result is coming out for the complete data set. Value given for the field is not considered in FILTER value. How do I make it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2011 11:35:01 GMT</pubDate>
    <dc:creator>former_member182510</dc:creator>
    <dc:date>2011-03-25T11:35:01Z</dc:date>
    <item>
      <title>execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaq-p/7768532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;                      I have a scenario where I have to execute 1 query with 1 user entry variable using an RFC, for that I used RFC - RS_VC_GET_QUERY_VIEW_DATA_FLAT, I have created the required report which should get executed through this rfc. I have SAP BW 3.5 SP 17. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assigned all the required parameters like cube name, report name and in i_t_parameter gave values like, user entry variable name and value to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried executing using following option &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user entry variable optional with single value - rfc returned all values from the cube instead of giving only 1 record pertaining to the input given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E_T_TEXT_SYMBOLS table in the output is saying input entry variable in empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user entry variable mandatory with single value - rfc shown an error - enter appropriate value for user entry variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I executed bex query with both the above mentioned types of variables, I received result for only the given output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input value is restricted in the query designer and then query executed using rfc, output was correct with only 1 row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me if anyone has encountered the similar scenario or tell me which all values i should give in I_T_PARAMETER table to get the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Priyanka Joshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Priyanka J Joshi on Mar 23, 2011 9:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 08:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaq-p/7768532</guid>
      <dc:creator>former_member182510</dc:creator>
      <dc:date>2011-03-23T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768533#M2782001</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 using FM RRW3_GET_QUERY_VIEW_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is link explaining how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0865602-9f77-2d10-759c-fe1e0b1acb01?QuickLink=index&amp;amp;overridelayout=true" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0865602-9f77-2d10-759c-fe1e0b1acb01?QuickLink=index&amp;amp;overridelayout=true&lt;/A&gt;&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;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 14:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768533#M2782001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768534#M2782002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudeep,&lt;/P&gt;&lt;P&gt;                        I tried as per the pdf u shared but my problem is, when am passing value for particular field, result is coming out for the complete data set. Value given for the field is not considered in FILTER value. How do I make it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 11:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768534#M2782002</guid>
      <dc:creator>former_member182510</dc:creator>
      <dc:date>2011-03-25T11:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768535#M2782003</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;check by running query manuaaly if query itself works ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if query run ok then try using debuggin if you encounter any error during execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would suggest check query first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 13:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768535#M2782003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768536#M2782004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudeep,&lt;/P&gt;&lt;P&gt;                         query when executed in BEx works fine, gives output only for the given input value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 14:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768536#M2782004</guid>
      <dc:creator>former_member182510</dc:creator>
      <dc:date>2011-03-25T14:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768537#M2782005</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;have you tried debugging code you have written?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share your code here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2011 04:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768537#M2782005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-26T04:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: execute query using RFC</title>
      <link>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768538#M2782006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudeep,&lt;/P&gt;&lt;P&gt;                           I tried debugging my code, i_t_parameter table shows the passed parameter but when fm gets called again same thing happens, as complete data set comes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: t_i_parameter type RRXW3TQUERY,&lt;/P&gt;&lt;P&gt;        t_axis_info type RRWS_THX_AXIS_INFO,&lt;/P&gt;&lt;P&gt;        t_cell_data type RRWS_T_CELL,&lt;/P&gt;&lt;P&gt;        t_axis_data type RRWS_THX_AXIS_DATA,&lt;/P&gt;&lt;P&gt;        t_final_output type table of ZPROJECTCARD_OUTPUT,&lt;/P&gt;&lt;P&gt;        t_input type table of ZPROJECTCARDNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: w_i_infoprovider type RSINFOPROV,&lt;/P&gt;&lt;P&gt;        w_i_query type RSZCOMPID,&lt;/P&gt;&lt;P&gt;        w_i_parameter like line of t_i_parameter,&lt;/P&gt;&lt;P&gt;        w_axis_info like line of t_axis_info,&lt;/P&gt;&lt;P&gt;        w_cell_data like line of t_cell_data,&lt;/P&gt;&lt;P&gt;        w_axis_data like line of t_axis_data,&lt;/P&gt;&lt;P&gt;        w_final_output like line of t_final_output,&lt;/P&gt;&lt;P&gt;        w_input like line of t_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_i_infoprovider = 'ZINRA'.&lt;/P&gt;&lt;P&gt;    w_i_query = 'ZINRA_RATI_REPORT1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Fill the internal table of parameters to pass 1 project card no.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_i_parameter-name = 'VAR_NAME_1'.&lt;/P&gt;&lt;P&gt;    w_i_parameter-value = 'ZPS_SITE'.&lt;/P&gt;&lt;P&gt;    append w_i_parameter to t_i_parameter.&lt;/P&gt;&lt;P&gt;    clear w_i_parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_i_parameter-name = 'VAR_SIGN_1'.&lt;/P&gt;&lt;P&gt;    w_i_parameter-value = 'I'.&lt;/P&gt;&lt;P&gt;    append w_i_parameter to t_i_parameter.&lt;/P&gt;&lt;P&gt;    clear w_i_parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_i_parameter-name = 'VAR_OPERATOR_1'.&lt;/P&gt;&lt;P&gt;    w_i_parameter-value = 'EQ'.&lt;/P&gt;&lt;P&gt;    append w_i_parameter to t_i_parameter.&lt;/P&gt;&lt;P&gt;    clear w_i_parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_i_parameter-name = 'VAR_VALUE'.&lt;/P&gt;&lt;P&gt;    w_i_parameter-value = ZPROJECT_CARD.&lt;/P&gt;&lt;P&gt;    append w_i_parameter to t_i_parameter.&lt;/P&gt;&lt;P&gt;    clear w_i_parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;FM to fetch the query data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_INFOPROVIDER                =  w_i_infoprovider&lt;/P&gt;&lt;P&gt;   I_QUERY                       =  w_i_query&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_VIEW_ID                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   I_T_PARAMETER                 =  t_i_parameter&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   E_AXIS_INFO                   =  t_axis_info&lt;/P&gt;&lt;P&gt;   E_CELL_DATA                   =  t_cell_data&lt;/P&gt;&lt;P&gt;   E_AXIS_DATA                   =  t_axis_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_TXT_SYMBOLS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NO_APPLICABLE_DATA            = 1&lt;/P&gt;&lt;P&gt;   INVALID_VARIABLE_VALUES       = 2&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 3&lt;/P&gt;&lt;P&gt;   ABORT                         = 4&lt;/P&gt;&lt;P&gt;   INVALID_INPUT                 = 5&lt;/P&gt;&lt;P&gt;   INVALID_VIEW                  = 6&lt;/P&gt;&lt;P&gt;   OTHERS                        = 7&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 05:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/execute-query-using-rfc/qaa-p/7768538#M2782006</guid>
      <dc:creator>former_member182510</dc:creator>
      <dc:date>2011-03-28T05:10:03Z</dc:date>
    </item>
  </channel>
</rss>

