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

Similar Messages

  • 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

  • Prcoess chain failrure at AND process step

    Hello,
    I have a global process chain wherein we are loading data from two infopackages and that is then followed by an AND event for further data activation steps.
    This chain has been working fine for months. All of a sudden, for the past three nights in a row, the AND event has been throwing an error as soon as the first of the initial local chains completes. The error is 'This AND process is not waiting for event RSPROCESS, parameter...,' and then it goes on to give the parameter associated with the predecessor chain that has completed. The AND event turns red and does not trigger the subsequent processes when all of the predecessor chains complete. Also, the repeat option does not work. The subsequent processes have to be kicked off manually.
    Any suggestions for how to correct this problem?
    Thanks!

    Hi,
    I know problem is solved by new creation.
    But check these notes:
    Correction: Error in AND process after restart
    SAP Note Number: [1083103|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler]
    SAP Note [850668|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=850668] Correction: No multiple triggers after RSPROCESS event
    Regards
    Andreas

  • Process Chain hangs on AND process

    Help Super gurus!
    I've tried several versions of a chain that loads multiple InfoPackages serially then multiple DTP in parallel using filtering from the PSA to a DSO. All load successfully. Then I have the DTPs all meet at an 'AND' process before processing should continue to a cube.
    The 'AND' process also shows green but it does not continue to the next process step. It just stops there, no more jobs running, no yellow, nothing. It thinks it's all done, everything after that is still blue.
    Why does it hang there and what can I do to get it to continue?
    Thanks,
    Al
    Points available.

    Hi,
    Not sure what is the root cause in your case.
    Try this. It may work. Normally this is done after a step turns red and no repeat is available.
    Method 1 (when it fails in a step/request)
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    How is it possible to restart a process chain at a failed step/request?
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    Therefore you need to open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    Now the actual process will be set to green and the following process in the chain will be started and the chain can run to the end.
    Of course you can also set the state of a specific step in the chain to any other possible value like 'R' = ended with errors, 'F' = finished, 'X' = cancelled ....
    Check out the value help on field rspcprocesslog-state in transaction se16 for the possible values.
    Thanks,
    JituK

  • Process chain Error: This AND process is not waiting for event RSPROCESS

    Hi All,
    I am facing an error in the process chain in PRD.
    Error message: This AND process is not waiting for event RSPROCESS.
    We had a process chain which had two sub chains which run parallel and below of this we had AND process type and below of the AND process we had 4 more jobs.
    Once the two subchains got successfully loaded, the and process should turn to green and further 4 jobs should start.
    It is a daily load , it worked fine from past years,but suddenly the AND processtype is getting failed.The thing is in the two subchains if one got completed, the AND process process is not waiting for 2nd subchain to get completed.The AND process is turning to RED (status: cancelled) . I tried to repeat the AND process once after above 2 subchains loaded, but it didnt worked.
    And i removed the existing AND process and created a new one and placed it in same place and activated and schedules again.but still it is getting failed with same error.
    Thanks in advance,
    Sai Chand.S

    Hi,
    If you did any transports related to that metachain we face similar kind of issues.
    not only the AND process , we need to remove all the process before executing the AND process and create it again.
    It helps you, you said your in production So you should take the proper approvals and do it.
    Regards,
    Yerrabelli.

  • Forms: object and process

    We have two kind of forms. Object and process.
    An object form is associated with a resource and a process form is associated with a process.
    But, I still have a few doubts.
    But what is the difference between them in functionality point of view. Where exactly does process form come into picture. Can we display it?
    Where should we use which form?

    Each resource has an associated object and process form.
    Object form is basically used when requesting a resource for provisioning for accepting data from user. Now before provisioning activity gets triggered, this data is passed to process form to execute provisioning tasks. The data flow/mapping between object and process form is done thr' Data Sink tab in process definition.
    The permissions for both object and process form can be set in Form Designer->Object permissions tab.
    Besides, the process form data can be "editted" for re-try process tasks that have failed/rejected.
    Note: you can also have data pre-populated in process form thr' access policies. The same holds true for object form but having data pre-populated in process form makes more sense. This holds good when having provisioning of resources being triggered thr' role based access policies.

  • Difference between Process dialog and process batch

    Hi experts,
    could you explain me the difference between the two ?
    For me, it is basically the same...they do the same work but one is less performant ?
    Kind regards,
    Jamal

    anyways pls find the answer
    dialog-DIA, used for processing dialog program, e.g awb-administrator workbench, bw monitor.
    batch-BTC, used for any kind of process submitted for batch processing, e.g data load process, aggregate rollups, infocube compression.
    the batch job :
    load process, aggregate rollups, infocube compression.
    the job name can be identified start with BI_xx e.g :
    BI_BATCHxxx trigger to r/3
    BI_REQUxxx load to data target
    BI_ODSAxxx activate ods data
    BI_STRUxxx attribute/hierarchy change run
    BI_STATxxx statistics
    BI_DELxxxx delete data/request
    BI_AGGRxxx aggregate rollups
    also refre this link
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/097167543b11d1898e0000e8322d00/frameset.htm
    Regards
    Abhishek

  • Triggering BW Process Chain based on multiple conditions/events

    Hi all,
    We are facing a situation where we need to execute a BW process chain only if another process chain and two different R/3 jobs are completed.
    Could anyone give any inputs as to how to include multiple start conditions for a BW process chain.
    Thanks,
    Sarath

    we did the following for the same challenge :
    create a z table with a description field and a date field.
    eg
    job_1 20100829
    job_2 20100829
    job_3 20100829
    create one program that reads this table and inserts for every job an entry.
    if you already have two other entries in the table, this means the other two jobs have also finished to you can trigger the chain (check the forum on how to trigger a chain using abap).
    if you don't have the entries in the table insert the entry for this job.
    create one event (event_1) to trigger this program.
    at the end of the R/3 job/process chain raise event_1 in BW.

  • Process InfoPackage based on a condition in Process Chain

    Hi,
    I would like to include a Function Module in my Process Chain.Based on the output of the Function Module (example Flag - 'A','B','C') I would like to load data from Infopackage.
    Could you please suggest the best possible solution.
    Thanks,
    Nimai

    then you need a decision step...
    as you want to use a FM to get the outcome, you can't use the standard decision step as you can only use a formula...
    so you need to implement a new decision step...look on sdn for the how to paper 'Enhanced Decision Process Type for BW Process Chains'...
    this how to paper will lead you to create a process step of the type decision but you can use abap forms (take a look at it and it will become clear)...once you have done this, drag/drop the step in your chain. within the variant, you can define the result of the if, elseif, else...you can add as much elseif as you want (a lot in any case)...you need to create for every 'if' the form using the FM... back in the process chain you can link this step to all the infopackages, and indicate the result of the decision step leading to the infopackage execution...
    that's the nice way...
    the easy way :
    create for every infopackage a single process chain (you can easily copy them)...they should start after event EV_A, EV_B, and so on...every chain after another event...now create an abap program and call the function module...now depending on the outcome of your FM you can trigger one of the events and the corresponding chain will start, leading to the correct infopackage being loaded.
    look on abap forum on more info about event triggering, how to create event,...

  • 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.

  • How can i end the Process chain based on some condition

    HI All,
    I have a scenario where i have a main pc chain which call  the  new chain at the end which in turn again call pc1. So its more like a closed loop .
    pc1-->pc2->pc1
    What main chain does is it reads some field value from a dso and assign that to some variable and set some flag to identify that value has been used. My second chain just run the report using the same variables assign by first chain. Now i have to design the main chain such that when all the values have been read from the dso, it should exit and should not trigger 2nd chain. How can i achieve this scenario.
    Thanks
    Prashant

    Hi,
    For this try using Process Type-"Decision between multiple Alternatives" in your main chain.It helps you the set condieion based on some formulas
    Pls refer links
    Decision Between Multiple Alternatives
    thanks
    nilesh
    Edited by: npathak on Aug 11, 2010 1:16 PM

  • How to trigger a form based on object type and process type

    Hi all,
    I am new into SRM.. I have been asked to develop a form by cloning an existing standard form..
    Using bbp_output_change_sf badi you can trigger the form by passing the object type but the scenario is such that depending on the object type and process type the new form should be triggered.
    The parameter iv_object_type passes the object type but how could i pass the process type ?
    In the badi I noticed an import parameter is_event that has a field called transction_type that carries the process type but this field never got populated when i checked using debugger.
    Please help as to how i can trigger the form based on the object_type and the process_type.
    Thanx in advance.

    Thanx again Jay Yang.. Well is there any possibility that you could get the items that were confirmed..
    Let me eleborate..
    Suppose in the PO u order an item for 10 nos and 5 gets confirmed and u return 2..
    Well in my case it is that i need to fill up a field Qty returned / Qty confirmed..
    I was able to get the number of items from the PO by passing the the passing the parameter to the FM "bbp_pd_conf_getdetaill"
    but i dont know how to get the number of items been confirmed..
    The quantity field in the line item structure gives me the number of items returned..
    Can u tell me how to get the number of items been confirmed....

  • 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.

  • CHAIN: custom process type: EVENT: complex status: bad planned jobs

    Hi experts,
    I've implemented a custom process type (in RSPC/Settings/MaintainProcess) called ZWX_COND.
    The main properties of ZWX_COND are: "ZCL_RSPC_DECISION" as ObjectTypeName, "00 ABAP Class" as ObjectType and "(Scheduled) processs ends with complex status" as PossibleEvents.
    Class ZCL_RSPC_DECISION is a copy of the standar one CL_RSPC_DECISION. I've only made the necessary changes in methods GET_EVENTS and GET_EVENT (I only need two events) and EXECUTE (to choose one of the two events depending on a customized table).
    I've made a main process chain with that new type (a decision step). I've connected that step with the process chain "A" for case ‘01’ and with the process chain "B" for case ‘02’. I've verified the main process chain and all is correct.
    Once I've activated and planned the main process chain, un unknown job BI_PROCESS_CHAIN appears. In addition, although the decision step ends correctly (green color) and the event RSPROCESS with parameter XXXX_02 is triggered (it's correct, since it's indicated in that way in the customized table), process chain "B" doesn't start. In fact, neither process chain "A" nor process chain "B" starts. Both process chains remain in yellow color, but the corresponding jobs are not activated or finished, they are just released.
    I see that the start condition (event parameter) for the planned jobs corresponding to process chains "A" and "B" is incorrect, since it is XXXX in both cases. I think the condition must be XXXX_01 for process chain "A" and XXXX_02 for process chain "B".
    I'd like to implement this process type because I want the process to end with a green status. If I use a custom process type with events "succesfull" or "incorrect", I can make the decision and the chain process works, but the process chain ends with red status when the event triggered is the "incorrect" one.
    Please, could somebody help me? I don't know if it's a program error or I'm implementing it in the wrong way.
    Thanks in advance,
    César Rueda
    PS. Sorry by my English
    Message was edited by:
            César Rueda
    Message was edited by:
            César Rueda

    Hi,
       i am experiencing the same thing .... have you got an answer , i did not see any notes on this type of issue .

  • 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

