How to properly turn a process red within a Process Chain

Hi,
I am working in a program that will run within a process chain.
There are some circumstances under which I need the program to fail, and the corresponding process to go RED, so the Process Chain will stop.
I think the proper way to do this is by raising an exception, so I wrote some code for that. When debugging, I notice that the exception is raised, but the process goes GREEN, and the process chains does not stop.
What is the proper way to stop the program, so the process goes RED?.
This is the code I use to raise the exception.
  DATA oref TYPE REF TO cx_root.
  DATA text TYPE string.
  TRY.
    TRY.
      RAISE EXCEPTION TYPE CX_DEMO_CONSTRUCTOR
            EXPORTING MY_TEXT = SY-REPID.
      CATCH CX_DEMO_CONSTRUCTOR INTO OREF.
      TEXT = OREF->GET_TEXT( ).
      WRITE / TEXT.
      RAISE EXCEPTION OREF.
    ENDTRY.
    CATCH CX_DEMO_CONSTRUCTOR INTO OREF.
    TEXT = OREF->GET_TEXT( ).
    WRITE / TEXT.
  ENDTRY.

Rollin,
thanks for the tip.
one question: how do I get the mandatory parameters for this?
- Log ID of a Process Chain Run
- Process Type
- Process Variant (Name)
- Process Instance (Value)
thanks,
Mauricio

