2007 Jul 31 7:50 AM
hi,
In the funtion module Job_open we have a export prametrer Jobclass.
what is the use of the Jobclass and what all values can a jobclass have.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname =
jobclass =
IMPORTING
jobcount =
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
2007 Jul 31 8:09 AM
hi,
In the funtion module Job_open we have a export prametrer Jobclass.
what is the use of the Jobclass and what all values can a jobclass have.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname =
jobclass =
IMPORTING
jobcount =
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
2007 Jul 31 7:53 AM
hi,
If you want to directly schedule a Job and assign the job classification as A in SE38
then go to program -> execute ->Background.
Then to Goto -> Job definition.
Here you can set the Job Classification to 'A'.
Job Priority always set by default to class 'C'.
Refer this thread.
https://forums.sdn.sap.com/click.jspa?searchID=4208981&messageID=1324442
Rgds
Reshma
2007 Jul 31 7:55 AM
Sample Program: Adding an ABAP Job Step
Add a job step: ABAP program
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
AUTHCKNAM = SY-UNAME " Runtime authorizations
" user
JOBCOUNT = JOBNUMBER " Value from JOB_OPEN
JOBNAME = JOBNAME " Value from JOB_OPEN
REPORT = 'REPORT' " Report to be run
VARIANT = 'VARIANT' " Variant to use with
" report
PRIPARAMS = USER_PRINT_PARAMS " User printing options
ARCPARAMS = USER_ARC_PARAMS " User archiving options
" Both sets of options
" come from
" GET_PRINT_PARAMETERS
EXCEPTIONS
BAD_PRIPARAMS = 01
INVALID_JOBDATA = 02
JOBNAME_MISSING = 03
JOB_NOTEX = 04
JOB_SUBMIT_FAILED = 05
LOCK_FAILED = 06
PROGRAM_MISSING = 07
PROG_ABAP_AND_EXTPG_SET = 08
OTHERS = 99.
IF SY-SUBRC > 0.
<Error processing>
ENDIF.
Error processing in the event of a non-recoverable error should
include a call to BP_JOB_DELETE with FORCEDMODE = 'X' to remove
the job from the database. This is required for error
processing in all calls after JOB_OPEN. (The background system
cleans up automatically in the event of a problem in JOB_OPEN).
Please see Selecting and Deleting a Job for a programming
example.
2007 Jul 31 8:03 AM
Hi,
Job class contains job header data. For values look at this structure TBTCJOB.
Rewards Points.
Regards,
Bohra.
2007 Jul 31 8:09 AM
2007 Jul 31 8:19 AM
Hi
Use JOB_OPEN to create a background job. The function module returns the unique ID number which, together with the job name, is required for identifying the job.
Once you have "opened" a job, you can add job steps to it with JOB_SUBMIT and submit the job for processing with JOB_CLOSE.
For more information, please see the online documentation in the function module facility (transaction SE37)
Job Class
Procedure
...
1. Call Transaction SM36 or choose CCMS ® Jobs ® Definition.
2. Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
3. Set the jobs priority, or Job Class:
· High priority: Class A
· Medium priority: Class B
· Low priority: Class C
4. In the Target server field, indicate whether to use system load balancing.
· For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
· To use a particular application server to run the job, enter a specific target server.
5. If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
6. Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
7. Define the jobs steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
8. Save the fully defined job to submit it to the background processing system.
9. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
.Check this links too
http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f53505211d189550000e829fbbd/frameset.htm
Reward all helpfull answers
Regards
Pavan