函式組: LPRF

SapCity發表於2009-07-27
LPRF Local printing RFC 列印相關的函式[@more@]

函式組: LPRF Local printing RFC
RSPO_FILE_TO_OFFICE Sends an ABAP Spool List to SAPOffice
RSPO_FRONTEND_PRINTERS_FOR_DEV
RSPO_LIST_FRONTEND_PRINTERS
RSPO_LOCAL_PRINT
RSPO_LOCAL_PRINT_TCP Print-out Request on the Local Maschine via TCP/IP
RSPO_LOCAL_TCP Transfer Print Data via GUI RFC / TCP
RSPO_PROCESS_FRONTEND_JOBS
RSPO_TCP_CLOSE Close Connection
RSPO_TCP_OPEN Open Local Port
RSPO_TCP_READ Read Data From Connection
RSPO_TCP_READ_BINARY
RSPO_TCP_START Start a Program on the Frontend
RSPO_TCP_WRITE Write Data via TCP Connection
RSPO_TCP_WRITE_BINARY

DATA: PRDEFAULT LIKE FRPRLIST-PRNAME ,
IS_FRONTEND LIKE RSPOTYPE-MODE .
DATA: LIST LIKE FRPRLIST OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'RSPO_FRONTEND_PRINTERS_FOR_DEV'
EXPORTING
DEVICE = 'LP01'
IMPORTING
PRDEFAULT = PRDEFAULT
IS_FRONTEND = IS_FRONTEND
TABLES
LIST = LIST[]
EXCEPTIONS
NO_LIST = 1
LIST_TRUNCATED = 2
NAME_NOT_FOUND = 3
OTHERS = 4 .

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22172240/viewspace-1024609/,如需轉載,請註明出處,否則將追究法律責任。