How to call RFC in asynchronous mode using JCo.

I have java class and want to call R/3 through JCo in asynchronous mode. Is there any solution for this?

Hi,
Go through these links
http://help.sap.com/saphelp_erp2005vp/helpdata/en/09/a4a9e1d51d11d6b2c200508b5d5c51/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/18/6052429f2dbd30e10000000a155106/frameset.htm
Re: Connecting to R/3 database using JDBC or JCO
Thanks
Lohi.

Similar Messages

  • How to call RFC in Async Mode using TCP/IP RFC Destination ?

    Hi experts,
         Can anybody tell me how to call an Async RFC using TCP/IP RFC Destination ?
    Regards,
    Umesh

    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/09680289c751429ab3b07ad2a61c10/content.htm
    It says
    <b> For asynchronous calls, no connection to external systems is possible (TCP/IP connections in transaction SM59).</b>
    Regards,
    Abhishek

  • How to set the full screen mode using setClip method

    hi all,
    how to set the full screen mode using setClip in that softkeys should not be used insteat on that need to create a own softkeys using commands.
    thanks & regards
    Bala.

    In CS5 there are changes made to how the screen mode is reported. In CS3-CS5 the screen mode has a corresponding number. So for instance if the ScreenMode is set to "Preview Off" and you ask indesign CS3 or CS4 to display the screen mode, it will report "1936552047", while in CS5 it will report "PREVIEW_OFF".
    try executing this simple command in respectively CS3, CS4 and CS5 and you will see what I am talking about:
    alert(app.activeWindow.screenMode);
    there is no difference if you do:
    alert(app.activeDocument.layoutWindows[0].screenMode);
    The CS5 solution is rather awkward to work with, unless I am missing something? PREVIEW_OFF is not a string, nor is it a number.
    Example -  doing:
    myScreenMode=app.activeDocument.layoutWindows[0].screenMode;
    and then trying to reset screenMode by something like:
    app.activeDocument.layoutWindows[0].screenMode= myScreenMode
    does not work in CS5 of course. It will throw an error. Neither will this line work:
    app.activeDocument.layoutWindows[0].screenMode=ScreenModeOptions.myScreenMode;
    Any way of working around this?

  • Calling Java API from ABAP using JCo (Part 2)

    Hello,
    This is an additional question to thread Calling Java API from ABAP using JCo
    Has anyone managed to get the input parameter value
    input.getString("REQUTEXT")
    that is being passed from ABAP?
    If yes, what kind of setting you need to do? Because when I execute, it has no value.
    Thus, the below ECHOTEXT parameter returns blank value:
    output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
    When I debug by printing the below line, the input XML is indeed without value:
    System.out.println(input.toXML());
    Anybody knows how to pass input variable from ABAP to JAVA using JCo?
    rgs,
    hiroshi

    Hallo Hiroshi,
    as far as I can see, you are doing it the right way. The problem might be that the ABAP program does not fill in this parameter because something went wrong in the SAP System.
    Have you tried setting a breakpoint (an HTTP session - remote breakpoint) and tried checking step by step if the value is being processed and put into the REQUTEXT field?
    Bye,
    Sameer

  • How to Call RFC from PortalService using a ServiceUser

    Hi,
    I have some code that calls an RFC using JCO.
    (I have other code I wrote using JCA to connect from a portlet, but that requires a Session and uses an IProfile)
    Our security team wants me to use a Serviceuser instead. But I can't seem to figure out how to use a ServiceUser to call an RFC.
    If I can just get an IConnection, i can use the rest of my JCA code to call the RFC. But I'm stuck getting the connection
    The closes I've gotten is this:
    com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("myserviceuser");
    IConnectorGatewayService cgs=PortalRuntime.getRuntimeResources().getService (IConnectorGatewayService.KEY);
    ConnectionProperties cp=new ConnectionProperties(new Locale(),user);
    IConnection conn=cgs.getConnection("mySAPsystemalias",cp);
    There are two problems with this (or maybe more)
    The connectionproperties takes an IProfile not an IUser
    I also thought I needed a com.sap.security.api.IUser, not the one above.
    Can someone point out what is wrong or a different way?
    thanks
    Chris Buchholz

    Chris,
    You could always use a JCO JNDI connection, in which case you dont need anything other than a HashMap of the the following properties
    client
    messageserverHost
    systemLangauge
    group
    type
    systemType
    systemId
    serverPort
    username
    password
    The username and password you supply can be a service user or a normal logon user as far as I know.
    Cheers,
    Steve

  • How to call RFC from Power Builder

    Hi,
    I am using Power Builder Tools and I want to know how can i call RFC from Power Builder
    Thanks for ur reply

    Hi,
    Although I have not worked with Powerbuilder, I am sure if you have a certain level of proficiency with it, you will be able to code your logic that will call your wrappers written in VB/C/.NET etc. Check out the wonderful weblog by Thomas Jung on integrating ActiveX controls with ABAP Control Framework at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/995. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Do get back if you have further queries.
    Regards
    Message was edited by: Shehryar Khan

  • HOW TO CALL  RFC....

    hi...
        how to call a  function module using rfc from non sap program( java, vb.net)....

    Passing a Structure from RFC to non SAP system
    call a remote RFC from one sap system to to other sap system
    Rewards point please..

  • How to call one report2 from report1 using report1 selection screen

    hi experts,
    iam presently working in report1.
    now, from my report1, i want to call report2 with report1 selection screen.
    how to call?
    thanks in advance.

    Below is an sample example, from where i am calling transaction MB5B (Report-RM07MLBD).
    Here i am using selection screen data from report ZTEST and passing it to RM07MLBD.
    REPORT  ZTEST
    DATA : listtab LIKE abaplist OCCURS 1.
    DATA : listtab_tmp LIKE abaplist OCCURS 1.
    DATA : N TYPE n.
    *DATA mseg_wa TYPE mseg.
    *SELECT-OPTIONS s_matnr for mseg_wa-matnr.
    *SELECT-OPTIONS S_WERKS for Mseg_wa-WERKS.
    PARAMETERS : S_MATNR LIKE MSEG-MATNR,
                 S_WERKS LIKE MSEG-WERKS,
                 S_CHARG LIKE MSEG-CHARG.
    DATA MKPF_WA TYPE MKPF.
    SELECT-OPTIONS S_BUDAT FOR MKPF_WA-BUDAT.
    REFRESH listtab.
    CALL FUNCTION 'LIST_FREE_MEMORY'
    TABLES
    listobject = listtab.
    SUBMIT RM07DOCS using SELECTION-SCREEN '1000'
    WITH matnr = S_MATNR
    WITH werks = S_WERKS
    WITH charg = S_CHARG
    WITH budat-low = S_BUDAT-low
    WITH budat-high = S_BUDAT-high EXPORTING LIST TO MEMORY AND RETURN .
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listtab
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DESCRIBE TABLE listtab LINES n .
    CALL FUNCTION 'WRITE_LIST'
    EXPORTING
    write_only = 'X'
    TABLES
    listobject = listtab
    EXCEPTIONS
    empty_list = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to call rfc fuction module designed in sap from netweaver

    Hi all.
          Can any one pls let me know how to call the trfc,arfc function modules designed in sap from netweaver system.
    Is the method of calling trfc , arfc fuction modules from non sap system same?
    If not let me know how to call trffc & arfc function modules from non  sap systems.Thanks in advance.
    Kind Regards,
    sami.

    Hi
    Use
    in background task
    and
    destination
    additions when you call tRFC function modules from
    SAP system to SAP system.

  • How to call rfc with byte[] parameter?

    I am building a middleware using SAP.NET connector but Im having a problem with a particular rfc. I am using C# and my problem basically is abut PIDs( persistent instance id, call list id). PIDs are composed of 32 characters(hexstring), 16 bytes in hexadecimal format. (e.g. A42103E78DCAD54A9EB09D5921C76F06). The rfc crm_call_list_get_calls requires  a PID input of byte[] datatype (byte[] Iv_Call_List_ID). I've tried converting the hexstring into an array of bytes (C# format) for the said rfc (A42103E78DCAD54A9EB09D5921C76F06----> byte[] PID={0xA4, 0x21, 0x03, 0xE7, 0x8D, 0xCA, 0xD5, 0x4A, 0x9E, 0xB0, 0x9D, 0x59, 0x21, 0xC7, 0x6F, 0x06} but ive been getting the following error:
    System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
    Unhandled Exception: SAP.Connector.RfcMarshalException: System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type. ---> System.Xml.Xsl.XsltException: 'Byte[]' is an invalid QName.
    Also a part of the generated code for the same rfc returns an error for missing array initialization.
    (public override object CreateNewRow()
      return new byte[]();
    Ive modified the code to: return new byte[]{}
    and I dont know if it will work for all situations. Please advise.
    Thanks in advance.
    Message was edited by: Kenny  Martinez

    Some Years later I have the same Problem.
    As discripet in the post before - first I've got an error in the Method "CreateNewRow()" where the Method wants to return "return new byte[]()". Well I don't know why the .Net-Connector creates that code - but it looks strange to me.
    The origin Code is:
        /// <summary>
        /// Creates an empty new row of type byte[].
        /// </summary>
        /// <returns>The newbyte[].</returns>
           public override object CreateNewRow()
                return new byte[]();;
    With Changing that method I've got the same Error as in the post before:
    System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
    Does someone has found a solution for that kind of Problem?

  • How to call PL/SQL stored procedure using ODBC?

    Could anyone tell me how can I call PL/SQL stored procedure using
    ODBC? Are there any sample codes?
    Thanx!
    null

    You are correct on all counts, they all should work.
    Oracle Product Development Team wrote:
    : Hi,
    : I don't know the exact syntax in ODBC, but reasoning by analogy
    : with other API's, I'd bet one of the following works
    : (for a call to: procedure my_proc(n1 number, n2 number);):
    : "{ my_proc(1,2); }"
    : "{ call my_proc(1,2); }"
    : "{ begin my_proc(1,2); end }"
    : "begin my_proc(1,2); end;"
    : "begin my_proc(1,2); end"
    : Hope this helps. - Pierre
    : jiangbuf (guest) wrote:
    : : Could anyone tell me how can I call PL/SQL stored procedure
    : using
    : : ODBC? Are there any sample codes?
    : : Thanx!
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • How to call a sales order form using a parameter?

    hi
    i am creating a custom form and upon quering the form i am getting all the records
    and
    i have a button and when i click on that button it should take me to oracle apps order form ?
    what i tried doing ?
    IF :parameter.actions='Order' THEN
    v_startup_mode := 'ORDER';
    v_header_id :=:SSWMS_SHIPMENT_LINES.ORDER_HEADER_ID;
    FND_FUNCTION.EXECUTE(
    FUNCTION_NAME=>:parameter.call_function,
    OPEN_FLAG=>'Y',
    SESSION_FLAG=>'Y',
    ACTIVATE_FLAG=>'ACTIVATE',
    OTHER_PARAMS=>'STARTUP_MODE="'||v_startup_mode||'" HEADER_ID="'||v_header_id||'"');
    END IF;
    i am doing for that line id? can someone help me as how to call this form?
    sudharshan

    Hi Prashanth,
    I dont think so OPEN_FORM will work out here.
    If we want to call new form/open form insted of using call_form / open_form/ New _form
    we need to use FND_FUNCTION.EXECUTE which allows you to open forms without bypassing Oracle Applications security, and takes care of finding the
    correct directory path for the form.
    here FND_FUNCTION.EXECUTE is similar to APP_NAVIGATE.EXECUTE,
    except that APP_NAVIGATE.EXECUTE allows a form to be restarted if
    it is invoked a second time.
    So in the parameters of FND_FUNCTION.EXECUTE,
    open_flag indiacates Y/N.
    ’Y’ indicates that OPEN_FORM should be used;
    ’N’ indicates that NEW_FORM should be used.
    You should always pass ’Y’ for open_flag, which
    means to execute the function using the Oracle
    Forms OPEN_FORM built–in rather than the
    NEW_FORM built–in
    i think sudharshan is using the right method FND_FUNCTION.EXECUTE.
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to call transaction xd03 in alv using interactive

    hi experts ,
    i want code when i click on any value of kunner column in alv grid it call transaction xd03 .but it using interactive  format on single click . please elp me
    Moderator message : Not enough re-search before posting, requirements dumping is not allowed.  Thread locked.
    Edited by: Vinod Kumar on Nov 28, 2011 12:15 PM

    Hi,
    you have to define a handler for the event hotspot_click of class CL_GUI_ALV_GRID, if you are using that class. If you are using class CL_SALV_TABLE maybe class CL_SALV_EVENTS_TABLE may help you.
    Regards,
    Klaus

  • How to call a method in onload using jsf

    Hi
    i have task where i neeed to retrive datas from database on page onload . i have written retriving code in backing bean but how to call that
    method on onload in jsf.......
    Can anybody help ???????????
    thanks

    public class firstbean{
         list mylist = new ArrayList();
         firstbean(){
         new firstcontroller().retriveData()
    public class firstcontroller{
         public void retriveData(){
              // I need to get first bean object reference to assign the retived data to my list variable(mylist)
              // but iam getting first bean object object as nulll
              Object object =
                   FacesContext
                   .getCurrentInstance()
                   .getExternalContext()
                   .getSessionMap()
                   .get("FirstBean");
              FirstBean firstBean = (FirstBean)object;
              // firstBean = null its coming
              firstBean.mylist = new FirstDao().getdata();
    this is my code how to implement the onload function in this login . here when i try accesss my first bean reference is showing as null . so aim not able to assign the retrived data in to mylist variable

  • How to call a drill down report using hyperlink ?

    Can anyone please give an example to call a drill down report using hyper link in Reports 10g ?
    Regards
    Capri !!!

    Hi,
    I've been using this approach in a couple of reports and it works great with one problem. Even if I include the srw.set_hyperlink_attr('target=_new") it still launches the drill report in the current window. When the user hits the back button it doesn't take them back to the main report it takes them back to the reports/rwservlet? page. Can you see if there is anything I'm doing wrong...would be a really cool report if I could force it to open a new window.
    Here is what my code looks like:
    srw.set_hyperlink(:P_SERVER || 'dwn&report=transaction2_v8.rdf' ||
    '&PARAM_COMP_NUM=1' || '&PARAM_ACTV1=' || TRIM(:actvty_cd) || '&PARAM_ACTV2=&PARAM_ACTV3=&PARAM_ACTV4=&PARAM_ACTV5=&PARAM_ACTV6=' ||
    '&PARAM_START_DATE=&PARAM_END_DATE=' || '&PARAM_FY_NUM=' || vYear || '&PARAM_PERIOD=0' || '&PARAM_ACTVTY_GRP=%20' ||
    '&PARAM_LIST=%20' || '&PARAM_START_ACCT_CAT=' || TRIM(vCat) || '&PARAM_END_ACCT_CAT=' || trim(vCat2)|| '&PARAM_SYS_CODE=%20' ||
    '&PARAM_SRC_CODE=%20' || '&PARAM_DATA_TYPE_CD=P' || '&PARAM_ACT_STATUS=%20');
    SRW.SET_TEXT_COLOR('blue');
    srw.set_hyperlink_attrs('target=_new');
    Also I get different behavior if the user saves the PDF and opens the report through their pdf reader.
    Thanks for your help

Maybe you are looking for

  • Problem install windows on mid 2010 MacBook Pro 13 with 10.9.1

    I run into problem install windows on mid 2010 MacBook Pro 13 with 10.9.1.  Boot Camp Assistant shows error "Can't install the software because it is not currently available from the Software Update server.".  So what is the problem and how can I wor

  • Issue with oracle11g weblogic server(10.3.6) silent installation

    Hello Everyone, I am trying to install WL server through silent mode. The silent.xml that i am using is as follows <?xml version="1.0" encoding="UTF-8"?> <!-- Silent installer option -mode=silent -silent_xml="/u01/app/wlogic/sil/silent.xml" --> <?xml

  • How to add a dropdown menu to the search box (the 'search this site' box that appears on all subsites)

    Hello there, I know that in the search center you can add search verticals. Then you can configure the search box so it has a drop down menu so you can specify the result source you want to search.  But my question is about the 'search this site' box

  • Bapi for address change

    hi friend, i change  customer telephone noumber in revelent T.code in my R/3 system and i want to update this change in CRM system so kindly give me sutiable bapi for this change.

  • Mail problem in 10.4.7

    I have just updated to 10.4.7 and it seems my IMAP account can no longer be accessed from Mail. I reinstalled the combo update and it did not help. I've also tried accessing the account from Mozilla - which works - so it's not a fault with my network