01-29-2010 11:19 AM
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
01-29-2010 11:25 AM
01-29-2010 11:34 AM
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
01-29-2010 11:45 AM
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
01-29-2010 11:47 AM
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