Background processes using Administration Services

Where does the background process execute when submitted through Administration Services?I think probably it would escecute on the server which is running the Administrative Services server, but want to verify this.We are running Administrative Services 6.5.3.Thanks

As an update:
The "However, this time the database "Invoke" activity is showing the following warning:" is not the issue.
I replaced the starter Partner link in the BPEL process and created it, again, using the BPEL designer. I left the ESB Adapter partner link for the database insert.
This deploysand executes without issue.
So the issue seems to be that it did not like the ESB file read service as the initiating Partner link.
I will try and discover why!
Regards
A.

Similar Messages

  • Data of alv report in  excel file in background processing using open datas

    Hi Experts,
    I have developed report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.
    i used open dataset  read dataset and close dataset but still problem is not solved. so if anyone have code with this and also which will have concatenate statement in the code send it.
    Regards,
    Rahul

    Hi Rahul,
    Ur code shud be like below:
    DATA : l_filename2 TYPE string,
                v_extn.
        SPLIT p_filename AT '.xls' INTO l_filename2  v_extn.
        CONCATENATE l_filename2  'downloaded'  INTO l_filename2  SEPARATED BY '_'.
        CONCATENATE l_filename2  'txt'   INTO l_filename2 SEPARATED BY '.'.
        OPEN DATASET l_filename2 IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
        IF sy-subrc <> 0.
          MESSAGE e499(sy) WITH text-e02.
        ENDIF.
        LOOP AT it_order_number INTO wa_order_number.
          TRANSFER wa_order_number TO l_filename2.
        ENDLOOP.
        CLOSE DATASET l_filename2.
    Now, go to tcode AL11 and check it in the Application server itself.
    Hope this helps,
    Regards,
    Arnab.

  • Start GP Process using web services

    Hi,
    I am trying to start a GP process from a Java EJB project using WSDL created by GP component for a particular template. I have created the deployable client proxy from the WSDL and added the reference in the EJB project.
    Any idea how to use different proxy classes within the EJB project to start the process.
    Thanks
    Rajeev

    Hi Rajeev,
      i haven't done one with EJB triggerred it from webdynpro. here is a snippet that kicks of the sample time off process using api from webdynpro
              IUser user = null;
              IGPStructure params = null;
              //  Get current user
              try {               
                   IWDClientUser wdUser = WDClientUser.getCurrentUser();
                   user = wdUser.getSAPUser();
                   //     obtain the Process template
                   IGPProcess process = 
                              GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                   //     by specifying its ID
                   processId,
                   //     and the user accessing it
                   user);
                   //     obtain the Run Time Manager
                   IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
                   //     create a new, empty role assignment list
                   IGPProcessRoleInstanceList roles = rtm.createProcesRoleInstanceList();
                   //     get the number of roles required
                   int rolenum = process.getRoleInfoCount();
                   //     iterate over the required roles
                   for (int i = 0; i < rolenum; i++) {
                        //     add a new role assignment to the list
                        roles.createProcessRoleInstance(
                        //     by specifying the role's unique name
                        process.getRoleInfo(i).getRoleName()).addUser(
                        //     add the current user to every process role
                        user);
                   // Here you see how to populate parameters with data.
                   // This example only works, if you initiate the "Time-Off process"
                   // that is delivered per default with the GP Framework.
                   // You find it in the gallery below "Examples".
                   // Otherwise no parameters are initialized.               
                           params= GPStructureFactory.getStructure(process.getInputParameters());     
                   if (process.getTitle().equals("Time-Off Process")){
                        IGPStructure struc = params.addStructure("Time_off_data.1");                    
                        struc.setAttributeValue("AbsenceTypeText", "Vacation");
                        struc.setAttributeValue("SimulationCode",0);
                        struc.setAttributeValue("CompletionCode",0);
                        struc.setAttributeValue("PaidFlag", true);                    
                   //     initiate the process template by passing the Process template
                   rtm.startProcess(process,
                   //     a name,
                   "API started Process",
                   //     a description,
                   "This process has been started from a WebDynpro via public API",
                   //     the initiating user
                   user,
                   //     the role assignment,
                   roles,
                   //     the initial parameters
                   params,
                   //     and the user actually executing this action
                   user);
              } catch (WDUMException ex) {
                   logger.traceThrowableT(Severity.ERROR,
                        "Current user could not be resolved: ", ex);               
              } catch (GPInvocationException ex) {
                   logger.traceThrowableT(Severity.ERROR,
                        "Exception raised when trying to start process: ", ex);               
              } catch (GPEngineException ex) {
                   logger.traceThrowableT(Severity.ERROR,
                        "Exception raised when trying to start process: ", ex);                    
    Hope that helps
    Abdul

  • Unique rollback in a BPEL process using web services

    We are a cellular communication company using Oracle DB (10g) and Oracle Forms to run our business applications (customer care and the like). We have planned a system migration using the SOA approach with the latest release of Oracle BPEL Suite (business logic), Oracle ADF BC (presentation level), Oracle OAS (application server) and JDeveloper (application development IDE).
    Within our current applications we have processes that perform several tasks (inserts, updates and/or deletes on the same DB) as part of one atomic DB transaction. Using the SOA approach we&rsquo;ve deemed those tasks as being &lsquo;services&rsquo; that we, let&rsquo;s say for the sake of argument, could implement either as web services (so as to be published for reuse) or as stored procedures encapsulated via DB adapters (BPEL lexicon).
    Our biggest challenge, and hence our question to the SOA world, is how to attain that same unique transaction. We understand that there is no one perfect approach, for the &lsquo;solution&rsquo; depends on too many factors and choices; what we&rsquo;d like to know are past experiences people had or, at best, what do people consider what the best practices in the industry are regarding this matter.
    <strong><u>Approach A:</u></strong> all services are implemented as DB adapters (stored procedures and the like).
    <strong><u>PROS</u><u>:</u></strong> one single DB rollback should any service fail to execute properly and so undo all changes made so far.
    <u><strong>CONS:</strong></u> highly coupled, non-visible components (via UDDI); impossibility to manage, control and audit (via WS Manager) components; weak/poor SOA Governance.
    <u><strong>Approach B:</strong></u> all services are implemented as web services.
    <u><strong>PROS:</strong></u> loosely coupled, self-contained, and web accessible visible components (via UDDI) besides the ease to manage, control and audit (via WS Manager); strong SOA Governance.
    <u><strong>CONS:</strong></u> since each web service is a &lsquo;different&rsquo; transaction with its own &lsquo;commit&rsquo;, a unique rollback transaction for the whole process will not be possible should a WS fail, for previous WSs will have already committed their data changes before doing the rollback.
    <u><strong>Approach C:</strong></u> services implemented as a mix of web services and DB Adapters.
    <strong><u>PROS:</u></strong> those of Approach B for web services.
    <strong><u>CONS:</u></strong> those of Approach A (DB adapters) + those of Approach B (web services).
    <hr />
    So, the 64,000 dollar question is how to attain a single transaction when you have web services as part of your process? Do we need to &rsquo;build/create&rsquo; a schema/functionality similar to the &lsquo;DB-undo-segment&rsquo; in order to obtain a single rollback transaction for the whole process or does the BPEL COMPENSATE delivers this functionality somehow?
    Are we not seeing the obvious? Are we not seeing the forest because we&rsquo;re looking at a tree? Please keep in mind that we are using Oracle BPEL.
    Thanks a bunch,
    --Sergio                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Marinus,
    you are absolutely right and not missing anything. OWSM does not free you from taking additional measures to block direct interaction with the unsecure WebService from not "authorized" clients. You must restrict the http response to the OWSM host only (either in the Apache or the OC4J configuration). See the related documentation.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to invoke a short lived process using web service start point?

    I have a custom short-lived process that does not take any input parameter. I am able to successfully invoke the process from LiveCycle Workbench ES2. I want this process to be invoked by a java client through a web service call. Apart from the web service URL of my process (which looks like
    http://<server>:<portno>/soap/services/MyApplication/MyProcess?wsdl&lc_version=9.0.0&versi on=1.0) do the java client know anything else? Any authentication is required?
    My intention is to just find out what all the consumer of this process needs to know to invoke it through a web service call.
    Was anybody able to test a short-lived process through a web service invocation from SoapUI?

    I am not a programmer but I did find this article on he Developers Resource site that might lead you in th eright direction:
    http://www.adobe.com/devnet/livecycle/articles/java_soap.html
    Paul

  • Back ground process using abap program

    Hi,
    How to create background process using job_open,Job_submit,job_close function modules

    DATA: lv_job_name         LIKE tbtco-jobname,
    lv_job_nr           LIKE tbtco-jobcount,
    lv_job_released     TYPE c,
    lv_job_start_sofort TYPE c,
    lv_print_parameters TYPE pri_params.
    lv_job_name = 'Z_BGPROGRAM'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_job_name
        IMPORTING
          jobcount         = lv_job_nr
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
      IF syst-subrc = 0.
    " submit job with all the selection screen params...
        SUBMIT (lv_job_name)
            WITH applfile = applfile " these are the parameters of the background program
            WITH p_lines = p_lines
            USER syst-uname " you must use this
           VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
        IF sy-subrc = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = lv_job_nr
              jobname              = lv_job_name
              strtimmed            = 'X'
            IMPORTING
              job_was_released     = lv_job_released
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              OTHERS               = 8.
          IF syst-subrc <> 0.
            MESSAGE i162(00) WITH
            'An error occured while closing the background job.'.
            STOP.
          ENDIF.
        ENDIF.
      ENDIF.
      SKIP 1.
      WRITE: / 'Background process', lv_job_name , 'called successfully' NO-GAP.
      WRITE: / 'You can check the job in transaction SM37'.

  • Java code running as background process in Linux causes high CPU util.

    I'm running a piece of java code as a background process in Redhat 7.1 . When I specify to run it as a background process (using the '&') at the command line, I get CPU utilization at around 5% and it dips.
    When I edit the script that runs the java code to specify running it as a background process withint the script itself (java ..... &) and then go to the command line and run the script, the CPU utilization shoots up to 95% and stays at the low 90's - very high 80's range for the CPU utilization..
    I'm hoping someone has any idea for this behavior and a way to fix it.
    Thanks in advance,
    Sarat..

    This is an interesting post and i'm sory i don't have time to
    experament before i answer
    you could of course run the script as background
    *.sh &
    but that's probubly not what you want
    I think the solution lies in giving the
    proccess a job number %n
    then setting it %n &
    it might even work to
    put something like %java &
    Anyway when it's running fullout
    it is because it is in the
    current terminal process group PID.
    wish i could help more

  • How to use HR Administrative Service sample (HCM prossess and form)?

    Hi Expert,
    How do we use HR Administrative Service sample( HCM prossess and form)? I already configured the ADS, now when i click HCM Process and From in the MSS (start process) a new screen pop up with nothing on it, just a header without content. Can somebody help me with this? Thanks
    Edited by: Hendri Salim on Jul 29, 2010 10:43 AM

    Hendri,
    check this link http://help.sap.com/saphelp_erp60/helpdata/EN/ea/b6b94278560c31e10000000a1550b0/frameset.htm
    Thanks
    Bala Duvvuri

  • Using ServletContextListener for background process in tomcat, problems?

    Hi, I am building a web app using mojarra 1.2, hibernate 3.2, mysql 5 and tomcat 6. Currently, there's a need to run a background process every hour to:
    1) query the database
    2) process information
    3) send emails to (big) list of individuals when matched
    4) update database
    5) must happen during business hour
    For now, my approach to this problem is to hook a Timer object inside a class implements ServletContextListener. So that every hour during business hour will process the steps above when Tomcat started until someone shut down shut down Tomcat or when it crash (hopefully that won't happen).
    I read a few articles, they claimed this is not a good approach because in a managed environment, background thread like this won't be in the scope of the container.
    Due to certain reasons, we can't deploy this part as a separate daemon (e.g: jsvc) yet. We'll need to wait for few other things to occur before can we deploy a full daemon services.
    The question for this post is: What are some of the potential problems we will be dealing with when running background thread like this in tomcat? What are some of the things we'll need to watch out for before real problems arise (e.g size of db connection, # of concurrent process, etc) what are some other pitfalls other experienced when deploying background thread in tomcat?
    We hope this solution will be able to handle what needs to be done until our daemon service is ready.
    Thank you for your opinions

    You can try this.. Which gives more grip... in making threads etc..
    Here is a class with a method that sets up a ScheduledExecutorService to beep every ten seconds for an hour:
    import static java.util.concurrent.TimeUnit.*;
    class BeeperControl {
    private final ScheduledExecutorService scheduler =
    Executors.newScheduledThreadPool(1);
    public void beepForAnHour() {
    final Runnable beeper = new Runnable() {
    public void run() { System.out.println("beep"); }
    final ScheduledFuture<?> beeperHandle =
    scheduler.scheduleAtFixedRate(beeper, 10, 10, SECONDS);
    scheduler.schedule(new Runnable() {
    public void run() { beeperHandle.cancel(true); }
    }, 60 * 60, SECONDS);
    }

  • Process Object usage in the HR Administrative Services

    Hello,
    Does anybody have more details on how the process object is used in the HR Administrative Services in mySAP ERP 2005?
    The SAP Online Help doc we have says that the process object is the data persistence object in this workflow.   I'd like to find out the following:
    1) how to save data into a process object
    2) how to retrieve data from it later in the workflow
    3) ultimately how is the process object itself persisted?  As an independent XML file, an XML file stored as a record in the relational DB, or as a bunch of records in the relational DB?  
    Thanks,
    Ye

    The process object can be picked from the workflow by reading the context of workflow.
    You can analyse this in the workflow process provided by SAP i.e. transfer process etc.

  • Start GP Process from VC using Web Service with parameters

    Hi,
    II´m trying to instantiate a GP process from a Vc iView using a Web Service; I always used Instantiation via URL but using this method I don´t have any "return" data from GP saying "Ok - The process started succesfully".
    The questions are:
    1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
    2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
    Best regards,
    Marco.

    1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
    A: Yes. You can send input parameters to the service through WS.
    2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
    A: Yes. The return message can be added to the WS. It depends on how do designed the WS.
    -Ashutosh

  • How can we use cl_gui_html_viewer      in a background process.

    Hello,
    Refering to this thread: Pie chart using Class cl_igs_chart ??
    How can we use cl_gui_html_viewer     in a background process.
    I want to execute a html code in bakground process in abap program.
    but using cl_gui_html_viewer   I have an error with CNTL_ERROR in the method CONSTRUCTOR;
    Thanks

    Marie,
    I don't know about HTML viewer specifically, but whenever a GUI object is needed to be used in background, there is a standard method to avoid CNTL_ERROR.
    When a program runs in background, there is no "screen" and hence no GUI, and hence a custom control can not be displayed. That is why the program generates an error.
    The trick is to avoid creating the custom control in background.
      if sy-batch = 'X'. "background mode
    *   We don't want to create the custom control
      else. "dialog mode
        create object l_container exporting ...
      endif.
    * We really don't need a container for using CL_GUI_ objects
    * Proceed with the normal coding
      create object l_html_viewer
      exporting
        parent = l_container

  • How to select a display varaint using VL06O with background processing

    We are on 4.70 I would like to schedule a few delivery reports using VL06O I have created a selection variant which works fine. I am not able to select a display variant for background processing. If I process in the foreground the system uses the my user defined variant but not in background processing.
    Help,
    Jim Durkin
    Gleason
    Edited by: James Durkin on Dec 4, 2008 7:22 PM
    Edited by: James Durkin on Dec 8, 2008 6:51 PM

    Background processing in VL06O is actually meant for outputting the delivery documents (picking list, delivery note etc.) and not the delivery list itself. The list of deliveries you see when releasing the spool request is for your reference only, not relevant to any layout maintenance.
    Edited by: Jalo Kotinurmi on Dec 11, 2008 1:56 AM

  • Using 'export to database' in background processing

    If i call a Function Module in Background will i be able to  Export values to Database ?
    like:
    CALL FUNCTION 'func_name' IN BACKGROUND TASK TABLES table = table1.
    and in FM:
    EXPORT <one> FROM <two> TO DATABASE indx(some) ID 'some1'.
    I am only able to export if i dont use the background processing.
    thanks
    Edited by: shalaxy s on Feb 10, 2009 3:18 PM

    Hi Shalaxy,
    Calling Function Module in Background/Update Task is normally used for bundling techniques where your requirement is to execute all the database updates in single database LUW (Logical Unit of Work) in order to maintain data integrity. All your database updates gets successfull or none of them.
    If you call FM in Background Task, it is not executed immediatly, it is registered with all its values and executed only when COMMIT WORK statement is executed.
    I think there is no explicit COMMIT WORK statement in your code and that is why you are not able to see effect of EXPORT TO DATABASE statement as LUW is not at all initiated.
    I feel, as your requirement is only to suppress the ALV output, you should handle it through some other alternative e.g. using parameter or something like that and If function module you are talking about is Z and you are willing to change it.
    Regards,
    Vishal

  • Which process is currently using that service

    Hello,
    Is it possible to know which process that currently use which service? e.g. I have a customized Render service and want to know which process is currently use it. or is there a query to run in database to get that information.
    Can any one please advise.
    Thanks,
    Han Dao

    In your customized RenderService, you would tipically have a taskContext variable.
    The following XPATH, gives you the process which currently using the service.
    /process_data/taskContext/object/@processName
    Hope that helps.
    Nith

Maybe you are looking for

  • Error while registering SOA Composite

    Hi all I used OOTB AutoApproval composite and added mail stuff to that composite. And run the composite and deployed it successfully. I don't want approver, task should be auto-approved. But for other custom composite i deployed and registered the co

  • To create light pdf files

    some customers ask me to create light pdf files...very light...as they asked me for in design catalogue of 100 pages with tables and images (the standard process makes low res pdf files of at least 20 MG)....is there a way to do this?

  • Error on selecting object in ILLUSTRATOR CC

    Hi everyone, i have problem with selecting object in illustrator CC, when i select the current object it will also select the other object, i cannot select the object i want, not on the group or clipping mask.. always highlight it both. it often time

  • Duplicate emails in iCloud sent folder

    I'm having an issue that when I send email from my icloud.com account, I'm ending up with duplicates in the "sent" folder.  There have been some other threads on this, but I'm not seeing any answers.   Does anyone else have this problem?   Apple, if

  • I'm trying to download iOS 5.0.1 and my connection times out

    I use Windows 7 with my iTunes and I've gotten this error with my 4th generation iTouch as well as my wife's new iPhone 4S.  For the iTouch, I've gotten this error ever since this new update has been available.  Not sure how to fix.  I have updated m