Schedule background job with different user
hi ,
i want to schedule a background job under a different user
i have used the parameter AUTHCKNAM of 'job_submit'
it is giving sy-subrc = 0 .
but it is not working
i have also used the FM 'bp_job_create' in place of 'job_open'
it is giving sy-subrc = 0 .
but not working as needed
kindly help
regards...
hi
Try this
We can do that via SUBMIT statement:
Go through the documentation os SUBMIT statement with addition:
... USER user VIA JOB job NUMBER n
Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
OR
go through this link , i hope this ll help you to solve your problem
http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/ff2138faeb3807e10000009b38f889/content.htm
Hope this helps.
Thanks
Tushar
Similar Messages
-
Who scheduled a job with service user
Hi,
In my one of the system one job is running with service user. As service user cannot log into system. One of the dialog user logged in to system and scheduled one job with service user. this job is running more than 2 months. Now we want to know who is that dialog user scheduled this job with service user. I have checked in job details it is not showing dialog user who has sheduelded first time.
Pls someone help me in this case.
Kind regards,
Ram
<subject_modified>
Use a proper subject
Read the "Rules of Engagement"
Edited by: Juan Reyes on Jul 1, 2009 10:25 AMJust check the job owner.... If the Owner is the service user then most likely the user was changed to service user after the job creation. Also be aware that some jobs are generated by the system.
Regards
Juan -
Scheduling a job with different variants
i have a program to be run daily for three company codes and different materials. If i give all the three company codes at a time then the program is taking a lot of time and giving a run time error 'time limit exceeded' .Can i create variants for that program and make it run sequentially with all the variants.
hi Deepthi,
Yes you can do that .. i even suggest to modify your select statements to reduce the processing time .
Refer
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha -
Scheduling background job with varient
Hi All,
How do we default the dynamic field in the selection screen when we execute the program in background with variant?
Thanks in advance
Jaison.give parameters at selection screen and then click on save ,give variant name n description n then click on push button - Selection varaiables,there u can assign dynamic values like current date n all
amit -
Schedule Background Job whenever new message WVINVE
Hi All,
I have following requirment:-
Schedule Background Job with a ABAP program,
whenever new message type WVINVE posted in SAP inbound.
I am confused in "Event" which i select in SM36.
Or, is there any other method to trigger a background report, whenever WVINVE03 IDOC posted in SAP system & create physical Inventory document.
regards
UmeshFor triggereing a background job, when ever a message type WVINVE is posted. You need to create a
Background Job with the the program and mark the Job Event periodic. Secondly you need to trigger that event from the Inbound processing program or Function module which processes the message type using the Function module <b>BP_EVENT_RAISE</b>. so when ever a message type is processed it will trigger the event which inturns trigger the Job.
Hope this will Help. -
Table name for background job with report, variant and step user id list.
Hello All,
I need to generate the list of scheduled backgroung job with the list of Report Name, Variant, Step User Id called. Please any one tell the SAP Table name from which I can get these data.
Thanks in Advance,
AmitHi Rohit,
Thanks for your reply. But from TBTCO, i can't find program/report name and variant. Just the list of background job i can see.
Regards,
Amit -
Reg Super user for schedule background Jobs
Hi Experts,
I have created new user copied from DDIC with the same authorization. This is for scheduling Background Jobs. Now all the standard background Jobs are running fine. After scheduling the Jobs I have changed to system user. Now for audit purpose I need SAP note to do same. Please help me to get the sap note for the same. Please respond ASAP. treat this is as high priority.
Thanks & Regards,
Haseem.HI,
It is not necessary for user having SAP_ALL authorization under which background job is running.
Define specific users to use for background processing. Define them as system users (non-dialog) and give them only the necessary authorizations that are needed for the executed programs
check http://help.sap.com/saphelp_nw04/helpdata/en/db/f6f3393bef4604e10000000a11402f/frameset.htm
also check Note 101146 - Batch: authorization object S_BTCH_JOB, S_BTCH_NAM
regards,
kaushal -
I am trying to submit report program in background job. I want to submit it with specific user name so I am submitting with user name as 'ABC' as below
data: user type sy-uname.
user = 'ABC'.
SUBMIT z_program AND RETURN
WITH matnr = matnr
WITH werks = werks
USER user
VIA JOB jobname
NUMBER jobcount
But it creates job with current user(sy-uname) running the program and not 'ABC'. How I can change it for specified user?SUBMIT z_program AND RETURN
WITH matnr = matnr
WITH werks = werks
USER user
VIA JOB jobname
NUMBER jobcount
AND RETURN. "you forgot to return back
Of course the user should be the one existing in the system. I guess there is no such ABC. Find the one which exists (use i.e. su01). -
How to deactivate *Schedule Background Job for Work Items with Errors* SWU3
Hello Guys,
Can any one tell me how do I DEACTIVATE Schedule Background Job for Work Items with Errors in sap workflow SWU3.
Currently it is green which I don't want. I want to stop this service.
Regards
NKHello,
You could also just stop the job in tx SM37.
But why would you want to do this? As a test?
regards
Rick Bakker
hanabi technology -
Error in Schedule Background Job for Deadline Monitoring of swu3
While Auto Customization swu3 i am getting error message 'Output device "" not known' in 'Schedule Background Job for Deadline Monitoring'
Please advice what could be cause of itthe earlier problem of background job was solved by changing the output device assigned to user wf-batch .
regarding the transport request :
when i was trying to execute the step : "Schedule bakgrd for missed deadlines " MANUEL it was giving me an option of SAVE AND SCHEDULE . which was creating the transport request . but when i executed it automatically it worked fine without asking a request to me ... i don't know why )-: ... probablly we can specify a different interval then the standard of three minutes and which will be transported (it's just a guess) . i have executed it automatically ...
well thanks all for u r help -
Schedule Background jobs automatically -
Hello Guys,
I have the following requirement.
I have a copy program in BPS-SEM(ABAP program).
Users have to run the copy program for different combinations like
variant:1
costcenetr 100-200
valuetype - 10
user 1
variant:2
costcenetr 400-500
valuetype - 10 to 20
user 1
variant:3
costcenetr 1000 to 2000
valuetype - 50 to 70
user 2
...etc.maybe there will be 10 to 15 variants will be created by 4-5 different users .
I have to schedule the above jobs in sequence. The user wants to determine
variant 1 - seq 1
variant 4 - seq 2 after completing variant 1
variant3 - seq3 after completing variant 4
so I have to schedule all the variants in sequence the user wants to schedule the job.
After all the above jobs are done, I have to schedule a job with variant called - calculate all functions. This has to be last after running all the above variants.
My question is
4 users have created 10 variants.
I want to schedule the above variants in sequence in which the user wants to do execute it.(Is there anyway user can choose the sequence )
2.After running all the above variants I have one variant which I have to run after completing the above variants.
Thanks for your help guys.Hi,
While Scheduling jobs through SM36 you have to specifiy the start condition for a Job.
You can specify the START CONDITION as 'AFTER JOB'. So the first JOB will be scheduled normally. For all the Other JOBS, we will specify the start condition as the Previous JOB.In this case the Job will run After the completion of the previous Job.
So you can schedule all the JOBS in sequence for all the Variants. So every JOB will run one after other in sequence
Go through the link below
http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a7fae505211d189550000e829fbbd/content.htm
Reward points if useful
Regards,
Abhishek -
Schedule Background Job : Remove delivery Block in Sales order
Hi Gurus,
I have a requirement to select all sales orders as per a condition and remove delivery block at
VA02-> Go to -> Header -> Status
For that I have to write a program which will be run only in background and i have to schedule background job for the same.
I have a parameter at selection - No of records
If no of records = 500 , I have to submit 500 jobs ie one job each for each sales order for removing delivery block.
I need to know
1) Which function module/bapi I can use to remove delivery block at sales order header level.
For blocked delivery the status is 'BSTK" . to remove block i need to change status to "RSTK".
2) How to schedule a background job for my program and how to submit one job each for each sales order.
Regards
Avi.Hi Avi,
Would like to seek for your advice. I am facing the same scenario too which is to delete the delivery block but is deletion of the delivery block is done in the user exit MV45AFZZ. The subroutine which needs to have the extra logic of deleting the delivery block is USEREXIT_SAVE_DOCUMENT_PREPARE.
Need your advice on how do you solve this scenario? Thanks in advance. -
Schedule background jobs at OS level.....
Hi All,
Scheduling Background Jobs at SAP Level is a very simple task. Is there any way to schedule background jobs at OS level? Please lemme ASAP....
Thanks
RhishabhHi Rhishabh,
Actually we can not completely schedule background at OSLevel but we can trigger a background job which has alreadyscheduled by using sapevt tool syntax as follows.
sapevt <event name> nr=<instance name> name=<host name>
or we have tool like
In unix you use crontab.
We can use different job scheduling softwares like IBM TIVOLI software MAESTRO JOB SCHEDULING CONSOLE, Control M
Regards,
Kiran M -
Hi
Gurus
What is Schedule Background Jobs and whatu2019s the use of Schedule Background Jobs
How it will worku2019s
Please give me detail Information about Schedule Background Jobs
Many Thanks
MahiHello Mahi,
The BackGround job - "Program" thats runs in SAP Server and not depend any user interface.
like Antivirus program on your local station that runs (scaning your computer all the time) without any user interface (becide tray Icon) and unless you going to Running Proccess on your computer you don't know that it working.
Schedule BackGround Job its any backGround Job that you schedule to run any time you want and you can make it run recursivly.
you can go to Transaction SM36 to schedule your Programs.
Good Luck
Eli Steklov
Please Reward Points if it Helped -
Splitting a background job over different application servers
I am running my program in the background and its taking long to complete. I have done some optimizations and it has greatly improved but still not running as fast as I want because its processing large amounts of data and the amount of time that I want all the data to be processed is little compared to the runtime of the program so now I want to split the background job over different application servers. Can someone tell me how do I go about doing that and example ABAP code will be greatly appreciated.
Many thanksHello, If you are interested in BANK_PP_JOBCTRL, here are some of the inputs. Its work very efficeintly, though you will have to investigate a little bit froom your end.
With in package bank_pp_jobctrl , you will find these FM. I have mentioned the use of it as well.
RBANK_PP_DEMO_GENERATE_DATA: To create the Business data for Parallel Processing.
RBANK_PP_DEMO_CREATE_PACKMAN: To create Packages out of the business data.
RBANK_PP_DEMO_START : To process data in parallel.
RBANK_PP_DEMO_RESTART: To re-process failed records during parallel Processing.
You will need to call above in your report program in the same sequence as shown above based on you requirement. I did used only first three.
TO generate events you will need to execute SE38: RBANK_PP_GENERATE_APPL to create application this will create the FM with numbers as shown below.
Events: This PPF automatically triggers various events during the execution of theStart Program. Each of this event is associated with a custom function module which contains the business logic.
For implementing this framework, at least the below mentioned methods should be implemented .
0205 – Create Package Templates : This method is used to write the logic for creating packages which in turn decides the data to be processed in parallel. This function module is called in loop at the loop ends only when the exporting parameter E_FLG_NO_PACKAGE has a value ‘X’ passed back to the Parallel processing framework.
1000 – Initialize Package :This method is the first step in processing a package. It fetches all the parameters required for the parallel processing to start. All the parameters are passed to this FM as importing parameters and it is the responsibility of this FM to save it in global parameters so that it can be utilized by Parallel processing framework.
1100 – Selection per Range : This method is used to read data for a package. The objects selected must be buffered in global data areas of the application for later processing. The package information is stored as interval in global parameters and this information is used to select the package specific data.
1200 – Selection for Known Object List: This method is used instead of method 1100 if it is a restart run. The objects to be processed are known already.
1300 – Edit Objects: The processing logic to be implemented using parallel processing for the selected objects is written in this method. This function module is used to implement the business logic and
Also, obiviously you would like to log your messages , so the framwrok provides macros to do it.
Let me know if you need some further help as I know there is very little information provided on this.
Regards/Ajay
Maybe you are looking for
-
Jabber for Windows 9.2 call stats
Does anyone know how to view call stats in Jabber for Windows 9.2 (or if it is even possible)? Thanks, Mike
-
just got photoshop cc 2014 on windows 8.1 64 bit, and it starts up on the white layout and and whenever I start a project it is in a window? Also whenever I try to change on of these it does not save. I am using the trial. Basically nothing saves and
-
I'm getting a Download Error warning after attempting to download and install CC. No error code – just a button prompt to Reload Applications which takes me straight back to the Download Error. All my previously installed CC apps work fine but I need
-
Telphone order of OS X Lion - Delivery: email with download link - So, why would that take 1 week to be delivered??? I remember times when Data connection was so slow that it would actually take 1 week to send today's sizes of email - but that was 25
-
How to use US itun shop in uk?
i was wondering if you can help me with following problem... i would like to purchase some music and films from american itunes shop . unfortunately when i try doing this i am redirected to the original shop i signed up for - the UK shop. how to solv