2013 Jul 25 9:45 AM
Hi,
I have requirment like from table LIT(e.g) ,i am trying to create spool request and Diplsay output in spool.
I have used "GET_PRINT_PARAMETER'.
My code like this:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = lwa_arcpar
in_parameters = lwa_pripar
layout = lv_lay
line_count = lv_lines
line_size = lv_cols
no_dialog = gc_set_flag
abap_list = gc_set_flag
IMPORTING
out_archive_parameters = lwa_arcpar
out_parameters = lwa_pripar
valid = lv_val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
I am passing all required value sto spool
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS lwa_pripar
ARCHIVE PARAMETERS lwa_arcpar
NO DIALOG.
****---> alv list display**********************************************
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = xy_layout
it_fieldcat = xt_fieldlog_details[]
TABLES
t_outtab = xt_final_det[].
In output:
It displaying data statistics like:
| data statistics | Number |
|---|---|
| Number of data passed | 10 |
followed by data from LIT as shown in attachment.
Please let me help ,Is there any way to avoid this data statstics table entries .
if i use loop ...endloop,,,,write values of table LIT,I wont get any such statastic details.
2013 Jul 25 11:32 AM
Hi Lingraj,
Try to use BDC for Tcode VF31 and Run in a loop to generate Spool Request.
Thanks & Regards,
Akshay.
2013 Jul 25 1:16 PM
Hi Lingaraj,
You have a structure of type SLIS_PRINT_ALV. in this structure set the value of attribute NO_PRINT_LISTINFO to 'X' and pass this to parameter IS_PRINT of your ALV display FM.
thanks,
Aswath.