2008 Feb 06 4:11 AM
Hello All,
I have a problem . I have created a list shows the list of Material Dcoument No( Mblnr) and date with check box as first Column.
When user select the some material document No and press next button One details list will be generatd on the basis of the selected document . I am taking all such data and showning in the next list from there user can take print out with the help of Print command. That's working fine and not having any issue.
Now the problem is this Client Want why the next screen display and again we have to press print button. After selecting the docuement when we press the next button the internal table directly goes to printer for printing.
I have already try with the following way but it's not working.........................
REPORT SAPMZTST NO STANDARD PAGE HEADING LINE-COUNT 0(2).
PARAMETERS P TYPE I.
DATA: PRIPAR LIKE PRI_PARAMS.
CONSTANTS: CX_MARK(1) TYPE C VALUE 'X',
C_ROWS TYPE I VALUE 65,
C_COLS TYPE I VALUE 132,
C_LAY(16) TYPE C VALUE 'X_65_132'.
DATA: VAL(1) TYPE C.
INITIALIZATION.
p = 20.
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_MODE = '3'
COPIES = '5'
DEPARTMENT = 'SAP'
DESTINATION = 'EPSON01'
EXPIRATION = ' '
IMMEDIATELY = 'X'
LAYOUT = 'X_65_132'
LINE_COUNT = 54
LINE_SIZE = 20
LIST_NAME = 'Test'
LIST_TEXT = 'Test for User''s Guide'
NEW_LIST_ID = 'X'
RECEIVER = 'KELLERH'
RELEASE = ' '
SAP_COVER_PAGE = 'X'.
START-OF-SELECTION.
DO P TIMES.
WRITE / SY-INDEX.
ENDDO.
TOP-OF-PAGE.
WRITE: 'Page', SY-PAGNO.
ULINE.
END-OF-PAGE.
ULINE.
WRITE: 'End of', SY-PAGNO.
Can some one tell me is this possible....if yes how can I do it.
Regards
Swati Namdeo...
2008 Feb 06 6:19 AM
please Refer following Link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba5e235c111d1829f0000e829fbfe/frameset.htm