JCo  client calls as background processes (avoiding timeouts)

Hi Guys!
Could you please assist us to resolve a simple issue:
Our JCo Client call takes sometimes longer than the given timout for sap dialog processes (so, it's now clear,  the jco client simply uses the dialog processes and not something smarter/more flexible).
My question is, ho to entice the jco client call to run without runtime timeout and take as long time as necessary. If the only possibility is, to use the tRFC, does anybody have an example for tRFC usage from JCo Client?
Is also a JCo server component  needed to implement some callback functionality from SAP system by using the tRFC, or it could be enough to poll the server and implement the timeout on the client level (it could be for us the best solution if we realy must use the tRFC).
Once again, we want to run the JCo client calls unlimited time (as long as needed) without the annoying dialog process timeout. The tRFC is not necessary by use cases now.
Any help would be      appreciated!
Many thanks, Gena

Hi Gena,
so, it's now clear, the jco client simply uses the dialog processes and not something smarter/more flexible
Well, that's a feature of the underlying RFC protocol: All RFC calls are executed in dialog work processes, thus also the runtime limitations for dialog processes apply.
My question is, ho to entice the jco client call to run without runtime timeout and take as long time as necessary. If the only possibility is, to use the tRFC, does anybody have an example for tRFC usage from JCo Client?
The JCo client cannot do anything about it, it's a profile parameter in SAP, i.e. rdisp/max_wprun_time. But as this parameter applies to all dialog processes (so dialog users and RFC calls), so it shouldn't be changed to make a single RFC application work. Anyhow, tRFC won't help you in this case, because all RFC calls are processed in a dialog process no matter of the type of RFC.
Once again, we want to run the JCo client calls unlimited time (as long as needed) without the annoying dialog process timeout.
Impossible without making any changes in SAP. In theory one could modify the RFC function so that it resets the "runtime counter" and thus having the capability to run longer than rdisp/max_wprun_time. I'd recommend though not to do that, especially since a very long running RFC seems rather questionable. Long running tasks should be processed in background.
Cheers, harald

Similar Messages

  • Calling Workflow background process' explicitly in pl/sql code

    Hi All,
    We have a requirement where we have to call the 'Workflow background process' explicitly in pl/sql code.
    What we want is that we are having some request that runs via a concurrent program, but before that request completes we want to put that on wait and run the 'Workflow background process' explicitly in the code itself (user need not go and manually run it).
    Can anyone please advice me how do I do this in a PL/SQL code that is called via a concurrent program.
    Regards,
    Shruti

    Pl post details of OS, database and EBS versions.
    One option is to use the FND_SUBMIT API
    Most Commonly Used FND APIs in APPS Customizations [ID 221549.1]
    Sample Code to Call Customer Interface RACUST Program using FND_SUBMIT Api in 11i and R12 [ID 429278.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_SUBMIT&objID=c3&dateRange=all&userID=&numResults=15
    HTH
    Srini

  • CUA - SUIM in client system with background processing of IDOCS

    Hi
    We have setup CUA in our Solution Manager system 4.0 sr2 SP11 and activated background processing of idocs.  When we run SUIM in the child system the user creation/change information is now showing the name of the background user rather than the actual name of the creator/modifier.  
    Has anyone else seen this before and is it standard functionality or a bug?
    Thanks in advance
    Justin

    Hi Djamel
    When you set up CUA you do the inital import of the roles with SCUG, ensure you have the company details correct in each system.  Also in each system schedule the background job SUSR_ZBV_GET_RECEIVER_PROFILES, this will get the details of any new roles/profiles setup in the child systems.
    Regards
    Justin

  • JCO Client idel timeout

    Hi,
    Do anyone know how to set the jco.client.idle_timeout value for a ESS WebDynpro application.
    Thanks
    Kiran

    Hi Gena,
    so, it's now clear, the jco client simply uses the dialog processes and not something smarter/more flexible
    Well, that's a feature of the underlying RFC protocol: All RFC calls are executed in dialog work processes, thus also the runtime limitations for dialog processes apply.
    My question is, ho to entice the jco client call to run without runtime timeout and take as long time as necessary. If the only possibility is, to use the tRFC, does anybody have an example for tRFC usage from JCo Client?
    The JCo client cannot do anything about it, it's a profile parameter in SAP, i.e. rdisp/max_wprun_time. But as this parameter applies to all dialog processes (so dialog users and RFC calls), so it shouldn't be changed to make a single RFC application work. Anyhow, tRFC won't help you in this case, because all RFC calls are processed in a dialog process no matter of the type of RFC.
    Once again, we want to run the JCo client calls unlimited time (as long as needed) without the annoying dialog process timeout.
    Impossible without making any changes in SAP. In theory one could modify the RFC function so that it resets the "runtime counter" and thus having the capability to run longer than rdisp/max_wprun_time. I'd recommend though not to do that, especially since a very long running RFC seems rather questionable. Long running tasks should be processed in background.
    Cheers, harald

  • Some background processes getting killed abruptly

    Hi,
    We have an E-Biz database and sometimes users complaint that some of the forms/JSP pages are not working fine. When i check the alert log, i find the following error messages which are marked as non critical.
    Thu Oct 21 06:42:41 2010
    Non critical error ORA-48913 caught while writing to trace file "/db1/ora1211/db/tech_st/11.1.0/admin/RGDB_orargpdb/diag/rdbms/rgdb/RGDB/trace/RGDB_ora_23488
    .trc"
    Error message: ORA-48913: Writing into trace file failed, file size limit [10485760] reached
    Writing to the above trace file is disabled for now on...
    Thu Oct 21 07:25:31 2010
    ORA-00060: Deadlock detected. More info in file /db1/ora1211/db/tech_st/11.1.0/admin/RGDB_orargpdb/diag/rdbms/rgdb/RGDB/trace/RGDB_ora_26495.trc.
    Thu Oct 21 09:24:04 2010
    When i checked the background processes, mmon and mmnl processes were not running. When we restarted the database, everything started working fine.
    this problems keep coming occasionally. Any help will be appreciated.

    Dear muneer.uae,
    SHUTDOWN: waiting for logins to complete.&
    PMON failed to delete process, see PMON trace fileWell i think those are enough for you to understand the problem but the important thing here to diagnose is the "deadlock". First of all forget about everything and answer the question "do you know what is a deadlock?". If your answer is no, please go to the http://tahiti.oracle.com and search for deadlock.
    The problem is not the Oracle database, is the application that you are currently using. You have nothing to do about the suicide of the PMON and if you can not solve it by your own than you need to create an SR call.
    Background processes "normally" do not kill theirselves.
    Regards.
    Ogan

  • Asynchronous client call - WS-Addressing

    Hi,
    I’m trying to initiate an asynchronous BPEL process from an external SOAP client i.e. the client calls the BPEL process and it calls back with a response.
    I can see from the Dev Guide that a WS-Addressing ReplyTo is required within the client request but from experimenting it seems that this must contain not just the mandatory Address but also the optional PortType and ServiceName elements (filled out with the QNames for the portType and service within the WSDL). Otherwise I get SOAP Faults back indicating Null pointers or Class Not Found. Once these are included the callback to the client works fine. Can you confirm that these elements are in fact required?
    Also why should the ServiceName be necessary as the physical callback endpoint is supplied by the client via the Address Element (the service in the WSDL just has a placeholder http://set.by.caller)? For that matter, shouldnt the BPEL process already know the callback portType already (as it'll be part of its invoke settings)?
    Many thanks,
    James
    www.magoosoft.com

    The ServiceName and PortType can be figured out at BPEL engine side. This is acutally a bug that we fixed for 10.1.2 GA.
    Thanks for your feedback.
    - Rakesh

  • User exit during VF04 background process

    Hi ,
    I am creating billing through the background run of VF04.
    Before a billing document is created I have to check the following condition.
    If the payment terms of the relevant billing item not equal to 'X' then system shoudl check the billing date and only create billing document if the date is equal to system date.
    If the payment terms is equal to 'X' then billing document should be created.
    I am plannign to use the userexit RV60AFZC and in there
    FORM USEREXIT_FILL_VBRK_VBRP
    I tried to find out of this user exit was called during background processing of VF04 by putting ina breakpoint. It did not give any pop-up.During creation of billing through VF01 it gave me the breakpoint.
    I want to know if for my requirement this is the right place to put the logic.
    Regards
    BGS

    Hi ,
    We had to change the logic and the user exit because it was not possible to pull the item level data into the VF04 screen.
    We are trying to do the following with variant which looks for all billing items due in next 5 working days
    Before system gets data from VKDFS into VKDFIF we are trying to aplly the logic
    If Payment terms <>  direct debit the include in the list VKDFIF
    If Payment terms <> direct debit
    Check  IF Billing date <= system date
    Yes -include in VKDFIF
    No- Remove entry
    When I call the variant in try to display the billing due list It shows the correct value
    But when we run the same variant in backgorund it fails
    BADI used
    Include LV60AA93
    Badi badi_sd_billing methode:vbrk_vbrp_fill
    CALL METHOD l_sd_billing_item_exit->vbrk_vbrp_fill
    Any help wpuld be appreciated

  • JCO.Client not connected in repository call (EP7)

    Hi guys,
    please can someone help me with this error msg?
    I don’t understand why we getting this error msg, for some users they can run reports and others get this msg.
    500 Internal Server Error
    BEx Web Application
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator.
    To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was: 
    JCO.Client not connected in repository call
    com.sap.mw.jco.JCO$Exception: (102) JCO_ERROR_COMMUNICATION: JCO.Client not connected in repository call
    at com.sap.mw.jco.JCO$Repository.getVersion(JCO.java:20290)
    at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:20630)
    at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:20351)
    at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:20465)
    at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:19533)
    Details: Full Exception Chain
    System Environment
    Server
    BI Java     Release: 7 - Patch level: 0000000009 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP     unknown
    Java Virtual Machine     Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_12-b03
    Operating System     Linux - ia64 - 2.6.9-22.0.1.EL
    Full Exception Chain
    Log ID     0012799E22D40054000001AF00006B9400042A20B9AF8861
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: JCo exception thrown when connecting to system "SAP_BW"
         at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Proxy.createFunction(Jco640Proxy.java:87)
         at com.sap.ip.bi.base.application.service.impl.application.ApplicationSettingsService.initializeProperties(ApplicationSettingsService.java:130)
         at com.sap.ip.bi.base.application.service.impl.application.ApplicationSettingsService.initialization(ApplicationSettingsService.java:124)
         at com.sap.ip.bi.base.application.impl.Application.createService(Application.java:477)
         at com.sap.ip.bi.base.application.impl.Application.getProperty(Application.java:624)
         at com.sap.ip.bi.base.application.impl.Application.initialization(Application.java:229)
         at com.sap.ip.bi.base.application.ApplicationFactory.createApplication(ApplicationFactory.java:132)
         at com.sap.ip.bi.base.application.ApplicationFactory.createApplication(ApplicationFactory.java:63)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.constructPage(Page.java:729)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.<init>(Page.java:647)
         at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.createPage(Controller.java:504)
         at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:911)
         at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:851)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:380)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    Many thanks in advance
    Jo-lize

    Hi, you can fix the problem ?
    i have same problem in BI7 and EP7, when launch Template Installer.
    <b>Create Destination in ABAP Import not successful Element 'SAPConfigLib.DES.Unclassified.createRfcDestination':!BrokerImport.import_of_element_failed!!BrokerImport.Fehler!com.sap.tc.lm.ctc.cul.cpi.exceptions.CPIBaseException: <Localization failed: ResourceBundle='com.sap.tc.lm.ctc.cul.cpi.CPIResourceBundle', ID='com.sap.tc.lm.ctc.cul.cpi.BaseException_BASE_EXCEPTION', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.tc.lm.ctc.cul.cpi.BaseException_BASE_EXCEPTION:com.sap.tc.lm.ctc.provider.javaServiceProvider.JavaServiceWriter.writeElement!BrokerImport.LINE!157-:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.86
    -:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.128
    -:com.sap.tc.lm.ctc.cul.broker.BrokerImport.importElement.128
    -:com.sap.tc.lm.ctc.cul.serviceimpl.importservice.CULConfigurationImport.importConfiguration.96
    -:com.sap.tc.lm.ctc.ccl.templateinstaller.StepExecuter.run.41
    Element 'SAPConfigLib.DES.Unclassified.createRfcDestination':Error during executing Java Reflection:JCO.Client not connected in repository call
    </b>

  • ABAP trail 7.00 timeouts and background process

    Does anyone knows if it's possible to change the number of dialog and background processes?
    And the transaction to change the timeouts of such processes?
    Thank you

    you can change the timeout in rz11.Parameter-name is rdisp/max_wprun_time. Backgound processes habe no timeout, so this value is only valid for dia-processes
    To change the number, you have to adjust your instance profile. In the forum  'Netweaver Administrator' should be some information about that. So just the short hint: you can adjust the profiles in RZ10, but have to do some steps for that. Just search in NW-Admin-forum above.
    Regards,
    ulf

  • Function called IN BACKGROUND TASK goes to work process DIA, not BGD

    I'm calling a function IN BACKGROUND TASK
    In SM50, I see it running in a DIA work process.
    I want it to run in a BGD work process.
    Can this be done?  If so, how?  If not, why not?

    Hi...
    It looks like, it will always run in DIA process and not Background process...I am not sure that we can change the work process
    Check the below link..
    http://help.sap.com/saphelp_40b/helpdata/pt/69/c24f864ba111d189750000e8322d00/content.htm
    What is written in the link is...
    "Background updates (CALL FUNCTION IN BACKGROUND TASK) represent a variant of remote function call that is synchronous with the end of a transaction (COMMIT WORK). In background updating, an update is run in another dialog work process that may be in the same or in another application server and R/3 System. Because such updates run in their own LUWs, they may start only after all critical updates have been completed. Otherwise, it would not be possible to roll back background changes in the event of an error in another update component. "
    IF you get the answer of whether we can change the work process then please let us know...

  • BDC (Background processing in call transaction )

    Frnds how to go for background processing in " call transaction method"
    We know that " NO display" mode is there but any other method is there in real time.
    > in session method while data is getting uploaded suddenly server stops then how to upload the data from the last record where the server stopped.
    plz help.
       regards,
        satya

    Hi
    u have to use No Display mode in call transaction...there is no other go for this...
    Otherwise opt for session method and using SUBMIT rstbdcsub. process in background.
    When server stops mean while the processing of the session, u can get the processed records info by the log and you can process the failed / un processed records now by foreground in sm35 or u can process the entire file again or u can create the file with only failed records and process .
    Regards,
    kumar

  • Calling an ALBPM Process as WebService from external client

    Has anyone successfully been able to call a albpm process exposed as a webservice ?
    I have seen some posts but they all seem to be having some issues. What I am trying to understand is why does albpm web service requests for process id and session id when they are not part of the web services ? The only way an external client can call a process is by passing business keys (or correlation ids).
    But right now I am looking for some sample code that is used to call a web service encapsulating a business process.
    Any help will be much appreciated.

    In 5.7 you can use this API http://localhost:8585/workspace/webservices/ProcessService?WSDL
    to invoke a business process in a synchronous fashion. And it does not have to be exposed as a web service. If you expose your process as a web service, you will only be able to do asynchronous invoke.
    I hope it helps.

  • I want to run background process at plsql program based on the timeout

    Hi
    when it comes to ready state I want to run background process at plsql program based on the timeout
    Thanks and Regards
    ch saivikram

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • Call client inside a BPEL process

    Hello,
    I have the following question:
    Is it possible to call a client within a BPEL process to get more variables which are needed to complete the BPEL process?
    I don´t want to enter "all" the variables, which could be needed, in the beginning with one client, but only a minimum. For the rest, only the needed variables are entered manually with a client inside the BPEL process.
    I read something about asynchronous BPEL processes, but I don´t know if this will solve my problem and how I can open the client.
    Or is there another solution for my problem?
    I hope, that someone can help me.
    Thanks in advance.
    Mike
    (* Sorry for my bad english *)

    Hi Vijay,
    Actuall i just want the script of executing procedure from a package for fetching records from database in a bpel process.
    I'm not having the technical ability about how to create a package and a procedure and then use it in a bple process.
    Forward me if you know any link for creating packages and procedures.
    Regards,
    Chakri

  • Timeout error calling a Business Process from another Business Process

    Hi to all,
    How can I call a Business Process (BP2) from another Business Process (BP1) and wait for the response before other things are performed? I'm trying to call from BP1 in a synchronous step the process BP2; the first step of BP2 is an Open S/A Bridge and, after a transformation, a Close S/A Bridge, but no response returns to BP1 till a timeout error.
    Thank you very much,
    Antonio

    I did some changes and the error now I am getting is,
    ===========================================================
    Error : null oracle.jsp.JspServlet.internalService(JspServlet.java:186)oracle.jsp.JspServlet.service(JspServlet.java:156)javax.servlet.http.HttpServlet.service(HttpServlet.java:588)org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)org.apache.jserv.JServConnection.run(JServConnection.java:294)java.lang.Thread.run(Thread.java:534)
    Error : oa_html._Text__Button__Lat._jspService(_Text__Button__Lat.java:712)oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    ============================================================
    Does the middle tier need to be bounced?
    Thanks

