Funktionsbaustein PRINT TEXT

Aus SAP-Wiki
Zur Navigation springenZur Suche springen

Dieser Funktionsbaustein PRINT_TEXT

CALL FUNCTION 'PRINT_TEXT'
  EXPORTING
"   APPLICATION                    = 'TX'
"   ARCHIVE_INDEX                  = ' '
"   ARCHIVE_PARAMS                 = ' '
"   DEVICE                         = 'PRINTER'
"   DIALOG                         = 'X'
    HEADER                         =
"   OPTIONS                        =
" IMPORTING
"   NEW_ARCHIVE_PARAMS             =
"   RESULT                         =
  TABLES
    LINES                          =
"   OTFDATA                        =
" EXCEPTIONS
"   CANCELED                       = 1
"   DEVICE                         = 2
"   FORM                           = 3
"   OPTIONS                        = 4
"   UNCLOSED                       = 5
"   UNKNOWN                        = 6
"   FORMAT                         = 7
"   TEXTFORMAT                     = 8
"   COMMUNICATION                  = 9
"   BAD_PAGEFORMAT_FOR_PRINT       = 10
"   OTHERS                         = 11
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur