SAP Reports / Programs

RSTXPDF2 SAP ABAP Report - Administration/Upload of type 1 and TrueType font files







RSTXPDF2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Managing soft fonts for PDF conversion You use this report to manage font files (soft fonts) that are required in the R/3 System when you convert SAPscript documents into the PDF format (Adobe Acrobat Format)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSTXPDF2 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSTXPDF2. "Basic submit
SUBMIT RSTXPDF2 AND RETURN. "Return to original report after report execution complete
SUBMIT RSTXPDF2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: BOLD = Font attribute BOLD
Selection Text: DELETE = Delete font file
Selection Text: EXTINFO = Detailed font info
Selection Text: FAMILY = SAP font family
Selection Text: FILENAME = File name
Selection Text: FONTENC = Use font character set
Selection Text: ITALIC = Font attribute ITALIC
Selection Text: LISTALL = Show available font files
Selection Text: LISTATT = Read attributes for font file
Selection Text: NOFNTREP = Do Not Replace Other Fonts
Selection Text: NOPDFEMB = Do not insert font in PDF
Selection Text: SOFTFONT = Install global softfont
Selection Text: UPDATE = Read and save font file
Title: Administration/Upload of type 1 and TrueType font files
Text Symbol: 131 = Activity to Perform
Text Symbol: 132 = Param. for activity
Text Symbol: 133 = Parameter for list output
Text Symbol: 134 = RTF font info for PC txt editr
Text Symbol: 135 = Parameter for global softfonts
Text Symbol: 136 = No PDF Embedding
Text Symbol: 137 = No Font Replacement
Text Symbol: 200 = Mandatory TrueType table missing:
Text Symbol: 201 = Check sum o.k. for TrueType table
Text Symbol: 202 = Warning: Check sum error for TrueType table
Text Symbol: 203 = This is a symbol font - Character set unknown
Text Symbol: 204 = No Microsoft Unicode Encoding - TrueType import impossible
Text Symbol: 205 = The TrueType font is a proportional font
Text Symbol: 206 = The TrueType font is a non-proportional font
Text Symbol: 207 = This font is bold and italic
Text Symbol: 208 = This font is italic
Text Symbol: 130 = Admin. of softfonts for SAPscript and PDF converter
Text Symbol: 128 = PDF Conv.
Text Symbol: 127 = SAPscript
Text Symbol: 126 = Unknwn
Text Symbol: 125 = TrueType
Text Symbol: 124 = Type1
Text Symbol: 123 = Coding
Text Symbol: 122 = Purpose





Text Symbol: 121 = BoundingBox
Text Symbol: 120 = Encoding
Text Symbol: 118 = Font Family
Text Symbol: 117 = Font name
Text Symbol: 116 = Type
Text Symbol: 115 = Variant
Text Symbol: 114 = SAP font
Text Symbol: 113 = Segment length exceeds file length
Text Symbol: 112 = Segment length
Text Symbol: 209 = This font is bold
Text Symbol: 242 = the font in PDF files?
Text Symbol: 241 = Is it recommended to insert
Text Symbol: 240 = Font name must not begin with #CF
Text Symbol: 239 = Create New True Type Font
Text Symbol: 238 = Create Following Font:
Text Symbol: 237 = A similar font exists already
Text Symbol: 236 = Continue?
Text Symbol: 235 = already exists
Text Symbol: 234 = This font is inappropriate (no unicode encoding)
Text Symbol: 233 = Font contains no unicode range info
Text Symbol: 232 = Supported Languages/Scripts:
Text Symbol: 231 = Unicode Area
Text Symbol: 230 = Font Style
Text Symbol: 229 = -Warning-
Text Symbol: 228 = Char. Width
Text Symbol: 227 = Val.
Text Symbol: 226 = Attrib.
Text Symbol: 225 = Off
Text Symbol: 224 = On
Text Symbol: 223 = There are less than 6 diff. character widths
Text Symbol: 222 = There are more than 2 diff. character widths
Text Symbol: 221 = No Byte Encoding - TrueType import impossible
Text Symbol: 220 = TrueType table needed for PostScript is missing:
Text Symbol: 219 = Summary
Text Symbol: 218 = Optional TrueType table missing:
Text Symbol: 217 = This is no TrueType 1.0 file
Text Symbol: 216 = Basefont:
Text Symbol: 215 = Descender:
Text Symbol: 214 = Ascender:





