2008 Mar 20 3:12 AM
Hi there,
I have a problem regarding background processing, I have a function module in which, a master background job is scheduled, the master background job is an ABAP program and in this program, I need to schedule several worker background jobs. Each worker job is another ABAP program and the same one.
I'm wondering in which way I can pass parameters when the master job schedules each worker job. I found one function module 'GET_JOB_RUNTIME_INFO' which can get the job name at run time, I can use this function module in the worker job and put my parameters into the job name pattern.
But my problem is, the job name is set as CHAR32 and I need many more parameters which obviously exceed the length of a job name. But I have to pass parameters from the master job to each worker job. Could anyone tell me how I can realise this, please?
Thanks and best regards,
James
2008 Mar 20 3:29 AM
Hi,
Use the SET PARAMETRS and GET PARAMETERS.
Write below statement in you MAster job...
DATA : v_count TYPE I.
EX: SET PARAMETER ID 'ABC' FIELD v_count.
In your worker job
DATA : v_count TYPE I.
GET PARAMETER ID 'ABC' FIELD v_count.
For each worker job declare different parameter IDs.
Note : Parameter IDs should be different and fields(Ex: v_count) should have samename and data type in master and worker.
Hi there,
I have a problem regarding background processing, I have a function module in which, a master background job is scheduled, the master background job is an ABAP program and in this program, I need to schedule several worker background jobs. Each worker job is another ABAP program and the same one.
I'm wondering in which way I can pass parameters when the master job schedules each worker job. I found one function module 'GET_JOB_RUNTIME_INFO' which can get the job name at run time, I can use this function module in the worker job and put my parameters into the job name pattern.
But my problem is, the job name is set as CHAR32 and I need many more parameters which obviously exceed the length of a job name. But I have to pass parameters from the master job to each worker job. Could anyone tell me how I can realise this, please?
Thanks and best regards,
James
2008 Mar 20 3:29 AM
Hi,
Use the SET PARAMETRS and GET PARAMETERS.
Write below statement in you MAster job...
DATA : v_count TYPE I.
EX: SET PARAMETER ID 'ABC' FIELD v_count.
In your worker job
DATA : v_count TYPE I.
GET PARAMETER ID 'ABC' FIELD v_count.
For each worker job declare different parameter IDs.
Note : Parameter IDs should be different and fields(Ex: v_count) should have samename and data type in master and worker.
2008 Mar 20 5:12 AM
Hi there,
This does provide a means for parameter passing, however in my scenario, each worker job is manifested by the same ABAP program, therefore at run time the worker job is not able to recognise which parameter it corresponds to since for worker jobs, different parameter ids are specified in the master job.
Best regards,
James
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |