RFC Query

Dear SAP Guru's,
I need ur help for the following queries:
1. How do I add/ create new roles in RFC user.
2. Where can i find a list on the RFC Users  ---  any Tx:  ?
Regards,
Amit

Hi Amit,
This is easy to do.
There are lots of transaction which SAP is providing to do adminstration work.
in SAP Easy Access Menu->Tools->Adminstration ->Role Adminstration.
There is a transaction Roles .
Transaction code for that is PFCG.
My ID is having developer role and it is
SAP_BC_DWB_ABAPDEVELOPER
I gave that in that transaction and then clicked on Display.
In USER tab ,it gives all the user which is having this access.
So for RFC user,go to transaction SU01 or SU01D and see the role tab which roles
are assigned to it and then go to PFCG transaction and see user against those roles.
I hope,this helps.
Regards,Nishant
<b>Please reward points if this helps.</b>

Similar Messages

  • JDBC-RFC Query Error

    Hi friends,
    I have 2 tables at sender JDBC side . one is header table and second one is Line items.
    Now i have to pass to RFC in such a way that onley once header and respective line items to the RFC.
    rite now i am using this Query in JDBC sender side
    select * from table_Header,table_Line_Item where flag = '1' and counter1 = counter2;
    where counter1 and counter2 represents the header and line items correspondence.
    now i need to change in query or in mapping or in integration any condition....
    please help me its urgent
    Regards
    Vijay Kumar

    Inorder to select records from 2 table prefer Storedprocedure
    Just Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
    This will have to be done for your SELECT statement in JDBC adapter. ALso, make the UPDATE as either TEST, if you dont want any updations or give an UPDATE statement for the UPDATE query.
    Set the polling interval of your JDBC adapter to 1 hour and it will work like u want.
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    Storedprocedure trigger using JDBC sender adapter.

  • Formatting web form query fields to be passed to RFC query FM

    We have a web front end used to query the SAP sales database. The fields can accept multiple or range selections. We have written a couple of FM (RFC enabled function modules) to retrieve the data based on the queries.
    The question is, what is the best way to handle multiple selections in the FM interface. Currently we are using SELOPT structures to handle the select criteria.
    On the web front end, is it simple and feasable to format the form fields in the SELOPT structure or is there a better way.
    Below is the interface currently proposed for the FM:
    FUNCTION ZE_GET_SALES_ORDERS.
    ""Local interface:
    *" IMPORTING
    *" REFERENCE(I_ORDER_STATUS) TYPE CHAR01 OPTIONAL
    *" REFERENCE(I_INVOICE_AUTH_FLAG) TYPE CHAR01 OPTIONAL
    *" TABLES
    *" T_VALID_SOLDTO STRUCTURE SELOPT
    *" T_SOLDTO STRUCTURE SELOPT OPTIONAL
    *" T_CUSTOMER_PO STRUCTURE SELOPT OPTIONAL
    *" T_SALES_ORDER STRUCTURE SELOPT OPTIONAL
    *" T_DATE_RANGE STRUCTURE SELOPT OPTIONAL
    *" T_STARS_QUOTE STRUCTURE SELOPT OPTIONAL
    *" T_BILLTO STRUCTURE SELOPT OPTIONAL
    *" T_SHIPTO STRUCTURE SELOPT OPTIONAL
    *" T_INVOICE_NUM STRUCTURE SELOPT OPTIONAL
    *" T_ORDER_HEADERLIST STRUCTURE ZORDERVIS_ORDERHEADER OPTIONAL
    *" T_INVOICE_LIST STRUCTURE ZORDERVIS_INVOICE_LIST OPTIONAL
    *" T_ORDER_HEADERLIST_SUMM STRUCTURE
    *" ZORDERVIS_ORDERHEADER_SUMMARY OPTIONAL
    *" T_SELECT_PARAMS STRUCTURE W3QUERY OPTIONAL
    *" T_ORDER_CREATE STRUCTURE SELOPT OPTIONAL
    *" EXCEPTIONS
    *" VALIDATION_CUST_MISSING
    Any advice or direction would be greatly appreciated.
    Thanks in advance,
    Jennifer

    Basically you can't! The RFC iView is in my opinion a bad way to get data out of SAP. It is difficult to edit and passing paramaters is a nightmare.
    Any chance you can use Visual Composer instead, or maybe right a little portal component to do the same thing?
    Ps: if you're using SSO< the username that is used to start the RFC is the same username in the backend system, so maybe you can use sy-uname?
    Cheers

  • Adaptive RFC query?

    Adaptive RFC req to trigger 2 BAPI?  
    Posted: Mar 4, 2008 11:34 AM       E-mail this message      Reply 
    Hi Gurus,
    I got a requirement where in which I need to trigger one custom BAPI (ZHR_GET_WORK_SCHEDULES) which will return me half of the work schedule allocated to the particular employee.
    Input parameters of the BAPI is Pernr number(Personal Number) where I don't have any Input field in my webdynpro view to enable this input parameter.
    When I spoke to business people they said I shouldn'd not put any input field in the webdynpro view......
    I have found one more custom bapi(Z_HR_DISPLAY_IT0105) which will return me Pernr number If I pass my portal user id as input?
    My question is how to dynamically trigger this BAPI (which will return Pernr Number ) so that I can pass this Pernr as the input for the other custom Bapi whic will return half of the work structure allocated to particular employee........
    I have created the webdynpro application to invoke this bapi (which will return half the work structure) ....Now I want to know is there any other way that i can pass the input parameter to this bapi (Pernr) during runtime
    Kindly tell me how to implement the above requirement.
    Portal user credentials are maintained in ABAP resource.
    Please Advice how to go about it?
    Thanks in Advance,
    Dharani

    There will be a paramter in the input or its related structure to take the "number" as input.
    ModelClass inp = new InputClass(model);
    inp.setPNumber(mynumber); -> This "mynumber" you will get as output from eecution another BAPI
    inp.execute();
    inp.getOutput(); This will have waht u want.
    Alternately the input classes maynot be exactly on InputClass but some related class like "Structure1" for example.Then do this
    Structure1 str = new Structure1 (model);
    str.setRelatedModelClass(str);
    str.setPnumber(mynumber);
    Points, dont forget them !
    Regards,
    Arun

  • RFC/Function base for iViews

    For iViews in the EP Content Library:
    Is there a single point information source that provides the BAPI/RFC/Query names and profiles underlying the individual iViews listed in the iView Content Library?

    Hi,
    If you are Looking for the standard Iviews that come with the Business then you should download the concerned docu from Iviewstudio.com or sap serviceplace.
    If this is a general question, then you should search for say Bapi via trans BAPI in SAP and for RFCs via SE37.
    SAP Does not publish any standard list i think.
    Regards,
    Anuj

  • REPORT  ZRSDRC_CUBE_DATA_GET.

    Hi SDN Community,
    We have written the following program which access the FM RSDRC_CUBE_DATA_GET.
    The only thing i am unsure of at the moment is how to declare a STANDARD TABLE for this.
    DATA E_CUBE_DATA LIKE STANDARD TABLE.
    I have only taken a first guess at this (as a non ABAP'er) but in order for it to activate, can anyone assist by trying this on their system and determining the correct syntax.
    Thank you in advance.
    Simon
    REPORT  ZRSDRC_CUBE_DATA_GET.
    DATA:
    I_TH_SFC                TYPE  RSDD_TH_SFC,
    I_TH_SFK                TYPE  RSDD_TH_SFK,
    I_TSX_SELDR             TYPE  RSDD_TSX_SELDR,
    RS_C_FALSE              TYPE  RS_BOOL,
    RS_C_TRUE               TYPE  RS_BOOL,
    I_MAX_ROWS              TYPE  I,
    I_AVOID_DUPLICATES      TYPE  RS_BOOL,
    I_SHOW_REPORT           TYPE  RS_BOOL,
    I_SHOW_PLAN             TYPE  RS_BOOL,
    L_FIRST_CALL            TYPE  RS_BOOL.
    DATA E_CUBE_DATA LIKE STANDARD TABLE.
    *E_CUBE_DATA             TYPE  TABLE.
    *I_RETURNOBJ             TYPE  RSDRS_RETURNOBJ.
    *I_RETURNTP              TYPE  RSDRS_C_RETURNTP.
    *RSDRC_C_AUTHCHK-NONE    TYPE RSDRC_AUTHCHK.
    parameters: p_date like sy-datum default '10000101'.
    start-of-selection.
    if not  p_date ge '18000101'
             or not p_date le '99991231' .
       write: 'ok'.
    endif.
    CALL FUNCTION 'RSDRC_CUBE_DATA_GET'
      EXPORTING
        I_INFOCUBE                 = 'CPRD_C50'
      I_TH_FACTTAB               =
      I_CUBETYPE                 =
       I_TH_SFC                   = I_TH_SFC  "Pass Characteristics
       I_TH_SFK                   = I_TH_SFK  "Pass Key Figures
       I_TSX_SELDR                = I_TSX_SELDR
      I_TH_CHA_CHECKFL_0         =
      I_TH_CHA_CHECKFL_N         =
      I_T_SELK                   =
      I_T_RTIME                  =
      I_TSX_MPR                  =
       I_SRDATE                   = SY-DATUM
      I_DERIVE_REQUID            = RS_C_FALSE
      I_TH_CUBE_REQUID           =
      I_T_RPLCHA                 =
       I_NO_NCUM_HANDLING         = RS_C_FALSE
       I_USE_DB_AGGREGATION       = RS_C_TRUE
       I_USE_AGGR_CUBES           = RS_C_TRUE
      I_USE_AGGRCUBE             =
      I_USE_FACTVIEW             = RS_C_UNKNOWN
      I_USE_ODS_TABTP            = RSDOD_C_TABT-ACTIVE
      I_PACKAGED                 = RS_C_FALSE
       I_PACKAGESIZE              = I_MAX_ROWS
      I_MAXROWS                  = 0
      I_ACCESSTP                 = RSDRS_C_ACCESSTP-DEF
      I_NCUM_REPNM               =
      I_NCUM_QUERY               = RS_C_FALSE
      I_NO_NCUM_INTERSECT        = RS_C_FALSE
      I_AUTHORITY_CHECK          = RSDRC_C_AUTHCHK-NONE
      I_CURR_CONVERSION          = RS_C_FALSE
      I_SAMPLE                   = 100
      I_RETURNTP                 = I_RETURNTP
      I_RETURNOBJ                = I_RETURNOBJ
       I_AVOID_DUPLICATES         = I_AVOID_DUPLICATES
       I_PARALLEL_MC              = RS_C_FALSE
      I_PARALLEL_NCUM            = RS_C_FALSE
      I_PARALLEL_SEL             = RS_C_FALSE
      I_PARALLEL_DB              = RS_C_FALSE
      I_REQUID_SPLIT             = RS_C_FALSE
       I_SHOW_REPORT              = I_SHOW_REPORT
       I_SHOW_PLAN                = I_SHOW_PLAN
      I_EXPLAIN_MC               = RS_C_FALSE
      I_QUERY_SCENARIO           = RS_C_FALSE
      I_CALLER                   = RSDRS_C_CALLER-MISC
      I_SET_EMPTY_RESULT         = RS_C_FALSE
      I_REPORTRFC                = ' '
      I_STATICS_CLEANUP          = RS_C_FALSE
      I_DEBUG                    = RS_C_FALSE
      I_NOMES252                 = RS_C_FALSE
    IMPORTING
       E_T_DATA                   = E_CUBE_DATA
      E_TX_DATA                  =
      E_END_OF_DATA              =
      E_EMPTY_RESULT             =
      E_RUN_TIME                 =
      E_TX_SPLITPACK             =
      E_SPLIT_OCCURRED           =
    CHANGING
        C_FIRST_CALL               = L_FIRST_CALL
    EXCEPTIONS
       WRONG_INPUT                = 1
       METADATA_ERROR             = 2
       INHERITED_ERROR            = 3
       NO_AUTHORIZATION           = 4
       NESTED_QUERY_ERROR         = 5
       OTHERS                     = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi SDN Community,
    I have followed the DEMO  on the system and now at least i excute the FM fine, but it retrieves all zeros.  Would you have any clues why it is not executing
    Thank you.
    Simon
    *& Report  RSDRI_INFOPROV_READ_DEMO                                    *
    *& This report is an example of how to use the function modules
    *&      RSDRI_INFOPROV_READ
    *&      RSDRI_INFOPROV_READ_RFC
    *& Please refer to the documentation of those function modules too.
    *& The demo is based on the infocube 0SD_C01 which should be active in
    *& the current system.
    REPORT  zrsdri_infoprov_read_demo                .
    TYPE-POOLS: rs, rsdrc.
    TYPES:
      BEGIN OF gt_s_data,
        ZREP_UNIT(6)                  TYPE c,
        0FUNCT_LOC(30)                TYPE c,
        0FUNCT_LOC__0FUNCT_LOC1(40)   TYPE c,
        0QUANTITY                     TYPE n,  "p DECIMALS 2,
      END OF gt_s_data.
    DATA:
    G_S_DATA = a working area to hold one record as returned by a
               query one the infocube; the structure /BI*/V<Infocube>2
               has a column for every characteristic, navigational
               attribute and key figure of the related infocube. Please
               note that the query might only fill a few of those columns
               that have been requested within the query.
    To avoid transport problems (this report will be delivered with BW,
    regardless whether the infocube 0SD_C01 is activated or not - and
    thus the structure /BI0/V0SD_C012) we will use the locally defined
    structure GT_S_DATA
    g_s_data        TYPE /bi0/v0sd_c012,
      g_s_data        TYPE gt_s_data,
    G_T_DATA = an internal table that can hold the result set
    g_t_data        TYPE STANDARD TABLE OF TYPE /bi0/v0sd_c012
                         WITH DEFAULT KEY INITIAL SIZE 10,
      g_t_data        TYPE STANDARD TABLE OF gt_s_data
                           WITH DEFAULT KEY INITIAL SIZE 10,
    G_S_SFC  = description of a characteristic or navigational attribute
               that is requested by a query
      g_s_sfc         TYPE rsdri_s_sfc,
      g_th_sfc        TYPE rsdri_th_sfc,
    G_S_SFK  = description of a key figure that is requested by a query
      g_s_sfk         TYPE rsdri_s_sfk,
      g_th_sfk        TYPE rsdri_th_sfk,
    G_S_RANGE = description of a restriction on a characteristic or
                navigational attribute
      g_s_range       TYPE rsdri_s_range,
      g_t_range       TYPE rsdri_t_range.
    For the following characteristics / navigational attributes values
    should be returned:
       0MATERIAL, 0MATERIAL__0MATL_GROUP, 0DIVISION
    CLEAR g_th_sfc.
    ZREP_UNIT
    CLEAR g_s_sfc.
    --- name of characteristic
    g_s_sfc-chanm    = 'ZREP_UNIT'.
    --- name of corresponding column in G_T_DATA
    g_s_sfc-chaalias = 'ZREP_UNIT'.
    --- no ORDER-BY
    *g_s_sfc-orderby  = 0.
    --- include into list of characteristics
    INSERT g_s_sfc INTO TABLE g_th_sfc.
    0FUNCT_LOC
    CLEAR g_s_sfc.
    --- name of characteristic
    g_s_sfc-chanm    = '0FUNCT_LOC'.
    --- name of corresponding column in G_T_DATA
    g_s_sfc-chaalias = '0FUNCT_LOC'.
    --- no ORDER-BY
    *g_s_sfc-orderby  = 0.
    --- include into list of characteristics
    INSERT g_s_sfc INTO TABLE g_th_sfc.
    0FUNCT_LOC__0FUNCT_LOC1
    CLEAR g_s_sfc.
    --- name of characteristic
    g_s_sfc-chanm    = '0FUNCT_LOC__0FUNCT_LOC1'.
    --- name of corresponding column in G_T_DATA
    g_s_sfc-chaalias = '0FUNCT_LOC__0FUNCT_LOC1'.
    --- no ORDER-BY
    *g_s_sfc-orderby  = 0.
    --- include into list of characteristics
    INSERT g_s_sfc INTO TABLE g_th_sfc.
    For the following key figures should be returned:
       0QUANTITY
    CLEAR g_th_sfk.
    0QUANTITY
    CLEAR g_s_sfk.
    --- name of key figure
    g_s_sfk-kyfnm    = '0QUANTITY'.
    --- name of corresponding column in G_T_DATA
    g_s_sfk-kyfalias = '0QUANTITY'.
    --- aggregation
    g_s_sfk-aggr     = 'SUM'.
    --- include into list of key figures
    INSERT g_s_sfk INTO TABLE g_th_sfk.
    0INVCD_VAL
    *CLEAR g_s_sfk.
    --- name of key figure
    *g_s_sfk-kyfnm    = '0INVCD_VAL'.
    --- name of corresponding column in G_T_DATA
    *g_s_sfk-kyfalias = '0INVCD_VAL'.
    --- aggregation
    *g_s_sfk-aggr     = 'SUM'.
    --- include into list of key figures
    *INSERT g_s_sfk INTO TABLE g_th_sfk.
    These are the restrictions:
      0CALMONTH  BETWEEN  199901  AND  200106
      0CALMONTH  =  200108
      0CALMONTH  =  200102  (excluding this month)
    CLEAR g_t_range.
    0CALMONTH  BETWEEN  199901  AND  200106
    CLEAR g_s_range.
    --- name of the characteristic
    g_s_range-chanm    = '0FISCPER'.
    --- including or excluding condition ?
    g_s_range-sign     = rs_c_range_sign-including.
    --- comparison operator
    g_s_range-compop   = rs_c_range_opt-between.
    --- low value
    g_s_range-low      = '1999001'.
    --- high value
    g_s_range-high     = '2009001'.
    --- include into list of restrictions
    APPEND g_s_range TO g_t_range.
    ZREP_UNIT BMAPDM  - Read ZN_MRU01
    CLEAR g_s_range.
    --- name of the characteristic
    g_s_range-chanm    = 'ZREP_UNIT'.
    --- including or excluding condition ?
    g_s_range-sign     = rs_c_range_sign-including.
    --- comparison operator
    g_s_range-compop   = rs_c_range_opt-equal.
    --- low value
    g_s_range-low      = 'BMAPDM'.
    --- include into list of restrictions
    APPEND g_s_range TO g_t_range.
    0FISCPER  =  2008002  - Read ZP_FPER
    CLEAR g_s_range.
    --- name of the characteristic
    g_s_range-chanm    = '0FISCPER'.
    --- including or excluding condition ?
    g_s_range-sign     = rs_c_range_sign-including.
    --- comparison operator
    g_s_range-compop   = rs_c_range_opt-equal.
    --- low value
    g_s_range-low      = '2008002'.
    --- include into list of restrictions
    APPEND g_s_range TO g_t_range.
    0CALMONTH  =  200102  (excluding this month)
    *CLEAR g_s_range.
    --- name of the characteristic
    *g_s_range-chanm    = '0CALMONTH'.
    --- including or excluding condition ?
    *g_s_range-sign     = rs_c_range_sign-excluding.
    --- comparison operator
    *g_s_range-compop   = rs_c_range_opt-equal.
    --- low value
    *g_s_range-low      = '200102'.
    --- include into list of restrictions
    *APPEND g_s_range TO g_t_range.
    The reading module is called:
    for demonstration purposes, the result is retrived in packages
    of size 10.
    DATA: g_end_of_data  TYPE rs_bool,
          g_first_call   TYPE rs_bool.
    --- this variable will be set to TRUE when the last data
        package is read
    g_end_of_data = rs_c_false.
    --- this variable indicates whether this is an initial
        call to the reading module or a follow-up call (which
        simply retrieves already selected data)
    g_first_call  = rs_c_true.
    WHILE g_end_of_data = rs_c_false.
      CALL FUNCTION 'RSDRI_INFOPROV_READ'
        EXPORTING
          i_infoprov             = 'CPRD_C50'
          i_th_sfc               = g_th_sfc
          i_th_sfk               = g_th_sfk
          i_t_range              = g_t_range
          i_reference_date       = sy-datum
          i_save_in_table        = rs_c_false
          i_save_in_file         = rs_c_false
          i_packagesize          = 1000
          i_authority_check      = rsdrc_c_authchk-read
        IMPORTING
          e_t_data               = g_t_data
          e_end_of_data          = g_end_of_data
        CHANGING
          c_first_call           = g_first_call
        EXCEPTIONS
          illegal_input          = 1
          illegal_input_sfc      = 2
          illegal_input_sfk      = 3
          illegal_input_range    = 4
          illegal_input_tablesel = 5
          no_authorization       = 6
          ncum_not_supported     = 7
          illegal_download       = 8
          illegal_tablename      = 9
          OTHERS                 = 11.
      IF sy-subrc <> 0.
        BREAK-POINT.   "#EC NOBREAK
        EXIT.
      ENDIF.
    for the sake of the example: print returned data
      PERFORM print_result.
    ENDWHILE.
    RFC
    DATA:
    G_T_RFCDATA = an internal table that can hold the result set as
                  returned by the RFC-enabled function module
      g_t_rfcdata     TYPE rsdri_t_rfcdata,
    For characteristics, navigational attributes and key figures
    the non-RFC structures can be used. Instead of hashed tables
    standard tables are required.
      g_t_sfc         TYPE rsdri_t_sfc,
      g_t_sfk         TYPE rsdri_t_sfk,
    This table receives the description of how the result has been
    encoded into G_T_RFCDATA.
      g_t_field       TYPE rsdp0_t_field.
    Now, the same query will be issued via the RFC-enabled module.
    RFC does not permit hashed tables so standard tables have to be
    used. Alias names for characteristics and key figures in the
    SFC and SFK tables are ignored and need not to be set.
    convert to standard tables
    g_t_sfc = g_th_sfc.
    g_t_sfk = g_th_sfk.
    RFC query is issued. Here, the result cannot be read packagewise
    but has to be read alltogether in one package.
    CALL FUNCTION 'RSDRI_INFOPROV_READ_RFC'
      EXPORTING
        i_infoprov             = 'CPRD_C50'
        i_reference_date       = sy-datum
        i_save_in_table        = rs_c_false
        i_save_in_file         = rs_c_false
        i_authority_check      = rsdrc_c_authchk-read
      TABLES
        i_t_sfc                = g_t_sfc
        i_t_sfk                = g_t_sfk
        i_t_range              = g_t_range
        e_t_rfcdata            = g_t_rfcdata
        e_t_field              = g_t_field
      EXCEPTIONS
        illegal_input          = 1
        illegal_input_sfc      = 2
        illegal_input_sfk      = 3
        illegal_input_range    = 4
        illegal_input_tablesel = 5
        no_authorization       = 6
        ncum_not_supported     = 7
        generation_error       = 8
        illegal_download       = 9
        illegal_tablename      = 10
        data_overflow          = 12
        OTHERS                 = 13.
    IF sy-subrc <> 0.
      BREAK-POINT.     "#EC NOBREAK
    ENDIF.
    The result in G_T_RFCDATA is unwrapped into G_T_DATA
    !!! This only works if G_T_DATA is based on /BI0/V0SD_C012 !!!
    CLEAR g_t_data.
    CALL FUNCTION 'RSDRI_DATA_UNWRAP'
      EXPORTING
        i_t_rfcdata = g_t_rfcdata
      CHANGING
        c_t_data    = g_t_data.
    for the sake of the example: print result
    PERFORM print_result.
    EXIT.
    FORM print_result
    FORM print_result.
      LOOP AT g_t_data INTO g_s_data.
        WRITE: / g_s_data-ZREP_UNIT,
                 g_s_data-0FUNCT_LOC,
                 g_s_data-0FUNCT_LOC__0FUNCT_LOC1,
                 g_s_data-0QUANTITY.
      ENDLOOP.
    ENDFORM.                    "print_result

  • How to pass more than one value in RfcRequest ?

    Hi  Experts,
    I have a FModule (addition) which is exposed as an Enterprise Service. This FM takes two values as input(VAL1 and VAL2) and gives the result (RESULT). I have done the configuration to connect to the backend system via SAP Widget Foundation. When i tried to test in URL :
    http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form , i gave the input for the RFC Query Parameters as : <VAL1>10</VAL1><VAL2>20</VAL2> , but i get an error "Expecting Expression" .
    Am i giving the input in the wrong format ?
    I wrote another FM which doesnt take any input but returns some text as output and  when i queried it via the above URL, i get the correct result. I again tested with changing the Fmodule that accepts one input and returns one output and i find that it returning perfectly.  But when i try with more than one input i get the below error.
    Could some one please help ?
    See the error :
    <?xml version="1.0" encoding="UTF-8"?>
          <root>
             <Status text="expecting expression" code="-1" type="E"/>
             <StatusDetailList>
                <StatusDetail type="I" text="expecting expression" code="0"/>
                <StatusDetail text="" code="0" type="I" source="net.axyana.qizxopen.xquery.XQEvalException: expecting expression at net.axyana.qizxopen.xquery.ext.XfnEval$Exec.eval(XfnEval.java:62) at net.axyana.qizxopen.xquery.op.Expression.evalAsEvents(Expression.java:556) at net.axyana.qizxopen.xquery.op.ElementConstructor.evalAsEvents(ElementConstructor.java:105) at net.axyana.qizxopen.xquery.op.FLWRExpr.evalAsEvents(FLWRExpr.java:423) at net.axyana.qizxopen.xquery.impl.CompiledQuery.evalAsEvents(CompiledQuery.java:82) at net.axyana.qizxopen.xquery.impl.XQueryExprImpl.doExecuteQuery(XQueryExprImpl.java:267) at
    Best Regards,
    Sam..

    Hi John,
    Thank you for your reply.
    Am trying to test my FM(using http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form) as mentioned in this link:
    http://nvpal168.pal.sap.corp:1080/widgetgallery/staticPage.seam?pageId=staticPage9
    I had downloaded the SAP Widget Foundation and its running.
    Using the link : http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form we can test exposed function modules . If you are using SAP Widget Foundation, then the above link will open up a form
    where in the user gives RFC parameters.
    I gave it as <VAL1>10</VAL1><VAL2>20</VAL2> and click on Query RFC = > i get the above mentioned error. If this works, then i can call my function module via Adobe flex using HTTP Service with the service url as "http://localhost:7531/SapMiddleTier/REST/ewcs/service/rfct/form".
    Best Regards,
    Sam.

  • Sender JDBC Adapter Supports Stored Procedures????

    Dear All,
    I was trying to use the Sender JDBC adapter to call the Stored procedure in the Sender JDBC adapter is possible to do this???
    I don't think Sender JDBC Adapter is supported to execute the Oracle Started Procedures. With my understanding only the Receiver JDBC Adapter will supported for the Stored Procedures using the message mapping Action = EXECUTE and Table = DBO.EmployeeMasterTable.
    Please let me know how to achieve the below scenario.
    My Scenario JDBC to RFC
    Query SQL Statement:
    select * from dbo.emp where flag = 'Insert' or flag = 'Update' or flag = 'Delete'
    Update SQL Statement:
    UPDATE dbo.emp SET flag = null WHERE flag IN ('Insert', 'Update');
    DELETE dbo.emp WHERE flag = 'Delete';
    In the my update statement I need to update few data flag with Insert , Update and need to delete the of the old records as mentioned above the query.
    In the response mapping I am using the Action = INSERT and Table = emp.
    Thanks,
    Jane F.

    Hi Jane,
    >>My requirment is to select from the DB and update and delete needs to be done. How I need to call this stored procedure in Sender JDBC adapter.
    An example of SP call is mentioned in the previous note Note 941317 - XI / PI JDBC Adapter: Known Problems / Incompatibilities
    SP Code
              ---------- pkg1 ----------
    CREATE PACKAGE pkg1 AS
      TYPE numset_t IS TABLE OF NUMBER;
      FUNCTION f1(x NUMBER) RETURN numset_t PIPELINED;
    END pkg1;
    CREATE PACKAGE BODY pkg1 AS
    -- FUNCTION f1 returns a collection of elements (1,2,3,... x)
    FUNCTION f1(x NUMBER) RETURN numset_t PIPELINED IS
      BEGIN
        FOR i IN 1..x LOOP
          PIPE ROW(i);
        END LOOP;
        RETURN;
      END;
    END pkg1;
    In sender channel mention
    >> SELECT * FROM TABLE(pkg1.f1(5));
    >>Is this need to be in the one stored procedure right. Can ou let me know how it should be handled in JDBC Adapter.
    Yes it shoudl be a single SP. Mention a select statement as given in above example.
    What is your Oracle version?
    Regards
    Suraj

  • Load Balancing - SMLG Question

    I have a question about the load distribution when using logon groups.
    I have created a logon group in SMLG and it is working to distribute users to different servers.
    It appears that distributes the load based off of a “quality” rating.
    What factors make up the quality rating?  Or what if not the quality rating, what is used to measure load on the servers?

    Hi Drew,
    The quality field display a numeric value from the results of a RFC query
    Read,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/28/1c623c44696069e10000000a11405a/content.htm
    Regards
    Juan
    Please reward with points if helpful

  • How GroupArt remove from one layer to another.

    hi all,
    How GroupArt move from one layer to another.
    Thanks in advance.

    Hi Vijay,
    1) To add new events you have to define a custom action, e.g. under the settings of a button you can choose custom action and define a name for this action
    2) You have to add a custom action, e.g. "next" then you must connect the two layers (drag a line from one layer to the other) and change the event name into "next"
    3) you can pass data from one layer to another like you do it from a form into a rfc/query and so on
    There is also a tutorila available in the help:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/04/80aab03df044ec995000842e77e1be/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/04/80aab03df044ec995000842e77e1be/frameset.htm</a>
    The bank example shows you how to use layers as a wizzard.
    Best Regards,
    Marcel

  • RFC Destination Query

    Hi Experts,
    I have a query on RFC destination.
    We create RFC destination for connecting between ABAP system and XI system.
    Say for example we create ABAPRFC and XIRFC. Now if for some reason say ABAPRFC stops working then will IDOC/Proxy be sent to XI system as XIRFC is working. Also if XIRFC stops working and ABAPRFC is working then can we send IDOC/Proxy to ECC system. Or we need both of them to work for sending data to either of the systems.
    Regards,
    Shaibayan

    Hi Shaibayan,
    Let me explain thru simple example:
    For example:
    1)  We have RFC connection "ABAPRFC" in XI system which is using ECC Target host and ECC system credentials to create connection from XI to ECC, therefore if XI has to send IDoc to ECC it will use "ABAPRFC" connection to connect with ECC system. If "ABAPRFC" connection stops working then XI cannot send IDoc to ECC and IDoc will fail in XI itself.
    But if your RFC connection from ECC to XI is working then XI will continue to receive the IDoc from ECC.
    2) We have RFC connection " XIRFC" created in ECC system which is using XI target host and XI system credentials to connect with XI system from ECC, therefore if ECC has to send IDoc to XI it will use XIRFC connection. If XIRFC connection stops working then ECC will not be able to send the IDoc  to XI and IDoc will fail in ECC itself.
    But if your RFC connection from XI to ECC is working then ECC will continue to receive the IDoc from XI.
    So conclusion here is that you have two seperate RFC connections, one which is created in ECC to send the IDoc to XI and another is created in XI to send the IDoc to ECC.
    Hope it is clear now.
    Let us know if there is any confusion.
    Regards,
    Akshay

  • Mixing Query and RFC: structure problem

    Hi,
    When I use Queries together with RFCs I am facing the following issue: what is the DDIC structure I should use for my RFCs since the Query object in Visual Composer seems to create the output dynamically ?
    Is there a structure in DDIC for each Query that I don't know of ?
    Let's say I want to update the Transaction cube behind the Query (similar to what BI-IP does). Do I have to create the structure each time ?
    Thanks in advance.
    Best regards,
    Guillaume

    BI Queries are based on DDIC-structures. Use in the BI system the transaction rsd1, which leads you to the InfoObject (IO) maintenance screen. Select the IO, that's behind your query field and look at the definitions. You will be able to find domain and DDIC type.

  • RFCs for the Query Designer

    Hello experts,
    does anyone know the RFCs which the Query Designer use? (NW04s SP10)
    Thanks in advance for your help.
    Best Regards,
    Marcel

    Hi Edwin,
    I tried to use this function modules, but it seems that they have bugs, also the transaction rscz, because I copied a query and the copy is different to the original query.
    Any suggestions for RFCs for adding characteristics to row, columns and so on?
    Thanks in advance!
    Best Regards,
    Marcel

  • 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

  • How can I know, which RFC connection is used by my query designer ?

    HI,
    I would like to know,
    which RFC connection is used when i launch the query designer or the report designer or the web designer.
    Thanks.
    Guillaume

    Hi,
    Go to TCODE SM59 and see.
    Regards
    Nilesh

Maybe you are looking for

  • Photosmart C6280 Can't bypass the warnings and print only in black

    I have a photosmart C6280 printer and i want to print in black only, but i can not bypass the "low ink" errors and "expired cartridge" errors to proceed.  I've changed the preferences in my print options to black only but the printer is still flashin

  • How do you Embed a flyer in an email?

    How do I embed a flyer that I have created through Word Project Gallery to an email.  I want the flyer to be open when the user opens the email.  I do not want the flyer to appear as text or an attachment.  This is being sent to customers so I want t

  • Can i use the ipad4 charger to charge up my gopro?

    I'm in a work camp, didn't bring in my wall charger, and I'm wondering if I can use the ipad4 charger on my gopro hero?

  • Changing identity of a legally purchesed used MacBook

    Hi folks. I have just returned to the Apple wprld after too many years in the Windows netherworlds. I am currently an English teacher in Bandung, West Java, Indonesia. I have purchased a used MacBook 2,1. It is running 10.4.11. It was a completely le

  • Help with windows Prcesses  - using "com.jniwrapper.win32.process.Process"

    Hi everybody, I'm trying to get a list of running processes, and for each process I need its Process ID, Process Name, and the command line that run this process. I found a way to get everything but the command-line, by JNI wrappers (below are links