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

Spool request output

Former Member
0 Likes
433

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 statisticsNumber
Number of data passed10

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.

2 REPLIES 2
Read only

Former Member
0 Likes
397

Hi Lingraj,

Try to use BDC for Tcode VF31 and Run in a loop to generate Spool Request.

Thanks & Regards,

Akshay.

Read only

Former Member
0 Likes
397

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.