Hot to add a Background Job to process Chain

Hi Guys,
I have created a background job via Sm36, but I wanted to include all this jobs to Process Chain, is it possible?
thanks.

Hi,
Welcome to SDN.
Please try this ( a quick and dirty solution)
1.Create a batch event in SM62 (e.g. Z_EVENT1D)
2.Allocate this event as start event of batch job in SE36
3.Create a report to trigger this event
REPORT  Z_RAISE_EVENT.
Call Function 'BP_EVENT_RAISE'
         EXPORTING
         EVENTID = 'Z_EVENT1D'
4.Add a process type abap program calling this report to PC
Of course, you can add a parameter to report and save different variants to make it more flexible, if required.
Regards
Joe

Similar Messages

  • Triggering Process chain based on execution of R3 job and Process Chain

    Hi All,
    I need your help in arriving at a solution for a reqirement.
    Scenario is., I need to trigger a process chain B based on successful execution of Process chain A and an R3 job. If both conditions(Completion of R3 job and Process Chain A) are met then only it has to trigger process Chain B.
    I know that we can use events to trigger a process chain using R3 job.But my case is differenet I need to consider the success message from both process chain and R3 job.Is there any way to solve it ?
    Please provide me with your valuable inputs.
    Thanks,
    Bindu

    Hi Hima,
    You can use the  'AND' variant for both, If both are success then trigger the process chain.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Apr 30, 2009 3:36 PM

  • Cancel the scheduled jobs for process chains - urgent

    Hi,
    How do I cancel the scheduled jobs for process chains which are going to run tonight.
    thanks,
    Radha

    Hello,
    Go into transaction code RSPC and then select the particular process chain by going into the edit mode and in the menu...
    Look for Execution --> Remove from Schedule.
    Let me know if that answered your question.
    Thanks
    Dharma.

  • How to find triggering job for Process chain

    Hi,
    I have a process chain and its triggering by some other system using an event.
    I want to know how to find which ystem is triggering this job means process chain and on what basis it is starting?
    I have an event for this process chain and also FM : BP_EVENT_RAISE. So how to find the with those details?
    Thanks,
    Phani

    HI,
    some other system means either dev, qas, prd?
    for every process in a process chain there is a chain id which is same as the name of your chain,
    for every chain id there exist some log ids , this both information you can find from the standard table RSPCLOGCHAIN
    From this log id you can find the status of the process from  table RSPCPROCESSLOG.
    here u will find the status of your process whether is has been completed successfully or ended with errors.
    Thanks,
    Phani.

  • Rename ABAP-Job in process chain

    Hello experts,
    how can I change the job-name (SM37) of a ABAP-Program that starts within a process chain?
    Now all ABAPs that are started within a process chain are called: "BI_PROCESS_ABAP"
    Thank in advance

    Not sure where you want to go with this idea.  If you are trying to create a new naming scheme in general, e.g. ZBI_PROCESS_ABAP, or if you want to change indiviusla job names so you can more readily identify what a particular BI_PROCESS_ABAP job does.
    If it's the latter, I thin kyou will end up creating a maintenance headache, because when you modify and reschedule a chain it wouldn't delte teh old job and it would create a new one with the standard BI_PROCESS_XXXXX  job name.
    Have you looked at Tran RSM37 ?  It provides process chain name info when you pull up a list of jobs, not a perfect eample, but this should give an idea of, e.g.
    Background Job Name     Status     Selection     Selection value     Selection     Selection value     Selection     Selection value
    BI_PROCESS_ABAP     Released     CHAIN     0TCT_C2_INIT_P01     TYPE     ABAP     VARIANT     0TCT_START_DATALOAD_PC
    BI_PROCESS_ABAP     Released     CHAIN     0TCT_C0_INIT_P01     TYPE     ABAP     VARIANT     0TCT_START_QUERYRUNTIME_PC
    BI_PROCESS_ABAP     Released     CHAIN     ZMD_D_METACHAIN     TYPE     ABAP     VARIANT     ZBW_START_PM_DAILY_PC
    BI_PROCESS_ABAP     Released     CHAIN     ZSR_D_MD_META     TYPE     ABAP     VARIANT     ZSR_D_MD_COMP
    BI_PROCESS_ABAP     Released     CHAIN     ZMD_D_METACHAIN     TYPE     ABAP     VARIANT     ZBW_START_FI_DAILY_PC
    BI_PROCESS_ABAP     Released     CHAIN     ZMD_D_METACHAIN     TYPE     ABAP     VARIANT     ZBW_START_FM_DAILY_PC
    BI_PROCESS_ABAP     Released     CHAIN     ZMD_D_METACHAIN     TYPE     ABAP     VARIANT     ZBW_START_GS_DAILY_PC
    BI_PROCESS_ABAP     Released     CHAIN     ZMD_D_METACHAIN     TYPE     ABAP     VARIANT     ZBW_START_SRM_DAILY_PC
    BI_PROCESS_ABAP     Released     CHAIN     ZMM_D_META_1     TYPE     ABAP     VARIANT     ZBWPR_V3_BEGIN_03
    BI_PROCESS_ABAP     Released     CHAIN     ZMM_D_META_1     TYPE     ABAP     VARIANT     ZBWPR_V3_BEGIN_02

  • Adding BAPI jobs in Process Chain

    Hi All,
    I want to add BAPIs in process chain in BW 3.5.Can anybody help me in this???????

    Hi,
    There will be no impact on the work processes but the main concern here is for all jobs that run in dialog/fore ground there will be some specific time limit defined...so if a job/process crosses that limit it'll go to ABAP dump....
    At a max there'll be no timelimit for the bkgd processes so a job can run for a long time without any interruption...
    To know the time limit for foreground processes u can chk wit ur BASIS team or use Tcode- RZ11...
    Now If any of the job in ur process chain takes long time it may go thru dump, so it depends on the step howmuch it is taking....(Eg: Attribute change runs take long time sometimes)
    rgds,

  • Canceled Status in Job Detail, Process Chain triggering w/event

    Hi All,
    I have created event, PC and trigger event with SM64 or with ABAP, everything is ok
    if I activate and Schedule PC, I see BI_PROCESS_TRIGGER job with released status, and when I trigger the event nothing  is happened but when I checked the Job detail I see canceled status job.
    I donu2019t understand why this problem occurs ?
    I can trigger the event but before event trigger the PC, scheduled job detail directly turn to the chancel status.
    if any one give me a clue to solve this problem I will appreciate
    Note : No Job log !!!
    Thanks
    Ali

    Ali,
    Check authorizations.
    Try to run process chain with out event(immediate) and check.
    Srini

  • Need to add a command file in process chain

    Hi,
    I have cmd file on the network that will be used to specify which staged data has been successfully loaded to BW.  At the end of the process chain which loads our daily data, this cmd file should be executed. I have never done this before, does anyone have any idea as to how i can include this file in the Process Chain? There are 2 files in that directory; .cmd and .out. Do I need both these files?
    Thanks
    Sameer

    There is OS command provess available in process chai, but i think you cannot use a command file; you have to use more time OS command with single command each time.
    Hope it helps.
    Regards

  • Collection jobs in Process Chains

    Hi ALL,
    I want to know what is the real importance of using AND, OR and EXOR Processes in Process Chains.I have gone through all the material available on SDN.But i could not clearly understand these Processes as of what's the real purpose it serves when used in Process chains.
    We have Process Chains in our system which contains Planned data as well as Actual data which are parallelly loaded using our Process Chains.Where in we have Different infopackages.With every infopackage,If it is successful ,it is connected to AND Process And in case,if it is a failure,It is connected to an OR Process.
    So ,if it is Successful ,then it goes to And Process or else it connected to OR Process which triggers an ERROR event for that particular process chain.
    So,Please Do Provide an good answer as I have to implement certain changes to my process chains.I have added 3 more infopackages to my process chain and now ,I want to know whether I should connect them to OR process,if a Failure occurs and what will be the consequences ,if I connect/Do not these new packages to OR process when a failure occurs.
    I hope you understand this Problem and reply as it is very urgent.
    Points will be assigned.
    Regards,
    samir

    Hi,
    AND = the following process starts only if all processes before (running parallel) are finished sucessfully.
    OR = the following process starts each time a process before finished successful
    EXOR = the following process starts if one of the processes before finished successful
    Hope this helps!
    regards
    Siggi
    PS: here some additional information: http://help.sap.com/saphelp_nw04/helpdata/en/01/15843b74f7be0fe10000000a114084/frameset.htm
    Check out the information in folder collection processes

  • Error in Background Job Processing.

    Dear All,
             I am using a background job for processing the outbound delivery.
             In the user exit in delivery program I am checking for the combination of
             ship to party, Material & Batch of outbound delivery in a ztable. If the combination exists in
             Ztable I do not want to save & ignore this delivery creation and continue with the next
             delivery order creation thru the batch job.
             However I need to give an error / warning message for the delivery orders
             which are not created so I am giving the error message as success message
             in  the below format :-
              IF L_RETURN-TYPE = 'E'.
                MESSAGE S000(Z64_I) WITH L_RETURN-MESSAGE_V1
                                         L_RETURN-MESSAGE_V2
                                         L_RETURN-MESSAGE_V3
                                         L_RETURN-MESSAGE_V4
                                         DISPLAY LIKE 'E'.
                PERFORM FOLGE_GLEICHSETZEN(SAPLV00F).
                FCODE = 'ENT1'.
                SET SCREEN SYST-DYNNR.
                LEAVE SCREEN.
              ENDIF.
            But my job is finished as soon as the above message is encountered and the
            rest of the outbound deliveries are not created.
            However if I execute the progarm in foreground the execution is working fine.
            Could you please let me know what do I need to code / do corrections to make
            the program run successfully in background.
    Thanks & Regards
    Jitendra Gujarathi

    Hello,
    Check system log and also check work process trace, to know the error.
    I feel that it could be Authorization issue, you don't have sufficient authorization to do.
    Hope this helps.
    Regards
    venkata
    Edited by: venkata emandi on Sep 12, 2011 8:13 AM

  • Continue background job processing.

    Hi All,
    How to handle the system error
    MESSAGE E328 WITH MATNR  RAISING CONVERSION_NOT_FOUND thrown by FM MATERIAL_UNIT_CONVERSION so that the background job continue processing.
    Thanks and Regards,
    Ashik K.

    Hi,
    I just now checked with this FM and worked with these two options:
    1. Runtime error type 'E' will stop the program if we COMMENT the EXCEPTIONS while calling FM
    * EXCEPTIONS
    *   CONVERSION_NOT_FOUND         = 1
    *   INPUT_INVALID                = 2
    *   MATERIAL_NOT_FOUND           = 3
    *   MEINH_NOT_FOUND              = 4
    *   MEINS_MISSING                = 5
    *   NO_MEINH                     = 6
    *   OUTPUT_INVALID               = 7
    *   OVERFLOW                     = 8
    *   OTHERS                       = 9
    2. Runtime error type 'E' (which stops the program) will not come in this case
    EXCEPTIONS
       CONVERSION_NOT_FOUND         = 1
       INPUT_INVALID                = 2
       MATERIAL_NOT_FOUND           = 3
       MEINH_NOT_FOUND              = 4
       MEINS_MISSING                = 5
       NO_MEINH                     = 6
       OUTPUT_INVALID               = 7
       OVERFLOW                     = 8
       OTHERS                       = 9
    Hope this helps.
    Regards,
    Amit Mittal.

  • Pass lock to background job

    Hi,
    I'm looking for ideas.
    We have an inbound process for special messages transfered from XI system via asynchrounous call. Messages are identified by a GUID.
    The inbound process will save the messages in a database table and create background jobs for processing big messages while small messages are processed directly.
    To avoid any interference, we want to lock messages as long as they are processed. For this we have a lock object and the Enqueue/dequeue modules.
    Now my question is: How can I pass a lock to the background job (created by SUBMIT VIA JOB) and have it released there after processing is done. The Job will run in a new LUW.
    And then, if any error in background (or online) processing occurs, how to make sure all existing locks are released?
    Thanks for some good ideas on how to proceed.
    Regards,
    Clemens

    resolved - we won't do it. We'll create some kind of queue: A fully-buffered database table where we put the lock entries and remoce them when it's time to do so. This way we can integrate an activity monitor watching the objects being processed.
    Thanks for reading
    Clemens

  • Background job scheduling in idocs

    Hi can u plz tell me like for a customized function module inorder to post and idoc .
    variant should be created for function module or how does it go becoz we process the idoc through transaction we19?

    In the receiving system, set inbound processing to Processing in background in the partner profiles with transaction WE20.
    Schedule Report RBDAPP01 as a Background Job to process the IDocs (see also SAP Note 399271).
    The report passes all inbound IDocs to the application for processing, if they meet the selection criteria, and have the following status:
    Status 64, IDoc is ready for transfer to the application
    Status 66, IDoc is waiting for preceding IDoc (Serialization).
    http://help.sap.com/saphelp_sm32/helpdata/en/5f/45f93b4139b478e10000000a11402f/content.htm
    Thanks

  • Force FM execution on batch job work process

    Hi!
    Is it possible to asynchronously start FM execution on batch job work process?
    Additions:
    CALL FUNCTION func STARTING NEW TASK taskname.
    CALL FUNCTION func IN BACKGROUND TASK.
    starts FM execution just on another dialog process.
    Context of requirement:
    There is a program that may be logically splitted into two parts:
    - dialog part where data is collected from user input
    - BAPI call with a tons of parameters(structures, internal tables) formed on user input
    So the problem - system dump by timeout during BAPI execution.
    The only solution is to execute BAPI functionality on work process without timeout limitations - batch job work process.
    There may be two approaches:
    - pass parameters to report and schedule its execution in background job. But here arise question how to pass these dynamic parameters? SAP memory doesn't available for background job work process and "SUBMIT WITH FREE SELECTIONS texpr" seems to be intended for LDB or anyway not for such purposes.
    - force FM execution on background job work process - so how if it possible?
    Appreciate your suggestions.
    Regards,
    Maxim.

    Hi Maxim,
    Look at this example program where the user can run it online to enter the input values in the selection screen and then the program just goes into background mode, basically achieved by submitting the same program again skipping the selection screen. This is one more option for you.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln,
                p_bkrun NO-DISPLAY.
    DATA: ls_vbak LIKE vbak.
    DATA: v_answer,
          v_jobcount LIKE tbtcjob-jobcount.
      IF p_bkrun IS INITIAL.
    *-- not background processing
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
                  textline1      = 'This may time out.'
                  textline2      = 'Do you want to run in background?'
                  titel          = 'Warning!!!'
                  cancel_display = space
             IMPORTING
                  answer         = v_answer.
        IF v_answer = 'J'.
    *-- run in the background
          CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname          = 'ZTEST'
               IMPORTING
                    jobcount         = v_jobcount
               EXCEPTIONS
                    cant_create_job  = 1
                    invalid_job_data = 2
                    jobname_missing  = 3
                    OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
    *-- submit the program in the background
          SUBMIT ztest
            WITH p_bkrun = 'X'
            WITH p_vbeln = p_vbeln
            USER sy-uname
            VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
    *-- close the job
          CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    jobcount             = v_jobcount
                    jobname              = 'ZTEST'
                    strtimmed            = 'X'
               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 sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          EXIT.
        ELSE.
          CLEAR v_answer.
        ENDIF.
      ENDIF.
      CHECK v_answer IS INITIAL.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
        WRITE:/ 'Invalid Order Id.'.
      ENDIF.
    END-OF-SELECTION.
      CHECK v_answer IS INITIAL.
      IF p_bkrun IS INITIAL.
        WRITE:/ 'Here is the result running the program in foreground.'.
      ELSE.
        WRITE:/ 'Here is the result running the program in background.'.
      ENDIF.
      WRITE:/ ls_vbak-vbeln,
              ls_vbak-vkorg.
    Let me know if you have any questions.
    Srinivas

  • How to kill a background job

    Hi Experts,
    I would like to ask on how to kill a background job in SAP? I have tried to cancel it via sm50, sm37, dpmon, and even the kill -9 command but none of those commands can solve the issue still the job is running.
    Can you guide me on how to deal to such issue and if you know a command on how to kill that particular job.
    Hoping for your immediate response.

    Hi,
    I think you may not have proper authorization to kill the job.
    You can kill the job through SM50 as follows.
    SM50 -> Choose the background job -> click Process -> and then click Cancel without core.
    If the job is still not getting killed you can ask your basis person to kill it.
    Regards
    Vimal

