Passing the OUT parameter in method call after connection

Hi,
    I have created the rfc connection through SAP.net Connector. Now when i want to show all the data of the particular RFC. i need to provide all the fields name and the tables name in method call.
In that method call i need to provide one paramet which is of type OUT what is that and what i need to provide in that parameter.
Can anybody suggest on this.
I can send the code if u need to understand, what exactly i want.
Regards,
+Naren

Its done i am able to connect.

Similar Messages

  • How to use the "out" parameter in idl

    hello.idl:
    module HelloApp
    interface Hello
    string sayHello();
    void getPass(in string name,out string pass);
    HelloServer:
    public class HelloServer
    class HelloServant extends _HelloImplBase
    public void getPass(String name,org.omg.CORBA.StringHolder pass)
    System.out.println("Server pass = " + pass);
    if (name.equals("lxh"))
    pass = new org.omg.CORBA.StringHolder("1234");
    if (name.equals("cbj"))
    pass = new org.omg.CORBA.StringHolder("5678");
    HelloClient:
    public class HelloClient
    public static void main(String args[])
    try{
    org.omg.CORBA.StringHolder Pass = null;
    if (args.length == 1)
    System.out.println("Client pass = " + args[0]);
    helloRef.getPass(args[0],Pass);
    System.out.println(Pass);
    } catch(Exception e) {
    When I run client main method with parameter "lxh",I will get a error says the getPass() parameter which has given is wrong.
    How to use the out parameter in client?

    Does this error only occurs if you pass "lxh" or always?
    Did you try passing a StringHolder Object rather than a NULL Object?
    Perhaps you can post the error message!?

  • How to use the out parameter of a transformation

    Hi All,
    I have a requirement where I need to move all the transformations from process flows to map.SO for each transformation I need to have 1 map which calls this transformation.I have 1 transformation which has both input and output parameter.If I use this transformation in mapping then how to use the out parameter of thsi transformation.This out parameter needs to beused in other mappings.Can soemone please help me.
    Thansk in advance

    Hi,
    I'm not quite sure what you are trying to do.
    What works: Connect the outgroup of a pre- or post-mapping process operator to the mapping output parameter operator..
    What does not work: Connect the outgroup of an operator that can return more than one row (e.g. table operator, filter, joiner ,...) to the mapping output parameter operator. The mapping output parameter just returns "one row", like a pl/sql function call.
    You cannot pass a "data stream" from one mapping to another. Maybe the pluggable mappings is what you are looking for.
    Regards,
    Carsten.

  • In BADi , How to pass the values between two Method

    Hi Experts,
    We have two methods in BADis. How to pass the value  between two Methods. Can you guys explain me out with one example...
    Thanks & Regards,
    Sivakumar S

    Hi Sivakumar!
    Create a function group.
    Define global data (there is a similiar menu point to jump to the top include).
    Create one or two function modules, with which you can read and write the global data.
    In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
    Regards,
    Christian

  • PLS-00201 error when trying to pass an OUT parameter

    Hi,
    Please help me to resolve the below error:
    I am trying to pass an OUT parameter in a package.
    I have declared it in package specs as
    ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2)
    In package body
    I have created the procedure as
    Create or Replace procedure ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2) AS
    v_LogDir varchar2(40);
    v_message varchar2(200);
    BEGIN
    SELECT directory_path into v_LogDir FROM ALL_DIRECTORIES WHERE directory_name = 'ABC';
    v_message := v_LogDir ;
    some sql statements..
    p_val3 := v_message;
    Return p_val3;
    End procABC;
    SQL> exec pkg_A.procABC('Stage2', NULL, p_val3);
    Package compiles successfully but while execution it returns error as:
    ORA-06550: line 1, column 74:
    PLS-00201: identifier 'p_val3 ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Please advise.

    Hi Suresh,
    Thanks for the information and help. I was able to run the package with this usage.
    Now, the issue is
    I need to return a v long string by the OUT parameter so I defined the datatype of OUT parameter as CLOB.
    But, when I declare local variable to run the package with this OUT paramater I get the error :
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 1
    When I pass a shorter string it works.
    Kindly advise me how to resolve this issue while using CLOB as datatype of OUT parameter.

  • I can't pass the icloud terms and conditions page after updating ios7

    Hi, I need urgent help!
    I can't pass the icloud terms and conditions page after updating ios7
    I've tried agree disagree and every other button i could press but it just wouldn't go pass the page
    Is there anyone who can help me with it?

    There are several solutions you can try in this discussion: https://discussions.apple.com/thread/5321627?start=0&tstart=0.

  • Registering the out parameter

    how to register an out parameter in java which is of %rowtype in pl/sql procedure

    Hi,
    Which version of Weblogic and JDBC driver do you use?
    Regards,
    Slava Imeshev
    "chaat" <[email protected]> wrote in message
    news:3c02da3a$[email protected]..
    >
    Hi,
    I'm using weblogic-jdriver driver, on Invoking a stored procedure(which
    returns a Record) by registering the OUT parameter as
    callableStatement.registerOutParameter(1, Types.ARRAY);
    the code compiles, @run time gives the following exception..
    java.sql.SQLException: Unknown type: 2003
    Exception Object info ==>[[The error code = 0 and  sql state = null ]].
    Any insights are greatly appreciated.

  • I am unable to get beyond the "sync with iTunes" splash page after connecting my iPhone; every tab is grey. What gives?

    I am unable to get beyond the "sync with iTunes" splash page after connecting my iPhone; every tab is grey. What gives?

    Is the computer the one the device normally syncs with?
    If not, sync with the computer it normally syncs with.
    If it is, place the device in DFU mode (google it) and restore.

  • How  to pass the BAPI Parameter

    Hi,
    I can able to connect the Sap using sap .net connector in vb.net. also using SAP .Net Connector wizard in C#.net,i can able to create Dll files of BAPI .also when im adding the dll reference in visualbasic.net it has been added successfully.but after i dont know how to pass the parameter to BAPI function and how to get the return records from BAPI.Can any one guide me how to do this in Visualbasic .net?

    Yes. Thankx . Actualy problem is that SAP .net connector 1.0.1 is not uninstalled completely on my system .
    Now i can able to see all the function using filter in  server explorer.Now i selected BAPI_CUSTOMER_GETLIST.Can you guide how to (code)get the datas into ADOtable or any recordset in Visual basic.net.
    Please give me the example program .
    Thanks in advance
    Message was edited by: Prakash N
    Message was edited by: Prakash N

  • I can't pass the activation on my iPhone 4 after I've updated on iOS 7

    Hello!
    After I've up-to-date my iOS version to 7.0.4, my phone can't pass the activation as it requares appleID of the previous owner. Today I have no contact with this guy. This iPhone was purchased with the conclusion of a social contract. Serial number on the box coincides with serial in settings of the phone.
    Please help me with this unpleasantness.

    Welcome to the Apple community.
    Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone.

  • Passing the array into actionPerformed method

    Hi friends! I am new at java. I made a tictactoe game board with GUI and it is designed according to nxn (desired any n value). When I pressed to any button, it should write an X to my board but I could not passed the button's action. My problem is that my actionPerformed method does not accept array button[j]. In the below there is a part of my code :
    for(int j=0;j<button.length;j++)     // adding the buttons
    button[j].addActionListener(this);
    public void actionPerformed(ActonEvent evt)
    // what can I read here for detecting the right button? button length is changable, it is depent on what we desire at first.
    // I tried this code in this area but it does not work:
    // if (evt.getSource()==button[j])
    // button[j].setText("X");
    // normally, it works if I write every button individually like that:
    // button1.addActionListener(this); (same for other buttons)
    // public void actionPerformed (ActionPerformed evt)
    // if (evt.getSource()==button1)
    // button1.setText("X"); (same code for other buttons)
    // but I want to make a generalized board action
    }I will be appreciated with your helps...
    Musty

    Hi musty4284,
    The getSource method of ActionEvent(not ActonEvent) returns an object and the way you're comparing objects is wrong.
    Theorically, you should do something like this :
    public void actionPerformed(ActionEvent evt) {
        JButton b = (JButton) evt.getSource();
        if ( button[j].equals(b) ) {
    }Edit :
    When using a listener for an array of JButton, it is a good idea to give a unique identifier to each button (for example, their index in the array). The JButton class has a setName method not to confuse with the setText method.
    While building your array of JButton, you can do :
    JButton[] button = new JButton[9];
    for (int i = 0; i < 9; i++) {
        button[i] = new JButton();
        button.setName(i);
    While handling the event :public void actionPerformed(ActionEvent evt) {
    JButton b = (JButton) evt.getSource();
    int index = Integer.parseInt(b.getName());
    button[index].setText("X");
    Edited by: Chicon on Oct 4, 2009 11:20 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to pass the multiplevalue parameter into SSRS by data driven subscription

    Hi All,
    I create a table and show it in the SSRS by table
    EmID Name
    AA1, A
    BB1, C
    CC1, E
    And set one parameter EmID for the user to filter the record and that Parameter Accept multiple values and the type is text.
    And I create a another table for the data-driven subscription to send the report to user by email.
    EmailTitle EmID  EmailComment
    TestEmail  AA1,BB1,CC1    TestComment
    And I set the subscription and set the EmID parameter is from EmID column, then test the subscription, it failed...
    However, when I only put AA1 into the table, then the subscription works well
    EmailTitle EmID  EmailComment
    TestEmail  AA1    TestComment
    So How I can config the above table to support subscription?
    Thanks.

    Hi Bimaster,
    When specify a column for the parameter value in a data-driven subscription, it will be regarded as a single value. So when specify the value "AA1,BB1,CC1" as the parameter value, the subscription will fail.
    The work around for this issue clear the "Allow multiple values" for the report parameter, and then change the filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "AA1,BB1,CC1" from database to the data-driven subscription. I have tested it on my local host environment, it works fine.
    Regards
    Charlie Liao
    TechNet Community Support

  • How to pass the out put of  ListFiles as input to SynchronousRead  FileAdaptor  in Oracle SOA

    Hi All,
    I have list of XML Files in one folder, i want to read all the files one by one ,
    i can use the ListFiles to get all the files, i want pass each files at a time as input to SynchronousRead.
    i know how to pass the file names  dynamically to SynchronousRead File Adaptor, but i dont know how to handle the file list, and passing one at a time from the list
    Any help please,

    Thanks for your reply PuneetRekhade,
    i could not see ant for each activity in the Bepel activities,but in transformation i could make use of for-each do display the all the filenames,
    i have used while , with following condition  number(bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist','/ns1:filelist/@size'))>=number(bpws:getVariableData('count_Files')),
    and in side the while loop , created  assign activity which gives assign one file name at a time by acessing the list index.
    bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist',"/ns1:filelist/ns1:file[bpws:getVariableData('count_Files')]/ns1:filename")
    i have incremented count variable at the end of the loop.

  • Why my FaceTime will ended call after connecting? How to solve it.

    This few day I keep on FaceTime but keep on fail. I using iOS 6 and FaceTime to my friend who using ios7. Be4 tat still okay. But this few day keep ended call after reconnecting. Wad going on. I reset network, change date to pass year and change back. After tat restart device and so on. But the problem still same. Help me

    There seems to be some FaceTime problems.  Check other posts like yours.
    Many users have reported that updating to iOS 7.1 has solved the problem.  You can try to see if the update will solve yours or wait for Apple to resolve the issue.

  • Problem passing a table parameter in rfc call using the function control

    I try to pass a Table as parameter to a Function Module using the SAP.Functions library (part of SAP frontend controls) from a Visual Basic (VBA) program.
    The function module has been verified to work when invoked from SAP FrontEnd Function Builder.
    The SAP RFC Control is created with
    Set sapFunctions=CreateObject("SAP.Functions")
    Following code snippet shows how I attempt to set exports and add a table row before calling the function module:
    sapFunctions.Connection = sapConnection
    Set sapMaterialUpd = sapFunctions.Add("Z_SD_BAPI_SALES_DATA_UPD")
    With sapMaterialUpd
    <i>'set exports</i>
         .Exports("PA_GLPUPDLEVEL") = "S"
         .Exports("PA_VKORG") = "FI14"
    <i>'append table row</i>
         .Tables("IT_SALES_DATA_UPD").AppendRow
         .Tables("IT_SALES_DATA_UPD")(1, "VKORG") = "FI14"
         .Tables("IT_SALES_DATA_UPD")(1, "MATNR") = "W_3100"
         .Tables("IT_SALES_DATA_UPD")(1, "DATBI") = "99991231"
         .Tables("IT_SALES_DATA_UPD")(1, "DATAB") = "20041231"
         .Tables("IT_SALES_DATA_UPD")(1, "KBETR") = "2222"
         .Tables("IT_SALES_DATA_UPD")(1, "KONWA") = "EUR"
    End With
    <i>'call the function module</i>
    If sapMaterialUpd.Call() = True Then
        <i>'do something with the return tables here...</i>Else
        Debug.Print sapMaterialUpd.Exception
    End If
    The Call() returns <b>FALSE</b> and the exception is <b>"SYSTEM_FAILURE"</b>. The connection also resets.
    The local logfile that the control generates shows that an exception occurs at the point of the call:
    <i>10.02.2005  17:54:20.766 Packing Parameters for Z_SD_BAPI_SALES_DATA_UPD
    Packing Parameter PA_GLPUPDLEVEL.
    Packing Parameter PA_VKORG.
    Packing Table 0.
    Packing Table 1.
      10.02.2005  17:54:20.766 *** Calling  RFC Function 'Z_SD_BAPI_SALES_DATA_UPD'
      10.02.2005  17:54:20.986 RFC CALL status = RFC_SYS_EXCEPTION
      10.02.2005  17:54:20.986 RFC Error: RFC_IO27
      -Status:CODE=CM_DEALLOCATED_NORMAL STATUS=CM_NO_STATUS_RECEIVED DATA=CM_COMPLETE_DATA_RECEIVED ID=69415076
      -Message:connection closed
      -Internal Status:IO HANDLE=23 DRV=EXT LINE=1420 CODE=27 : GET ID=ffff LINE=861 CODE=7
      10.02.2005  17:54:20.986 Function call finished.</i>
    Seen next code snippet. If the Table object is not touched, the function call goes through without any problems:
    sapFunctions.Connection = sapConnection
    Set sapMaterialUpd = sapFunctions.Add("Z_SD_BAPI_SALES_DATA_UPD")
    With sapMaterialUpd
    'set exports
        .Exports("PA_GLPUPDLEVEL") = "S"
        .Exports("PA_VKORG") = "FI14"
        'do <b>not</b> append a table row, for testing only ;-)</b>
    End With
    <i>'call the function module</i>
    If sapMaterialUpd.Call() = True Then
    <i>    'do something with the return tables here...</i>
    Else
        Debug.Print sapMaterialUpd.Exception
    End If
    This code works perfectly when calling the function. It returns TRUE and behaves normally. The function module returns descriptive response text in a table telling that the table was empty, according to the BAPI implementation.
    So is there something special needed here <i>after</i> appending the table row and <i>before</i> making the Call to properly attach the table as a parameter for the function module?
    Can this be a bug in the SAP RFC Control? The version of the wdtfuncs.ocx is 6206.6.45.54.
    Any hints are welcome!

    hi All partner,
    who solved this problem , I meet it too and
    can't clear it.
    SAPfunc := sapfunctions1.Add('z_get_sfcs_dn_mo');    
    SAPitab := sapfunc.tables.item ('I_DNMO');
    SAPitab.appendrow;                                       SAPitab.value(1,'MANDT') := '220'; 
    SAPitab.Value(1,'VBELN') := '2150000001';
    SAPitab.Value(1,'POSNR') := '50';
    SAPitab.value(1,'MATNR') := '19-99999-00'; 
    SAPitab.value(1,'AUFNR') := '921241512001';
    SAPitab.value(1,'DEDAT') := '2005/09/09';
    SAPitab.value(1,'LFIMG') := '100';  
    IF  SAPfunc.call = true then
      begin
      end
    else
        begin
        showmessage('call fail!!') ;
        end;
    end;
    RFC source code as below
    FUNCTION z_get_sfcs_dn_mo.
    ""Local interface:
    *"  TABLES
    *"      I_DNMO STRUCTURE  ZDN_MO
      data: wa type zdn_mo.
      LOOP AT i_dnmo.
        wa-mandt = i_dnmo-mandt.
        wa-vbeln = i_dnmo-vbeln.
        wa-posnr = i_dnmo-posnr.
        wa-matnr = i_dnmo-matnr.
        wa-aufnr = i_dnmo-aufnr.
        wa-dedat = i_dnmo-dedat.
        wa-lfimg = i_dnmo-lfimg.
       modify  zdn_mo from wa.
        insert into zdn_mo values wa.  --dump at here
        commit work.
      ENDLOOP.
    T/C: ST22 error message say at
      insert into zdn_mo values wa. ---dump at here
    the sapfunc.call returns fail.
    Message was edited by: jorry wang

Maybe you are looking for

  • App store wont allow me to download apps. what do i do?

    Everytime i try to download an app, or update it, it takes me to the Payment Transaction screen where the payment methods are listed and asks me to change them. However I had a prepaid card on there which is now out money and when i enter the securit

  • Is there a way to identify calls being forwarded to my phone apart from calls directly to my phone?

    Ok so, i now have a "Work" phone.. this is a after hours type deal for customers to get ahold of me if they are having issues with their industrial machines. What i am curious is..i am forwarding all calls to the work phone, to my iphone. for ease of

  • Using a uddi key to create a business service in OSB

    I want to be able to use a service registry key when creating a business service in OSB. I've found documentation on how to do this in Oracle ESB, but not in OSB. From the documentation for OSB, I can only find a way to synchronize the business servi

  • Data Requests

    Hello all, I have a process chain that has been running every night but has errors.  I have fixed the problem and reloaded the data from the PSA.  Is it Ok to delete all the red requests from the InfoCube? Also how long should you keep a request in t

  • Acrobat Reader Permissions

    There are several people in my organization that receive an email with 2 pdf attachments. Two of these people are not able to open one of the pdf's. When they try they get the following error: "Cannot create file: (filename). Right-click the folder y