‎2008 Nov 12 7:47 AM
Hi, All,
I have a normal report in which i am displaying the output as a grid using object oriented ALV.
I have not created any screens for this.I am using Factory functions.
Now this program should also run in background.Is job scheduling in SM36 is enough or should I write any special code for this?
Thanks,
Sandeep.
‎2008 Nov 12 7:54 AM
Hi,
No the OO ALV will take care of this and switch to a printed version in the background.
Darren
‎2008 Nov 12 7:56 AM
Hi Darren,
Do you mean to say that I can directly schedule the job in SM36?
Thanks,
Sandeep.
‎2008 Nov 12 8:28 AM
‎2008 Nov 12 8:54 AM
You don't have to write additional code. Look at the example that SAP provides:
REPORT SALV_DEMO_TABLE_REAL_SIMPLE.
data: gt_outtab type table of SFLIGHT.
data: gr_table type ref to cl_salv_table.
*... Select data
select * from SFLIGHT into corresponding fields of table gt_outtab.
*... Create Instance
call method cl_salv_table=>factory
IMPORTING
R_SALV_TABLE = gr_table
changing
t_table = gt_outtab.
*... Display table
gr_table->display( ).
This program runs perfectly in background. The ALV class switches automatically to a list display when it discovers that it was called by a background task.
Best regards
Jörg
‎2008 Nov 12 9:25 AM
Hi Jorg,
Thank you soo much for your suggestion.
It is very helpful.
Thanks,
Sandeep.