Maybe you are looking for

  • Authorization issue after 7.0.1 update

    hi~ since i updated iTunes 7.0.0 -> 7.0.1, the songs and TV shows (the free ones) i downloaded ask me to "authorize" them.... and what is very interesting is that i see that i have 2 machines autorized... when i have authorized 1 only.... is it only

  • Oracle VM Server 2.0 for Sun Fire v240?

    Hi all, I am searching and trying all day long to install Oracle VM Server on SPARC 64 Sun Fire v240. I still can not find information is it supported or not? I have Oracle Solaris 10 5.10 Generic_142909-17 sun4u sparc the CPUs are UltraSPARC-IIIi (p

  • Eos 5D footage review in Quicktime is jumping and skipping??!!

    Hello, I have a MacPro 4*2.5 Ghz PowerPC G5 with 6.5 GB DDR2 SDRAM my OS is 10.4.11 and my final cut version is 5.0.4, I tried too review the footage that I took with my Canon 5D mark II but it's impossible to watch it on Quicktime or Final Cut Pro,

  • HTML Mail message deletion

    After installing the new Leopard OS, deleting any single html mail message (such as Borders or Amazon announcements) can take up to five minutes. If I shift and delete several items at once, up to ten minutes. Why is it so slow when it used to be an

  • Group by filter

    Hi All Can any one knows how to implement a Group by filter on coherence Cache as similar to SQL Group By clause. Thanks Vinod YAdav