SAP Reports / Programs

RSTXLDMC SAP ABAP Report - Uploading TIFF Files to SAPscript Texts







RSTXLDMC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report RSTXLDMC allows a TIFF graphics file to be uploaded from the file system of the R/3 GUI to a standard text in the R/3 word processor SAPscript...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 RSTXLDMC 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 RSTXLDMC. "Basic submit
SUBMIT RSTXLDMC AND RETURN. "Return to original report after report execution complete
SUBMIT RSTXLDMC 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: ABSPOS = Absolute Positioning
Selection Text: AUTO_HGT = Reserve Height Automatically
Selection Text: FILENAME = File Name
Selection Text: HEIGHT = Reserved Height
Selection Text: LINESIZE = Line Width for Text
Selection Text: LMARGIN = Shift to Right
Selection Text: POSUNIT = Unit of Measurement f. Posit.
Selection Text: PS_H = Height According to PS Scaling
Selection Text: PS_SCALE = PostScript Scaling
Selection Text: PS_UNIT = Unit of Meas. f. PS Scaling
Selection Text: PS_W = Width According to PS Scaling
Selection Text: TIFF_PER = Graphic Resident on Printer
Selection Text: TIFF_RES = Resolution for Graphic (dpi)
Selection Text: TIFF_SHA = No. of Gray Levels (2,4,9)
Selection Text: TITLE = Text Title
Selection Text: TXID = Text ID
Selection Text: TXLANG = Text Language
Selection Text: TXNAME = Text Name
Selection Text: TYPE = Type (BMON=b/w, BCOL=color)
Selection Text: XPOS = Absolute X Position
Selection Text: YPOS = Absolute Y Position
Title: Uploading TIFF Files to SAPscript Texts
Text Symbol: 095 = This is a TIFF file with MOTOROLA byte order
Text Symbol: 096 = This is not a TIFF file, byte order <> II/MM
Text Symbol: 097 = This is not a TIFF file, version <> 42
Text Symbol: 098 = First IFD offset:
Text Symbol: 099 = TIFF upload not possible, compression type 2 not supported
Text Symbol: 100 = Only 2,4,9 allowed for number of TIFF gray levels
Text Symbol: 101 = Doubling image resolution for 4 gray levels:
Text Symbol: 102 = Tripling image resolution for 9 gray levels:
Text Symbol: 103 = No maintenance authorization for standard text
Text Symbol: 105 = Only TIFF files can be uploaded for type BCOL
Text Symbol: 106 = Only TIFF files can be uploaded for type BMON
Text Symbol: 107 = Uploading TIFF Files to SAPscript Standard Texts
Text Symbol: 108 = File Name and Parameters for TIFF Conversion
Text Symbol: 094 = This is a TIFF file with INTEL byte order
Text Symbol: 093 = Error: Resolution is not supported
Text Symbol: 092 = Using resolution from report parameter:





