Execute BW Query Via RFC

Hi all.
im traying to execute a BW query via an RFC ussing FM RRW3_GET_QUERY_VIEW_DATA.
CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
     EXPORTING
     i_infoprovider        =
       i_query                =
       i_view_id              =
       i_t_parameter       =
     IMPORTING
       e_axis_info           =
       e_cell_data           =
       e_axis_data          =
       e_txt_symbols       =
     EXCEPTIONS
       no_applicable_data      = 1
       invalid_variable_values = 2
       no_authority            = 3
       abort                   = 4
       invalid_input           = 5
       invalid_view            = 6
       OTHERS                  = 7.
my query have two parameters. im puttings this valuen into table i_t_parameter , but at the momento of query execution, this values are not used like parameters never send to query.
when debug my RFC, i can see that those values are passing to FM.
Any Idea???

try this blog.
/people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii

Similar Messages

  • Error while executing BEX query via FM

    Hi Friends,
    I am getting following error while executing a query via FM RRW3_GET_QUERY_VIEW_DATA.
    Please see the error screenshot as follows.
    the I_T_PARAMETERS entered are as follows.
    Please let me know what is missing.
    Thanks.
    Regards,
    Hrishikesh

    the key date variable 0DAT is normally filled by a SAP exit variable, but this may not be the case.  it could have been changed in the query designer,  check the query in query designer and see.
    Try passing 0DAT in the variable list with todays date

  • Execute BEX Query via Function Module

    Hi Mates,
    I want to execute BEX query via a Function Module.
    Also i want to explore whether the input parameters of the query can be retrieved from a Database Table.
    Please let me know how this can be achieved.
    Thanks in advance.
    Regards,
    Hrishikesh

    Hi Hrishikesh,
    Assuming you have the necessary ABAP knowledge, you will have to code the exit in the include ZXRSRU01 under I_STEP = 1 (this is because you want to prepopulate your parameters from the values in your DB table).
    Your DB table has Key1, Key2 and Your field as the three fields and you want to read the value of 'Your Field' based on your keys Key1 and Key2.
    So, the code will be something like -
    when 'Your variable'.
    if i_step = 1.
    select single 'Your field' from 'Your DB table' into lv_your_field where Key 1 = 'X' and
                                                                                                                   key 2 = 'Y'.
    clear l_s_range.
    l_s_range - low = lv_your_field.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endif.

  • Get Query Data via RFC

    Hello!
    I try to execute an Query via RFC in an Visual Basic environment.
    I have heard that this could be done with RRW3_GET_QUERY_VIEW_DATA Function Call.
    Here is the source code I wrote:
         Dim getQueryData As Object
            Dim paramQuery As Object
            Dim paramInfoprovider As Object
            Dim OK As Boolean
            Set getQueryData = funcControl.Add("RRW3_GET_QUERY_VIEW_DATA")
            Set paramQuery = getQueryData.exports("I_QUERY")
            Set paramInfoprovider = getQueryData.exports("I_INFOPROVIDER")
            paramQuery.value = "ZSUNMAINACCOUNTS"
            paramInfoprovider.value = "0FIGL_VC1"
            OK = getQueryData.Call
    The object funcControl contains an successfully loged in connection to My SAP BW SEM 4.0.
    The variables paramQuery contains the technical query name to get.
    The code does't work, after adding the RRW3_GET_QUERY_VIEW_DATA I can't set the export parameters.
    Whats going wrong here! Is there documenation how to get queries out of my BW?
    Thank you for any reply!
    Best regards,
    Richard

    Hi
    I've got the same problem - did you find a resolution?
    Warwick

  • Authorization issue to execute query via analyzer

    Dear,
    We are experiencing an authorization issue that we can not solve...
    We have grant to user the expected objects to execute query (S_RS_COMP & S_RS_COMP1) and the central objects like S_GUI, S_USER_AGR.
    When we test in RESCEADMIN, everything is fine. We can execute the query.
    When we test it in the analyzer, the variable screen does not pop-up and we get the error message:
    "There is no variable in the workbook, which allows user input"
    Does anybody have a direction to help us to orientate our investigation?
    Many thanks,
    Rodolphe

    Hello,
    What is the basic settings you have in the Query Properties basic setting tab
    Try making it mandatory
    Regards
    Nitin Bhatia

  • Query0;Runtime error time limit exceeded,with parallel processing via RFC

    Dear experts,
    I have created a report on 0cca_c11 cube and while running my report when i give cost center group which contains many cost centers , my report executes for long time and at last gives message
    "Error while reading data;navigation is possible" and
    "Query0;Runtime error time limit exceeded,with parallel processing via RFC"
    please tell me what is the problem and how can i solve this
    Regards
    Shweta

    hI,
    Execute the Query in RSRT with Execute and Debug option.
    Select SQL statements toknow where exactly it's taking time.
    Let us know the details once you done.
    Reg
    Pra

  • Character conversion problems when calling FM via RFC from Unicode ECC 6.0?

    Hi all,
    I faced a Cyrillic character convertion problem while calling an RFC function from R/3 ECC 6.0 (initialized as Unicode system - c.p. 4103). My target system is R/3 4.6C with default c.p. 1500.
    The parameter I used in my FM interface in target system is of type CHAR10 (single-byte, obviously).
    I have defined rfc-connection (SM59) as an ABAP connection and further client/logon language/user/password are supplied.
    The problem I faced is, that Cyrillic symbols are transferred as '#' in the target system ('#' is set as default symbol in RFC-destination definition in case character convertion error is met).
    Checking convertions between c.p. 4103  and target c.p. 1500 in my source system using tools of transaction i18n shows no errors - means conversion passed O.K. It seems default character conversion executed by source system whithin the scope of RFC-destination definition is doing something wrong.
    Further, I played with MDMP & Unicode settings whithin the RFC-destination definition with no successful result - perhaps due to lack of documentation for how to set and manage these parameters.
    The question is: have someone any experience with any conversion between Unicode and non-Unicide systems via RFC-call (non-English target obligatory !!!), or can anyone share valuable information regarding this issue - what should be managed in the RFC-destination in order to get character conversion working? Is it acceptable to use any character parameter in the target function module interface at all?
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP ABAP Consultant

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Customer Deletion via RFC

    We would like to delete a customer (set deletion flag) via RFC. The problem is that the BAPI_CUSTOMER_DELETE calls screens which means that it cannot be called. We want to avoid doing database updates on KNA1-LOEVM because we want such deletions recorded in the change log and properly executed.
    Are there any functions in SAP which delete customers properly without user interaction?

    Here is the sample code:
    DATA: BDCDATA TYPE TABLE OF BDCDATA.
    DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
    DATA: PROGRAM LIKE SY-REPID,
          WA_BDCDATA TYPE BDCDATA.
    WA_BDCDATA-PROGRAM  = 'SAPMS38M'.
    WA_BDCDATA-DYNPRO   = '0100'.
    WA_BDCDATA-DYNBEGIN = 'X'.
    APPEND WA_BDCDATA TO BDCDATA.
    CLEAR WA_BDCDATA.
    WA_BDCDATA-FNAM     = 'RS38M-PROGRAMM'.
    WA_BDCDATA-FVAL     = PROGRAM.
    APPEND WA_BDCDATA TO BDCDATA.
    CALL TRANSACTION 'SE38'  USING BDCDATA  MODE 'N'
                             MESSAGES INTO ITAB.
    For more info, please refer to SAP online help documentation http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

  • Pass values to bind variales and execute VO query

    Hi All,
    I have a requirement to add validation to an appraisal page via OAF.
    As a part of testing I need to check, if the values in the query of VO is displayed in the page.
    VO - QuestAnsValuesVO
    EO - QuestAnswerValueEO, QuestFieldEO
    The VO query is
    SELECT * FROM (SELECT QuestAnswerValueEO.QUEST_ANSWER_VAL_ID, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID, QuestAnswerValueEO.FIELD_ID, QuestAnswerValueEO.OBJECT_VERSION_NUMBER, QuestAnswerValueEO.VALUE, QuestFieldEO.FIELD_ID AS QUEST_FIELD_ID, QuestFieldEO.NAME, QuestFieldEO.TYPE, QuestFieldEO.HTML_TEXT, rank() over (partition by QuestFieldEO.NAME order by QuestFieldEO.FIELD_ID) AS RANK, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID AS QUESTIONNAIRE_ANSWER_ID1 FROM HR_QUEST_ANSWER_VALUES QuestAnswerValueEO, HR_QUEST_FIELDS QuestFieldEO WHERE QuestFieldEO.QUESTIONNAIRE_TEMPLATE_ID(+) = :1 and QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID(+) = :2 AND QuestFieldEO.FIELD_ID = QuestAnswerValueEO.FIELD_ID (+)) QRSLT ORDER BY QUEST_FIELD_ID
    I am trying to execute this query in the extended controller class so that i can get the values printed on the page. I am getting SQL exception saying - not all variables are bound.
    How do i pass values to bind variables :1 and :2 and execute this query?
    Please help.
    Thanks
    Geetha

    Geetha,
    Instead of :1 and :2 use a named bind variable as part of your VO and then set either a default value or set its value during runtime. See this example on how to create bind variable:
    http://formattc.wordpress.com/2010/04/02/custom-java-bind-variable-in-a-where-clause-of-an-adf-view-object/
    Once created, you can set its value during runtime either in ApplicationModuleImpl or in ViewObjectImpl class
    e.g.,
             ViewObjectImpl view = this.getEmpView();
            VariableValueManager vm = view.ensureVariableManager();
            vm.setVariableValue("empNo", value);
            view.executeQuery();regards,
    ~Krithika

  • DUMP in SAPDBEQI when executing a Query with InfoSet = EQI

    Hi experts,
    I made a Query that contains an Infoset, with the logical database EQI. When I execute the query it shows the following DUMP:
    Runtime Errors = SAPSQL_AMBIGUOUS_FIELDNAME 
    Except.            = CX_SY_DYNAMIC_OSQL_SEMANTICS
    Maybe is an error? I think it is, but searching for a SAP Note I don't find anyone.
    What I could see is that the system is executing an extra validation, with this authority check:
    * additional authority checks via BAdI
      PERFORM authoritycheck_diaufk_badi_f01 USING diaufk 'IE07'.
    This function is encapsulated on the include "DBAFIF01".
    I am executing the SAP Query on version ECC 6.0.
    Lots of thanks,
    Javi

    Hi FireFighter,
    First of all, thanks for your answer. I have no problem of authorization to execute IE07.
    Do you have any other idea?
    Thanks!!!

  • When executing a query showing as ABAP runtime error RAISE_EXCEPTION

    Hi all,
    When i executed a query, it is showing as ABAP runtime error RAISE_EXCEPTION in the short dump.
    This is the Analysis in Short dump (ST22)...............
    Exception condition "DATE_BEFORE_RANGE" raised.   
    What happened?                                                                               
    The current ABAP/4 program encountered an unexpected  
    situation. 
    Error analysis                                                                               
    A RAISE statement in the program "SAPLSCAL" raised the exception
    condition "DATE_BEFORE_RANGE".                                  
    Since the exception was not intercepted by a superior program   
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    Date is earlier than factory calendar definition                                                                               
    For detailed documentation of the exception condition, use      
    Transaction SE37 (Function Library). You can take the called    
    function module from the display of active calls.               
    How to correct the error                                                                               
    You may able to find an interim solution to the problem                       
    in the SAP note system. If you have access to the note system yourself,       
    use the following search criteria:                                                                               
    "RAISE_EXCEPTION" C                                                           
    "SAPLSCAL" or "LSCALU06"                                                      
    "DATE_CONVERT_TO_FACTORYDATE"                                                                               
    or                                                                               
    "SAPLSCAL" "DATE_BEFORE_RANGE"                                                                               
    or                                                                               
    "WRITEQUERY " "DATE_BEFORE_RANGE"                                                                               
    Could you pls any one tell me what could be the problem and how to reslove this issue.
    Thanks & Regards,
    Ravi Kumar.

    Hi Andre,
    Maintain your factory calendar idents Valid To year field (BJAHR) in Table TFACD
    You can do this via tcode SCAL, or navigate through SPRO.
    Most likely you have your factory calendars set with Valid To dates as 2010. You may also be encountering some load issues depending on exit routines used in transformations in determining workdays/factory days etc.
    Thanks,
    Eric Filmer

  • Failed to execute MDX query. Reason: returned server error (). (IES 10901) (WIS 10901).

    Hi,
    I am trying to create a Webi report based on an OLAP Universe. I am using BI 4.1 SP01
    I did the following:
    1. I have setup a databse connection for SAP SSM via the create connection wizard in the Universe Design Tool. My connection is created sucessfully.
    2. Next I created a Universe saved it and exported it.
    3. In webi I am trying to create a report, I selected a couple of measures in the "results objects" section. In the qurey filters section I selected month.
    When I run this query, I am getting an error message: Database error: Failed to execute MDX query. Reason: returned server error (). (IES 10901) (WIS 10901).
    I tried to search for similar issues reported on SCN forums and other places and it looks like a generic error and this was not answered in some of the discussions
    Any help is very much appricated.
    Thanks
    Imtiyaz

    Hi,
    I have verified in BEx query properties, it's "allow External Access to this Query" is checked.
    I have filter in BEx query, so not need to had it to query selection again in webi report.
    Could any other solution??
    Regards,

  • Initial selection screen missing when execting a query via web

    Hello all.
    We have a problem when we try to execute a query in web. We developped queries via query designer and we published all in a role. By doing it system generates a link that makes possible to execte this query via web. The issue is that sometimes the initial selection screen doesn´t appear (and the variables are "ready to input".
    Could anybody help me?
    Thanks in advance.

    Dear Carmen Rodríguez,
    In the WAD properties of the webtemplate.. carefully look for 'Force Variable Screen' Check that option..
    Save and rerun the same.. it should be able to see the screen after that..
    regards,
    Hari

  • Data transfer via Rfcs

    Whenever the material master is created in ECC RFCs are triggered and the data is transferred to GTS via RFCs
    (no idocs are triggered)
    Is there any way out to stop this transfer
    how can can we know the mapping of what fields of ECC are mapped to which fields of the other system
    please advice

    Hi,
    let us say outbound is SAPLID server
    and inbound is SAPLER  server.
    we need to following setting in order to generate idocs. You can see the generated IDOC in WE02 TCode.
    Status code should be 03.
    In SAPLID Server :
    1. In the SALE transaction,
         - Application Link Enabling (ALE) --> Sending and Receiving Systems --> Logical Sysems --> Define Logical Systems
              - Click on 'New Entries'
              - Enter 'Logical System' & 'Name'.
                   SAPLID             Logical System for the server SAPLID
                   SAPLER              Logical System for the server SAPLER
              - Save it.
             - Application Link Enabling (ALE) --> Sending and Receiving Systems --> Logical Sysems --> Assign Client to Logical             System.
              - Client : 800          Sending system
                City : Hyderabad
                Logical System : SAPLID
                Std Currency : INR
                client role : Demo
         - Application Link Enabling (ALE) --> Sending and Receiving Systems --> Systems in Network --> Define Target Systems
           for RFC calls.
              - Select 'R/3 Connections' and click on 'Create' icon.
              - RFC Destination : SAPLER
                Connection type : 3
                Descripiton : RFC for Destination Server SAPLER
                Target host : SAPLER
                System Number : 00
              - Logon/Security
                Language : EN
                Client : 800
                User : USER6
                Password : RGSHYD
              - Click on 'Test Connection'.
              - Click on 'Remorte Logon'.
    2. WE 81 Message type config (DEBMAS - Customer Master)
    3. WE 30 Idoc type (DEBMAS06 - Customer Master data distribution)
    4. WE 82 - Adding Message type to Idoc type.
        DEBMAS ---> DEBMAS06
    5. WE20 Partner Profile
         Partner No : SAPLER
         Par.Type   : LS
         Type         : US
         Agent      : USER6
       OUtbound Parameters :
       Message type    :  DEBMAS
       Receiver Port   :  Zbkpfport
    Transfer Idoc Immediately
       Basic type      :  DEBMAS06
    6. BD64 MOdel View
         - Select 'model view' and click on Create Model View.
         - Technical Name : CUSTMODEL
            - Place the cursor on 'CUSTMODEL' and click on 'Add message type'.
              - Model View : CUSTMODEL
              - Sender : SAPLID
              - Receiver : SAPLER
              - Message type : DEBMAS
         - Save it
         - Environment --> Generate Partner Profile
         - Edit --> Modelview --> Distribute
    7. XD01 Create Customer Master
         - Create Customer Number : 0000000001
    8. BD12 Sending Customer Data
         - Customer : 0000000001
         - OUtput type : DEBMAS
         - Logical System : SAPLER
         - Execute it
    9. WE02 Idoc List
         - Direction : 1
         - Logical Message : DEBMAS
         - Execute it.
    in case if your IDOC is generated with errors (status would be red signal) get back me with status code.
    Regards
    Srikanth

  • CSAP_MAT_BOM_CREATE problem via RFC because of 'strg-reset_sign'

    Hi!
    I have the following problem:
    I want to create a bom in SAP via RFC using the function CSAP_MAT_BOM_CREATE. The function fails if a component of the bom starts with 'X'!
    I have debugged the function CSAP_MAT_BOM_CREATE and found that there is a flag strg-reset_sign which contains an 'X' and every value of each component which starts with the same value ('X') is deleted. So all values (for example IDNRK) starting with 'X' are cleared and so I get the message "data incomplete..."
    The code doing this is:
    hlp_tabfld1 = <tabfld1>.
    check not <tabfld1> is initial.
    if strg-reset_sign is initial or
    hlp_tabfld1 ne strg-reset_sign.
    THIS CODE INSIDE THE IF IS NOT EXECUTED IF hlp_tabfld1 CONTAINS AN 'X'. hlp_tabfld1 CONTAINS THE FIRST VALUE OF EACH FIELD OF A BOM-COMPONENT IN A LOOP.
    The flag 'strg-reset_sign' is not set to 'X' when I try it inside the SAPGui with SE37!
    Is this a customizing issue or where does the flag come from???
    Thanks,
    Konrad

    Thanks for reply,
    i have debug my program and found that run time error is coming at GET_MAST function module.
    but  i have already checked that     MATNR and STLNR  is already filled before reaching to that FM.
    GET_MAST
    IF NOT SET IS INITIAL.
          IF     WA-MATNR IS INITIAL
             AND WA-STLNR IS INITIAL.
             RAISE KEY_INCOMPLETE.
          ENDIF.
          IF     WA-MATNR <> SPACE
             AND WA-STLNR <> SPACE.
             RAISE KEY_INVALID.
          ENDIF.
    please can any one provide me the solution for that.
    Regards
    Pavneet Rana

Maybe you are looking for

  • What is the significance of BUZEI

    what is "Number of Line Item Within Accounting Document" or BUZEI in BSID???

  • Cisco 6506 CatOS unable to bootup

    Hi, I have a 6506 with SUP1, no MSFC running CatOS. Module 1: Removed Module 2: WS-X6K-SUP1A-2GE Module 3: WS-X6348 Module 4: WS-X6348 Module 5: WS-X6408A-GBIC Module 6: WS-X6408A-GBIC However, it doesn't seems to be able to bootup properly. Could th

  • Outlook won't send for any of us....says cannot send themessage user has exceeded

    outlook keeps popping up the password box.....it won't send mail....says smtpout.secureserver.net  says send test email message: cannot send themessage...verify the email address in your account properties...the server responded 550 jwilson@.      ha

  • ITunes No Longer Downloading SD Content

    I'd purchased season passes for The Walking Dead and Clone Wars (both HD season passes). Up until recently, I'd been downloading both the SD and HD versions (which is what I want).  Now, iTunes has stopped downloading the SD versions and is only givi

  • Twitter Widget problems

    I was trying to get the custom twitter widget to work in my publication and I saw post from May that it was an issue.  I could not find anything curtrent.  Is this still a problem as I can't get my custom twitter feed to work as I want it to?