Application Development 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: 

Error in cl_bp_combo_job --- cl_tc_multifan_net_task method add_task

Former Member
0 Kudos

I try to creata a Job with objects.

I use class cl_bp_combo_job and cl_bp_abap_job

data: cljob type ref to cl_bp_combo_job.

data: clsinglestep type ref to cl_bp_abap_job.

create object: cljob type cl_bp_combo_job.

cljob->set_name( i_name = 'Job1' ).

clsinglestep = cl_bp_job_factory=>make_abap_job( ).

clsinglestep->set_report( i_report = 'ZTEST' ).

cljob->add_task( new_task = clsinglestep ).

Is generated an exception for Add_task.

I found an error in class cl_tc_multifan_net_task method add_task.

Row 40 / 44

insert tasknet_wa into tasknet.

the right code i suppose is

insert tasknet_wa into table tasknet.

Do you know others class or methods to create a Job?

Thanks

4 REPLIES 4

Former Member
0 Kudos

Try to use CL_BP_ABAP_JOB

Max

0 Kudos

My problem is generate a job with multi step.

With cl_bp_abap_job I can create only a Job with a single step. Yes Or No?

If No, Which Method I can use to attach others steps?

If Yes, other class i can use?

Thanks

0 Kudos

I think, I can make a class derived by cl_bp_combo_job, and after make the override of method.

But I'd like to use objects standard sap.

Thanks

0 Kudos

Hi

i think it's poosible to create a job multi step:

-Method IF_BP_JOB_ENGINE~GENERATE_JOB_COUNT

- Method SET_REPORT

- Method IF_BP_JOB_ENGINE~PLAN_JOB_STEP

- Method SET_REPORT

- Method IF_BP_JOB_ENGINE~PLAN_JOB_STEP

- Method SET_REPORT

- Method IF_BP_JOB_ENGINE~PLAN_JOB_STEP

...................................

- Method IF_BP_JOB_ENGINE~RELEASE_JOB

Max