Text Symbol: 091 = Using resolution from TIFF file:
Text Symbol: 090 = TIFF raster image resolution in DPI:
Text Symbol: 089 = TIFF format error: XResolution <> YResolution
Text Symbol: 088 = This is a baseline TIFF 6.0 FULLCOLOR file
Text Symbol: 087 = This is a baseline TIFF 6.0 COLORMAP file
Text Symbol: 086 = This is a baseline TIFF 6.0 GRAYSCALE file
Text Symbol: 085 = This is a baseline TIFF 6.0 BILEVEL file
Text Symbol: 084 = TIFF format error: No baseline TIFF 6.0 file
Text Symbol: 083 = TIFF format error: Fillorder <> 1
Text Symbol: 082 = TIFF format error: Number of StripOffsets < 1
Text Symbol: 200 = DPI
Text Symbol: 151 = Text &1, Language &2, Object &3, Id &4,
Text Symbol: 150 = No authorization to maintain
Text Symbol: 141 = Text &1, Language &2, Object &3, Id &4,
Text Symbol: 140 = Error while saving
Text Symbol: 131 = saved successfully
Text Symbol: 130 = Text &1, Language &2, Object &3, Id &4,
Text Symbol: 127 = This resolution is not supported by all print drivers!
Text Symbol: 126 = Warning:
Text Symbol: 125 = Your printer must have enough unused memory
Text Symbol: 124 = This graphic is stored in the printer during the printing!
Text Symbol: 123 = Caution:
Text Symbol: 122 = Printer resident graphics are only allowed when type=BMON/BCOL
Text Symbol: 121 = Shades of Gray Parameters, type=PCL5,POST,PRES
Text Symbol: 120 = Creating Colour Bitmap
Text Symbol: 119 = Decoding TIFF Format
Text Symbol: 118 = Generating Print Commands for Graphic
Text Symbol: 117 = Creating OTF Bitmap Commands
Text Symbol: 116 = Genrtng Bitmap with 9 Shades of Gray
Text Symbol: 115 = Genrtng Bitmap with 4 Shades of Gray
Text Symbol: 114 = Creating B/W Bitmap
Text Symbol: 113 = Creating Standard Text
Text Symbol: 112 = Uploading Data
Text Symbol: 111 = Parameters for Uploading PostScript (Type=POST)
Text Symbol: 110 = Param. for Standard Text
Text Symbol: 109 = Parameters for Positioning TIFF Graphic
Text Symbol: 044 = Error: Compression tag has length <> 1
Text Symbol: 043 = Error: Compression tag has type <> SHORT
Text Symbol: 042 = BitsPerSample - level 3:





Text Symbol: 041 = BitsPerSample - level 2:
Text Symbol: 040 = BitsPerSample - level 1:
Text Symbol: 039 = BitsPerSample levels:
Text Symbol: 038 = Error: BitsPerSample tag has length <> 1 or 3
Text Symbol: 037 = Error: BitsPerSample tag has data type <> SHORT
Text Symbol: 036 = ImageLength:
Text Symbol: 035 = Error: ImageLength tag has length <> 1
Text Symbol: 034 = Error: ImageLength tag has data type <> SHORT/LONG
Text Symbol: 033 = ImageWidth:
Text Symbol: 032 = Error: ImageWidth tag has length <> 1
Text Symbol: 031 = Error: ImageWidth tag has data type <> SHORT/LONG
Text Symbol: 030 = Type PRES does not support resolution 600 dpi
Text Symbol: 029 = Type PRES does not support resolution 200 dpi
Text Symbol: 028 = OPEN DATASET - error opening file
Text Symbol: 027 = TIFF import only allows resolutions 75,100,150,200,300,600
Text Symbol: 026 = The line width must be an even number:
Text Symbol: 025 = Uploading Cancelled
Text Symbol: 024 = Overwrite text?
Text Symbol: 023 = Overwrite?
Text Symbol: 022 = Text already exists
Text Symbol: 021 = BoundingBox of the PostScript file was read:
Text Symbol: 020 = 0 0 1 1 assumed as BoundingBox
Text Symbol: 019 = Warning - PostScript file does not contain a BoundingBox
Text Symbol: 018 = The line width must be between 2 and 132:
Text Symbol: 017 = Width and height of the graphic must not be < 0:
Text Symbol: 016 = The left border of the graphic must not be negative:
Text Symbol: 015 = The height of the graphic must not be negative:
Text Symbol: 014 = The unit of measurement is not supported:
Text Symbol: 013 = X/Y coordinates of the graphic must not be negative:
Text Symbol: 012 = File type is not supported:
Text Symbol: 007 = Error when Loading File
Text Symbol: 003 = bytes
Text Symbol: 002 = The file contains
Text Symbol: 001 = Load File
Text Symbol: 081 = TIFF format error: ImageWidth/ImageLength = 0
Text Symbol: 080 = Number of Tags
Text Symbol: 079 = Reading IFD from offset
Text Symbol: 078 = ColorMap size:
Text Symbol: 077 = Error: ColorMap tag has type <> SHORT