Maybe you are looking for

  • Firefox hangs for 20-60 seconds at a time, including in safe mode

    Starting last week, with Firefox 6.02, my copy of Firefox kept crashing on opening, even in safe mode. This week, 7.0 hit, and I installed that. Now, Firefox freezes periodically as I click on things -- right-clicking on bookmarks, clicking links, op

  • [SOLVED] KDE4: No sleep on laptop lid close while screensaver active

    I've been trying to figure this out for a while now, and it turns out it's an upstream bug with PowerDevil: https://bugs.kde.org/show_bug.cgi?id=205453 A patch was just posted on that bug report within the last couple days. I rebuilt kdebase-workspac

  • Many-to-many relation

    Hi, There is a many-to-many relation defined for the following tables: Table T_PRICEAFFECTOR Name Type NAME VARCHAR2(100) ISACCUMULATIVE NUMBER(1) RATE NUMBER(10,10) PRICEAFFECTOR_ID NOT NULL NUMBER(10) CATALOG_ID NOT NULL NUMBER(10) UNITTYPE NOT NUL

  • Default Template Problem

    Been using Studio for for the last 6 months on a Windows XP system. Using this product primarily for the Sun One Application Framework. I have always dealt with lockups, system reboots, frequent software bugs but I am now in a bad spot. The software

  • Stuttering extends to QT & Internet Videos

    I have noticed that many of you out there have been experiencing the iTunes stuttering issue just as I. However, I have noticed also that this stuttering extends to QuickTime and internet videos. Any time I watch a video in QT, it will exhibit the sa