Similar Messages

  • How can we set a process chain to trigger the nodes w/o manual intervention

    SDNers,
    We have a Master PC which has the loading & activation of some Hierarchies.Wats happening is some of the hier activations are failing (we got track of the root cause as well) and the nodes below are not getting triggered automatically, eventhough they have been designed to get triggered irrespective of success or failure of this hierarchy activation. The chain prompts for the u2018Status change & trigger the following eventsu2019 opo-up and only when it was said u2018yesu2019, the subsequent node gets triggered in the chain. If this manual intervention was not there, the Chain gets struck at the activation node, whic is running in yellow status for long, though a short dump - error has already been thrown.
    My query is how can we set a process chain not to anticipate the manual intervention of chnaging the status & trigger events pop-up

    Hi ravi,
    i'm not sure abt the query but what i got thru ur qustion is u have to automtaically go to the next load/step even the proceess chain fails in the step......
    for that we have the same master meta chains with link of so many local chains...for this even if there are some interventions/fails in between the process chains it never gets stopped....
    it goes to the next step and we'll work, analyse and finish the failed load manually....the next day it'll be
    fine...
    b4 to this make sure that there is no dependency for the previous loads....
    And now the solution i found for this is in the process chain design itself.......
    while giving the links itself we'll be getting the options as status RED,GREEN and RED(or)GREEN.....now if u got for the third option the event goes to the next step even it is unsuceesful....
    rgds,
    nkr.

  • How to stop the running process chain

    How to stop the running process chains or infopackges...just qm status change is enought?

    BI - SM 37 - Kill the Job
    ECC - SM 50 - Kill the job

  • How to create document in process chain

    Hi,
    can u plz tell me how to create document in process chain and wat i need to edit the text for particular info package when document.

    Hi Anil,
    Goto Tcode:RSPC and select your load data process type where you have to right click on the process chain and select Select create message,there are three types of messages
    1>Successful
    2>Error
    3>Always
    If you already created message then go to maintain message
    Where you have two buttons
    1>is for Edit Document
    2>Maintain Recpiants
    Goto Edit Document and put your comment and set their mail address in Mail recipiants.
    Note there are 2 types of messages you can kept at execution of infopackage process type.
    If load is successful send the mesaage to recipients
    If load is failed send the message to mail recipt.
    It would help you.

  • Explain: how to include Infospoke in Process Chain where destination is  DB

    Explain: how to include Infospoke in Process Chain where destination is  local machine database [NOT Flatfile]

    Hi vijay,
    First you create an Infospoke with destination as a DB table in your local BI or BW Machine. Now add this infospoke by going through below steps.
    1. Call up the process chain maintenance. Choose This graphic is explained in the accompanying text Process Chain Maintenance from the Administrator Workbench toolbar. The Process Chain Maintenance Planning View screen appears.
    2. In the left-hand screen area of the required This graphic is explained in the accompanying text display component, navigate to the process chain in which you want to insert your InfoSpoke. Double-click to select it. The system displays the process chain plan view in the right-hand side of the screen.
    If no suitable process chain is available, you need to create a new process chain. You can find additional information under Creating a Process Chain.
    3. To insert a process for extraction by means of an InfoSpoke, choose This graphic is explained in the accompanying text Process Types in the left-hand area of the screen. The system now displays the process categories available.
      4.In the process category Loading Process and Post Processing, choose the application process type This graphic is explained in the accompanying text Data Export into External Systems.
      5.Insert the Data Export into External Systems application type with Drag&Drop into the process chain. The dialog box for inserting a process variant appears.
      6.In the Process Variant field, enter the name of the InfoSpoke that you want to include in the process chain, or select it by means of the input help.
    Once You have added the infospoke you have to write a program which will fetch the database table that you filled and transfer the data fetched to other legacy system with the help of XI System
    For more information on how to infospoke on 3rd party pls find the link below
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f12a03d-0401-0010-d9a7-a55552cbe9da
    Hope this help
    Harish

  • How to check the parent process chain of a meta chain

    Hello Friends,
    Recently I joined a new project, which is of environment BW 3.0. I am trying to find the dependent process chain's parent, but could'nt able to find them. I went through all the process chains manually to check whther the dependent process chain is mentioned in them, but could'nt find any......
    Can any of you help me to know how to find the parent process chain of a meta chain ?
    I really appreciate your time, will be awarding points to any answers.......
    Thanks,

    Hello Radhan,
    thanks for your quick reply. I searched the table based on your advice, but i could'nt get the parent process chain's name. Can you throw some more ideas please..........
    Thanks,

  • How can u know the process chain total time, individual time?

    Hi guru's
    How can u know the process chain total time, individual time?
    and what options will available in sm37?
    Thanks
    prabha reddy

    Hi Prabha
    Iam not very sure about total time and individual times.
    But you can go to tcode rspcm for monitoring the daily process chains. it gives you details like 1. status  2.start date & time  3. Log ID  of each process chain.
    or you can go to log view of particular individual chain to know how long it has run.
    SM37: tcode for simple job selection.
    here you check the status of job.
    you can select for certain conditions like
    1. scheduled
    2. released
    3. ready
    4.active
    5. cancelled
    Assign points if it was helpful
    Revert back if you need further info/
    regards
    AP

  • How can we delete a process chain?

    Dear Ones,
    By Mistake I have converted an infopackage group into process chain in Quality system. How can we delete a process chain?
    Thanks,
    Raj

    Hi Bhanu,
    I've doubt that what is the difference between cancel with core and cancel without core with respect to process chain.
    Could you please advice how do we start a process chain daily without using the schedular window for transaction data.
    Thanks in advance...
    Amarnath.

  • How to trigger a single Process Chain within a Metchain

    Hi All,
    I had a couple of failures in the overnight dataloads.  I need to trigger just 1 process chain within the daily metachain.  I do not want the subsequent chains to be triggered. 
    The variant on this process chain is set to 'Start Using Metachain or API'  I am aware that I need to change this to 'Direct Scheduling' and immediate and then execute.  I need to ensure however that the subsequent chains are NOT triggered.
    Many Thanks BI Experts!
    Michelle

    Hi,
    you can goforward making it to immediate schedule  as you said.
    Also after your chain completes execution make it back to start using metachain.
    I faced the same scenario and did this step and next daily load was succesful .
    Also going forward this way will not trigger the subsequent chains.
    Thanks & Regards,
    Vishnu

  • How to stop a triggered process chain

    Hi,
    Does anyone know how to stop a process chain? It was accidentally triggered twice and we need to stop it. Thanks.

    Hi,
    There r 2 ways to kill the job.
    One is using transation RSMO locate the job and display the status tab double click on the yellow light that is shown on the line total, a pop will come 'set overall status ' is displayed select the desired status that is red and save it. Then return to the monitor page and select the header tab double ckick on the data target right click and then goto 'manage',there should be request sitting there probably with yellow lights , highlight the line with the faulty request click the  delete button then click refresh button.
    Second is goto SM37 and click on the active selection and enter the jobname and then click excute the particulr job should appear highlight the jobname then click on the stop iconthat appears on the taskbar( 3 rd from left)
    hope it is clear.
    Regards-
    Siddhu

  • How to handle delta failed process chain steps

    Hi All,
    I have a query regarding process chains were in processstep has delta load and there is dependency between the predeseccor and successor process steps,then
    if the delta load fails due to any one of the following reasons
    1) due to remote_icp locked the prtclr Infoobject the process step is executing .
    2) due to any psa records errors and so on
    Then how to handle delta and see that correct delta records were updated .
    Because again for the nextday loads if the previous delta is incorrect it will give pop-up message that it is not possible.
    If any suugestions pl guide me.
    thanks
    Venkat
    [email protected]

    1)Remove the lock by force from sm12 or wait till the lock is gone.Then see if the delta data has come till the PSA.Mark failed delta load RED and back it out from target.Then read everything in manually from PSA to target.
    In process chains u can go the monitor entry for the failed load by..highlight chain..click log icon..give selection..for proper selection..see the failed node..right click..display messages..click on process monitor.
    Sometimes even if infopackage is run successful manually,next steps in the chain do not kick off.
    Use Siggi's excellent blog on this..(it works really well)
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    2)Make request RED and back it out from target.
    Correct records in the PSA and read everything in manually from PSA to data target.
    Then use Siggi's blog.
    If data hasnt come to PSA do a delta repeat.
    Always check yesterday's chain run about 1-2 hrs before today's chain kicks off.
    cheers,
    Vishvesh
    Message was edited by: Vishvesh

  • Increse No of BGP while data load and how to bypass the DTPin Process Chain

    Hello  All,
    We want to improve the performance of the loads. Currently we are loading the data from external Data Base though DB link. Just to mention we are on BI 7 system.  We are by passing the PSA to load the data quickest. Unfortunately we cannot use PSA.  Because loads times are more when we use PSA. So we are directly accessing views on external data base.  Also external data base is indexed as per our requirement.
    Currently our DTP is set to run on the 10 parallel processes (on DTP settings for batch Batch Manager with job class A). Even though we set to 10 we can see loads are running on 3 or 4 Back ground parallel processes only. Not sure why. Does any one know why it is behaving like that and how to increase them?
    If I want to split the load into three. (Diff DTPs with Different selections).  And all three will load the data into same info provider parallel. We have the routine in the selection that will look a table to get the respective selection conditions and all three DTPs will kick off parallel as part of the process chain.
    But in some cases we only get the data for two or oneDTPs(depends on the selection conditions). In this case is there any way in routine or process chain to say that if there is no selection for that DTP then ignore that DTP or set to success for that DTP and process chain should continue.
    Really appreciate your help.

    Hi
    Sounds like a nice problemu2026
    Here is a response to your questions:
    Before I start, I just want to mention that I do not understand how you are bypassing the PSA if you are using a DTP? Be that as it may, I will respond regardless.
    When looking at performance, you need to identify where your problem is.
    First, execute your view directly on the database. Ask the DBA if you do not have access. If possible perform a database explain on the view (this can also be done from within SAPu2026I think). This step is required to ensure that the view is not the cause of your performance problem. If it is, we need to implement steps to resolve that.
    If the view performs well, consider the following SAP BI ETL design changes:
    1. Are you loading deltas or full loads. When you have performance problems u2013 the first thing to consider is to make use of the delta queue (or changing the extraction to just send deltas to BI)
    2. Drop indexes before load and re-create them after the load 
    3. Make use of the BI 7.0 write optimized DSO. This allows for much faster loads.
    4. Check if you do ABAP lookups during the load. If you do, consider loading the DSO that you are selecting on in memory and change the lookup to refer to the table in memory rather. This will save tremendous time in terms of DB I/O
    5. This will have cost implications but the BI Accelerator will allow for much faster loads
    Good luck!

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • How to go further in Process chain

    Hi Gurus,
    while running process chain some error occured and i solved that by modifying the record from PSA..
    Then Instead of Going for repeat for next process mistakenly I double clicked on that and run the infopackage, it runs successfully but it showing still running condition in process chian...Can any one tell me how to go further...
    Its very urgent
    thanks In advance
    Siddhu

    Hi sidharta,
    do you have the option to repeat a step in your chain?
    If not then you must finish the chain manually. you can try to end that process by right mouse-click. Maybe then you can repeat the next step. If it was a delta upload be sure that it is green in the monitor otherwise you get some problems at the next load.
    hope it helps
    Jürgen

  • How do you run a Process Chain using parrallel processing group

    Does anyone know the answer to the above question please?
    The problem i am getting is that currently the Process chain is running on the client server and is timing out!
    is there a config setting or some other setting that is needed to stop it from timing out?

    Hi Jas Matharu,
    Hope the following links will give u a clear idea about process chains and clear ur doubts.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    Business Intelligence Old Forum (Read Only Archive)
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    Siggi's weblogs for data load error and how to restart process chain
    /people/siegfried.szameitat/blog/2005/07/28/data-load-errors--basic-checks
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    ****Assign Points If Helpful****
    Regards,
    Ravikanth.

Maybe you are looking for

  • Issues with 10.3.1.1581 on Z10 STL100-3

    Since I updated I have a couple of issues I haven't read about anyone else having.  1) The display is by default in a zoom mode.  Every time I wake it up i have to shrink the screen for it to appear proper size.  It does this in a lot of the apps and

  • FI Document line item text

    Hi Guru's, I try to copy the sales line item from the billing document to the FI document in line item text (SGTXT). I know that I have to use an user-exit      (EXIT_SAPLV60B_006 or BADI BADI_SD_ACCOUNTING) but I don't know how to find the link betw

  • AP Aging with Doc Currency?

    Dear Experts, I am trying to get the AP Aging by Document Currency (instead of Local Currency) using the format as per S_ALR_87012078 (instead of S_ALR_87012085). I have created a from copy from 0SAPDUEAN-01 but I could not find any characteristic th

  • Display Albums in Chronological Order in iPod

    Hi, I was wondering why albums appear in alphabetical order by deafault in iPod and there's no way to organize them by year to display them in chronological order. Perhaps there is a way to do so and I haven't figured it out yet (besides adding the y

  • T400 Backlight Not Working

    I got a Lenovo T400 and the backlight stopped working (LED). Anyone have any ideas?