09-11-2008 9:57 AM
Hi all,
What can I do to print an abap list without displaying it?
Thanks.
Deniz.
09-11-2008 10:04 AM
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.
09-11-2008 10:00 AM
09-11-2008 10:04 AM
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.
09-11-2008 10:06 AM
hi
use this function module
instead of write statement
RSPO_GET_SIZE_OF_LAYOUT
09-11-2008 10:12 AM
Hi
Good
If you run a program in background process than you can directly get the print of the output without displaying the output.
Thanks
mrutyun^