Text Symbol: 213 = Font:
Text Symbol: 212 = Subfamily:
Text Symbol: 211 = Family
Text Symbol: 210 = This font is non-bold, non-italic
Text Symbol: 055 = Font family is unknown:
Text Symbol: 054 = No font files exist
Text Symbol: 053 = Following font files exist:
Text Symbol: 052 = Following font file was saved:
Text Symbol: 051 = Font file was not overwritten
Text Symbol: 050 = Overwrite font file
Text Symbol: 049 = Overwrite following font file:
Text Symbol: 048 = No font file exists
Text Symbol: 047 = Font file was not deleted
Text Symbol: 046 = Following font file was deleted:
Text Symbol: 045 = Delete font file
Text Symbol: 044 = Delete following font file:
Text Symbol: 043 = normal
Text Symbol: 042 = Italic
Text Symbol: 041 = Bold
Text Symbol: 040 = BoldItalic
Text Symbol: 030 = File length :
Text Symbol: 029 = FontInfo Dict UnderlineThickness:
Text Symbol: 028 = FontInfo Dict UnderlinePosition:
Text Symbol: 027 = FontInfo Dict IsFixedPitch:
Text Symbol: 026 = FontInfo Dict ItalicAngle:
Text Symbol: 025 = FontInfo Dict Weight:
Text Symbol: 024 = FontInfo Dict FamilyName:
Text Symbol: 023 = FontInfo Dict FullName:
Text Symbol: 022 = Font Dict FontBBox Y2:
Text Symbol: 021 = Font Dict FontBBox X2:
Text Symbol: 020 = Font Dict FontBBox Y1:
Text Symbol: 019 = Font Dict FontBBox X1:
Text Symbol: 018 = Font Dict FontBBox:
Text Symbol: 017 = Font Dict FontType:
Text Symbol: 016 = Font Dict Encoding:
Text Symbol: 015 = Font Dict FontName:
Text Symbol: 014 = End - Offset:
Text Symbol: 013 = Trailer - Offset:
Text Symbol: 012 = Encrypt - Offset:



Text Symbol: 011 = Length:
Text Symbol: 010 = Header - Offset:
Text Symbol: 003 = Font size exceeds maximum (9,990,000 bytes)
Text Symbol: 002 = Could not open file
Text Symbol: 001 = File
Text Symbol: 056 = GET_ENCODING_ARRAY: Token not found
Text Symbol: 111 = Segment
Text Symbol: 110 = Offset
Text Symbol: 109 = Length
Text Symbol: 108 = Type
Text Symbol: 107 = Segment
Text Symbol: 106 = does not have values 1,2 or 3
Text Symbol: 105 = The second byte of the segment
Text Symbol: 104 = EOF segment found - correct file format
Text Symbol: 103 = does not have the value 128
Text Symbol: 102 = The first byte of the segment
Text Symbol: 101 = This is not a PC-format Adobe type 1 font file
Text Symbol: 100 = Examine Adobe type 1 font file
Text Symbol: 087 = AGL 1.2 Font Encoding
Text Symbol: 086 = name for font?
Text Symbol: 085 = Use Adobe charact.
Text Symbol: 084 = You cannot use a PDF replacement font for this
Text Symbol: 083 = This font family is a global soft font:
Text Symbol: 082 = Font family expects a non-proportional font
Text Symbol: 081 = Font family expects a proportional font
Text Symbol: 080 = No
Text Symbol: 079 = Y
Text Symbol: 078 = Install new font in addition?
Text Symbol: 077 = For $ soft fonts ($) are already installed
Text Symbol: 076 = Correction system allows no changes
Text Symbol: 075 = Asian 2bytes fonts are not supported
Text Symbol: 074 = This font family is no global soft font
Text Symbol: 073 = Specify an SAP font family
Text Symbol: 072 = Font file not imported
Text Symbol: 071 = Specify RTF font info (font name in RTF format)
Text Symbol: 070 = No. of encoding values for this font
Text Symbol: 067 = Font data for SE73 deleted
Text Symbol: 066 = Font data for SE73 updated
Text Symbol: 065 = Type 1 fonts cannot be installed as global softfonts
Text Symbol: 064 = Font file does not contain /Fonttype info
Text Symbol: 063 = PC font file format error: Binary segment after trailer
Text Symbol: 062 = PC font file format error: Binary segment after header is missing
Text Symbol: 061 = PC font file format error: First segment is not ASCII
Text Symbol: 060 = PC font file format error: Fewer than 3 segments
Text Symbol: 058 = GET_ENCODING_ARRAY: Error reading the encoding value
Text Symbol: 057 = GET_ENCODING_ARRAY: Encoding value read


INCLUDES used within this REPORT RSTXPDF2

INCLUDE RSTXTABL.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = txt * DIAGNOSE_OBJECT = ' ' TEXT_QUESTION = 'Neuen Font zusätzlich installieren?'(078) TEXT_BUTTON_1 = 'Ja'(079) * ICON_BUTTON_1 = ' ' TEXT_BUTTON_2 = 'Nein'(080) * ICON_BUTTON_2 = ' ' DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = IMPORTING ANSWER = answer * TABLES * PARAMETER = EXCEPTIONS TEXT_NOT_FOUND = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TEXTLINE1 = 'Adobe-Zeichennamen'(085) TEXTLINE2 = 'für Font verwenden?'(086) TITEL = 'AGL 1.2 Font Encoding'(087)

SYSTEM_CODEPAGE CALL FUNCTION 'SYSTEM_CODEPAGE' IMPORTING CODEPAGE = STATIC_SYSCP CURRENT_DYNAMIC_CODEPAGE = CURRENT_SYSCP.

