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

run job immediately using class ?

former_member194669
Active Contributor
0 Likes
1,744

Hi,

I am using class cl_bp_abap_job to create a job thru abap program.

some jobs need to start with run when abap driver program executed.

I checked the method START but says obsolate. what is option to run the job?

Here is the code i am using


data abapjob type ref to cl_bp_abap_job.
abapjob = cl_bp_job_factory=>make_abap_job( ).
call method abapjob->set_name
           exporting i_name = v_jobname.
call method abapjob->set_report
           exporting i_report = v_report.
call method abapjob->set_variant
           exporting i_variant = v_variant.
call method abapjob->set_language
           exporting i_language = sy-langu.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
1,415

Use method CL_BP_ABAP_JOB->START_SIMPLE

Regards,

Naimesh Patel

Hi,

I am using class cl_bp_abap_job to create a job thru abap program.

some jobs need to start with run when abap driver program executed.

I checked the method START but says obsolate. what is option to run the job?

Here is the code i am using


data abapjob type ref to cl_bp_abap_job.
abapjob = cl_bp_job_factory=>make_abap_job( ).
call method abapjob->set_name
           exporting i_name = v_jobname.
call method abapjob->set_report
           exporting i_report = v_report.
call method abapjob->set_variant
           exporting i_variant = v_variant.
call method abapjob->set_language
           exporting i_language = sy-langu.

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
1,416

Use method CL_BP_ABAP_JOB->START_SIMPLE

Regards,

Naimesh Patel

Read only

0 Likes
1,415

Thanks Naimesh,

I forgot to look into other methods.