MII BLS Trasaction calling SAP RFC call - How to pass XML document as input parameter

Hi,
1. I am very new to the SAP and SAP xMII workbench.
I have a webpage with iGrid applet embedded on it. We have multiple rows in the iGrid applet that can be selected by user.
After selecting single or multiple grid rows user clicking a 'button' on the web page.
We are using iCommand applet (ExacuteQuery] to call the BLS transaction.
Using iCommand applet on the webpage we are passing parameters to BLS Transaction.
Would like to pass on the single/ multiple selected grid row values as a XML document to BLS Transaction variable which is an Input parameter for SAP RFC call.
I am using SAP JCo Session to make the RFC call. 
Any pointers will be helpful.
2. Which is a best track in SAP training courses to get formal training.
Thanks,
Senthil

Hi Senthil,
What version of MII (or xMII) are you working with?  There are some examples of this type of transaction in the wiki which you may want to download and take a look at.
Regards, Mike
SAP Customer Experience Group - CEG

Similar Messages

  • How to pass a Structure as input parameter

    Hello,
    Anyone knows how to instanciate, populate and pass a Structure into RFCInvoke?
    Thanks!

    Hello,
    Please take a look at the documentations of netweaver RFC programing in this blog: 
    /people/ulrich.schmidt/blog/2008/11/08/new-developments-in-netweaver-rfc-communication
    It contains useful information of rfcInvoke.
    Kind regards, Istvan Elek

  • Calling SAP RFC from ODI

    I want to call SAP RFC from ODI. Client has provided only a set of RFC's. So I want to call these RFC's to extract data from SAP ERP system or BW to Oracle Staging using ODI. Would anyone please tell me how it will be possible?

    I want to call SAP RFC from ODI. Client has provided only a set of RFC's. So I want to call these RFC's to extract data from SAP ERP system or BW to Oracle Staging using ODI. Would anyone please tell me how it will be possible?

  • How to pass pdf documents through idocs

    I wanted to know how to pass pdf document along with a transaction code like sales order or travel expense manager with the help of IDOCs.

    Lily,
    I observe that you have declared lv_xml_data as TYPE xstring & string and get_data method probably expects data of xstring type.
    Have a look at the "Extract the Data" section from following [article.|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d&overridelayout=true]
    Chintan

  • How to pass XML data between applications

    Hi,
    can any one tell me how to pass XML data between applications
    Thanks in advance
    Sudheer

    Steve,
    I tried the code in the http package in the Appendix A section of your book. Each time i try a POST I get a HTTP/1.1 400 Bad Request error from the server. I can successfully do a GET from URLs. I have pretty much copied your code verbatim. Any ideas?
    Thanks,
    Sunder
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    See the "Working with XML Messages" section starting on page 242 of my Building Oracle XML Applications. It covers how to Send and Receive XML messages over the web through HTTP GET and HTTP POST as well as specifically Example 6-30 that illustrates how to receive a posted XML message in a servlet and process it.
    Hope this helps.<HR></BLOCKQUOTE>
    null

  • How to pass  internal table values to parameter

    hi,
             how to pass  internal table values to parameter in selection screen.if is it possible means please sent codeings.
    thanks.
      stalin.

    hi,
    tables : mara.
    data :  begin of itab_mara occurs 0,
              matnr like mara-matnr,
              ernam like mara-ernam,
              end of itab_mara.
    selection-screen : begin of block blk1 with frame title text-001.
    parameters : p_matnr like mara-matnr.
    selection-screen : end of block blk1.
    select matnr ernam from mara into corresponding fields of itab_mara
                                                                    where matnr = p_matnr.
    loop at itab_mara.
    write :/ itab_mara-matnr,
               itab_mara-ernam.
    endloop.
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • How to publish XML document whose source is stored in clob column

    I have to create simple application:
    in one table are stored some information about XML documents (date of creation, etc.) and the document source itself in one (unfortunatelly clob type) column.
    The point is to anable users finding document(s) and viewing it.
    Using forms I can search and display information about documents. But I have no idea how to publish XML document whose source is stored in clob column.
    I am using Oracle Portal 3.0 on NT.
    Thanks in advance.

    Hi Sergio,
    This link might be helpful:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    Also refer the BLOB Download Format Mask :
    {message:id=9716335}
    Here I have given the format mask for APEX 4.0, which will slightly differ for 3.2.1 and proposed changes
    in the format mask are:
    1) Format Mask: DOWNLOAD
    2) Content Disposition: Inline
    This will be achieved with it:
    >
    But now, my user would like to know if it´s possible that APEX application can OPEN some of these files stored on this BLOB column WITHOUT download it.
    My user would like to see a hiperlink (or button) that, if pressed/acessed, can open a new page (or a page inside application) with the document. He doesn´t need to edit this oppened file. He only wants to see it.
    >
    Hope it helps!
    Regards,
    Kiran

  • PowerBuilder call sap rfc.

    Hi gurus,
    Does anybody tell could PoverBuilder call SAP R/3 FRC? If can, how to call? It's nice if show some code for connect SAP and call one RFC.
    Thanks a lot!

    Hi,
    Here is a code, which will help u. Analyse this and use the same.
    //Declaration
    String ls_app_server, ls_client_id, ls_user_name, ls_user_pass,  &
              ls_sap_system, ls_appl_lang, ls_sys_num
    boolean lb_success = false
    integer li_rc
    SetPointer(HourGlass!)
    dw_1.AcceptText()
    // Get Application Server Name
    ls_app_server = trim(dw_1.Object.app_server[1])
    If IsNull(ls_app_server) or Len(ls_app_server) <= 0 Then
         MessageBox("Application Server", "Application Server cannot be blank.")
         Return
    End If
    // Get Client info
    ls_client_id = trim(dw_1.Object.client_id[1])
    If IsNull(ls_client_id) or Len(ls_client_id) <= 0 Then
         MessageBox("Client", "Client Id cannot be blank.")
         Return
    End If
    // Get User Name
    ls_user_name = trim(dw_1.Object.user_name[1])
    If IsNull(ls_user_name) or Len(ls_user_name) <= 0 Then
         MessageBox("User Name", "User Name cannot be blank.")
         Return
    End If
    // Get User Password
    ls_user_pass = trim(dw_1.Object.user_pass[1])
    If IsNull(ls_user_pass) or Len(ls_user_pass) <= 0 Then
         MessageBox("Password", "Password cannot be blank.")
         Return
    End If
    // Get System number
    ls_sys_num = trim(dw_1.Object.sys_num[1])
    If IsNull(ls_sys_num) or Len(ls_sys_num) <= 0 Then
         MessageBox("System Number", "System Number cannot be blank.")
         Return
    End If
    // Create the Sap Connection Object
    If Not IsValid(iole_SapConnection) Then
        iole_SapConnection = Create OLEObject
    //        li_rc = iole_SapConnection.ConnectToNewObject("sap.bapi.1")
         li_rc = iole_SapConnection.ConnectToNewObject("sap.functions")
    End If
    // check return code
    //  -1  Invalid Call: the argument is the Object property of a control
    //  -2  Class name not found
    //  -3  Object could not be created
    //  -4  Could not connect to object
    //  -9  Other error
    If li_rc < 0 Then
         MessageBox("SAP Connection Failure","Unable to connect to SAP. " + &
              "Please verify that SAP is installed on this machine.rn" + &
              "The return code is: " + string(li_rc))
         Return -1
    End If
    // Create the connection object
    If Not isvalid(iole_connection) Then
         iole_connection = CREATE OLEObject
         iole_connection = iole_SapConnection.Connection()
    End If
    If Not IsValid(iole_connection) Then MessageBox("Error","Error")
    // Assign all Sap login connection properties.
    iole_connection.applicationserver      = ls_app_server
    //iole_connection.Destination                = "DS6"
    iole_connection.User                     = ls_user_name
    iole_connection.Password                = ls_user_pass
    iole_connection.Client                     = ls_client_id
    //iole_connection.system                     = trim(dw_1.Object.sap_system[1])
    iole_connection.Language                = trim(dw_1.Object.appl_lang[1])
    iole_connection.systemNumber           = trim(dw_1.Object.sys_num[1])
    //iole_connection.AutoLogon                = True
    // logon now (silently)
    lb_success = iole_connection.logon(0, true)
    // set instance
    If lb_success Then
         MessageBox("Congrats","Connected with SAP and Login successful.")
    Else
         MessageBox("Sorry","Login fail, Please check with the SAP Administrator")
         If IsValid(iole_SapConnection) Then Destroy iole_SapConnection
         If IsValid(iole_connection) Then Destroy iole_connection
        Return
    End If
    OleObject lole_sapfunc, ITAB
    lole_sapfunc = Create OleObject
    ITAB = Create OleObject
    String ls_frdate, ls_todate
    Boolean lb_function
    If lb_success Then
         lole_sapfunc = iole_SapConnection.Add("ZBAPI_TEST_SAL") //'ZBAPIPRACT1'
            lole_sapfunc.EXPORTS("IM_FDATE").Value = '05072008'
         lole_sapfunc.EXPORTS("IM_TDATE").Value = '07072008'
         lb_function = lole_sapfunc.call
        If lb_function Then
            ITAB = lole_sapfunc.TABLES.Item("T_OUT")
              long ll_row = 0
              For ll_row = 1 to ITAB.RowCount()
                   MessageBox(string(ll_row), string(ITAB.cell(ll_row,"MATNR")))
                   MessageBox(string(ll_row), string(ITAB.cell(ll_row,"EXNUM")))
                   MessageBox(string(ll_row), string(ITAB.cell(ll_row,"SOLD_TO")))          
              Next
         Else
              MessageBox("Error","SAP Function cannot call.")          
        End If     
    End If
    iole_connection.Logoff
    Destroy lole_sapfunc
    Destroy lole_sapfunc
    Destroy ITAB

  • Where may I download package for JAVA call SAP RFC

    Hi all,
    I need to call a RFC in a JAVA based system. I found I need to install two package before I call, such as:
    import com.sap.rfc.*;
    import com.sap.rfc.exception.*;
    import com.ibm.sap.bapi.*;
    import com.ibm.sap.bapi.generated.*;
    where can I download these 2 package?
    Thanks a lot in advance.
    Ned

    Hai ,
    im telling in Eclipse ..
    Take a look to see that those packages are listed in the plug-ins under
    Windows > Preferences > Target Platform.  This should point to an Ecilpse
    installation which should have most of those packages.
    You will need to install GEF separately.  It does not come with Eclpse.  Go
    to http://www.eclipse.org/gef/ and click on Downloads.
    Regards ,
    Venkat

  • Is it possible to call SAP RFC by using ODI

    Hi guys,
    I connected to a SAP system by using ODI. I can fetch SAP tables but is there a way to call a RFC by using ODI?
    Thanks.

    did U find a way to make RFC call ??

  • C# Calling SAP RFC/Web Service Failure

    Hi SAP Experts,
    I am facing this problem. When an external system is calling my SAP RFC/Web Service, the external system(which is not SAP) is not getting the correct value. But when I test the RFC in SAP GUI It is working correctly. When I test between SAP server A & SAP Server B it is working correctly which is the recepient server is getting the correct value. What might cause this problem ? Urget help is needed here. Thanks.

    Hi Hadi,
    U need to expose a custom RFC as a Web Service. This is a simple web service that returns Customer Data (from kna1) based on the Customer ID which we provide as input.
    In the RFC, U have to declare an internal table (G_RET) in the tables section of the RFC.
    Now, U have to test the web service, U can see a check box with NULL option beside the G_RET.
    cheers,
    Hema.

  • How to pass class object  as in parameter in call to pl/sql procedure ?

    hi,
    i have to call pl/sql proecedure through java. In pl/sql procedure as "In" parameter i have created "user defined record type" and i am passing class object as "In" parameter in call to pl/sql procedure. but it is giving error.
    so, anyone can please tell me how i can pass class object as "In" parameter in call to pl/sql procedure ?
    its urgent ...
    pls help me...

    793059 wrote:
    I want to pass a cursor to a procedure as IN parameter.You can use the PL/SQL type called sys_refcursor - and open a ref cursor and pass that to the procedure as input parameter.
    Note that the SQL projection of the cursor is unknown at compilation time - and thus cannot be checked. As this checking only happens at run-time, you may get errors attempting to fetch columns from the ref cursor that does not exist in its projection.
    You also need to ask yourself whether this approach is a logical and robust one - it usually is not. The typical cursor processing template in PL/SQL looks as follows:
    begin
      open cursorVariable;
      loop
        fetch cursorVariable bulk collect into bufferVariable limit MAX_ROWS_FETCH;
        for i in 1..bufferVariable.Count
        loop
          MyProcedure( buffer(i) );   --// <-- Pass a row structure to your procedure and not a cursor
        end loop;
        ..etc..
        exit when cursorVariable%not_found;
      end loop;
      close cursorVariable;
    end;

  • How to pass value in Table import parameter of an RFC

    Hi all,
    I have an RFC in which import parameters are in the form of a table
    so now when i imported that RFC in my webdynpro application and Apply Service Template to it, it created the structure but when i applied form template to it all the inputfields were readonly
    and also when i tried to set the input parameter of that table like:
    wdContext.currentBAPI_CREATEElement.set<field>("value");
    it shows null pointer exception
    MY Context structure created after service template is as follows:
    Model Node Zcreate_rfc, it icludes another model node
    BAPI_CREATE, and it then includes the input parameters
    Please tell me how to solve the problem

    Suppose the RFC is called ZRFC, and the table structure is called TableStruct, then this works for me (in execute method before calling execute):
    ZRFCInput input = wdContext.currentZRFCElement().modelObject();
    // these are regular import parameters
    input.setAaa(aaa);
    input.setBbb(bbb);
    if (input.getTableStruct()!=null) {
          input.getTableStruct().clear();
    // In this loop table rows are added
    for (int i=0; i<sourcList.size(); i++) {
         ZTableStruct table = new ZTableStruct();
         table.setDdd(((SomeBean) sourcList.get(i)).getDdd()); // for property ddd
         input.addTableStruct(table);
    Good luck, Roelof
    Edited by: R. Knibbe on Jan 23, 2008 3:25 PM

  • How to pass thr document from Webdynpro into SAP R/3?

    HI Gurus,
    I have a requirement to offer a Document uploading option through Java webdynpro screen.
    I have referred the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    which has the steps till uploading the document into Webdynpro
    Now my requirement is to pass the document into SAP R/3? is there any RFC for that?
    Please ad

    Refer Oliveri's solution in [this|Re: How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2); thread.

  • How to pass the document from Webdynpro to SAP R/3?

    HI Gurus,
    I have a requirement to offer a Document uploading option through Java webdynpro screen.
    I have referred the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    which has the steps till uploading the document into Webdynpro
    Now my requirement is to pass the document into SAP R/3? is there any RFC for that?
    Thanks in Advance,
    Dharani

    Hi,
    The documents are uploaded from WDJ to Portal Server  / Portal Content Directory / Some Shared Drive .
    So that they can also be programmed such a way that they can be fetched whenever needed .
    The requirement is interesting but before you take step think how far it is feasible .
    Regards,
    Srini

Maybe you are looking for

  • I am unable to load games after sync?!

    hi I was trying to update to IOS 5 but the operation didn't start after doign the sync oiperation i disconneted my Iphone from itunes - now i am unable to load any game thank you

  • Unable to connect server localhost

    Never had this problem in the past now suddenly i am unable to contact the server localhost, internet is working but certain pages doesn't work how can i solve this? thnks in advance Roel

  • Windows Store doesn't let me upgrade to 8.1, says I am not administrator

    Hello, I am trying to upgrade my Windows 8 to Windows 8.1 with Windows Store. But Store refuses to let me download, saying I do not have administrator rights. I am with an administrator account and a ms account login. But it still doesn't let me. I p

  • Creating Users in Content Management SDK Manager

    I´ve installed Content Management SDK , now i want to create users trough the manager, when im filling the fields for the user creation, there is a field named (Credential Manger or Gestor de Credenciales in Spanish) but in this field there isnt valu

  • Conditional Branching for CP6

    Good day! I am fairly new to Captivate and I am currently creating a scenario-based activity. Is it possible to have this sort of branching: One slide, 2 scenarios. Each scenario (say, slides 2 and 3) can be accessed by a button on the said slide. Wh