SCP_TRANSLATE_CHARS CALL FUNCTION 'SCP_TRANSLATE_CHARS' EXPORTING INBUFF = INBUFF INBUFFLG = INBUFF_LEN INCODE = INCODE OUTBUFFLG = 100 OUTCODE = OUTCODE * CSUBST = 'X' * SUBSTC_HASH = ' ' * SUBSTC_DOT = ' ' * SUBSTC_SPACE = ' ' * SUBSTC = '00035' IMPORTING INUSED = INBUFF_LEN OUTBUFF = OUTB * OUTOVERFLOW = OVERFLOW OUTUSED = OUTBUF_LEN * SUBSTED = * INPUT_ENDS_IN_CHAR = * ERRMSG = .

SCP_TRANSLATE_CHARS CALL FUNCTION 'SCP_TRANSLATE_CHARS' EXPORTING INBUFF = INB INBUFFLG = INBUFF_LEN INCODE = INCODE * OUTBUFFLG = 0 OUTCODE = OUTCODE * CSUBST = 'X' * SUBSTC_HASH = ' ' * SUBSTC_DOT = ' ' * SUBSTC_SPACE = ' ' * SUBSTC = '00035' IMPORTING INUSED = INBUFF_LEN OUTBUFF = OUTBUF * OUTOVERFLOW = OVERFLOW OUTUSED = OUTBUF_LEN * SUBSTED = * INPUT_ENDS_IN_CHAR = * ERRMSG = .

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' TEXTLINE1 = 'Folgende Fontdatei löschen:'(044) TEXTLINE2 = NAME TITEL = 'Fontdatei löschen'(045) * START_COLUMN = 25 * START_ROW = 6 IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' TEXTLINE1 = 'Folgende Fontdatei überschreiben:'(049) TEXTLINE2 = NAME TITEL = 'Fontdatei überschreiben'(050) * START_COLUMN = 25 * START_ROW = 6 IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TEXTLINE1 = msg1 TEXTLINE2 = msg2 TITEL = 'Ein ähnlicher Font ist bereits vorhanden'(237) IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'Y' TEXTLINE1 = 'Folgenden Font anlegen:'(238) TEXTLINE2 = basefont TITEL = 'Neuen TrueType-Font anlegen'(239) IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'Y' TEXTLINE1 = 'Darf der Font in PDF-Dateien'(241) TEXTLINE2 = 'eingefügt werden (empfohlen)?'(242) TITEL = 'PDF font embedding' "#EC NOTEXT IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 1.

LOAD_CODEPAGE CALL FUNCTION 'LOAD_CODEPAGE' TABLES METRIC = metrics.

LOAD_CODEPAGE CALL FUNCTION 'LOAD_CODEPAGE' EXPORTING CODEPAGE = '1100' TABLES METRIC = metrics.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' TEXTLINE1 = 'Folgende Fontdatei überschreiben:'(049) TEXTLINE2 = NAME TITEL = 'Fontdatei überschreiben'(050) * START_COLUMN = 25 * START_ROW = 6 IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 1.

POPUP_TO_GET_VALUE call function 'POPUP_TO_GET_VALUE' exporting FIELDNAME = 'TDRTFTEXT' TABNAME = 'TFO16' TITEL = 'RTF-Fontinfo für PC-Texteditor'(134) VALUEIN = tfo16-tdrtftext importing ANSWER = answer VALUEOUT = tfo16-tdrtftext.

SAPSCRIPT_DELETE_LOAD CALL FUNCTION 'SAPSCRIPT_DELETE_LOAD' EXPORTING ALL = 'X' CLIENT = '* ' * CODEPAGE = 0 DELETE = 'X' * FAMILY = ' ' * FORM = ' ' * HEIGHT = 0 * PRINTER = ' ' * STYLE = ' ' WRITE = ' '.

SAPSCRIPT_SOFTFONT_GETINDEX CALL FUNCTION 'SAPSCRIPT_SOFTFONT_GETINDEX' EXPORTING FAMILY = family BOLD = bold ITALIC = italic IMPORTING FONTID = softfontid.

TR_OBJECTS_CHECK CALL FUNCTION 'TR_OBJECTS_CHECK' IMPORTING WE_ORDER = CORRECTION_ORDERID * WE_TASK = * WE_OBJECTS_APPENDABLE = TABLES WT_KO200 = WA_KO200 WT_E071K = WA_E071K EXCEPTIONS CANCEL_EDIT_OTHER_ERROR = 1 SHOW_ONLY_OTHER_ERROR = 2 others = 3.

TR_OBJECTS_INSERT CALL FUNCTION 'TR_OBJECTS_INSERT' EXPORTING WI_ORDER = CORRECTION_ORDERID IMPORTING WE_ORDER = CORRECTION_ORDERID WE_TASK = CORRECTION_TASKID TABLES WT_KO200 = WA_KO200 WT_E071K = WA_E071K EXCEPTIONS CANCEL_EDIT_OTHER_ERROR = 1 SHOW_ONLY_OTHER_ERROR = 2 others = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSTXPDF2 or its description.