Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hi

Former Member
0 Likes
556

what r the function modules used to generate/ maintain batch jobs

what r the function modules used to generate/ maintain batch jobs

3 REPLIES 3
Read only

Former Member
0 Likes
522

Hi,

The following function modules are used for creating jobs.

Full Control Method

<b> JOB_OPEN

JOB_CLOSE</b>

Easy Schedule Method.

<b>BP_JOBVARIANT_SCHEDULE

BP_JOBVARIANT_OVERVIEW</b>

Regards,

Vara

Read only

Former Member
0 Likes
522

Hi khadar,

There are two ways to schedule a job from a program:

1. the "express" method using the BP_JOBVARIANT_SCHEDULE function module

2. the "full-control" method using the JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE function modules.

With this method, you have full control over such job options as printing, start time options, and so on.

To schedule a job from within a program using the express method, you need only call the BP_JOBVARIANT_SCHEDULE function module.

With BP_JOBVARIANT_OVERVIEW, you can offer your users a simplified display and management function for their "express-method" jobs.

call function 'BP_JOBVARIANT_SCHEDULE'

exporting

title_name = 'Documentation Check' " Displayed as title of

" of scheduling screens

job_name = 'DocuCheck' " Name of background

" processing job

prog_name = 'RSTWGZS2' " Name of ABAP

" report that is to be

" run -- used also to

" select variants

exceptions

no_such_report = 01. " PROG_NAME program

" not found.

call function 'BP_JOBVARIANT_OVERVIEW' " List the jobs that

exporting " have been scheduled

title_name = 'Documentation Check' " Displayed as title

" of overview screen

job_name = 'DokuCheck' " Jobs with this name

" are listed

prog_name = 'RSTWGZS2'

exceptions

no_such_job = 01.

For further information check the link below

http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a80eb505211d189550000e829fbbd/frameset.htm

Read only

abdul_hakim
Active Contributor
0 Likes
522

hi

you can use JOB_OPEN and JOB_CLOSE fms...

Cheers,

Abdul