Y_EXECUTE_QUERY

Hi,
/people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
In the above thread there is one custom function module
'Z_BAPI_IOBJ_GETDETAIL' can anybody tell me how it differs from standard FM BAPI_IOBJ_GETDETAIL
Regards,

You can just comment out the following code in the FM
CREATE OBJECT wf_query_var
EXPORTING
i_r_request = r_request
i_t_nvar = i_var_final
EXCEPTIONS
user_not_authorized = 1
no_processing = 2
bad_value_combination = 3
x_message = 4
OTHERS = 5
IF sy-subrc <> 0.
CASE sy-subrc .
WHEN 1 .
RAISE user_not_authorized .
WHEN 3 .
RAISE bad_value_combination .
WHEN OTHERS .
RAISE unknown_error .
ENDCASE .
ENDIF.
and also the variable declaration wf_query_var
and just use the FM as before

Similar Messages

  • Y_execute_query problem

    Hello,<br>
    <br>
    I followed the steps that appear in the blog to create the [blog|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0065831850DB10279801816864588763End?blog=/pub/wlg/1455] and I coment a peice of code because I don't have the class CL_RSR_QUERY_VARIABLES. <br>
    <br>
    Now, I want to execute one query that have a filter variable under one dimension. I put the next code:<br>
    <br>
    MOVE: 'ZD_CHAN' TO wa_var-vnam,<br>
      'I' TO wa_var-sign,<br>
      'EQ' TO wa_var-opt,<br>
      'Internet' TO wa_var-low,<br>
      '0HIER_NODE' to wa_var-high,<br>
    APPEND wa_var TO var .<br>
    <br>
    The problem, is that this code execute the query but don't aply the filter.<br>
    <br>
    Can Anybody helps me ???<br>
    <br>
    Thanks.
    Edited by: Toni Sierra on Oct 13, 2009 11:36 AM

    Solved,<br>
    <br>
    I defined the variables in the query designer and now, I can pass the filter values.<br>
    <br>
    Thanks.

  • Executinga BW query using ABAP

    I saw this blog on how to execute a BW query using abap. My question is, where do we create the function module Y_EXECUTE_QUERY? I mean under which function group? Thanks.

    This is the blog I was referring to:
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i

  • BW query in a BSP application

    Hi,
    i want to integrate a BW query in a BSP application. In a first step i want to show the results of the BW query as a table or diagram in the bps app.
    as next step it should be possible to transfer parameters to the bw, to change the results of the query.
    there are which possibilities to call bw queries from bsp?
    thanks in advance.

    Hi Eddy,
    i try the possibility from the blogs:
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
    I must say, i am a newbie in BW also ABAP.
    The following Code is implement in my BSP Controller-Class in the Do_Handle_Event.
    I get the results of the query. Also tho conversion in <outtab> folds.
    CALL FUNCTION 'Y_EXECUTE_QUERY' DESTINATION '********'
        EXPORTING
          query_name            = 'TQU_ODS99'
        IMPORTING
          xml_out               = xml_out
        TABLES
    *    query_variables       = var
          return                = breturn
          meta                  = meta
        EXCEPTIONS
          bad_value_combination = 1
          user_not_authorized   = 2
          unknown_error         = 3
          query_not_found       = 4
          OTHERS                = 5.
           CALL METHOD cl_alv_table_create=>create_dynamic_table
              EXPORTING
                it_fieldcatalog = it_fieldcat
              IMPORTING
                ep_table        = model->i_tab.
            ASSIGN model->i_tab->* TO <outtab>.
          ENDIF .
          TRY .
              CALL TRANSFORMATION (`Z_RFC_XSLT`)
              SOURCE XML  xml_out
              RESULT     outtab = <outtab>.
            CATCH cx_xslt_exception INTO xslt_error.
              xslt_message = xslt_error->get_text( ).
          ENDTRY.
    But how can i display the table in the bsp? i_tab is defined in my Model-Class as:
    I_TAB     Static Attribute     Public     Type Ref To     DATA     
    The code in my htm:
            <htmlb:tableView id    = "tab01"
                             table = "<%= model->i_tab %>" />
    throws exceptions.
    Have anyone an idee?

Maybe you are looking for

  • MSA Conntrans fails after machine name change

    Hi I have 5 remote laptops that have had their name changed and conntrans will no longer work. When I ran  SELECT @@SERVERNAME  on database it retunred old name so I then ran  sp_dropserver  'oldname' sp_addserver 'newname' , local Stop / start SQL s

  • HT201272 What course of action do i take to restore in app purchases that were lost ?

    I recently bought the game Dead Trigger, I made a few in app purchases. played until my phone battery died. charged my phone, restarted the game and found all game progress was lost as well as all my IAP's. I dont mind the loss of game progress so mu

  • Connecting BW with different clients in CRM Server.

    Hi All, We have one CRM Server and one BW Server. In CRM Server, we have 3 Clients. CRM 100, CRM 200 and CRM 300. And in BW, we have one Client BW 200. During the development of reports, we have connected CRM 200 with BI 200. Development of CRM repor

  • SLD Data Bridge not starting

    Hello, I have installed XI 3.0, have patched the ABAP & JAVA stack to SP14. During SLD configuration we are getting error in RZ70, while collecting data for transfer it gives RFC error for destination SLD_UC. Also in http://dqxicom5702:50000/sld whil

  • Can I keep folder structure at import??

    Hi, I am a new User auf Itunes. On my harddisk i have several folders sorted by topics. Can i keep this folder structure when i import the songs into itunes? When I tried it yesterday all songs were in the main folder in itunes. I dont want to sort t