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

Bacground Job Scheduling Problem

0 Likes
616

Hi ,

I have created a report , using this report we can create inbound deliveries. This report first brings one out put, in the first out put we have to select some check boxes and clike on create button on application tool bar, then we can create inbound deliveries. Can you help me how we can execute this report in back ground

Thanks & Regards,

Krishna

1 ACCEPTED SOLUTION
Read only

agnihotro_sinha2
Active Contributor
0 Likes
580

hi,

Since this REPORT not only needs intervention of the USER at SELECTION Screen level but also at REPORT ALV Output, hence I dont think this can be scheduled as Background job. The Report ALV output changes dynamically, so its not possible to AUTOMATIZE the process for Background processing.

Only if the Output rows are same every time, then we can have a BDC recording for the tCODE of this REPORT.

BTW, why do you want the user to select rows at output and generate Deliveries. Cant you do the same thing from inside the Report based on some logic?

ags.

Hi ,

I have created a report , using this report we can create inbound deliveries. This report first brings one out put, in the first out put we have to select some check boxes and clike on create button on application tool bar, then we can create inbound deliveries. Can you help me how we can execute this report in back ground

Thanks & Regards,

Krishna

3 REPLIES 3
Read only

Former Member
0 Likes
580

Hi,

To run your report in background you can create a job first. And then through that job call your report.

To create a job you can use JOB_OPEN FM.

DATA: lw_number TYPE tbtcjob-jobcount,

lw_name TYPE tbtcjob-jobname VALUE 'ZBack_job'.

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = lw_name

IMPORTING

jobcount = lw_number

EXCEPTIONS

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

OTHERS = 4.

IF sy-subrc EQ 0.

*--- Call the Report in Background

SUBMIT z_report VIA JOB lw_name NUMBER lw_number

AND RETURN.

At last on sy-subrc =0 close the job using FM JOB_CLOSE.

Hope this helps.

Regards,

Vaibhav

Read only

Former Member
0 Likes
580

Dont think the report can directly be scheduled as a background job since it requires the user intervention to select the checkboxes and hit the create button. You could try doing it in BDC and using the background mode.

Vikranth

Read only

agnihotro_sinha2
Active Contributor
0 Likes
581

hi,

Since this REPORT not only needs intervention of the USER at SELECTION Screen level but also at REPORT ALV Output, hence I dont think this can be scheduled as Background job. The Report ALV output changes dynamically, so its not possible to AUTOMATIZE the process for Background processing.

Only if the Output rows are same every time, then we can have a BDC recording for the tCODE of this REPORT.

BTW, why do you want the user to select rows at output and generate Deliveries. Cant you do the same thing from inside the Report based on some logic?

ags.