2010 May 05 9:31 PM
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
2010 May 06 8:35 AM
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
2010 May 06 5:49 AM
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
2010 May 06 6:36 AM
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
2010 May 06 8:35 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |