RFC importing parameters values

Hi guys,
One doubt, I've implemented an RFC with a table and an importing parameter of the the type char.
I've done the mapping on the IR and everything is ok.
When I test the scenario, I've introduced a breakpoint on the R/3 side to check if the values are coming right on the rfc, and I'm not getting any values on the table or on the char parameter.
What is the "catch" that I'm missing...?
Thanks in advance.

Hi Naveen,
I've been trying to see if there was any other problem but I can't get anything...
On the R/3 side I now have two importing parameters, two tables and in the exporting parameters I have one char.
"are u testing end to end , that is from xi to r3 or just testign your rfc on the abap side??"
>> The scenario is an end to end, XI calling R/3, sending the xml file with a structure expected (theoretically) by R/3.
"also if you were testing from xi, do u see testing data in sxmb_moni??"
>> Yes, I see my XML file one the sending data.
did you make any changes to the rfc after you imported the rfc into XI??
>> No, the RFC is rightly imported...
When I test the scenario, when the RFC is called, on the breakpoint I don't get any of the tables filled...
Do you have any suggestions why isn't XI filling the tables?

Similar Messages

  • Import parameter value for FM RH_OM_ATTRIBUTES_READ

    Hello SRM Gurus
    What is the import parameters values for the function module RH_OM_ATTRIBUTES_READ to read Org.Structure parameter values in SRM 7.0 system?
    Is below parameter value is correct?
    PLVAR = u201801u2019
    OTYPE =u2019Ou2019
    OBJID = userid
    SCENARIO = u2018BBPu2019
    SELDATE = SY-datum
    I am not able to  read any data.
    Kindly share your experience.
    Thanks.
    Preethi.

    Hi
    Under Object Type(OTYPE) you are entering as "O" - means Org Unit
    So you need  to enter Org Unit under Object ID (OBJID) and not the user Id
    Hope this is clear to you now

  • Re: regarding import parameters in rfc

    Hi,
       I  have to pass some import  parameters to bapi
    BAPI_ACC_INVOICE_RECEIPT_POST. This is for tcode f-43.
    But it was giving error that there is a error in the header. Actually for the tcode f-43 sap is creating internal number automatically for document number. If iwant to pass a document number to the rfc, Can i pass the number by my own or is there any procedure.
    rgds
    p.kp

    Hi,
    Leave the Document Header Empty Since when we r supplying Document Type there is no need to supply documnet header (Since Document type will have Internal number assigned ,reference no can be passed instead of document header...)
    Regards,
    Sridhar Reddy

  • Are Import parameters compressed in external JCo RFC calls?

    I would like to send XML data from a Java program to an SAP ABAP System running on NW 7.02.
    The connection is done by Java Connector 3.0. The XML file should be passed as a parameter of an RFC function module.
    In older versions the data would have been passed as a TABLES parameter and would be compressed automatically if the payload exceeds 8kb or the connection would be marked as a slow connection. (see also Note 977407).
    Now I would like to use the basXML RFC protocol. There it is advised to use Table Types in Import parameters instead of TABLES parameters for table data. Now will the data be compressed if I send them as Table data in an Import parameter? And will they also be compressed when I send them as an Import parameter as STRING or XSTRING instead of a table?
    Unfortunately the help documentation is incomplete on these topics and I did not find any details for this scenario.

    Yes it is possible
    SAP JCo can be implemented with Desktop applications and with Web server applications.
    SAP JCo is used as an integrated component in the following applications:
    ●     SAP Business Connector, for communication with external Java applications
    ●     in the Application Server, for connecting the integrated J2EE server with the ABAP environment.
    SAP JCo can also be implemented as a standalone component, for example to establish communication with the SAP system for individual online (web) applications.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/09/a4a9e1d51d11d6b2c200508b5d5c51/frameset.htm

  • Importing parameters RFC from SAP

    Hi,
    I read that is possible call a RFC from SAP using 'call fm destination xx in background'. But, how can i get importing parameters if the fm is asynchronous?
    I'll apreciated any helps! thanks,
    Alexandre!
    Message was edited by: Reiner Hille-Doering (marked as question)

    Hi Alexandre,
    I guess you should use the refernce fields when you indicate them ref. you can access the parameters, These will extra memory so it is better if you include whenever they are necessary
    Regards
    ram

  • VBA and RFC - How to deal with tables in export/import parameters

    Hi,
    maybe one of you can support me...
    I have a couple of vba modules reading and writing data to SAP by means of function modules. As usual, they use export and import parameters as well as tables (in the table section). They work very well.
    Now, I want to execute some newer function modules and they don't use tables in the table section (because they're obsolete nowadays), instead they expect the tables as export resp. import parameters. I tried it in a couple of ways, without any success.
    Has anybody tried this before? And if so, do you mind share some snippets?
    Best regards, Thomas

    Hello Thomas,
    I think we discussed the same problem here, but unfortunately without any result. Please, take a look at this post and let us know.
    Cheers
    Stefan

  • RFC Tables Parameters

    Hello all
    I am having performance issues relating to an RFC call between CRM and ECC. I have been asked to get an RFC call between the two working as quickly as possible.
    The code is as optimised as possible, I have replaced onerous FM calls with bespoke code and optimised select statements.
    But for some reason I have a niggling thought in the back of my mind that no tables should be passed to the RFC FM in the IMPORTING parameters section and should be passed as TABLES parameters only.
    Does anyone know if this is true or not. I have found OSS note 888777 which says that this is true in relation to ABAP-JAVA comms but it doesn't say whether this is the case in ABAP-ABAP.
    Any advice/comments most welcome.

    Just the once.
    The signature of the FM is:
    *"  IMPORTING
    *"     VALUE(I_FIELD1) TYPE  ANYFIELD OPTIONAL
    *"     VALUE(IT_TAB1) TYPE  ANYTABLE
    *"     VALUE(I_FIELD2) TYPE  ANYFIELD OPTIONAL
    *"     VALUE(I_FIELD3) TYPE  ANYFIELD OPTIONAL
    *"     VALUE(IT_TAB2) TYPE  ANYTABLE OPTIONAL
    *"  EXPORTING
    *"     VALUE(EV_RETURN) TYPE  BAPIRET2
    *"  TABLES
    *"      IT_TAB3 STRUCTURE  ANYTABLE
    I'm just wondering whether removing the IT_TAB1 and IT_TAB2 parameters from the IMPORTING section and placing them in the TABLES section would have any performance improvements.

  • Setting RFC import structure

    Hello Everyone.
    What would be the proper way to set an import value for a WSDL RFC call using a model node (not attribute) that has a 0...1 cardinality? I have tried every method to no avail.

    I am specifically trying to call the HRWPC_GET_NAV_SUBTREE RFC. The ComplexType_HRROOTOB model object has two attributes of "oBJID" and "oTYPE".
    Here is a snippet of my code:
    public void wdDoInit(){
    Request_HRWPC_GET_NAV_SUBTREEPortType_HRWPC_GET_NAV_SUBTREE subtree_request =  new Request_HRWPC_GET_NAV_SUBTREEPortType_HRWPC_GET_NAV_SUBTREE();
    ComplexType_HRWPC_GET_NAV_SUBTREE subtree_parameters = new ComplexType_HRWPC_GET_NAV_SUBTREE();
    ComplexType_HRWPC_S_KEYOBJEC subtree_objects = new
    ComplexType_HRWPC_S_KEYOBJEC();
    ComplexType_HRWPC_S_KEYSTRUC subtree_struct = new
    ComplexType_HRWPC_S_KEYSTRUC();
    ComplexType_HRROOTOB subtree_root = new ComplexType_HRROOTOB();
    subtree_parameters.addRESULT_OBJEC(subtree_objects);
    subtree_parameters.addRESULT_STRUC(subtree_struct);
    subtree_request.setROOT(subtree_root);
    subtree_request.setParameters(subtree_parameters);
    wdContext.nodeRequest_HRWPC_GET_NAV_SUBTREE().bind(subtree_request);
    wdThis.executeGetNavSubtree();
    public void executeGetNavSubtree( )
         String objid = "50000113";
         String otype = "O";
        if(wdContext.nodeRESULT_OBJEC().currentRESULT_OBJECElement() != null){
              objid = wdContext.nodeRESULT_OBJEC().currentRESULT_OBJECElement().getOBJID();
              otype = wdContext.nodeRESULT_OBJEC().currentRESULT_OBJECElement().getOTYPE();
    Here is the part where (I assume) the import parameters for the ROOT property need to be set (ComplexType_HRROOTOB), Do you know how specifically do I do this? It is a model node with cardinality 0...1
    I have tried something along the lines of this to no avail. It look as if for some reason, the setting of the values to the model node do not work correctly.
    ComplexType_HRROOTOB new_root = new ComplexTypeHRROOTOB();
    new_root.setOBJID(objid);
    new_root.setOTYPE(otype);
    OR
    wdContext.nodeROOT().currentROOTElement().setOBJID(objid);
    wdContext.nodeROOT().currentROOTElement().setOTYPE(otype);
    wdContext.nodeSUBTREE_parameters().currentSUBTREE_parametersElement().
           setNAVTYPE(navType);
         //$$begin Service Controller(-901424175)
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         try{
              wdContext.currentRequest_HRWPC_GET_NAV_SUBTREEElement().modelObject().execute();
              wdContext.nodeSUBTREE_Response().invalidate();
              wdContext.nodeSUBTREE_Result().invalidate();
              wdContext.nodeSUBTREE_RESPONSE_rESULT_STRUC().invalidate();
              wdContext.nodeSUBTREE_RESPONSE_rESULT_OBJEC().invalidate();
         } catch(Exception ce) {
              manager.reportException(ce.getMessage(), false);
        //@@end
    Message was edited by: Trent Taylor

  • Functional module table parameters values not getting displayed in Java sys

    Hi,
    We are calling the Table parameter through Java code from functional
    module ZCRM_ICSS_PROJ_CUST_USR is not giving any rows value .If I execute
    the same functional module with passing the import parameter value User
    id: MLDL010 its giving value in CRM.
    I am checking Function module( Remote enabled ) in Debugging mode,
    before displaying values it is raising message like
    SY-MSGNR - 005
    SY-MSGTY - CRM_LINK
    in T100 Table
    SPRSL : EN
    ARBGB : CRM_LINK
    MSGNR : 005
    TEXT :'No Links corresponding to the specified data could be determined'
    Is that related to any communication problem CRM & JAVA ICSS System ?
    Regards,
    Pavan.

    The message in simple English just means that "You are doing something really bad" !!! It is absolutely not the communication problem, but understanding problem.
    Though you may be executing the same function using SE37 or in the webshop application through JCo, the runtime context is different and without knowing what exactly your Z rfc is doing, it is very difficult to help. To start with, the userid - that is who is running the RFC is different in both situations. In SE37, it is the logon user and in the web, depending upon whether the connection is stateless or stateful, it could be the anonymous ICSS user or the logged in user. Here again, if you have used UME, it is the user id and if you have used ALIAS user, then it is the alias user id. This is just an example. Your runtime context can be different due to many other reasons too.
    So, to make this simpler - what is that you are trying to do?
    BTW, try not to create multiple threads for the same issue..

  • How does one pass import parameters to a report within a method?

    Hello all,
    Well how does one  pass import parameters to a report which is within a method ...end method.
    for example :
    method 123
    SUBMIT reportname using selection '1000'
    endmethod .
    Here we need to pass values into the selection screen and run the report for those values.
    The values are say 'ABC'   (  tablename "DEF" and field name "HIJ" ).
    I hope the question is clear, awaiting your response 
    Thanks and Regards,
    Sandeep.

    Go to SE24
    Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g :  Parameter is "P_CONT" , its associated type "CHAR32" etc
    For Select Options:  Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
    LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
    NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
    See if this is clear to you or revert back in case of any Confusion.

  • Import parameters in a FM with a previous date

    Dear experts,
    I need to default the import parameters in one of my function modules with a previous date.
    For eg: if i hiit F8 on my Z** function module the default value should be YESTERDAYS date NOT todays date.
    How can i do this?
    Thanks
    Ricky

    Check in the code whether the import parameter was supplied, and if it wasn't, then calculate the value by deducting 1 from today's date.
    So something like:
    IF I_DATE IS NOT SUPPLIED.
      I_DATE = SY-DATUM - 1.
    ENDIF.
    Edit: Upon re-reading your question, I see that you want to set the default only in the FM test environment... off the top of my head, I don't know a way to calculate the previous day like that. But the above code works as setting a default if the FM is called from a program - provided the parameter is set up as 'Pass by value'.
    Edited by: Tamas Hoznek on Apr 21, 2011 12:07 PM

  • Import parameters in jco

    All,
    Can anyone tell me how to use a table import parameters in a jco call
    Thanks

    One Example using Sap Enterprise Connector with JCO:
    RFC: BAPI_FLIGHT_GETLIST
    EnterpriseConectorTest connector = null;
    try {
         connector = new EnterpriseConectorTest();
         connector.client = JCO.getClient(POOL_NAME);
         System.out.println("Client: " + connector.client.getAttributes());
         Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
         BAPI_FLIGHT_GETLIST_PortType proxy = new BAPI_FLIGHT_GETLIST_PortType();
         proxy.messageSpecifier.setJcoClient(connector.client);
         //BapisfldatType datType = new  BapisfldatType();
         //datType.setAirline("AA");
         //Bapi0002_1Type types = new Bapi0002_1Type();
         //types.setComp_Code("AA");
         input.setAirline("AA");
         Bapi_Flight_Getlist_Output output = proxy.bapi_Flight_Getlist(input);
         BapisfldatType[] list = output.getFlight_List();
         System.out.println("Size: " + list.length);
         for (int i = 0; i < list.length; i++) {
              BapisfldatType type = list<i>;
              System.out.println(type.getAirline() + " - " + type.getCityfrom());
    } catch (Exception e) {
         e.printStackTrace();
    Regards
    Marcos

  • Selection for up to 3 import parameters

    Hi,
    I am creating a FM for a BAPI that has to select data based on the following prerequisites:
    2 tables are to be used:
    table_h:
    salesman_no  key     BusinessPartner
    record last changed   DATS
    table_i
    Salesman_no  key    BusinessPartner
    ProductID                
    ProductPrice
    A bapi has to be generated from a FM that has these import parameters:
    I_Salesman_no1
    I_Salesman_no2
    I_Salesman_no3
    The user who requests the data can ask for 1 to 3, but at least 1. That gives the 3 possible combination of searched:
    Salesman_no1 only (mandatory for search)
    Salesman_no1 and Salesman_no2
    Salesman_no1 and Salesman_no2 and Salesman_no3
    The search has to find productprices for either 1, 2 or 3 salesmen and return the data to an output table within the FM.
    What puzzles me is: How to handle the various numbers of import  parameters / selections in the source code for the FM ?

    You can create a range and fillup the values in the range and use that range in the selection.
    Like:
    DATA: R_KUNNR TYPE RANGE OF KNA1-KUNNR,
    LA_KUNNR LIKE LINE OF R_KUNNR.
    IF I_IMPORT_1 IS NOT INITIAL.
    LA_KUNNR-SIGN = 'I'.
    LA_KUNNR-OPTION = 'EQ'
    LA_KUNNR-LOW = I_IMPORT_1.
    APPEND LA_KUNNR TO R_KUNNR.
    CLEAR LA_KUNNR.
    ENDIF.
    IF I_IMPORT_2 IS NOT INITIAL.
    LA_KUNNR-SIGN = 'I'.
    LA_KUNNR-OPTION = 'EQ'
    LA_KUNNR-LOW = I_IMPORT_2.
    APPEND LA_KUNNR TO R_KUNNR.
    CLEAR LA_KUNNR.
    ENDIF.
    IF I_IMPORT_3 IS NOT INITIAL.
    LA_KUNNR-SIGN = 'I'.
    LA_KUNNR-OPTION = 'EQ'
    LA_KUNNR-LOW = I_IMPORT_3.
    APPEND LA_KUNNR TO R_KUNNR.
    CLEAR LA_KUNNR.
    ENDIF.
    SELECT KUNNR
    INTO IT_KNA1
    FROM KNA1
    WHERE KUNNR IN R_KUNNR.
    Regards,
    Naimesh Patel

  • How to call an eCATT programmatically with import parameters

    Hi there,
    I am using function module ECATT_EXECUTE to call test scripts from within ABAP test code, like below. Unfortunately, I am not able to pass my actual import parameter values. It seems that the interface does not provide a way to pass import parameters to the eCATT.
    Although posted in November, this is still an issue for me. Does anybody know an answer?
      call function 'ECATT_EXECUTE'
        exporting
          to_execute              = lt_script
          display_log             = space
          i_supress_output        = 'X'
        importing
          executed                = lt_executed
          logid                   = ls_logid
          trace_prot              = lt_trace
        exceptions
          nothing_to_do           = 1
          too_many_scripts_called = 2
          others                  = 3.
    Does anybody reading this have a solution?
    Thanks and regards,
    Rüdiger
    Edited by: Rüdiger Plantiko on Jan 17, 2008 3:05 PM
    Edited by: Rüdiger Plantiko on Jan 17, 2008 3:05 PM

    Hello Rüdiger,
    direct passover would be fine - well, I've come to get used to finding workarounds in SAP though. Maybe, the function module will support the missing parameters in some forthcoming release.
    Btw I switched over to tables ECTC_VAR / ECTC_DATA and pass obj_type = 'ECTC' to ECATT_EXECUTE, since test configurations can directly be executed.
    You don't happen to know what has to be done, if the call of ECATT_EXECUTE results in a dump? After correctly executing the test configuration. Looks like eCatt tries to put the resulting log to nowhere. Perhaps I have to initialize some kind of a log receiver first or set some option in the start profile? I passed DISPLAY_LOG = SPACE, and SUPPRESS_OUTPUT = 'X'.
    Dump was:
    Laufzeitfehler         OBJECTS_OBJREF_NOT_ASSIGNED
    Datum und Zeit         05.03.2008 17:37:00
    Zeile Quelltext
         1 METHOD http_send_and_receive .
         2
         3   DATA: l_errortext       TYPE string.
         4   DATA: l_http_subrc      TYPE sy-subrc.
         5 *----------------------------------------------------------------
         6
    >>>>>   im_http_client->request->set_data( data = im_request ).
         8
    Aktive Aufrufe/Ereignisse
    Nr.   Art          Programm                            Include                             Zeile
          Name
        6 METHOD       CL_HTTP_TESTZONE_RESULT=======CP    CL_HTTP_TESTZONE_RESULT=======CM00Q     7
          CL_HTTP_TESTZONE_RESULT=>HTTP_SEND_AND_RECEIVE
        5 METHOD       CL_HTTP_TESTZONE_RESULT=======CP    CL_HTTP_TESTZONE_RESULT=======CM00O    16
          CL_HTTP_TESTZONE_RESULT=>HTTP_REQUEST_NEWRESULTID
        4 METHOD       CL_HTTP_TESTZONE_RESULT=======CP    CL_HTTP_TESTZONE_RESULT=======CM00T    34
          CL_HTTP_TESTZONE_RESULT=>SEND_TO_RESULT_REPOSITORY
        3 METHOD       CL_APL_ECATT_LOG_TO_RESREP====CP    CL_APL_ECATT_LOG_TO_RESREP====CM001   400
          CL_APL_ECATT_LOG_TO_RESREP=>GET_LOG_DATA
        2 FUNCTION     SAPLECATT_EXECUTE                   LECATT_EXECUTEU01                     888
          ECATT_EXECUTE
        1 EVENT        ZDSD_SL_VIA_CATT                    ZDSD_SL_VIA_CATT                       26
          START-OF-SELECTION
    Regards + have a nice weekend,
    Matthias

  • UDF Importing Parameters

    Hi all,
    I have a user defined function which contains 32 importing parameters to pass to RFC for RFC lookup.
    But in UDF editor its allowing only 20 importing parameters to enter.
    Can any one help me out in this?
    please suggest me a best way to proceed.
    Thanks in advance,
    Sri.
    Message was edited by:
            sri kanth

    Hi sri,
    make two UDFs:
    The first write 20 parameters in an arrayList and writes it to the global container element
    The second read the global container element and the remaining parameters.
    Regards Mario

Maybe you are looking for

  • GUI seems to lock, but computer not crashed

    II've got a Mac mini 2010 server, that now has 2 x 1TB SSD and 16GB ram (user installed, but , whilst I'm not an expert, it's not the first time I've installed components in a mac). I'm in the process of trying to set it up as a home server, however

  • Sorting Albums in alphabetic order on iPad

    I set up a set of Albums in iPhotos on my iMac. Later I added a new album and it went to the bottom of the list of albums on the left side of screen. I physically dragged that last album up among the other albums to put it in alpha order. All well an

  • Email Notification on Home Screen

    Hi everyone, todays N97 problem appears to be as follows.......... After going through half a dozen email clients i finally went back to the default one installed in the phone and for the past 4 days i have been using it without any problems what so

  • Budget Control System (BCS) - Priod control for multi year budgeting

    Dear Experts, My client wants to control budget of projects, both per year  and multi-year control. Can it be done using period control ? Can you suggest alternative solutions (better ones) to this issue ? Thanks, Yaacov

  • Not more than 4 files in a directory .... ?????

    Hi Do you know how can restrict a directory only to allow 4 files .... I have a program in C who save image every second, and if i leave it running mayby i have to said good bye HD space, :) Thge point is that i want to use the output, but i only wan