SAP SAPSCRIPT_CONVERT_BITMAP Function Module for









SAPSCRIPT_CONVERT_BITMAP is a standard sapscript convert bitmap SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sapscript convert bitmap FM, simply by entering the name SAPSCRIPT_CONVERT_BITMAP into the relevant SAP transaction such as SE37 or SE38.

Function Group: STXBITMAPS
Program Name: SAPLSTXBITMAPS
Main Program: SAPLSTXBITMAPS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SAPSCRIPT_CONVERT_BITMAP pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP'"
EXPORTING
* ITF_HEADER = "
* OLD_FORMAT = 'ITF' "
* NEW_FORMAT = 'BMP' "
* BITMAP_FILE_BYTECOUNT_IN = 0 "
* ITF_BITMAP_TYPE_IN = '*' "

IMPORTING
BITMAP_FILE_BYTECOUNT = "
ITF_BITMAP_TYPE_OUT = "

TABLES
* ITF_LINES = "
BITMAP_FILE = "
* BDS_BITMAP_FILE = "

EXCEPTIONS
NO_BITMAP_FILE = 1 BDSERR_INVALID_FORMAT = 10 BDSERR_EOF = 11 FORMAT_NOT_SUPPORTED = 2 BITMAP_FILE_NOT_TYPE_X = 3 NO_BMP_FILE = 4 BMPERR_INVALID_FORMAT = 5 BMPERR_NO_COLORTABLE = 6 BMPERR_UNSUP_COMPRESSION = 7 BMPERR_CORRUPT_RLE_DATA = 8 BMPERR_EOF = 9
.



IMPORTING Parameters details for SAPSCRIPT_CONVERT_BITMAP

ITF_HEADER -

Data type: THEAD
Optional: Yes
Call by Reference: No ( called with pass by value option)

OLD_FORMAT -

Data type: C
Default: 'ITF'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NEW_FORMAT -

Data type: C
Default: 'BMP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

BITMAP_FILE_BYTECOUNT_IN -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

ITF_BITMAP_TYPE_IN -

Data type: C
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SAPSCRIPT_CONVERT_BITMAP

BITMAP_FILE_BYTECOUNT -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

ITF_BITMAP_TYPE_OUT -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SAPSCRIPT_CONVERT_BITMAP

ITF_LINES -

Data type: TLINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

BITMAP_FILE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BDS_BITMAP_FILE -

Data type: SBDST_CONTENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_BITMAP_FILE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BDSERR_INVALID_FORMAT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BDSERR_EOF -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FORMAT_NOT_SUPPORTED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BITMAP_FILE_NOT_TYPE_X -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_BMP_FILE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BMPERR_INVALID_FORMAT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BMPERR_NO_COLORTABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BMPERR_UNSUP_COMPRESSION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BMPERR_CORRUPT_RLE_DATA -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BMPERR_EOF - End of file

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SAPSCRIPT_CONVERT_BITMAP Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_itf_lines  TYPE STANDARD TABLE OF TLINE, "   
lv_itf_header  TYPE THEAD, "   
lv_no_bitmap_file  TYPE THEAD, "   
lv_bitmap_file_bytecount  TYPE I, "   
lv_bdserr_invalid_format  TYPE I, "   
lv_bdserr_eof  TYPE I, "   
lv_old_format  TYPE C, "   'ITF'
lt_bitmap_file  TYPE STANDARD TABLE OF C, "   
lv_itf_bitmap_type_out  TYPE C, "   
lv_format_not_supported  TYPE C, "   
lv_new_format  TYPE C, "   'BMP'
lt_bds_bitmap_file  TYPE STANDARD TABLE OF SBDST_CONTENT, "   
lv_bitmap_file_not_type_x  TYPE SBDST_CONTENT, "   
lv_no_bmp_file  TYPE SBDST_CONTENT, "   
lv_bitmap_file_bytecount_in  TYPE I, "   0
lv_itf_bitmap_type_in  TYPE C, "   '*'
lv_bmperr_invalid_format  TYPE C, "   
lv_bmperr_no_colortable  TYPE C, "   
lv_bmperr_unsup_compression  TYPE C, "   
lv_bmperr_corrupt_rle_data  TYPE C, "   
lv_bmperr_eof  TYPE C. "   

  CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP'  "
    EXPORTING
         ITF_HEADER = lv_itf_header
         OLD_FORMAT = lv_old_format
         NEW_FORMAT = lv_new_format
         BITMAP_FILE_BYTECOUNT_IN = lv_bitmap_file_bytecount_in
         ITF_BITMAP_TYPE_IN = lv_itf_bitmap_type_in
    IMPORTING
         BITMAP_FILE_BYTECOUNT = lv_bitmap_file_bytecount
         ITF_BITMAP_TYPE_OUT = lv_itf_bitmap_type_out
    TABLES
         ITF_LINES = lt_itf_lines
         BITMAP_FILE = lt_bitmap_file
         BDS_BITMAP_FILE = lt_bds_bitmap_file
    EXCEPTIONS
        NO_BITMAP_FILE = 1
        BDSERR_INVALID_FORMAT = 10
        BDSERR_EOF = 11
        FORMAT_NOT_SUPPORTED = 2
        BITMAP_FILE_NOT_TYPE_X = 3
        NO_BMP_FILE = 4
        BMPERR_INVALID_FORMAT = 5
        BMPERR_NO_COLORTABLE = 6
        BMPERR_UNSUP_COMPRESSION = 7
        BMPERR_CORRUPT_RLE_DATA = 8
        BMPERR_EOF = 9
. " SAPSCRIPT_CONVERT_BITMAP




ABAP code using 7.40 inline data declarations to call FM SAPSCRIPT_CONVERT_BITMAP

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
DATA(ld_old_format) = 'ITF'.
 
 
 
 
DATA(ld_new_format) = 'BMP'.
 
 
 
 
 
DATA(ld_itf_bitmap_type_in) = '*'.
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!