Status of process chain

hi all,
This is the scenario. I  have  a badi in ecc in which i save the new projects and after saving a project it triggers a job in ecc ,which in turns trigger the process chain.When i try to save several projects in ecc in quick succession, say 3 projects A,B,C then there are 3 jobs which are active in ecc,which inturns triggers the process chain 3 times and hence the p.c gets locked and fails.
In the badi, we had rfc fm which checks the status of the process chain whether its ACTIVE from rspcprocesslog table and then if the status become to G:successfully completed, the second job shold trigger.however its not working.
in the rspcprocesslog(BI side), we find that the status field in the table is having  only two values F:completed or G:successsfully completed, whereas  other values such as ACTIVE ,cancelled are not getting stored.
so i would like to know
1. whether this table holds only  G or F values and why the status like Active or cancelled is not gettin g stored.?
2. apart from these tables what is the method by which i can know the status of process chain or status of thelast process of the chain can be found.?
3.  is there any way to check for the information we get in sm 37 job log in BI side for the last process present in the process chain? *is  the job log stored in some table ,if so what is the table name?*
so can anyone please suggest to  make the second job in ecc to  get scheduled only when the process chain which got triggered for the first job is completed other than the two mentioned(rspcprocesslog, and job log)?

Hi,
You can find the necessary logs & status of the process chains in the RSPCLOGCHAIN table.
ANALYZED_STATUS field stores the values of process status.
G -> Completed
R -> Ended with errors
A -> Active
X -> Cancelled.
Many thanks,
Arda.

