Question:
Hi,
I'm really at a loss here. I would like to know if it's possible to control the print parameters when you print a list from the ALV Grid display.
I've got a report displaying in ALV grid. What's happening now is, when the Print button in the ALV toolbar is pressed, the print parameter screen comes up with the Destination device and Format type fields defaulted to the User's default values (as set in t-code SU3).
What I need is to default these two fields (Destination device & Format type) to a certain value, like LOCL and X_65_255 for instance.
Is there anyway to do this? Thanks in advance.
Answer:
Hi,
I'm really at a loss here. I would like to know if it's possible to control the print parameters when you print a list from the ALV Grid display.
I've got a report displaying in ALV grid. What's happening now is, when the Print button in the ALV toolbar is pressed, the print parameter screen comes up with the Destination device and Format type fields defaulted to the User's default values (as set in t-code SU3).
What I need is to default these two fields (Destination device & Format type) to a certain value, like LOCL and X_65_255 for instance.
Is there anyway to do this? Thanks in advance.
In one of my reports i used the following code to set the page size and printer destination....
FORM set_print_parameters.
w_list_name = sy-title.
w_list_text = sy-title.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'F19A' * Printer Destination
*" COPIES = COUNT
list_name = w_list_name
list_text = w_list_text
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = days
line_size = 120
line_count = 40
LAYOUT = 'X_44_120' * Page size
SAP_COVER_PAGE = ' '
receiver = sy-uname
*" DEPARTMENT = 'System'
no_dialog = 'X'
IMPORTING out_parameters = params
valid = valid.
IF valid <> space.
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
ENDIF.
_________________
Baz
AsPiRiNg tUlY iDiOt
http://www.catb.org/~esr/faqs/smart-questions.html