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.
Similar Messages
-
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. -
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 timeHi 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)
ThanksHi ,
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,
PuiUsing 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.. -
How to schedule the process chain fr the report
hai experts,
i have a query which i need to generate for every five hours? i know that we can generate the report thr process chain but i dont know how to build that..
my question is how to schedule the report,how to build the process chain,....
can any one plz tell me how to start this generating report for every five hours
thanks in advance..points will be alloted surely ,i need this urgently..
SuriFirst of all you need to Identify the InfoObjects if you want to take up Master Data Loads, and if you want take up transaction loads then select the Data Targets to which the data has to be updated. Then plan the dataflow accordingly.
You want to create a Process Chain, Go to RSPC, and then select the create option and from the Process categories available on the left handside drag and drop the Start process, then define the Variant for the same. In the same way you need to identify the other Process Types available on the lefthand side. For Eg: Start Process>Load to ODS>Activation of ODS Data>Delete Indexes for the InfoCube>Load to InfoCube>Create Indexes>Delete Overlapping Req-->Agg. Rollup.
This is how you need to specify the dataflow, several other Process Types also included based on the requirement For Eg: Sending Mail Alerts when the Job is Success or Terminated.
Also, have a look at this links to make urself clear about the steps in creating Process Chain.
http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
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
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
Hope it helps.
Regards,
Archna -
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.
-
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,
Kshitijtry 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 -
How to find from Data target filled by which process chain.
hi all.
i have list of cubes i want to know that which cube is filled by which prcess chain ...
can anyone suggest me appropriate solution.
simply i want to know that when reconcilation which process chain affect on which bex report so that if one process chain got failed then i will not generate that specific report for that day..
i have list of multiprovider on which we are generating rports and tech. name of report also i have.Ganesh ji,
Choose your infopackage which holds the data targets, in the Infopackage screen reach the Scheduler tab and you will find the where-Used list. This will let you know the particular process chain responsible.
thanks
Prabhakaran
09176665954 -
Hi Experts,
I used to run Process chain on daily basis.During Process chain execution time ,R/3 server was down as a result Process chain is not executed at initial stage itself as a result i got yellow color symbol at one process(Infopackage-delta load).
I triggered that process by FM RSPC_PROCESS_FINISH as a result all the successive Processes executed successfully except triggered Process(InfoPackage).
One of the Expert suggested me to check job ,TRFCS which i failed to trace.
The Process(Infopackage-deltaload) which is in yellow color later turn into Red color.
Now I trigger process chain by "Repair" option as result i got duplicate at that process which is very common apart from that i got duplicates in all successive processes also. Lets say that A and B are successive Processes where as A1 and B1 are duplicates
A A1
B B1
After second successful Process chain execution including Infopackage i found links between A and B,A1 and B1.
Apart from this i found cross link(X) between the above links.
I checked records in all DSO in Process chain which contains two records with numbers in both records at that day where as infopackage containing two records one with red color symbol and other with number.
My question is as infopackage is deltaload is there any effect in getting duplicates in successive processes as they are executed two times in a day.
Thanks&Regards,
narasimha.Hi Narasimha,
If the Infopackage is set to Delta then there is no chance of getting duplicate records, Delta will bring only the changed/New records. if you have any dought you can check the data in PSA level... -
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!
VenkatHi,
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! -
Dear Experts,
I have daily schedule of Process chains . At the time of month end due to offline backup or at the time patch upgradation we need to stop the schedule for that day and next day again put in schedule.
Is there any way to define custom schedule like exclude certain days.
Regards,
ManishHi Manish,
1)You can make the process chain to be trigered by an event.
You do so by having the Job that start the PC start after an Event.
Then you define your set of job's (thru SM37) and make sure these jobs fire the event that starts the PC.
There is an ABAP program you can use that fires events (FM -> BP_EVENT_RAISE).
2)In the Start process of your process chain, select Direct Scheduling and then click the Change Selections icon. This will bring you to the Start Time window where you can put in the Date/Time you want to start your process chain. At the bottom of this window, click on the Periodic job box and you will notice another icon way at the bottom called Period Values. Click this to determine what frequency the job should be rescheduled (ie. daily, weekly, etc.).
3)you can do this by right-clicking on the start process, selection "Maintain Variant", choose "Direct Scheduling". Next select "Change Selections", pick your date and time, set your period values and you're done.
Hope this helps.
****Assign Points If Helpful****
Regards,
Ravikanth -
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. -
Attr change run in Process chain!
Hi,
For uploading Master data, we do have different process chains ( Eight to Nine ) for each client and for each source system!
Now the requireement is such that there must be only two Two process chains one for daily uploads and another for weekly uploads!
i coule create a Meta chain which shall be calling all the daily upload Process chains in series!
But what about the attribute change runs?
i had actually included this Attr change run process for each client comibing the other process chains ( Attr, Texts and Hierarchy )
Now since the modelling has been changed for the daily and weekly process chains, i am puzzled about the attribute change run processes!
Because we have lot of infoobjects which are existing in both the clients
Any ideas?
RajHi Raj,
You can solve your problem in 2 ways :
1.Include Attr.change run in each of your local PC or,
2.In your Meta chain ..arrange your Local Chains in parallel
& have a single Attr.change process...here you can select your object type as Infoobject & include all your Infoobjects... one after another... for which you want to run the Attr.change.
Regards,
Chandan
Maybe you are looking for
-
How create URL for see my folio on the web content viewer ?
Hello, I try to create URL for see my folio on the web content viewer but nothing Work i have this informations : my applicationName my accountID my publication Name and my articleName (even if for this i'm not sure) All my articles are free, my foli
-
Fastest partition / part of the drive?
Would anyone know which is the fastest partition when using disk utility to create more than 1? For a 2 partition scheme is it Untitled 1 at the top of the window or Untitled 2 at the bottom. Searched discusions but could not find a clear answer, onl
-
I recently bought "Grand Theft Auto: Vice City" for my iPad for $5, but every time I download the app it just stops. Below the app, where it should say loading, the name pops up. The only problem is the blue loading bar is still on the app, not
-
Importing playlists from itunes
Hi All, new here. I was just wondering.. can I import my itunes playlists in to Nokia music manager, or do I have to input aaaaall the tracks one by one again? / One of my lists is 250+ tracks long, and I was kinda hoping I wouldn't have to grab them
-
HP designjet 500 plus network problem
Hello, I will need your help. I have the HP designjet 500 plus and today i bought the HP JET DIRECT 620N NETWORK CARD.I have installed inside socket,connecting the card with an ethernet cable to the pc.I went to the hp setup on the monitor,selecting