Maybe you are looking for

  • I can't convert radio racording .aac file into .mp...

    Help me some one. When i record a radio file. It will be saved in .aac file. This .aac file aren't play in other device or computer. I want to convert into .mp3 file. Plz help me how to do this?

  • Using anything with a MIDI feature.

    I have an MBox 2 to record in my studio and recently bought a keyboard that has a MIDI feature. I'm using Record/Reason software and I want to use my keyboard to MIDI some features within this software. Do I need to download anything on the computer

  • Arch 0.7.1 FTP install only CD ISO

    Hi there i was sick of downloading the whole base cd when i was going to use FTP install anyway. So i decided to modify the cd and made a FTP install only cd. i dont know if someone did it before .. whatever its nothing big just a really tiny modific

  • Just installed CS6 but can't associate file type JPG with Photoshop.

    I've just now installed Photoshop CS6 and Lightroom 4. File types PSD and TIFF work fine, but I'm completely unable to associate JPG, JPEG or any other variant with the Photoshop program such that I can double-click on the photo file and open Photosh

  • Question on DBMS_SCHEDULER.PUT_FILE - permission

    Hello All, I am trying to execute a sqlplus script within a Shell script within a stored procedure. How do I do a chmod U+x on the shell script that I generate without explicitly setting it? Is there a way I can do this within DBMS_SCHEDULER command?