Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Abap list

Hi all,

What can I do to print an abap list without displaying it?

Thanks.

Deniz.

Tags:
replied

using the NEW-PAGE Print on option you can do that.

First get the Print parameters using the Function GET_PRINT_PARAMETERS function. then call that.

REPORT  ztest_print line-size 100
 line-count 10.
data: valid type c.
DATA: out_parameters TYPE pri_params.
 
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    destination            = 'LOCA'  "Replace with your Dest.Printer
    immediately            = 'X'
    release                = 'X'
    NO_DIALOG              = 'X'
  IMPORTING
    out_parameters         = out_parameters
    VALID                  = valid
  EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params   = 2
    invalid_archive_params = 3.
 
 
NEW-PAGE PRINT ON PARAMETERS out_parameters NO DIALOG. .
 "here you need to call your output statements
"if it is normal list then it should be write statements.
WRITE 'this is for testing'.
 
NEW-PAGE PRINT OFF.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question