on 07-31-2012 5:55 AM
I have add the print button in application tool bar. When i am executing the output in ALV format & click the print button output directly to printer. Already i have to add the print button but codding is not working. Can any one respond me it's very urgent.
if r_ucomm EQ '&PRINT'.
DATA: params LIKE PRI_PARAMS,
arcparams LIKE ARC_PARAMS,
DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
DESTINATION = 'LT50'
COPIES = COUNT
LIST_NAME = 'TEST'
LIST_TEXT = 'SUBMIT ... TO SAP-SPOOL'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 255
LINE_COUNT = 23
LAYOUT = 'X_PAPER'
SAP_COVER_PAGE = 'X'
COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
NO_DIALOG = ' '
IMPORTING
OUT_PARAMETERS = params
OUT_ARCHIVE_PARAMETERS = arcparams
VALID = VALID.
IF VALID <> SPACE.
SUBMIT ZBOM_VS_OFFER TO SAP-SPOOL
SPOOL PARAMETERS Params
ARCHIVE PARAMETERS arcparams
WITHOUT SPOOL DYNPRO.
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
ENDIF.
endif.
ENDFORM.
Please post this in the ABAP forum. This is pure ABAP query and you would get appropriate response from the said forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.