‎2007 Mar 29 5:24 AM
Hi All,
How to run a bdc program scheduled to run in the background in batch mode.
Thanks in advance.
Thanks&Regards.
Ramu.
‎2007 Mar 29 6:39 AM
Hi ,
There are two methods to run bdc in background.
one is programatically i.e. in the program you can use JOB_OPEN fucntion module and after that you can submit you program and after that you can close the job by using funcnction module JOB_CLOSE.
Second method is by using SM36 transaction you can do this.
Generally functional guys can do this method.
Thanks,
shyla
‎2007 Mar 29 6:57 AM
Hi Ramu,
If you want to execute the job in background .There are 2 options.
1.Online
Goto se38-->enter program name >(On menu bar) program>
Exceute-->Background.
2.Schedule
Scheduling Background Jobs:
1. Background jobs are scheduled by Basis administrators using transaction SM36.
2. To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g. company codes).
3. While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users to find the spool request. The following parameters needs to be maintained:
a. Time of printing: set to Send to SAP spooler Only for now
b. Name abbreviated name to identify the job output
c. Title free form description for the report output
d. Authorization a value defined by Security in user profiles to allow those users to access
this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching authorization value in their profiles will be able to see the output.
e. Department set to appropriate department/functional area name. This field can be used in
a search later.
f. Retention period set to Do not delete if the report output needs to be retained for more
than 8 days. Once the archiving/document repository solution is in place the spool requests could
be automatically moved to the archive/repository. Storage Mode parameter on the same screen
could be used to immediately send the output to archive instead of creating a spool request.
Configuring user access:
1. To access a report output created by a background job, a user must have at least access to SP01 (Spool requests) transaction without restriction on the user name (however by itself it will not let the user to see all spool requests). To have that access the user must have S_ADMI_FCD authorization object in the profile with SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
2. To access a particular jobs output in the spool, the user must have S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used in the Print Specifications of the job
3. Levels of access to the spool (display, print once, reprint, download, etc) are controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least BASE access (display).
Hope this resolves your query.
Reward all the helpful answers.
Regards