RFC is not returning parameters

Hi All,
I have written an Java code in my UDF to call the RFC. Basically i am sending some Import parameters to RFC and getting the Export parameters from the RFC. My RFC structure is like this.
XX_RFC
    IMPORT
       a
       b
    EXPORT
       c
       d
       e
My UDF code (Queue) is :
AbstractTrace trace;
java.util.Map map;
map = container.getTransformationParameters();
trace = container.getTrace();
trace.addDebugMessage(" XX_RFC lookup started ");
String strSystem =  (String) map.get(StreamTransformationConstants.RECEIVER_SERVICE);
String[] tagNames = { "a", "b"};
ArrayList arrayList = new ArrayList();
int iNoOfValuesToBeSet = a.length;
try {
     RFCLookup rfcl = new RFCLookup("XX_RFC");
     rfcl.setConn(strSystem,"RFCLookUp_Receiver");
     arrayList.add(a);
     arrayList.add(b);
     rfcl.setTable(arrayList, "IMPORT", tagNames, iNoOfValuesToBeSet);
     trace.addInfo(" Table set. Going to invoke RFC.");
     trace.addDebugMessage("\n Start of Request XML \n" + rfcl.getRequestRoot() + "\n *** End of Request XML *** \n");
     rfcl.invoke();
     trace.addInfo("RFC invoked. Parsing the Response.");
     trace.addInfo("\n Start of Response XML \n" + rfcl.getResponseRoot() + "\n *** End of Response XML *** \n");
     strArrTempOut1 = rfcl.getParam("EXPORT", "c");
     strArrTempOut2 = rfcl.getParam("EXPORT", "d");
     strArrTempOut3 = rfcl.getParam("EXPORT", "e");
}catch (Exception e) {
     trace.addWarning("!!! Exception caught !!! " + e+ " : \n" + e.toString());
finally
I have declared all the global variables in the Java section and i am writing an UDF for using those global variables.
the UDF (Queue) is :
if(strArrTempSTRASOut == null)
  result.addValue("");
else
for (int i=0;i<strArrTempOut1.length;i++)
                     result.addValue(strArrTempOut1<i>);
When i call the RFC with a valid data, my output XML is not getting formed actually. But, the RFC is working fine when i check it in the SAP system. Any help would be greatly appreciated.
regards,
Sherin Jose P

Hi Sherin,
       Please refer the following blog to acehive your Functionaliy.Its very simple to use and .Because the lookup code gives you RFC response  as XML. apply the DOm parisng code to get the desired value from the output XML structure.Follow the article and use the following piece of code in the 5th step of the code given in the article.
http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417400)ID0702528050DB00626426829334031456End?rid=/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439&overridelayout=true
*5. Execute lookup.*
       Payload result = accessor.call(payload);
       InputStream in = result.getContent();
     /*  out = new ByteArrayOutputStream(1024);
       byte[] buffer = new byte[1024];
       for (int read = in.read(buffer); read > 0; read = in.read(buffer))
       out.write(buffer, 0, read);
       content = out.toString();*/  you can avoid the commented code
       DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
       DocumentBuilder builder = factory.newDocumentBuilder();
       Document document = builder.parse(in);
       NodeList list = document.getElementsByTagName("C"); //same way for D, E
       Node node = list.item(0);
       if (node != null) {
            node = node.getFirstChild();
            if (node != null) {
                  Cvalue = node.getNodeValue(); //Desired value of C in string
Thanks,
Ram.

Similar Messages

  • RFC Call not returning in normal exec;retunrs in debugger

    Hi all
    i m sorry for posting it twice,due to my ignorance
    i first posted it in wrong forum
    i had a requirement to invoke a RFC Async and recieve the results in my program with a condition that the name and parameters of RFC are determined runtime.
    To meet this requirement, i generated a the RFC call and return form code dynamically and called that code from my program via a subroutine.
    The problem i am facing is that, whenever i execute my program in debug mode the RFCs are called and the parameters are returned( perform on end of task edition is used)
    via subroutine, but when i execute the code via F8 the program goes in indefinite wait for return parameters.I am calling 2-3 RFcs at same time, and all of them are on local host.
    the Functions are working well and the RFC destination is also working well.
    But this amalgum of my program and dynamic calls is not going through.
    I read in documentation that if we change the program context or the roll area then the results are not recieved by main program. by the way i am using WAIT to receive the results.
    For the moment if i consider, my program context or roll area is getting changed because of dynamic code generation then also the dynamically generated code is the one containing the RFC call and its revieve subroutine, therefore there shall be no problem with that, the other thought i am getting is that in debugger implict commit work happens, is the program working because of that in debugger?? i dont know....
    Can any one help me with this, in the above long paragraph if anyone gets confused..i can again try to restate my problem.
    One more thing..i have checked the ST22 and SM50 for any abnormalities, couold not find one.
    thanks in advance
    praveen

    WAIT statement also triggers a DB commit like debugger.
    Are you using WAIT UNTIL <condition>?
    Regards
    Sridhar

  • Simple RFC call not returning results

    Hi,
    I have created a VERY simple Dynpro project to return the results of a simple RFC.  I've created the JCO connections and they test fine but the RFC doesn't return results to my application.
    Steps:
    1. create the project
    2. import the RFC Adaptive Model specifying the JCO connections
    3. Create an application
    4. Add the rfc model to the "Models Used"
    5. Bind the model to the component
    6. Context map two variables to the view (one input and one output)
    7. Create the method on the component
    8. Bound the UI elements to the model
    9. Set up the JCO connections from http://portal:50000/webdynpro/welcome
    For the JCO Connection creation, I used "Application" type through a load balanced connection for the Model Data connection (WD_MODELDATA_DEST) and the "Dictionary" type for the Metadata connection (WD_RFC_METADATA_DEST).
    Code:
    1. In the wdDoInit() of the controller
    wdContext.nodeZ_Hr_Get_Perno_Input().bind(new Z_Hr_Get_Perno_Input());
    2. In the wdDoInit() of the view
    wdContext.currentContextElement():setLogin_id( "mylogon" );
    wdThis.wdGetRfcTestComponentController().executeZ_Hr_Get_Perno_Input();
    My gut tells me it's an issue with my JCO connections but I can't be sure.
    I'm using Developer Studio SP9 with Patch 1 connecting to EP6 SP9 Patch 6.  When I start the Dev Studio, however, it displays version 2.0.9, is this the same for everyone?
    I've tested the function module from SE37 and it definitely returns a value. Also, if I don't set the login_id in the wdDoInit() before executing, it gives me the error that the input variable has not been set. So, this tells me that it connected to R3 to know that the variable was not passed but it still doesn't return any value when the variable is passed.
    Any ideas??  HELP!!!!!!!!!!
    Thanks,
    Andrew

    Okay, I'm not going crazy.  The issue was with my "simple" rfc.  When I changed the input and output to char(), it returned as expected.  I just have to figure out why the Dictionary types from R3 caused an issue.
    Andrew

  • RFC call do not return any value

    Hi All,
    I have an RFC written in one R/3 system(call center R/3) and i am calling this RFC in the ERP system.
    If i try to run the RFC locally in the call center system ,it runs correctly and returns me proper values.
    But when i try  to call it from other R/3 system(ERP) the RFC does not return value.(both cases i am passing same parameters).
    Also , RFC parameters are defined with pass by value option.
    I am not able to trace why this behaviour,can anyone pin point what could be the possible cause of error.
    Thanks in advance,
    Swati

    No ,there i snot RFC connection problem ,i have checked it from SM59.
    Neither do i get any dump or error of no authorization.In fact the sy-subrc after the RFC call is 0.
    St22 do not have any trace for the same.
    my RCC call is something like this,
    IF dest <> ' '.
    CALL FUNCTION 'Z_GET_CIC061' DESTINATION dest
                      EXPORTING
                           p_comp        = itab_cic-company
                           p_asc_code    = itab_cic-customer
                           p_wbill_no    = itab_cic-bill_no
                      IMPORTING
                           e_tr_no       = tr_no
                           e_model_code  = model_code
                           e_data_origin = data_origin
                     EXCEPTIONS
                             communication_failure = 1
                             system_failure        = 2.
    ELSE.
                MESSAGE i000 WITH 'RFC Destination is empty!'.
                EXIT.
              ENDIF.
    Can anyone please suggest whats wrong in the above code.
    Also what is transaction RFC call?is it related to what i am using in the above code of mine.
    Thanks in advance,
    Swati

  • Oralce Store Procedure not returning values in out parameters

    I am goig to execute an oracle store procedure using C# through through ODP.NET. The store procedure executes succsfully but it does not return any value in the out parameter.
    When I execute the same store procedure with the same input parameteres from within SQL*Plus. It does return values.
    This is to be clearify here that in the oracle store procedure the data type for the out parameter is number and in the c# the variavle that will hold its value is Integer. I also tried using Long on the C# side but it is still not working. After the successfull execution of the store procedure the C# variable contains nulll value.

    I am goig to execute an oracle store procedure using C# through through ODP.NET. The store procedure executes succsfully but it does not return any value in the out parameter.
    When I execute the same store procedure with the same input parameteres from within SQL*Plus. It does return values.
    This is to be clearify here that in the oracle store procedure the data type for the out parameter is number and in the c# the variavle that will hold its value is Integer. I also tried using Long on the C# side but it is still not working. After the successfull execution of the store procedure the C# variable contains nulll value.

  • How do I get return parameters from a stored procedure call?

    The Open SQL Statement has an option on the Advanced tab to specify a command type of 'stored procedure'. In addition to returning a recordset, a stored procedure can also return parameters (see http://support.microsoft.com/support/kb/articles/Q185/1/25.ASP for info on doing this with ADO). Is it possible to get those return parameters with TestStand? In particular, I want to be able to get error codes back from the stored procedure in case it fails (maybe there is another way).

    The Open SQL Statement step type does not fully support stored procedures. If the procedure returns a record set than you can fetch the values as you would a SELECT statement. Stored procedures require you to setup the parameters before the call and this is not yet supported. Bob, in his answer, made a reference to the Statements tab and I think that he was talking about the Database Logging feature in TS 2.0.
    If the stored procedure is returning a return value, it may return as a single column, single row recordset which can be fetched as you normally do a record set.
    Scott Richardson
    National Instruments

  • RFC is not inserting the data

    Hi all,
                    I did File to RFC scenario. My problem is when i send message the message is showen as processed successfully in SXMB_MONI. But RFC is not inserting my data in a specified table. I couldn't found where i am wrong.
    my sender strucure is:
    <MANDT>
    <WORKDATE>
    <EMPLOYEENUMBER>
    <CATSHOURS>
    R3 table name is ZTESTCATSDB
    My RFC source code is :
    FUNCTION Z_POST_TEST.
    ""Local Interface:
    *"  TABLES
    *"      CATSRECORDS_IN STRUCTURE  ZTESTCATSDB OPTIONAL
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
      data wa_cats like ZTESTCATSDB.
      data wa_catdb like ZTESTCATSDB.
      data ztab  like ZTESTCATSDB OCCURS 0 WITH HEADER LINE.
      loop at catsrecords_in into wa_cats.
        ztab-WORKDATE = wa_cats-workdate.
        ztab-empnum = wa_cats-empnum.
        ztab-catshours = wa_cats-catshours.
        append ztab.
      endloop.
      insert ZTESTCATSDB from table ztab.
      commit work.
    ENDFUNCTION.
                          Plese tell me any one where i am wrong it is very urgent for me.
    Thanks,
    Satish.

    You should always check the system return code (sy-subrc) after any insert and update statement like this:
    insert ...
    if sy-subrc > 0.
      message E...
    else.
      commit work.
    endif.
    Hope that helps,
    Stefan

  • Function Module - E_T_DATA does not return data

    Hi
    I am trying to create a fuction module Generic extraction, the code belwo dosen't return any data.
    when i debug YBW_MAT_STAT does have but after E_T_DATA = YBW_MAT_STAT it dose not return any data
    can you help?
    Ramesh
    FUNCTION YBW_FM_ACTIVE_MATERIAL.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  YBW_MAT_STAT OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    Example: DataSource for table SFLIGHT
      TABLES: YBW_MAT_STAT.
    Auxiliary Selection criteria structure
    DATA: L_S_SELECT TYPE SRSC_S_SELECT.
       DATA : YBW_MAT_STAT type YBW_MAT_STAT occurs 0 with header line.
    Maximum number of lines for DB table
      STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    counter
              S_COUNTER_DATAPAKID LIKE SY-TABIX,
    cursor
              S_CURSOR TYPE CURSOR.
    Select ranges
    Comment copy code
    RANGES: L_R_CARRID  FOR SFLIGHT-CARRID,
             L_R_CONNID  FOR SFLIGHT-CONNID.
    DATA: begin of t_marc occurs 0,
    ZMATNR type MATNR,
    ZWERKS type WERKS,
    end of t_marc.
    DATA: begin of t_ytmd_mat_ref occurs 0,
    ZMATNR type MATNR,
    ZYNA_MATNR_ST type YNA_MATNR_ST,
    ZYEAME_MATNR_ST type YEAME_MATNR_ST,
    ZYFIN_MATNR_ST type YFIN_MATNR_ST,
    end of t_ytmd_mat_ref.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF I_INITFLAG = SBIWA_C_FLAG_ON.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE I_DSOURCE.
          WHEN 'ZAINV_MAT_STATUS'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE E009(R3). ENDIF.
    this is a typical log call. Please write every error message like this
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE   "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
        APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    Fill parameter buffer for data extraction calls
        S_S_IF-REQUNR    = I_REQUNR.
        S_S_IF-DSOURCE = I_DSOURCE.
        S_S_IF-MAXSIZE   = I_MAXSIZE.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
      ELSE.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF S_COUNTER_DATAPAKID = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          SELECT MATNR WERKS FROM MARC into table t_marc where MATNR BETWEEN '4233940M1' and '4233950M1'.
          loop at t_marc.
            SELECT MATNR YNA_MATNR_ST YEAME_MATNR_ST FROM YTMD_MAT_REF into table t_ytmd_mat_ref where MATNR = t_marc-zmatnr.
              loop at t_ytmd_mat_ref.
                if t_marc-zwerks = 'GB71' AND t_ytmd_mat_ref-ZYEAME_MATNR_ST = 'A'.
                  read table t_ytmd_mat_ref with key zmatnr = t_marc-zmatnr.
                  YBW_MAT_STAT-matnr = t_marc-zmatnr.
                  YBW_MAT_STAT-plant = t_marc-zwerks.
                append YBW_MAT_STAT.
                clear YBW_MAT_STAT.
                endif.
               endloop.
          endloop.
        ENDIF.                             "First data package ?
         clear E_T_DATA.
         refresh E_T_DATA.
         E_T_DATA = YBW_MAT_STAT.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.

    Hi
    I have a question,
    With the above code i have all my records (450000+) in a single data package.
    how do i break this in multiple data packages
    regards
    Ramesh

  • FM F4IF_INT_TABLE_VALUE_REQUEST do not return value in RETURN_TAB

    Hi all,
    I used the FM F4IF_INT_TABLE_VALUE_REQUEST to return the objid and stext and it is showing the search help in the selection screen, however, after i choose a value from the search help, the FM does not return me the value that i have choosen. The following is the code that I had written.
    DATA: lt_retval  TYPE STANDARD TABLE OF ddshretval,
            lwa_retval TYPE ddshretval.
      DATA: lt_field  TYPE STANDARD TABLE OF dfies,
            lwa_field TYPE dfies.
    CONSTANTS: lc_retfield       TYPE dfies-fieldname VALUE 'STEXT',
                           lc_value_org      TYPE c VALUE 'S'.
    lwa_field-fieldname = 'F0001'.
      lwa_field-langu     = sy-langu.
      lwa_field-position  = '1'.
      lwa_field-offset    = '0'.
      lwa_field-domname   = 'HROBJID'.
      lwa_field-rollname  = 'HROBJID'.
      lwa_field-leng      = '8'.
      lwa_field-intlen    = '16'.
      lwa_field-outputlen = '8'.
      lwa_field-datatype  = 'NUMC'.
      lwa_field-inttype   = 'N'.
      lwa_field-precfield = 'HROBJID'.
      lwa_field-headlen   = '8'.
      lwa_field-scrlen1   = '10'.
      lwa_field-scrlen2   = '15'.
      lwa_field-scrlen3   = '20'.
      lwa_field-fieldtext = 'Posting ID'.
      lwa_field-reptext   = 'Posting ID'.
      lwa_field-scrtext_s = 'PostingID'.
      lwa_field-scrtext_m = 'ID'.
      lwa_field-scrtext_l = 'Posting ID'.
    APPEND lwa_field TO lt_field.
      CLEAR lwa_values.
    lwa_field-fieldname = 'F0002'.
      lwa_field-langu     = sy-langu.
      lwa_field-position  = '2'.
      lwa_field-offset    = '16'.
      lwa_field-domname   = 'TEXT40'.
      lwa_field-rollname  = 'STEXT'.
      lwa_field-leng      = '40'.
      lwa_field-intlen    = '80'.
      lwa_field-outputlen = '40'.
      lwa_field-datatype  = 'CHAR'.
      lwa_field-inttype   = 'C'.
      lwa_field-precfield = 'STEXT'.
      lwa_field-headlen   = '40'.
      lwa_field-scrlen1   = '10'.
      lwa_field-scrlen2   = '15'.
      lwa_field-scrlen3   = '20'.
      lwa_field-fieldtext = 'Posting Text'.
      lwa_field-reptext   = 'Posting Text'.
      lwa_field-scrtext_s = 'PostingTxt'.
      lwa_field-scrtext_m = 'Text'.
      lwa_field-scrtext_l = 'Posting Text'.
      lwa_field-lowercase = 'X'.
    APPEND lwa_field TO lt_field.
      CLEAR lwa_values.
      IF lt_values IS NOT INITIAL.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = lc_retfield
    *        dynpprog        = sy-repid
    *        dynpnr          = sy-dynnr
    *        dynprofield     = lc_fieldn
            value_org       = lc_value_org
          TABLES
            value_tab       = lt_values
            field_tab       = lt_field
            return_tab      = lt_retval
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc EQ 0.
          CLEAR lwa_retval.
          READ TABLE lt_retval INTO lwa_retval INDEX 1.
          IF sy-subrc EQ 0.
            MOVE lwa_retval-fieldval TO s_post-low.
            CLEAR lwa_retval.
          ENDIF.
        ELSE.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    Please assist, thanks so much.
    Edited by: yf wee on Oct 5, 2009 8:11 AM

    Hi,
    Refer this demo code:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             belnr TYPE belnr,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_belnr.
      PERFORM f4_belnr_help USING p_belnr.
    *&      Form  f4_belnr_help
    *       text
    *      -->P_BELNR text
    FORM f4_belnr_help USING p_belnr.
      SELECT belnr from <db_table> INTO TABLE itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BELNR' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BELNR' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
        EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3.
      IF sy-subrc  0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " f4_belnr_help
    Hope this helps you.
    Regards,
    Tarun

  • How to get the value field of the return parameters for an action step in teststand sequence file programatically using c#

                    Sequence mySequence = myEngine.NewSequence();
                    mySequence.Name = "myAction";
                    //Create new step of type Action and set Name
                    Step mystep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname, StepTypes.StepType_Action);
                    mystep.Name = "GetStringObject";
                    //Obtain the code module from the step
                    DotNetModule myModule = mystep.Module as DotNetModule;
                    //Set properties of the module
                    myModule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File, @"C:\Documents and Settings\My Documents\Visual Studio 2005\Projects\HelperClass\HelperClass\bin\Debug\HelperClass.dll");
                    myModule.ClassName = "Class1";
                    myModule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
                    myModule.MemberName = "StringObject";
                    mySequence.InsertStep(mystep, 0, StepGroups.StepGroup_Setup);
                    mySequence.Locals.NewSubProperty("StringObject", PropertyValueTypes.PropValType_Reference, false, "", 0);
                    DotNetParameterDirections reference = mySequence.Locals as DotNetParameterDirections;
                    mySequence.Locals.GetPropertyObject("StringObject", 0);
                    myModule.ClassReference = "Locals.StringObject";
                    myModule.LoadPrototypeFromMetadataToken(385875969, 0);
    After this I am not able to proceed.herewith attached documents contain screenshot of teststand file marked red is to be solved. How to define the value field of the return parameters?
    Attachments:
    HelperClass.cs ‏1 KB
    ex1.gif ‏2305 KB

    Please see my answer to your question on page two of the following forum thread:
    Programmatically generating DotNet Steps in TestStand
    Manooch H.
    National Instruments

  • JOB_OUTPUT_INFO not returned

    hi all,
    i have made a smart form and want it to mail in pdf i am getting mail but with out any data
    on deburg i find that smart form does not return data in JOB_OUTPUT_INFO . any missing parameters that i am missing.
    and i am passing this smrt form in a loop of  n customers so that i can get 1 spool for customer and mail for each customer.
    any possible solution..

    hi all,
    i have made a smart form and want it to mail in pdf i am getting mail but with out any data
    on deburg i find that smart form does not return data in JOB_OUTPUT_INFO . any missing parameters that i am missing.
    and i am passing this smrt form in a loop of  n customers so that i can get 1 spool for customer and mail for each customer.
    any possible solution..

  • Error - "All JCo return parameters are initial"

    Hi,
    I got this error on my production XI server for about two hours and then everything started to work again.  Does somebody have an idea of what could be the cause of this error? 
    (All JCo return parameters are initial)
    Rgds,
    Yves

    Thanks for your response, I will check with SAP.  This is not acceptable!  There are lots of traffic in our R/3 world between QAT and PRD.  I cannot just stop the messages (XI to PRD) when it's happening.  This is really strange.  I'm sure there is a way to fix this.  I will get back to you when I will find the way.
    Thanks
    Yves

  • All JCo return parameters are initial

    Hi,
    I'm getting "All JCo return parameters are initial" on a SOAP->XI->R/3 scenario.  What could  be the cause?  This is not all the time, it's working 99.5% of the time!
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">INITIAL_JCO_RETURN</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>All JCo return parameters are initial</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Rgds,
    Yves

    Thanks for your response, I will check with SAP.  This is not acceptable!  There are lots of traffic in our R/3 world between QAT and PRD.  I cannot just stop the messages (XI to PRD) when it's happening.  This is really strange.  I'm sure there is a way to fix this.  I will get back to you when I will find the way.
    Thanks
    Yves

  • Binocular search for Cost Center is not returning any data

    Hi Gurus,
    When clicking on the SRM-Shooping Cart-Cost Assignment- Account Assignment Overview- Cost center Binocular search icon,  it is not returning any data.  However,  when drilling down in the Account Assignment Overview, you will see another Binocular search icon for Cost Center which is working fine.
    Any idea of how you troubleshoot it.
    Thanks in advace for your help.
    HA

    Not sure about the cost assignment drill down, but after we applied SP13 to SRM server 550 the binoculars for cost center stopped working. the following note corrected this.
    Note 1259735 - Search help of generic account does not work
    If it has never worked, then probably need to setup a RFC dialog user for the F4 search help, Multiple threads on here around the dialog user for F4 with details on configuration and use.
    JF

  • Fuzzy search not returning results?

    I'm executing a phonetic search on the nm_resource column. my application allows a call center employee to search on the resource name (nm_resource), if the resource is not found then they will enter a new one. The problem is someone may have already entered the resource name but spelled it incorrectly resulting in duplicate records for the same resource name. To enable the call center to retrieve records that may have the same sound but are spelled differently we have implemented the fuzzy search capability of Oracle text. Things have been going very nicely for the most part with the exception of this one issue we're trying to understand.
    Using the query below we're searching for the resource name "rosies" the actual record in the database was entered as "rosy's". the search returns (rosies,rosie's,rosys) and does not return ---> rosy's <--- the record i'm interested in
    it is reasonable to expect rosy's to be returned in the result set? my query should retunn the max fuzzy expansions and all fuzzy scores.
    select score(1), nm_resource, ADDR_RSRC_ST_LN_1, id_resource, ADDR_RSRC_CITY FROM caps_resource where
    CONTAINS (nm_resource,'fuzzy(rosies, 0, 5000, weight)',1)>0
    union
    select /*+index(caps_resource ind_caps_resource_8)*/ 10, nm_resource, ADDR_RSRC_ST_LN_1, id_resource, ADDR_RSRC_CITY from caps_resource 
    where NM_RESOURCE_UPPER like upper(replace(replace('%' || 'rosies' || '%',' '), '-'))
    and rownum<500 order by 1 DESC;
    any help explaining this is much appriciated.
    Regards,

    When you index "Rosy's", by default it sees the apostropohe as a delimiter and tokenizes and indexes "Rosy" and "s" separately. So, you could only find it by searching the singular form or the singular form obtained by using stemming. However, if you set the apostrophoe as a skipjoin, then it tokenizes and indexes "Rosys" as one token that you can then search for that using "rosies":. Please see the demonstration below. You might also be interested in soundex, which can be used with Oracle Text, or the functions in the utl_match package or metaphone.
    SCOTT@orcl_11g> CREATE TABLE caps_resource
      2    (nm_resource  VARCHAR2 (30))
      3  /
    Table created.
    SCOTT@orcl_11g> INSERT ALL
      2  INTO caps_resource VALUES ('Rosy''s')
      3  SELECT * FROM DUAL
      4  /
    1 row created.
    SCOTT@orcl_11g> SELECT * FROM caps_resource
      2  /
    NM_RESOURCE
    Rosy's
    SCOTT@orcl_11g> CREATE INDEX your_text_idx ON caps_resource (nm_resource)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4       ('STOPLIST CTXSYS.EMPTY_STOPLIST')
      5  /
    Index created.
    SCOTT@orcl_11g> SELECT token_text FROM dr$your_text_idx$i
      2  /
    TOKEN_TEXT
    ROSY
    S
    SCOTT@orcl_11g> SELECT * FROM caps_resource
      2  WHERE  CONTAINS (nm_resource, 'FUZZY (rosies, 0, 5000, weight)') > 0
      3  /
    no rows selected
    SCOTT@orcl_11g> DROP INDEX your_text_idx
      2  /
    Index dropped.
    SCOTT@orcl_11g> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
      3    CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '''');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX your_text_idx ON caps_resource (nm_resource)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('STOPLIST CTXSYS.EMPTY_STOPLIST
      5        LEXER       your_lexer')
      6  /
    Index created.
    SCOTT@orcl_11g> SELECT token_text FROM dr$your_text_idx$i
      2  /
    TOKEN_TEXT
    ROSYS
    SCOTT@orcl_11g> SELECT * FROM caps_resource
      2  WHERE  CONTAINS (nm_resource, 'FUZZY (rosies, 0, 5000, weight)') > 0
      3  /
    NM_RESOURCE
    Rosy's
    SCOTT@orcl_11g>

Maybe you are looking for