Process Chain Schedule date
Hi
I have created a process chain and i have set it to run every day night.
The selection in the infopackage must be the present date like today 2007.09.16 and tomorrow it should be 2007.09.17.
Is there any way where it can change the date automatically instead of me changing the date in info package daily and activating the process chain daily.
Thanks
sandeep
Hi
check these links...might be helpful for you.
Re: scheduling process chain 3 specific times a day
Re: How to schedule process chain to run only during specific time.
Process chain schedule daily twice
regards
biplab
<i>***Reward with points if it helps u!!</i>
Similar Messages
-
Need FM or Tables to see Process Chain scheduled(future) date and time
Hello Gurus!
Can anybody tell me where/How i can get the Process Chain scheduled(future) date and time..?
I mean, I want to see at what date and time is the PC scheduled for tomarrow/next month etc... Like TBTCO-SDLSTRTDT / TBTCO-SDLSTRTTM along with its Process chain name or PC's Start varient?
I will give the points for all the answers
Bye.. Happy New YearHi Anil,
You can check in SM37 by giving the job name.then you can see when that particular chain is scheduled.
Goto SM37,
Give Job name = *
User name = *
and select job status - ready,scheduled. then F8 (Execute).
Then you can see which job is schduled at what time and date.
Regards,
Lakshman.G -
Stopping Process Chain schedule for just one day...
Hi,
Our source systems and BI are getting a patch upgrade during this weekend and I need to stop all the Process Chains schedule for Friday night/ Saturday morning. Is there a simple way I can stop all the Process Chains from executing just for tomorrow instead of manually removing each PC from schedule and again putting them back on schedule on Saturday?
Thanks,
Sri.Hi
You can reschedule them instead of de-schedule and schedule back.
1)open your process chain in rspc1
2) goto planning mode
3) right click on start --> display schedule job
4) select the job --> in menu bar --> click on first one from left --> change
here change the dates as per your requirement and save the job.
If you have any event based chains which are going to start after time based chains gets complete, no need to de-schedule as we are not going get trigger from time based chains.
I don't think so we have any program to de-schedule all the chains at a time.
Regards,
Venkatesh -
Hi All,
We have a requirement where we want to have data load on the last day of the month for each month.
Can anyone please explain how to accomplish this step by step through process chains scheduling??
Thanks in advance.
Points will be rewarded generously.Hi Jayesh,
Here are the steps you can use.
1. Create an event in your BW system (SM62).
2. In your R/3 system, write a RFC enabled FM. Inside this FM, call 'BP_EVENT_RAISE'.
3. Create a program in SE38 and call the RFC FM using the destination as your BW system. In this program, you can use 'LAST_DAY_OF_MONTHS' FM to get the last day of month by passing SY-DATUM. I am writing some pseud code for you here.
RFC FM:
Import Parameters: EVENTID like TBTCO-EVENTID (check 'Pass Value').
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = EVENTID.
SE38 Program:
data: date type dats.
CALL FUNCTION 'LAST_DAY_OF_MONTHS'
EXPORTING
day_in = sy-datum
IMPORTING
LAST_DAY_OF_MONTH = date.
If sy-datum = date.
CALL FUNCTION 'ZBP_EVENT_RAISE'
DESTINATION '<your BW system>'
EXPORTING
eventid = EVENTID .
This should do the needful.
Hope this helps.
Thanks and Regards
Subray Hegde -
Authorization objects for Process chain and Data source in BW 3.x
Hi,
Can any one tell me the authorization objects regaring process chain and Data source in BW 3.x versions. I guess we have auth objects for both of them in BW 3.5 that is S_RS_PC AND S_RS_DS .
Can any one help me solving this issue
Thanks
BharatHi bharat
I dont thin these objects are part of 3.0
check from SU03 weather these objects are present in 3.o box
In 7.0 they exist:
http://help.sap.com/saphelp_bw33/helpdata/en/8b/134c3b5710486be10000000a11402f/frameset.htm
TO see weather these objects exist:
Go to Tools -> Administration ->User maintenance ->Information System -> Authorization objects -> Authorization objects by Complex Selection Criteria -> By Object Class. For the object class, enter either RS (for Business Information Warehouse objects)
OR
S_BCE_68001413 (Tcode for this rep)
Thanks,
Raj -
Authorization objects for Process chain and Data sources in BW 3.x version
Hi,
Can any one tell me the authorization objects regaring process chain and Data source in BW 3.x versions. I guess we have auth objects for both of them in BW 3.5 that is S_RS_PC AND S_RS_DS .
Can any one help me solving this issue
Thanks
Bharatits the same thread again
/community [original link is broken]
Thanks,
Raj -
Process chain: manual data change as start process?
Hi,
i have two BWs in which i hold identical InfoObjects (master data). now i want to use a process chain to transfer any changes made to the data in BW X into that object in BW Y.
is it possible to use manual changes of this master data as a start process for the process chain? i only saw the possibility to use InfoPackages and so on. but my process chain should just be triggered by a manual change in the master data attributes.
how do i configure an event as a trigger for the process chain? i do not see the purpose of a start process because i do not see how i can link it with an event...
cheers,
stefan
Message was edited by: Stefan VoltzHi Ram,
i hope I understood everything right.
the table that you called "ztest1" I replaced with /BIC/PVCOM1_U02. That is the copy of the master data from the remote system.
The table in the local system, with which we compare the table /BIC/PVCOM1_U02, has the name /BIC/PVCOM1.
The name of the event I created is called "VCOM_DATA_CHANGE".
And here it goes...
****************BEGIN OF PROGRAM**********
*& Report Z_EVENT_DATA_CHANGE
REPORT Z_EVENT_DATA_CHANGE.
/BIC/PVCOM1_U02 is the table copied from the remote system
/BIC/PVCOM1 is the table containing the master data on the current system
tables: /BIC/PVCOM1_U02, /BIC/PVCOM1.
data: zrec_old(15), zrec_new(15) type c.
data: ztest_old type /BIC/PVCOM1_U02 occurs 10 with header line,
ztest_new type /BIC/PVCOM1 occurs 10 with header line.
select * from /BIC/PVCOM1_U02 into TABLE ztest_old.
zrec_old = sy-dbcnt.
select * from /BIC/PVCOM1 into TABLE ztest_new
where OBJVERS = 'A'.
zrec_new = sy-dbcnt.
if i understood correctly, we sort the tables by field names
so i replaced CURRENCY and ANSALARY by /BIC/PVCOM2_U02, which is the only field in my table beside /BIC/PVCOM1_U02
sort ztest_old by /BIC/ZTEST1 CURRENCY ANSALARY.
sort ztest_old by /BIC/PVCOM1_02 /BIC/PVCOM2_U02.
sort ztest_new by /BIC/PVCOM1 /BIS/PVCOM2.
if zrec_old <> zrec_new.
perform event_raise.
else.
loop at ztest_new.
read table ztest_old with key
/BIC/PVCOM1_U02 = ztest_new-/BIC/PVCOM1 "dot missing?
/BIC/PVCOM2_U02 = ztest_new-/BIC/PVCOM2.
if sy-subrc <> 0.
perform event_raise.
endif.
endloop.
endif.
*& Form event_raise
text
--> p1 text
<-- p2 text
FORM event_raise .
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = 'VCOM_DATA_CHANGE'
EVENTPARM = ' '
TARGET_INSTANCE = ' '
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at ztest_new.
move-corresponding ztest_new to /BIC/PVCOM1_U02.
modify /BIC/PVCOM1_U02.
commit work.
endloop.
LEAVE PROGRAM.
ENDFORM. " event_raise
****************END OF PROGRAM**********
Thanks for helping me again.
I will now find out, how two implement and schedule this program. And how to run the process chain based on that event.
Stefan -
Hi All,
I have a Process chain. Ot was not running from 2 days then i saw in RSPC it was green in color. Then i scheduled it and it turns green.
Steps are: start->load data 1, load data2 , loaddata3->and->so on
Today i saw it ran till load data 2 then at load data 3 it failed
when i saw display variant of load data 1 in that schedule tab last changed by is aleremote but in load data 3 last changed by is username.
request came for ods in data load1 and 2 but not for load 3 and further loads. thats why i ran it manually today.
Can u tell me what is the problem ?Hi Shweta,
Confirm and try this:
when an error in loading process, first delete that particular request from data target manually. correct the error in data package in psa. then load it manually.
after load is succesfull then trigger next process.
Or can u please tell me that log error.. let me try to resolve
Hope it might help you.
Regards
Ashwin
Edited by: ashwin kumar on Mar 17, 2008 12:20 PM -
Process chain - schedule for certain days
Hello all,
How can I schedule a process chain that :
-should run 3 times per day
-between the 8th and the 12 workingday of a month
Any sugesstions?
Thank you.Maybe I cna help others with my solution.
So...
I made the chain to run 3 times per day as Debjani advidced me in this thread.
I put 3 jobs, at the hours I wanted, the period daily, without weekends and holidays.
I made a reports that tests the 18-th working day (for example) and some others:
REPORT Z_DAYS.
TABLES : TFACS.
DATA: GI_CURSOR TYPE CURSOR,
GI_TABIX TYPE SY-TABIX,
GT_TFACS TYPE TABLE OF TFACS.
DATA: TEXT(50) TYPE C,
LEN TYPE I,
IND TYPE I,
POS TYPE I,
CNT_ONE TYPE I,
CNT_ZERO TYPE I,
DAY_VAR TYPE I,
IND_VAR(3) TYPE C.
DATA: EVENTID LIKE TBTCJOB-EVENTID.
DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
FIELD-SYMBOLS: <GT_TFACS> TYPE TFACS.
DAY_VAR = SY-DATUM+6(2).
OPEN CURSOR GI_CURSOR FOR
*select data for factory calender Germany (01) and year 2009
SELECT * FROM TFACS
WHERE IDENT EQ '01' AND JAHR EQ SY-DATUM+0(4).
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
MOVE 100 TO GI_TABIX.
DO.
FETCH NEXT CURSOR GI_CURSOR
INTO TABLE GT_TFACS
PACKAGE SIZE GI_TABIX.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
*loop on internal table
LOOP AT GT_TFACS ASSIGNING <GT_TFACS>.
TEXT = <GT_TFACS>-MON01.
LEN = STRLEN( TEXT ).
WRITE : 'len' , LEN.
DO LEN TIMES.
IND = SY-INDEX.
POS = SY-TABIX.
IND = IND - 1.
IND_VAR = IND + 1.
WRITE: / 'ind', IND_VAR.
WRITE : 'pos'.
WRITE POS.
IF TEXT+IND(POS) = '1'.
*number of working days increases with 1
CNT_ONE = CNT_ONE + 1.
IF CNT_ONE EQ 8 AND ( DAY_VAR = IND_VAR ).
WRITE : / '8th working day'.
EXIT.
ELSEIF CNT_ONE EQ 9 AND ( DAY_VAR = IND_VAR ).
WRITE : / '9th working day'.
EXIT.
ELSEIF CNT_ONE EQ 10 AND ( DAY_VAR = IND_VAR ).
WRITE : / '10th working day'.
EXIT.
ELSEIF CNT_ONE EQ 11 AND ( DAY_VAR = IND_VAR ).
WRITE : / '11th working day'.
EXIT.
ELSEIF CNT_ONE EQ 17 AND ( DAY_VAR = IND_VAR ).
WRITE : / '17th working day' COLOR 5.
EVENTID = 'ZE_PROD'.
EVENTPARM = 'ZEP_PROD'.
CALL FUNCTION 'RSSM_EVENT_RAISE'
EXPORTING
I_EVENTID = EVENTID
I_EVENTPARM = EVENTPARM
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5.
IF NOT SY-SUBRC IS INITIAL.
WRITE:/ 'EVENT DID NOT START'.
ENDIF.
EXIT.
ELSEIF CNT_ONE EQ 18 AND ( DAY_VAR = IND_VAR ).
WRITE : / '18th working day' COLOR 5.
EVENTID = 'ZE_PROD'.
EVENTPARM = 'ZEP_PROD'.
CALL FUNCTION 'RSSM_EVENT_RAISE'
EXPORTING
I_EVENTID = EVENTID
I_EVENTPARM = EVENTPARM
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5.
IF NOT SY-SUBRC IS INITIAL.
WRITE:/ 'EVENT DID NOT START'.
ENDIF.
EXIT.
ENDIF.
ELSEIF TEXT+IND(POS) = '0'.
*number of holidays days increases with 1
CNT_ZERO = CNT_ZERO + 1.
ENDIF.
ENDDO.
WRITE : /.
WRITE: 'January :' COLOR 1, <GT_TFACS>-MON01.
ENDLOOP.
REFRESH GT_TFACS.
ENDDO.
WRITE / .
WRITE ' The number of working days is :'.
WRITE CNT_ONE COLOR 5.
WRITE / .
WRITE ' The number of holiday days is :'.
WRITE CNT_ZERO COLOR 7.
WRITE : / DAY_VAR.
CLOSE CURSOR GI_CURSOR.
When I am in the 18-th day, I raise an event. I test the year,the calender of the system and the month (January).
This report is called in the chain, as ABAP process.
Then, in my chain , I put a local chain , that starts after it receives the event 'ZE_PROD' and the parameter for it 'ZE_PROD'.
This event with parameter has to be created in SM62.
I hope this helps and thank you all for the advices.
PS: - the factory calender method seems not to be to good, because need special rights to create it and I don' t think it's possible to customize it (because the holiday calender has to be changed and I did not see how).
Edited by: EMI on Jan 27, 2009 4:21 PM -
Process chains- different data loads at different points of time
hi friends
i want to load master data at 4am
and then i want to load transaction data at 4:25 am
how can i achieve this by using process chains
to load other datas also at different times and where we have to specify this different timings?
thanks in advanceHi Venkat,
Create Processchain for your data & follow the belo steps -
In Processchain Double click on start button -
1) Select direct scheduling option
2) clcik maintain selections
3) give the date & time when you want to run the job.
4) according the time that you given in selections the job is going to start.
Regards,
Lakshman kumar Ghattamaneni -
Process chain scheduling options
Hi Experts ,
whats the diffrence of Direct scheduling and Start using Metachain or API .
here the scenerio i have one metachain in that i have 4 local chains .
Metachain (direct scheduling)
1
1
Local chain 1 ( Start using Metachain or API) .
1
1
local chain2 (direct scheduling)
1
1
here when i triggred the metachain its not showing any logs and its not triggreing the localchain1 .
could u please explan the diffrence of scheduling options and suggest me to run the metachain successfully.
Advance thanks
Regards
guttireddyHi Guttireddy,
Direct Scheduling: When you activate the process chain the start process is scheduled in the background, as defined in your selections.
Start using Meta Chain or API:
Using API :You can use the SAP NetWeaver Scheduling Framework to start the chain and to have more extensive scheduling options.
Using Meta Chain :A metachain is a process chain, for which you determine this start condition, that is fixed to another process chain. The process chain is started directly by this metachain.If you start the start process using a metachain, it is not scheduled after you have activated the related process chain. The process chain is only started when the metachain, to which it is linked, is running.
Try the below points for your issue:
1. Let the settings for your Meta Chain be 'Direct Scheduling' > Change Selections> Choose required Date/Time. You may also Check Periodic Job and set Periodic Values if required.
2. Now coming to your Local chain 1 > Schedule even this with 'Direct Scheduling' > Change Selections > Check the Immediate start option> Uncheck the Periodic Job Option > Save.
3. Follow step 2 even for your Local chain 2.
4. Now schedule your Meta Chain, it should run fine.
5. You may even set your Meta Chain to run 'Immediate', but you have to trigger it manually everytime.
Hope this helps.
Regards
Sai -
Process chain schedule at 00.15,07.15 and 14.15 hrs daily?
hi experts,
My client ask me to schedule the process chain for 3 times in a day, because client has plants in EUROPE,USA,AUSTRALIA.
The process chains must run 3 times per day e.g. 00:15, 07:15 and 14:15.
How can i schedule the process chain specified like everyday at 00.15, 07.15 and 14.15 hours (these hours based on EUROPE).
but in the process chain variant we can schedule in the other period for hours, but as asked by client above hours how can achieve ?
please provide the solution..
Regards
Venuscm
Edited by: venu WAD on Dec 6, 2011 7:07 AMHi Venu,
Please follow the below points.
1. First schedule your PC to run daily at 00:15 ( Goto your PC> Planning view> Right Click on Display Variant>Change Selections> Date/Time> Enter date and time )
2. Goto your PC> Planning view> Right Click on Display Variant> Display Schedule Jobs> Select the job> Click on Job(Menu)> Copy
3. Now change the value of time from 00:15 to 07.15(Let the date remain same).
4. Repeat step2,3 and create another job for 14.15 run also.
5. Now there should be three individual jobs (00.15, 07.15 and 14.15) if you check in Display Variant> Display Schedule Jobs.
6. Make sure the PC completes before the other run starts (to prevent lock issues).
Note: As the time gap between the PC here is 7Hrs you may follow above steps but if its 8Hrs , then directly schedule the Pc with single Job selecting the Perodic Values as 8Hrs.
Hope this helps
Regards
Sai -
Process chains scheduling option
Hi all,
Can anyone tell me how to schedule a process chain twice daily eg:one at 8 in the morning and again at 4 in the evening .
Thanks,
sunithaHi Sunitha,
Check the following Blog :
Scheduling Process Chain
Suppose we need to run a Process Chain twice a day daily.........at two different timings......X and Y.....
Open the Chain in Planning mode ( RSPC or RSPC1) >> Right click on the Start Process >> Display variant >> Change Selections >> Click on Date/Time tab ....
There in the Scheduled start field give the date when the Chain is going to run for the first time.............and Enter the time in the Time field.......X
Then click on the Periodic value tab and Click on Daily.......
Then Check and Save ..............again Check and save.......
Activate and Schedule the Chain......
Now right Click on the Start Process >> Display Scheduled Jobs >> there u will find one Release Job (BI_PROCESS_TRIGGER) >> Select the Job >> In the top JOB tab >> Click on it and select Repeat Scheduling
There Click on Date/Time tab.................maintain the date and enter time Y......Select Periodic Job Check Box >> Check and save ...................then come out...........
Then u will find that the Start Process is in red color.........it means that the Process chain is scheduled for multiple times..........i.e. it has more than one Release Job.......
Regards,
Debjani.. -
Hi All,
I have scheduled my process chains at 01:00 but they do not run at all. The main transaction chain was scheduled and run once but from there on does not run at all.
I am sure I am missing some small step.
Kind Regards
JamesHi James,
From what you explained i didn't get the exact issue.But you can try out few things:
1. First start variant in the meat chain should be scheduled by direct scheduling and rest of them by Start Using Meta chain option.
2. Try checking that while scheduling did you choosed that daily option or weekly.
for this go to Scheduling Options -> Change Selections -> here choose date/time Tab. Here you have check box of periodic job and and at the bottom you have period values option, choose the appropriate option. Save the variant and schedule it
Hope it works
Regards
Raj -
Process chain scheduling error( Job BI_PROCESS_DROPINDEX could not schedule
Hi,
I am scheduling the process chain but it was throwing an error.
Job BI_PROCESS_DROPINDEX could not be scheduled. Termination with returncode 8
Message no. RSPC065
Diagnosis
Program RSPROCESS is to be scheduled as job BI_PROCESS_DROPINDEX under user ALEREMOTE.
System Response
Scheduling terminated with return code 8. The meanings of the return codes are as follows:
SY-SUBRC = 4:
Scheduling terminated by user
SY-SUBRC = 8:
Error when scheduling job (JOB_SUBMIT)
SY-SUBRC = 12:
Error in internal number assignment
Procedure
Check the system log for more detailed information.
Execute Function
for this i have already checked
in RSPC menu tab
Process Chain >> Attributes >> Execution User
Choose "BW Background User" which should be ALEREMOTE.
above settings i have done.
even though when i am scheduling the process chain i am getting the same error
thanks
sumanSuman,
You are not able to schedule it b'coz it is getting scheduled from user RFCUSER whereas the background user should be ALEREMOTE.
There is an option somewhere in the Menu bar in RSPC to change the Execution user. Please change that to ALEREMOTE,
Please check whether your BW user has enough authorization to run this job. The above post tell you how to do it.
Maybe you are looking for
-
Cannot install due to registry (iTunes 7)
I downloaded and attempted to install iTunes 7 last night, however I got this error: http://img225.imageshack.us/img225/1204/itunesld7.jpg I am the computer administrator. I have tried re-downloading the installer, did not work. I also rebooted my co
-
Is there an adapter for the mini discs to use in the Mac
I have one of the mini discs that I received with my new Blackberry which will get eaten if i try to use the disc slot on my lap top, does Apple make some type of adapter to be able to read these mini discs?
-
Location: Network Settings, Keychain settings - Where?
Hey all.. I recently kinda hosed my keychain... basically i thought I was deleting one chain and I instead deleted another. I'm using 10.4.4 summer ibook 1.42Ghz. Fine machine. I would like to delete all my saved settings for the network and my keych
-
Output Parameters with Application Block's SqlHelper
Hi, I want to use the Microsoft Application Blocks SqlHelper class with some of my stored procedures that have output parameters, but I can't figure out how? SqlParameter[] parameters = new SqlParameter[1]; parameters[0] = new SqlParameter("@SomeID",
-
Reg: Downgrading and data management
Hello all, I've been experiencing some performance issues with my Mac Book Pro lately (I've been having trouble using more than 5-6 tabs in safari or chrome while using itunes and Microsoft Word); I've bought this notebook in mid 2010. It's the 13-in