SAP SAPSCRIPT_GENERATE_BMP_COMMAND Function Module for









SAPSCRIPT_GENERATE_BMP_COMMAND is a standard sapscript generate bmp command 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 generate bmp command FM, simply by entering the name SAPSCRIPT_GENERATE_BMP_COMMAND 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_GENERATE_BMP_COMMAND 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_GENERATE_BMP_COMMAND'"
EXPORTING
BM_NAME = "
BM_OBJECT = "
BM_ID = "
BM_TYPE = "
* BM_XPOS = "
* BM_XPOS_UNIT = 'MM' "
* BM_DPI = '000' "

IMPORTING
BM_COMMAND = "
.



IMPORTING Parameters details for SAPSCRIPT_GENERATE_BMP_COMMAND

BM_NAME -

Data type: STXBITMAPS-TDNAME
Optional: No
Call by Reference: Yes

BM_OBJECT -

Data type: STXBITMAPS-TDOBJECT
Optional: No
Call by Reference: Yes

BM_ID -

Data type: STXBITMAPS-TDID
Optional: No
Call by Reference: Yes

BM_TYPE -

Data type: STXBITMAPS-TDBTYPE
Optional: No
Call by Reference: Yes

BM_XPOS -

Data type: TDSFWLEFT
Optional: Yes
Call by Reference: Yes

BM_XPOS_UNIT -

Data type: TDUNIT
Default: 'MM'
Optional: Yes
Call by Reference: Yes

BM_DPI -

Data type: STXBITMAPS-RESOLUTION
Default: '000'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SAPSCRIPT_GENERATE_BMP_COMMAND

BM_COMMAND -

Data type: TLINE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SAPSCRIPT_GENERATE_BMP_COMMAND 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:
lv_bm_name  TYPE STXBITMAPS-TDNAME, "   
lv_bm_command  TYPE TLINE, "   
lv_bm_object  TYPE STXBITMAPS-TDOBJECT, "   
lv_bm_id  TYPE STXBITMAPS-TDID, "   
lv_bm_type  TYPE STXBITMAPS-TDBTYPE, "   
lv_bm_xpos  TYPE TDSFWLEFT, "   
lv_bm_xpos_unit  TYPE TDUNIT, "   'MM'
lv_bm_dpi  TYPE STXBITMAPS-RESOLUTION. "   '000'

  CALL FUNCTION 'SAPSCRIPT_GENERATE_BMP_COMMAND'  "
    EXPORTING
         BM_NAME = lv_bm_name
         BM_OBJECT = lv_bm_object
         BM_ID = lv_bm_id
         BM_TYPE = lv_bm_type
         BM_XPOS = lv_bm_xpos
         BM_XPOS_UNIT = lv_bm_xpos_unit
         BM_DPI = lv_bm_dpi
    IMPORTING
         BM_COMMAND = lv_bm_command
. " SAPSCRIPT_GENERATE_BMP_COMMAND




ABAP code using 7.40 inline data declarations to call FM SAPSCRIPT_GENERATE_BMP_COMMAND

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.

"SELECT single TDNAME FROM STXBITMAPS INTO @DATA(ld_bm_name).
 
 
"SELECT single TDOBJECT FROM STXBITMAPS INTO @DATA(ld_bm_object).
 
"SELECT single TDID FROM STXBITMAPS INTO @DATA(ld_bm_id).
 
"SELECT single TDBTYPE FROM STXBITMAPS INTO @DATA(ld_bm_type).
 
 
DATA(ld_bm_xpos_unit) = 'MM'.
 
"SELECT single RESOLUTION FROM STXBITMAPS INTO @DATA(ld_bm_dpi).
DATA(ld_bm_dpi) = '000'.
 


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!