Text Symbol: 076 = ResolutionUnit:
Text Symbol: 075 = Error: ResolutionUnit tag has length <> 1
Text Symbol: 074 = Error: ResolutionUnit tag has type <> SHORT
Text Symbol: 073 = YResolution:
Text Symbol: 072 = Error: YResolution tag has length <> 1
Text Symbol: 071 = Error: YResolution tag has type <> RATIONAL
Text Symbol: 070 = XResolution:
Text Symbol: 069 = Error: XResolution tag has length <> 1
Text Symbol: 068 = Error: XResolution tag has type <> RATIONAL
Text Symbol: 067 = MaximumSampleValue:
Text Symbol: 066 = Error: MaximumSampleValue tag has length <> 1
Text Symbol: 065 = Error: MaximumSampleValue tag has type <> SHORT
Text Symbol: 064 = MinimumSampleValue:
Text Symbol: 063 = Error: MinimumSampleValue tag has length <> 1
Text Symbol: 062 = Error: MinimumSampleValue tag has type <> SHORT
Text Symbol: 061 = Number of StripByteCounts:
Text Symbol: 060 = Error: StripByteCounts tag has type <> SHORT/LONG
Text Symbol: 059 = RowsPerStrip:
Text Symbol: 058 = Error: RowsPerStrip tag has length <> 1
Text Symbol: 057 = Error: RowsPerStrip tag has type <> SHORT/LONG
Text Symbol: 056 = SamplesPerPixel:
Text Symbol: 055 = Error: SamplesPerPixel tag has length <> 1
Text Symbol: 054 = Error: SamplesPerPixel tag has type <> SHORT
Text Symbol: 053 = Number of StripOffsets:
Text Symbol: 052 = Error: StripOffset tag has type <> SHORT/LONG
Text Symbol: 051 = Fill Order:
Text Symbol: 050 = Error: Fillorder tag has length <> 1
Text Symbol: 049 = Error: Fillorder tag has type <> SHORT
Text Symbol: 048 = Photometric Interpretation:
Text Symbol: 047 = Error: Photometric interpret. tag has length <> 1
Text Symbol: 046 = Error: Photometric interpret. tag has type <> SHORT
Text Symbol: 045 = Compression:


INCLUDES used within this REPORT RSTXLDMC

No INCLUDES are used within this REPORT code!


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:

CHECK_TEXT_AUTHORITY CALL FUNCTION 'CHECK_TEXT_AUTHORITY' EXPORTING LANGUAGE = TXLANG OBJECT = 'TEXT' NAME = TEXTNAME ID = TXID ACTIVITY = 'EDIT' EXCEPTIONS OTHERS = 1.

CHECK_TEXT_AUTHORITY CALL FUNCTION 'CHECK_TEXT_AUTHORITY' EXPORTING LANGUAGE = TXLANG OBJECT = 'GRAPHICS' NAME = TEXTNAME ID = TXID ACTIVITY = 'EDIT' EXCEPTIONS OTHERS = 1.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING LANGUAGE = TXLANG ID = TXID NAME = TEXTNAME OBJECT = TXOBJECT "B20K083806 IMPORTING HEADER = NEWHEADER TABLES LINES = LINES EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' EXPORTING TEXTLINE1 = 'Der Text existiert bereits.'(022)

INIT_TEXT CALL FUNCTION 'INIT_TEXT' EXPORTING ID = TXID LANGUAGE = TXLANG NAME = TEXTNAME OBJECT = TXOBJECT "B20K083806 IMPORTING HEADER = HEADER TABLES LINES = LINES EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 4.

SAPSCRIPT_MESSAGE CALL FUNCTION 'SAPSCRIPT_MESSAGE'. "error in INIT_TEXT

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING HEADER = HEADER IMPORTING FUNCTION = FUNCTION NEWHEADER = HEADER TABLES LINES = LINES EXCEPTIONS OTHERS = 1.

SAPSCRIPT_MESSAGE CALL FUNCTION 'SAPSCRIPT_MESSAGE'. "error in SAVE_TEXT

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

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = P TEXT = STRING EXCEPTIONS OTHERS = 0.



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 RSTXLDMC or its description.