on 11-21-2007 9:07 AM
Hi Gurus,
How could I print output of report ie. list to A4 paper.
What settings need to be done. Is it Printer related or ABAP related.
Thank you.
Points guaranteed.
Hi,
DATA:L_PARAMS TYPE PRI_PARAMS,
L_VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IMMEDIATELY = 'X'
LINE_SIZE = 220
RELEASE = 'X'
MODE = 'CURRENT'
NO_DIALOG = 'X'
IMPORTING
OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = L_PARAMS
VALID = L_VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
ENDIF.
"But it will take default printer from user settings
NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG.
write : 'print is on'.
NEW-PAGE PRINT OFF.
Regards,
Omkar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Printer related.
But it is a easy life since you are printing on A4 paper, don't make it complicated.
When printing ABAP list,
you just need to confirm the LINE-SIZE and LINE-COUNT within a A4 paper.
SAP will determine the most suitable format for you during printing.
Here is the candidate format for ABAP list.
X_44_120 - selected if LINE-COUNT <= 44 and LINE-SIZE <=120
X_58_170 - selected if LINE-COUNT <= 58 and LINE-SIZE <=170
X_65_132 - so on
X_65_200
X_65_255
X_65_512/2
X_65_80
X_90_120
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Printer related, but you can pass Parameters from ABAP also to print in which format.
Regards,
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.