Similar Messages

  • Report on Daily Status Of Process Chains

    Hi all,
    I need a report on process chain where daily i can check the status of the Chains executed, failed, logs, start time, end time, log ID, Job Type, Run Time, Last Update ( User name ), Duration, Source System.
    Is there any Standard Report on this, if not how can i achieve this.
    If yes whats the report name.
    Regards,
    av.

    Hi fresher BW,
    U can put ur Process chain in <b>RSPCM</b> (Monitor the process chain) & give ur mail id & give an Interface it will give daily report on that process cahin ( IF u schdule that process Chain Daily).
    Go to RSPCM.
    Click on Add chain( It is just like create button) select ur process cahin which u want to get details daily.
    Thanks,
    kiran.

  • Status in process chain

    Hi Friends,
    Let me explain the situation we have in a detailed manner before I ask for suggestions
    The system:
    WE have developed a custom ABAP program for loading flat file data into one of our ODS and InfoCube. This program has a selection selection where the user gets to browse for the file from his workstation and this file gets uploaded to the application server through the ABAP program. Then the program pastes the file path of the file in the app. server in the InfoPackage and triggers the process chain. After triggering the process chain the program also updates a database table called "LogTable" with the user's name, time, date, filename etc.
    The problem:
    We need to update the table I mentioned above "LogTable" with the status of the process chain. The process chain has the following stages:
    1. Load Data
    2. Update from PSA
    3. ODSO Data
    4. Further Processing
    The table should be updated with either "Success" for overall success of the process chain or "failed" even if one stage fails in the above 4.
    I have researched a lot and found that the table RSPCPROCESSLOG gives the status of each stage of the process chain, but I have no way of mapping these results to the fields in "LogTable" except date. But this option won't work since there may be more than one user using the ABAP load program on the same day and even the same time.
    Can anyone help me with suggestions as to how I can update my LogTable with the status of the process chain.
    Any hints or suggestions would be a huge help since I have come to a dead end with ideas.
    Thank you for your time

    Hi Deepthi,
    You can look for the "job log" status for the jobs in your process chain. For job logs use sm37 transaction an find the relative db table.
    Hope this helps.
    Bye
    Dinesh

  • Undefined status for process chains

    Hello,
    - when do you choose undefined status (grey) for process chains? (in what cases)
    Thanks

    Hi ,
    when you are defining the Pc in planning view , then the color will be grey . In checking view - it will be green ( Successful ) , Yellow ( warnings) Or Red ( Failure) .
    In the joboverview also , above discussed colors are stated for the Pc 's accordingly ..
    Hope this helps out

  • How to send the status of Process Chain to email address?

    Hi,gurus here.
    We monitor process chains' work status by RSPCM, but it's inconvenient.
    Any method to send process chains' work status via email immediately instead of RSPCM?

    Any process in process chain fails, below will send mail to mail ID that specified
    This can be perfectely done using Tcode ALRTCATDEF.
    1. go to ALRTCATDEF
    2. select classification "Process Chains"
    3. click on display/change
    4. double-click on "error in a process of a process chain"
    5. click on "fixed recipients"
    6. write in your username (you have to maintain your e-mail address in SU01 for that to work)
    7. save
    8. go to your process chain (rspc)
    9. go into edit mode
    10. from the menu, select Process chain -> attributes -> alerting
    11. check "send alerts if errors occur".
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=64389689

  • Process Chain Status is Red even though all processes are successful.

    I implement ABAP Code by using standard function module "RSPC_CHAIN_START" for execute process chain and return status of process chain after execute completely as following code:
    Execute Process Chain
    CALL FUNCTION 'RSPC_CHAIN_START'
      EXPORTING
        I_CHAIN             = I_CHAIN
        I_SYNCHRONOUS       = I_SYNCHRONOUS
    IMPORTING
       E_LOGID             = P_LOGID.
      If sy-subrc = 0.
        gt_status = 's'.
        WHILE gt_status = 's'.
    Get Status of Process Chain
          CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
          EXPORTING
          i_chain              = I_CHAIN
          i_logid              = P_LOGID
         IMPORTING
          E_STATUS             = gt_status
          E_MESSAGE            = P_MESSAGE.
    Status G or F - Report that the Chain is Successfully Completed.
    Status A - The chain is Currently running
    Status R or X - Report that the chain has ended with Errors.
        CASE gt_status.
        WHEN 'A'.
    Process chain is running
          gt_status = 's'.
          P_MESSAGE = ''.
        WHEN OTHERS.
    Process chain is completed
          exit.
        ENDCASE.
        IF gt_status = 's'.
           WAIT UP TO 2 SECONDS.
        ENDIF.
    ENDWHILE.
    Display Message
      IF gt_status = 'G' or gt_status = 'F'.
        MESSAGE i162(00) WITH P_MESSAGE.
      Else.
        MESSAGE e162(00) WITH P_MESSAGE.
      ENDIF.
      ENDIF.
    From above code, when execute this function module, sometimes status of process chain is shown as canceled 'X', therefore, output of this function module is shown as "The process chain is canceled". When monitor process chain in RSPC log view, the process chain status is also shown as canceled 'X' and status of all process in process is green, however, after wait for a while, the status changed from canceled 'X' to successful 'G'.
    Why did the status of process chain show as canceled 'X' even though finally process chain status is successful ? If I want to check status of process chain after execute completely, which status should to check in ABAP code?
    Regards,
    Pui

    Using that FM.. u will be providing the Instance and Variant of the failed process.. and hence the reload will start from the failed process but not the entire chain...
    In general the process status shud finish then or based on the link combination  the change from one process to other will happen...
    try to maintain a wait time between the process atleast 2 to 4 secs..
    thanks
    hope this helps..

  • Urgent help regarding process chain error

    hi experts ,,
    one of the process chain is not running properly for last 5 days ....
    now current status of process chain is red ...and msg is last delta isrunning/has errors ..couldnt process request
    msg of yester days chain ........
    Errors have been reported in Business Information Warehouse during IDoc update:
    Could not find code page for receiving system
    error msg in bd87 (with idoc status 02 )
    tried to process idoc manually but it didnt happen ...throughing same error....
    one more thing here is same process chain status on 16th is in yellow status .....
    its in yellow status at dtp load step ....on right click on dtp_load variant --->in batch montior --->job overview
    dtp_laod job was is ready status ....
    i thought this status effecting others so tried to schedule the job couldnt ....
    so deleted job in confession....
    now and process which is bfr dtp_load is in yellow and whole chain is in yellow ....
    what shall i do now ??how to correct this ??
    shall run dtp manually and dso activation manually ???and shall i make process into green  status ???
    or shall retrive deleted job wit basis ppl help???
    please help me...
    whoever helps me to fix this issue will rewarded wit full points and i will be greatful to them ...
    Regars, \
    Harry...

    Yes, as rightly said you need to run the previous delta before updating new records in the latest request. If possible de-schedule the chains for a while, delete the old deltas (assuming you are using flexible updates?) and try to repeat the loads manually & proceed to activate & schedule once the delta has finished processing. If you still think this is an issue related to idocs processing, you can do the re-processing, provided they do not create fresh batch of idocs in the source system. You can re-process the idocs both inbound & out bound using reports like RBDAGAIN (But again, use extreme caution on these!). Please refer the #scn wiki on http://goo.gl/njVLS for more information on the idocs. For reprocessing please check this http://goo.gl/8aAcz. Thanks.

  • Problem in Process Chains

    Hi,
    While checking the regular status of Process Chains, for one of the process chain i am getting message "Status Change of Process CHAIN CS_MDT_F. Save status and trigger events if required".
    This message is showing as same without displaying next screen. I mean to say is that this screen is still as executing even after 3-4 hours. Because of this i am having problem to trugger regular Process Chains in this.
    Please advice.
    Thanks!
    Venkat

    Hi,
    check this table..RSPCPROCESSLOG
    and see the log of your chain.
    Or do one thing..
    first check satus bar of BWD..there will be a session id like this BWD(1) or BWD(2)
    Go to System in context menu->create session.
    Now from the new session BWD(2) or BWD(3).
    write a tranaction \i(your BWD session old one).
    And no close all the session.
    and login again. and go to rspc.
    regards,
    San!

  • ABAP Program for set local process chain failed

    I would like to execute ABAP Program in local process chain. If the condition is in the pre-defined bussiness rule, local process chain is set to fail.
    Currently I use ABAP and Raise Message Error = Message Type E for cancel program. After program is cancelled, local process chain don't know its status, wait for job SAP_CCMS_MONI_BATCH_DP  to determine status of process chain and then further execute subsequent process.
    I 'm not sure that our solution is right or not about set process chain to fail via ABAP. Please suggest us if there are other solution to set process chain as failed.

    Hi.
    Plz see my answer to similar question in [this thread|Re: Manage a message at the end of process chain on Web planning Application].
    Regards.

  • Process Chain Log Maintenance

    Hi All,
    In my project we maintain an load status excel sheet to document all the timings of process chain running in our window.
    We were maintaining only the start time of process chain (we get from RSPCM), now the requirement has changed and customer wants us to mention the end time of each process chain.
    Since we have good amount of process chain running it is becoming really hectic to take timings for each PC.
    Procedure we are following to take the end time is that through RSPCM we go to every PC and take the timing of last process in the PC.This takes lot of time.
    Please suggest from where we can exact log of start and end time of every PC.Are there any table from where we can see the start and end time???
    I am waiting for the valuable inputs......
    Regards,
    Kshitij

    try following ABAP...
    *& Report  ZBI_PROCESS_CHAIN_STATUS_EMAIL                              *
      Program uses parameters and selection options to analyze and/or    *
      email the status  of the BI process chains.                        *
    Selection-screen help:                                               *
    1) Process Chain (ID)                                                *
           Enter the name of process chain to analyze.                   *
           If you leave this field blank, all the process chains will    *
           be picked up.                                                 *
    2) Process Chain Date Selection                                      *
           Enter the Process Chain Date.                                 *
    3) Status of Process Chain                                           *
           Enter the Status of Process Chain to analyze.                 *
           If you leave this field blank, all the status will            *
           be picked up.                                                 *
    4) Send email?                                                       *
           Mark this checkbox, if you want to send email notification    *
    5) Email recipients                                                  *
           The list of people to be notified is entered here. At least   *
           one email address is required.                                *
    *Modification Information:                                             *
    Date      Mod User ID      CTS Number    Description                 *
    *05/01/08   Shalin Shah                    Original Coding Date        *
    REPORT   ZBI_PROCESS_CHAIN_STATUS_EMAIL
             NO STANDARD PAGE HEADING MESSAGE-ID 00
             LINE-SIZE 255
             LINE-COUNT 55.
    Variable Declaration for selection screen                            *
    DATA:
      gs_RSPCLOGCHAIN   TYPE rspclogchain,             "PC ID
      gs_RECEIVER       TYPE SOMLRECI1-RECEIVER,       "Email ID
      gs_BATCHDATE      TYPE RSPCPROCESSLOG-BATCHDATE, "Date
      gs_RSPC_STATE     TYPE RSPC_STATE.               "PC state
    Selection-Screen                                                     *
    SELECTION-SCREEN BEGIN OF BLOCK om1 WITH FRAME.
    SELECT-OPTIONS p_CHAIN  for gs_RSPCLOGCHAIN-CHAIN_ID default 'ZBWC_MAIN' NO INTERVALS. "Process chind ID
    SELECT-OPTIONS p_datum  for gs_BATCHDATE default  sy-datum. "Process chain date
    SELECT-OPTIONS p_Status for gs_RSPC_STATE NO INTERVALS. "Process Chain status
    SELECTION-SCREEN END OF BLOCK om1.
    SELECTION-SCREEN BEGIN OF BLOCK om2 WITH FRAME.
    PARAMETERS: p_Email AS CHECKBOX.       "Send email?
    SELECT-OPTIONS: s_mail FOR gs_RECEIVER lower case NO INTERVALS. "Email address
    SELECTION-SCREEN END OF BLOCK om2.
    AT SELECTION-SCREEN.
      If Send email is checked, makes sure at least one email address is entered.
      if p_Email = 'X'.
        READ TABLE s_mail INDEX 1.
        if sy-subrc <> 0.
          MESSAGE e001 WITH 'Please enter at least one email address'.
        ENDIF.
      ENDIF.
      loop at s_mail.
        if not s_mail-high is initial.
          MESSAGE e001 WITH s_mail-high 'is not valid. Please enter with no intervals'.
        endif.
      endloop.
    START-OF-SELECTION.
    END-OF-SELECTION.
    Variable Declaration                                                 *
    for composing email object
      DATA: OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE. "Email object
      DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE. "Email address
      DATA: DOC_CHNG LIKE SODOCCHGI1.   "Data of an object which can be changed for email
      DATA: ENTRIES LIKE SY-TABIX.      "Count
      DATA: NAME(15).                   "Sapce for email name
      DATA: temp_message(120) type c.   "temp message space
      DATA: psubject(72) type c.        "Email subject
      DATA: temp_time(27) type c.       "temp space to PC start and end time
      DATA: pc_end_time(8) type c.      "PC end time
      DATA: pc_start_time(8) type c.    "PC start time
      DATA: pc_run_date(10) type c.     "PC run date
      DATA: pc_duration(8) type c.      "PC duration time
      DATA: pc_temp_end_time type TIMS. "temp space for pc end time
      DATA: pc_temp_end_date type DATS. "temp space for pc end date
      DATA: pc_temp_duration type TIMS. "temp space for pc duration
      DATA: pc_status(72) type c.       "PC status
    for report format
      DATA: iColor TYPE i VALUE 0,
            iCount TYPE i VALUE 1.
    for saving log of the process chain.
      DATA: I_RSPCLOGCHAIN LIKE RSPCLOGCHAIN OCCURS 0,
            WA_RSPCLOGCHAIN LIKE LINE OF I_RSPCLOGCHAIN,
            I_RSPCPROCESSLOG LIKE RSPCPROCESSLOG OCCURS 0,
            WA_RSPCPROCESSLOG LIKE LINE OF I_RSPCPROCESSLOG.
    Report Logic                                                         *
    Create email subject for report header
      CONCATENATE SY-SYSID ' - BI load status ->' SY-DATUM4(2) '/' SY-DATUM6(2) '/' SY-DATUM0(4)    ' @ ' SY-UZEIT0(2) ':' SY-UZEIT2(2) ':' SY-UZEIT4(2) INTO psubject.
    report header
    FORMAT INTENSIFIED COLOR = 1.
      write / .
      write / '*****************************************************************************************************************************************'.
      Write: / '*                                                 ', psubject, '            *' .
      write / '*****************************************************************************************************************************************'.
      write / .
    *Fill the header
      OBJCONT-LINE = '****************************************************************************************************************'.
      APPEND OBJCONT.
      OBJCONT-LINE =  psubject.
      APPEND OBJCONT.
      OBJCONT-LINE = '****************************************************************************************************************'.
      APPEND OBJCONT.
    Get the log id of the process chain.
      SELECT *
        FROM RSPCLOGCHAIN
        INTO TABLE I_RSPCLOGCHAIN
        WHERE DATUM in p_datum
        AND CHAIN_ID in p_CHAIN
        AND ANALYZED_STATUS in p_Status.
    Loop at all the selected process chains
      LOOP AT I_RSPCLOGCHAIN into WA_RSPCLOGCHAIN.                  "Loop at all the process chaing log
        CLEAR: temp_time, pc_start_time, pc_end_time.
      Get the run date, start time and end time of process chain form RSPCPROCESSLOG table.
        SELECT *
          FROM RSPCPROCESSLOG
          INTO TABLE I_RSPCPROCESSLOG
          WHERE LOG_ID = WA_RSPCLOGCHAIN-LOG_ID.
      Converts PC time to a given local timezone
        CALL FUNCTION 'STU3_ALERTS_CONV_UTC_2_LOCAL'
          CHANGING
            TIME_T = WA_RSPCLOGCHAIN-ZEIT
            DATE_D = WA_RSPCLOGCHAIN-DATUM.
      Convart date and time to MM:DD:YYYY HH:MM:SS
        CONCATENATE WA_RSPCLOGCHAIN-DATUM4(2) '/' WA_RSPCLOGCHAIN-DATUM6(2) '/' WA_RSPCLOGCHAIN-DATUM+0(4) INTO pc_run_date.
        CONCATENATE WA_RSPCLOGCHAIN-ZEIT0(2) ':'  WA_RSPCLOGCHAIN-ZEIT2(2) ':' WA_RSPCLOGCHAIN-ZEIT+4(2) INTO pc_start_time.
      sort all the process chaing log. Because we just want to get the end time of the last log.
        sort I_RSPCPROCESSLOG by ENDTIMESTAMP descending.
      loop to get the end date and end time for the process chain
        LOOP AT I_RSPCPROCESSLOG into WA_RSPCPROCESSLOG.    "Loop 1 for pc_end_time
          CLEAR temp_time.
          temp_time = WA_RSPCPROCESSLOG-ENDTIMESTAMP.
          pc_temp_end_date =  temp_time+4(8).
          pc_temp_end_time =  temp_time+12(6).
        Converts PC time to a given local timezone
          CALL FUNCTION 'STU3_ALERTS_CONV_UTC_2_LOCAL'
            CHANGING
              TIME_T = pc_temp_end_time
              DATE_D = pc_temp_end_date.
        Convart date and time to MM:DD:YYYY HH:MM:SS
          CONCATENATE pc_temp_end_time0(2) ':'  pc_temp_end_time2(2) ':' pc_temp_end_time+4(2) INTO pc_end_time.
        Get PC end-time and duration
          IF pc_temp_end_time = 000000.
            pc_end_time = '??:??:??'.
            pc_duration = '??:??:??'.
          ELSE.
            pc_temp_duration = pc_temp_end_time - WA_RSPCLOGCHAIN-ZEIT.
            CONCATENATE pc_temp_duration0(2) ':'  pc_temp_duration2(2) ':' pc_temp_duration+4(2) INTO pc_duration.
          ENDIF.
        Exit form the loop once we get end-time and duration
          EXIT.
        endloop.                                        "Loop 1 for pc_end_time
      Based on process chain status assign color and create message
        CASE WA_RSPCLOGCHAIN-ANALYZED_STATUS.           "Case pc status
          WHEN 'R'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Ended with errors on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
            CONCATENATE   ' Ended with errors - ' pc_duration INTO pc_status.
            iColor = 6.
          WHEN 'G'.
          Check if duration = '00:00:00' mark as **Error**
            IF pc_duration = '00:00:00'.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Successfully completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
              CONCATENATE   ' Successfully completed - ' pc_duration INTO pc_status.
              iColor = 3.
            ELSE.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Successfully completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
              CONCATENATE   ' Successfully completed - ' pc_duration INTO pc_status.
              iColor = 5.
            ENDIF.
          WHEN 'F'.
          Check if duration = '00:00:00' mark as **Error**
            IF pc_duration = '00:00:00'.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
              CONCATENATE   ' Completed - ' pc_duration INTO pc_status.
              iColor = 3.
            ELSE.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
              CONCATENATE   ' Completed - ' pc_duration INTO pc_status.
              iColor = 5.
            ENDIF.
          WHEN 'A'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Active on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
            CONCATENATE   ' Active - ' pc_duration INTO pc_status.
            iColor = 3.
          WHEN 'X'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Canceled on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
            CONCATENATE   ' Canceled - ' pc_duration INTO pc_status.
            iColor = 6.
          WHEN 'P'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Planned on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
            CONCATENATE   ' Planned - ' pc_duration INTO pc_status.
            iColor = 3.
          WHEN 'S'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Skipped at restart on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
            CONCATENATE   ' Skipped at restart - ' pc_duration INTO pc_status.
            iColor = 3.
          WHEN 'Q'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Released on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
            CONCATENATE   ' Released' ' ' INTO pc_status.
            iColor = 3.
          WHEN 'Y'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Ready on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
            CONCATENATE   ' Ready' ' ' INTO pc_status.
            iColor = 3.
          WHEN 'J'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Framework Error Upon Completion on -' pc_run_date ' @ ' pc_end_time ' **Error**' INTO temp_message.
            CONCATENATE   ' Framework Error' ' ' INTO pc_status.
            iColor = 3.
          WHEN OTHERS.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Undefined on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
            CONCATENATE   ' Undefined' ' ' INTO pc_status.
            iColor = 6.
        ENDCASE.            "Case pc status
      Append pc log to email object
        OBJCONT-LINE = temp_message.
        APPEND OBJCONT.
      change color and write log
        FORMAT INTENSIFIED COLOR = iColor.
        Write: / iCount, '   ', temp_message .
        iCount = iCount + 1.
        CLEAR temp_message.
      ENDLOOP.                               "Loop at all the process chaing log
    Create email subject
      clear psubject.
      CONCATENATE SY-SYSID ' load - ' pc_status INTO psubject.
    Fill the subject
      DOC_CHNG-OBJ_NAME = 'URGENT'.
      DOC_CHNG-OBJ_DESCR = psubject.
      DOC_CHNG-SENSITIVTY = 'P'.
    Cheeck send email checkbox.
      IF p_Email = 'X'.                      "Check if send email is checked
        DESCRIBE TABLE OBJCONT LINES ENTRIES.
        READ TABLE OBJCONT INDEX ENTRIES.
        DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).
      Get recipients
        loop at s_mail.
          RECLIST-RECEIVER = s_mail-low.                    "recipient
          RECLIST-EXPRESS = 'X'.
          RECLIST-REC_TYPE = 'U'.                           "internet email
          append RECLIST.
        endloop.
      Send email
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            DOCUMENT_TYPE              = 'RAW'
            DOCUMENT_DATA              = DOC_CHNG
            PUT_IN_OUTBOX              = 'X'
            COMMIT_WORK                = 'X'
          TABLES
            OBJECT_CONTENT             = OBJCONT
            RECEIVERS                  = RECLIST
          EXCEPTIONS
            TOO_MANY_RECEIVERS         = 1
            DOCUMENT_NOT_SENT          = 2
            OPERATION_NO_AUTHORIZATION = 4
            OTHERS                     = 99.
      Write email status.
        WRITE: /.
        CASE SY-SUBRC.
          WHEN 0.
            WRITE: / '*** Email sent to following recipient(s) ***'.
          Loot to get email id's.
            LOOP AT s_mail.         "Loop s_mail to get email address
              NAME = s_mail-low.
              IF RECLIST-RETRN_CODE = 0.
                WRITE: / NAME, ': succesfully sent'.
              ELSE.
                WRITE: / NAME, ': error occured'.
              ENDIF.
            ENDLOOP.               "Loop s_mail to get email address
          WHEN 1.
            WRITE: / 'Too many receivers specified !'.
          WHEN 2.
            WRITE: / 'No receiver got the document !'.
          WHEN 4.
            WRITE: / 'Missing send authority !'.
          WHEN OTHERS.
            WRITE: / 'Unexpected error occurred !'.
        ENDCASE.
      ENDIF.                        "Check if send email is checked
    Shalin Shah

  • Process Chain statistics (new stats in 2004s)

    Hi,
    We have activated and are loading all stats (new ones) for 2004s.  We are checking the stats through the portal.  We have many stats showing in the default web templates used in the portal to display stats.  Process Chain stats are the only ones showing no data...which can't be true because we have only been loading with process chains.
    Where do you "activate" stats for Process chains themselves?  I am aware of RSPC_API_CHAIN_GET_STATUS, but it appears with 2004s, delivered is a process chain statistics?
    Thanks,  Mark.

    For data-load statistics of process chains and processes:
    use 0TCT_C21, 0TCT_VC21 and 0TCT_MC21
    For more Insights -
    The new InfoProviders are:
    For more highly aggregated query-runtime statistics:
    0TCT_C01, 0TCT_VC01 and 0TCT_MC01
    These replace InfoCube 0BWTC_C02.
    For more detailed query-runtime statistics:
    0TCT_C02, 0TCT_VC02 and 0TCT_MC02 
    These replace InfoCube 0BWTC_C02.
    For data manager statistics:
    0TCT_C03, 0TCT_VC03 and 0TCT_MC03 
    These replace InfoCube 0BWTC_C03.
    For data-load statistics of process chains and processes:
    0TCT_C21, 0TCT_VC21 and 0TCT_MC21
    For data-load statistics of data transfer processes:
    0TCT_C22, 0TCT_VC22 and 0TCT_MC22
    For data-load statistics of InfoPackages:
    0TCT_C23, 0TCT_VC23 and 0TCT_MC23
    These deliver essentially the same information as InfoCube 0BWTC_C05 but they use the new InfoObjects. The remaining new InfoProviders also use the new InfoObjects.
    For the current data-load status of process chains and processes:
    0TCT_VC11 and 0TCT_MC11
    For the current status of requests loaded to InfoProviders, InfoObjects that have been updated flexibly, and PSA tables:
    0TCT_VC11 and 0TCT_MC11
    Hope it Helps
    Chetan
    @CP..

  • Modification of info object to correct the error in process chain.

    Hi Gurus,
    I'm facing some problem as mentioned below.
    I'm loading data by using 5 info packages. Out of these 5 only one info package data has loaded properly the remaining 4 info packages are showing red status in process chain. Even though monitor status is green. When i checked the process chain it is showing error that duplicate data records.
    I did analysis and i came to know that due to info object data type the info object Material number and Material group are showing same values. Now I need to correct the data type for those info objects. I've loaded these directly to info cube and to ODS object.
    Now can anybody tell me the solution how do we go about to change the data type from  Numc to Char. If we change how does it affect in cube as well as in ODS. How do we correct these type of errors when we are in Production system.
    Thanks in advance....
    Amarnath

    hi Ravi,
    Thanks for your help.
    Thanks & regards,
    Amarnath.
    Message was edited by:
            amarnath Reddy

  • Unable to get process chain successful messages via custom program

    Hi all,
    I am executing a process chain both from the custom program and RSPC transaction. A message is supposed to generate for all the successful executions. The problem is I'm getting the message via email while executing it via RSPC transaction. But while executing it from the custom program I cant get the messages though the process chain has run successfully. I'm using the FM  RSPC_API_CHAIN_START where the synchronous and noplan parameters are checked to suppress the server name and priority pop-ups . Following is the code for reference,
    CALL FUNCTION 'RSPC_API_CHAIN_START'
           EXPORTING
          i_chain            = l_chain
          i_synchronous      = c_x
          i_noplan           = c_x
          IMPORTING
            e_logid          = l_userid
          EXCEPTIONS
            failed           = 1
            OTHERS           = 2
    Please suggest if someone has any idea in how to do it. Thanks in advance.
    Regards,
    Debapriya

    Debug and check what values you are getting  at Exceptions.
    or you can use RSPC_CHAIN_START instead RSPC_API_CHAIN_START.
    or you can get the status of process chain using FM RSPC_API_CHAIN_GET_STATUS or table RSPCPROCESSLOG.
    -SS

  • Infopackage and process chain status

    Hello expert,
    I am new in BW technology and I need some help...
    Well I have created a process chain in order to load data into infoprovider. This process chain is running everyday in production system, (it's a tipical PC: delete PSA request, run infopackage, run DTP....)
    I have checked the last status of the process chain and it's yellow since two days ago... It was due a communication error between ERP and BW system, therefore (for some reason), the infopackages started but never ended (always yellow status).
    So, my questions are:
    1.- Is there any configuration for the infopackage to prevent yellow status (for more than X time)?
    2.- Could we control it in a process chain?
    Thank you and best regards

    Hi,
    We can configure for infopackage incase of no records found however you can setup for time linmit.
    You can set the status the request is to receive per InfoPackage in the Scheduler, via Scheduler   Warning Handling. This setting overrides the system-wide setting.
    Check the below link for more info :
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a65cfe07211d2acb80000e829fbfe/frameset.htm
    Regards,
    Satya

  • Process chain status shows incorrect status

    When ever i receive bad data requests from R/3, BW pulls the error requests into a separate PSA and pass-thru the good once in another PSA and then into datatarget.
    However the overall status is green for the job/package and the package when executed in ProcessChain does not show an errors. But the errors are not noticed until user notices it in the qyuery.
    How to capture such errors and notified, is their any automation possible? I have setup e-mail on process chain failures but these kind of errors are not captured because the overall status of request is GREEN.
    Here is the status on infopackage.
    Incorrect data records - error requests (total status GREEN)
    Diagnosis
    Data records were recognized as incorrect.
    System response
    The valid records were updated in the data target and can be used in reporting.
    The incorrect records were not written to the data target, but were posted retractively under a new request number in the PSA.
    Procedure
    Check the data in the error requests, correct the errors, and post the error requests.

    Hi Gopikrishna,
    Please check if "Error Handling" in the Update Tab of your Infopackage has been enabled, I guess it is.
    If this has been enabled , then the error recs will be isolated and only the Correct records will be posted into the Data Target. It is the responsibility of the BW Administrator to identify such errored records, correct them and Post it back to the DAta target. Because error handling is used, the Monitor will show Green, as all the error recs have been separated.
    To avoid this, you have to remove Error Handling from the INfopackage, then you will see the Load failing and the Process Step in the process chain would turn RED with the corresponding error messages.
    Regards,
    Praveen.

Maybe you are looking for

  • Can I move songs from one computers library to another?

    Hi I have an Ipod that my husband originally set up on his computer. I have since set it up on my computer and I have a separater library. Can I plug in the Ipod to my computer and download the library that was on his computer. If so, how. Thank you

  • How to determine if reports are being run/used

    I have two Crystal report environments.  One being version 7.5 and the other is version 10.  Between them, there is a very large number of reports (1000's) that accumulated over the years. I am looking for a way to be able to tell which reports are b

  • How to pass a run time parameter in a customized store procedure

    Hi Friend I have created customized Store Procedure for some logic. Presently i am executing the Store Procedure through the Data Manager Package. But i need to pass a run time parameter at the time of execution the data manager package. Basically i

  • Aperture 3 trial - unable to upload iPhoto library

    Have tried and tried - even tried manual but it hangs time and time again and has to be forced to quit I really wanted to buy this product and it looks really good but to produce a trial that falls at the first fence is very poor and not exactly 'app

  • Making a local call when overseas

    I normally live in Canada. I was in Hong Kong a few months ago and delayed at the airport for 6+hrs. My HK sim card had run out of call time.  I tried using my Skype credit and the airport Wifi to make a local call to a Hong Kong mobile number. It ju