How to incorporate time in the Process chain messages
Hi,
I would like to create message after success or failure of process chain with time of failure in the subject.How to put system variable in the message subject?.
Your help will be appreciated.
thanks in advance.
Manju
raj,
thanks for your quick reply but i would like to incorporate the finish time in the mail subject.
for example mail subject is as follows.
"GL process chain has been finished at xx:xx time".
Here time (xx:xx) should automatically read and fill as per the finish time of the process chain.
hope now it is clear.any idea how it can be done?.
manju
Similar Messages
-
How to put RSCRM_BAPI in the process chain?
Dear All,
I've used RSCRM_BAPI to extract data from a query into a table. These data in the table needs to be extracted again to the PSA in BW.
So I need to run the job defined in RSCRM_BAPI after the data has been loaded into cube and run the infopackage to extract data after the job has finished.
How can I put these actions in the process chain?
Thanks.
BolunHello Bolun,
Yes you can schedule RSCRM_BAPI extracts in a process chain. You have to write a program that will invoke the RSCRM APIs. You can use the program below.
data error(50) type c.
data g_t_return LIKE bapiret2 OCCURS 0.
data: l_proc like rscrmmon-processed.
data: gv_batchid like RSCRMMON-BATCHID,
gv_jobname like TBTCO-JOBNAME,
gv_actstatus like TBTCJOB-STATUS,
gv_jobcount like TBTCO-JOBCOUNT,
gv_dbstatus like TBTCJOB-STATUS,
l_status type RSCRMBSTAT,
l_wait type i.
parameter: repuid TYPE rscrmrepuid obligatory.
parameter: extrname TYPE tabname obligatory.
parameter: repvar like RSCRMSTATUS-REPVAR.
parameter: overwrt like RSCRMCONTXT-ACTIVE default 'X'.
start-of-Selection.
*Open Query
CALL FUNCTION 'RSCRMBW_REPORT'
EXPORTING
i_mode = 'OPEN'
i_reportuid = repuid
TABLES
e_t_return = g_t_return.
if g_t_return is not initial.
read table g_t_return TRANSPORTING NO FIELDS with key type = 'E'.
if sy-subrc <> 0.
concatenate 'Errors occurred when opening query' error into error.
message error type 'E'.
exit.
endif.
endif.
*use this if you want pass a variant.
*Get variable values
* CALL FUNCTION 'RSCRMBW_VARIABLE_POPUP'
* EXPORTING
* i_reportuid = repuid
* I_VARIANT = repvar
* TABLES
* e_t_return = g_t_return.
*Execute Report
CALL FUNCTION 'RSCRMBW_REPORT'
EXPORTING
i_mode = 'START'
i_reportuid = repuid
i_execmode = 'TABLE'
i_extract = extrname
I_CLEAREXTRACT = overwrt
IMPORTING
E_BATCHID = gv_batchid
E_JOBNAME = gv_jobname
E_JOBCOUNT = gv_jobcount
TABLES
e_t_return = g_t_return.
if g_t_return is not initial.
read table g_t_return TRANSPORTING NO FIELDS with key type = 'E'.
if sy-subrc <> 0.
clear error.
concatenate 'Errors occurred when executing query' error into error.
message error type 'E'.
exit.
endif.
endif.
if sy-subrc = 0.
WHILE ( L_STATUS NE 'SUCC' ).
CALL FUNCTION 'RSCRMBW_BATCH_STATUS_CHECK'
EXPORTING
I_BATCHID = gv_batchid
IMPORTING
E_STATUS = l_status
EXCEPTIONS
NO_JOB_DATA = 1
INHERITED_ERROR = 2
OTHERS = 3.
IF l_status = 'RUNN' or l_status = ' ' or l_status = 'SCHE'.
WAIT UP TO 30 SECONDS.
ENDIF.
ENDWHILE.
IF l_status = 'SUCC'.
if sy-subrc = 0.
write 'Query finished'.
else.
clear error.
concatenate 'Job ' gv_batchid ' failed.' into error.
Message error type 'E'.
endif.
ENDIF.
endif.
*Close report
CALL FUNCTION 'RSCRMBW_REPORT'
EXPORTING
i_mode = 'CLOSE'
i_reportuid = repuid.
end-of-selection.
Use the ABAP Program process to execute this program. Create the data load processes so that they execute on successful finish of this program.
I hope this makes things clear.
Regards
Arvind -
APD runs longer time in the process chain
Hi, i have a query created in 3.5 query designer and created a variant in RSRT.
The query running fine from BEX analyzer as well as from RSRT. But when i include the APD in my process chain (as pocess type apd not as an abap program), it takes a lot time to run. I means hours to run, whereas it runs less than a minute in my Analyzer or RSRT or RSANWB.
Any solution? Do we need to run APD via ABAP program only?Hi Lakshmi
There is no process type available in BI system to execute automatically.
so you has to use ABAP Program to run it
Steps to be followed :
1. Create the APD with t-code RSANWB.
2. Standard program name is RSAN_PROCESS_EXECUTE.
3. The program RSAN_PROCESS_EXECUTE is use to execute the APD (Analysis Process) in different actions.
Thanks & Regards ,
Vishall -
Hi Sapients,
I am loading the data from R/3 to BW through Process chain. Please let me know how to stop execution of the process chain.
Thanks
Mahi.Hi Mahendra,
You have to stop the load in the source system if u r loading from R/3 System, for that use transaction SM50 or SM51 to kill the process.
Hope it helps. Assign points if helpful
Cheers
Raj -
Passing parameters to the process chain
Hi friends,
I want to know ,how to pass parameters to the process chain. Suppose i want to pass parameter to my DTP in my process chain in order to filter the data and do the delta upload in my cube .Hi,
I dont think there is any direct way to achieve this.
There is a work Around which can be achieved with help of abap.
You need to write ABAP routine to get the selection values from user and store them in the table TVARVC.
Then you need to write a routine in the DTP filter to fetch these values.
In the ABAP program where you get the values, you can trigger the process chain once the values are entered for the selections using an event,
Regds,
Shashank -
How to know the process chain start time & end time?
HI all .
how to know the process chain start time & end time at the table level as well as in RSPC level .
regards,
SrinivasHello,
there is a program "/ssa/bwt" which will help you to know the exact time when the process was started and ended.
but the thing is you have to provide name of the process chain with the date at which it was executed.
another option is - you can double click on start process and on the last process of the chain.
here, you will get both the timings... Start time of the start process will be the start time of your PC and end time of the last process in the chain will be end time of your PC.
Hope this will help you. -
How to know the process chain start time and end time
Hi Experts,
How to know the process chain start time and end time .
Thanks in advance
Regards
Gutti
Edited by: guttireddy on Feb 23, 2012 11:30 PMHi Reddy,
You may find the run time of a PC using below steps.
1. Call SE38 > /SSA/BWT > Execute > Enter your PC , choose the date and time > Execute. Here Run-time of a PC is displayed. (or)
2. Call RSPC1 > Enter your PC > Execute > Goto Log view > Right click on the start Variant > Displaying Messages > Note down the start time in Chain Tab. Now Right click on the last Process type of the PC > Displaying Messages > Note down the End time in Chain Tab. The Difference b/w start time and end time gives the Run-time of your PC.
Hope this helps.
Regards
Sai -
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 reddyHi 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 to extend the execution time of an ABAP Program using the Process chain
Hello Sapians,
Our Environment has got 600seconds = 10 mintues as the execution time.
My ABAP Program is taking more than this 600 seconds, to show the result, I found this when I tried to execute in debug mode, it shows the result.
If I execute in background also it shows the results succesfully.
Only issue is when I execute this report in foreground it has been taking ages and goes on Time OUT Error.
It has been decided that we can extend the execution time only for this report, and it will reset the time back to 10mintues once the report has been executed successfully or failed in between for any other reasons.
And we can achieve this by using the process chains.
Can any body help me please in this regard
Thanks,Hi,,,,,,,,,,
Besides Process Chain There is another way out for this........
Resetting time counter of dialog process so that time-out does not
happen. Use this fm within your program at appropriate locations to
reset time counter.
"CALL FUNCTION 'TH_REDISPATCH'."
Thanks
Saurabh -
How can i understand the Process Chain management in real time!!!
Hi,
now i am learning BW concepts. now i would like to know the real time scenarios regarding Process chains. can any body help me in this matter?.
thanks,
stikanth.chHi,
A process chain is a defined sequence of interdependent processes required to perform acomplex task in an SAPBW environment. Data maintenance tasks in SAPBW are notrestricted to uploading data. Aggregate rollups, index maintenance, master data and ODS activation, and a variety of other jobs are required to update data, guarantee best-possible performance, and maintain data integrity. Typical SAPBW implementa-tions have complex interdependent networks of jobs in place that run every night, week,or month.Previous releases of SAPBW did not provide an integrated solution for scheduling and monitoring those kinds of job networks. This has changed with the introduction of process chains in release 3.0. Process chains allow you to define complex job networks consisting of standard SAPBW jobs, as well as custom jobs; they support visualizing the job network and centrally controlling and monitoring the processes.
(from "Mastering the SAP BIW")
New Features in BI 2004s Process Chains
/people/mallikarjuna.reddy7/blog/2007/02/08/new-features-in-bi-2004s-process-chains
Designing
/people/vishvesh.bahirat/blog/2006/11/29/bw-process-chain-design
Process chain creation in 2004s - step by step
/people/juergen.noe/blog/2008/01/11/process-chain-creation--step-by-step
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
http://help.sap.com/saphelp_erp2005/helpdata/en/87/13843b74f7be0fe10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/content.htm
Process Chain Errors
/people/mona.kapur/blog/2008/01/14/process-chain-errors
Common Process chain errors
process chain issues or errors
Try Searching in SDN for this Topic and you will find much detailed info as this is discussed very frequently.
Hope this helps.
Thanks,
JituK -
How to stop the process chain showing status as yellow but no process step
Dear Friends,
How to stop the process chain showing status as yellow but no process step is running in that process chain.
We have manually triggered the process chain for sales it finished successfully till load data but the next step is create index and DB statistics. Both of this steps are in unscheduled position only and no background job for this.
Please guide me.
Thanking you in advance.
Regards,
ShubhangiHi,
At times even I have faced this situation. During those times, running the Function module RSPC_PROCESS_FINISH by passing the right parameters came to my rescue.
Regards,
Raj -
How to test the process chains
hi sap gurus,
Can anybody tell me how to test the Process chains before i load real time data,i run process chains every morning 6.15 am,before that i want to test every process is linked to another.
thanks in advance.Hi,
Scheduling the process is the only way to check whether it is running fine or not. The process chains should be checked first in the Dev server and then in the QA server before transported to Prod.
You can also check the process chain using the "check" button to see if the processes are in the proper sequence or not.
There is a "log" button to keep track of the progress of the chain
suresh -
What is the default time settings in Process chains
Hi,
What is the default time settings in Process chains.
How to set time settings for daily,weekly,monthly loads in Process chains.
What is the time settings that we have to take care when creating meta chains.
Thanks,
Madhu.Hi Madhu,
The Time settings for any PC is done in the start variant of the PC. There is nothing like default time setting. These settings are totally depended on the requirement and system performance. It is a general rule of thumb to load the data during a time when the user activity is minimum as the loading process is going to occupy many dialog as well as background WPs. So, if you schedule them at a time when there are many users on the system, they might feel that the system is slow. Hence, you decide as to what is the best time for scheduling a PC. The same applies to meta chain also. In case of meta chains, you make sure the dependencies of the local chains is also handled. Hope this helps.
Thanks and Regards
Subray Hegde -
Deal all,
I have a doubt:
How to exclude a process from a process chain which has a daily loads.
Ex: We have a problem with 0FI_GL_4 data source and that problem will take more time to solve..but till that time i want to run the remaining processes which are in the process chain (i.e meta chain). i mean to say is i have to exclude the Process which is in problem (0FI_GL_4) but remaining everything should go smooth.
once the problem is rectified again i have to include the process which is in problem in the process chain.
Please help me
Regards
VenuHi Venu,
U just bring the chain in Change Mode and then RightClick on that Process which u want to exclude and say delete.
Once u are done with this Activate ur Process chain and schedule ur Process chain for the time which u want.
Assign Points if this helps u.....
Thanks,
Nagesh. -
How to schedule the process chain
hi
guys,
how to schedule the process chain to run on thirsday and friday b/w 8pm to 11:55pm which has already been scheduled for daily loads at 9am to 11am?
(Tell me the answer in detail)
your regards
sureshHi Suresh,
If you want to change in the Production system, you may not have the Authorizations. If you have authorization;
1. Goto RSPC-->double click on the Process chain
2. double click on the Start variant of the process chain-->Click on the EDIT button
3. Click on the CHANGE SELECTIONS then click on the DATE/TIME Tab;
4. There pls give from which date this process chain has to run to with your requirement time,
then give the time and select the periodic job and select with your requirement.
Save and exit.
It is done!!
Hope you understood.
Regards,
Ravi Kanth
Maybe you are looking for
-
Workflow not working in SRM upgrade from 4.0 to 5.0
Hello, We are upgrading SRM 4.0 To SRM 5.0 CS with backend as ECC6. i am having following problem with workflows, the workflows active on SRM 4.0 is, WS 14000133 Approval Shopping Cart n-Level (BADI) For same workflow and starting condition this wor
-
Avoid timeout in Thread.run
I have a Thread running task by task from a taskpool. while(running) { task = tasks.elementAt(0); process(task); Sometime, processing might take too long (timeout) so I need to force the thread to skip to the next task. 1) How can I accomplish this w
-
I'm trying to figure out if this is a virus or not. When I open the various links they enter sites I did not ask for and often they say I have won something or should register for something
-
Captivate 7 install - error code 15
Any ideas? Running windows 7 64bit, tried rebooting, disabled AV, etc
-
after a n95 firmware update to v20.0.015 my maps were no longer visible so i spent all day downloading nokia map loader and installing the uk maps again, even though they were already on the memory card, now as before when i open maps and zoom into e