SAP SAPSCRIPT_ATTRIB_GRAPHIC_BDS Function Module for
SAPSCRIPT_ATTRIB_GRAPHIC_BDS is a standard sapscript attrib graphic bds 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 attrib graphic bds FM, simply by entering the name SAPSCRIPT_ATTRIB_GRAPHIC_BDS into the relevant SAP transaction such as SE37 or SE38.
Function Group: STXBITMAPS
Program Name: SAPLSTXBITMAPS
Main Program: SAPLSTXBITMAPS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SAPSCRIPT_ATTRIB_GRAPHIC_BDS 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_ATTRIB_GRAPHIC_BDS'".
EXPORTING
* I_OBJECT = 'GRAPHICS' "Graphic Object
I_NAME = "
* I_ID = 'BMAP' "Graphic ID
* I_BTYPE = 'BMON' "
* READ_ONLY = 'X' "
* I_DESCRIPTION = "
* I_RESIDENT = "
* I_AUTOHEIGHT = "
IMPORTING
E_FUSER = "Created By
E_AUTOHEIGHT = "Reserve Height Automatically
E_WIDTHTW = "
E_HEIGHTTW = "
E_WIDTHPIX = "Width in pixels
E_HEIGHTPIX = "Height in pixels
E_COMPRESSED = "Graphic storage: Compressed bitmaps
E_FDATE = "Creation Date
E_FTIME = "Creation Time
E_LUSER = "Last Changed By
E_LDATE = "
E_LTIME = "
E_DESCRIPTION = "Description
E_RESOLUTION = "Resolution
E_RESIDENT = "Resides in the Printer Memory
EXCEPTIONS
ENQUEUE_FAILED = 1 BDS_INFO_FAILED = 2 UPDATE_FAILED = 3 NOT_FOUND = 4
IMPORTING Parameters details for SAPSCRIPT_ATTRIB_GRAPHIC_BDS
I_OBJECT - Graphic Object
Data type: STXBITMAPS-TDOBJECTDefault: 'GRAPHICS'
Optional: Yes
Call by Reference: Yes
I_NAME -
Data type: STXBITMAPS-TDNAMEOptional: No
Call by Reference: Yes
I_ID - Graphic ID
Data type: STXBITMAPS-TDIDDefault: 'BMAP'
Optional: Yes
Call by Reference: Yes
I_BTYPE -
Data type: STXBITMAPS-TDBTYPEDefault: 'BMON'
Optional: Yes
Call by Reference: Yes
READ_ONLY -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_DESCRIPTION -
Data type: BAPISIGNAT-PROP_VALUEOptional: Yes
Call by Reference: Yes
I_RESIDENT -
Data type: STXBITMAPS-RESIDENTOptional: Yes
Call by Reference: Yes
I_AUTOHEIGHT -
Data type: STXBITMAPS-AUTOHEIGHTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SAPSCRIPT_ATTRIB_GRAPHIC_BDS
E_FUSER - Created By
Data type: BAPISIGNAT-PROP_VALUEOptional: No
Call by Reference: Yes
E_AUTOHEIGHT - Reserve Height Automatically
Data type: STXBITMAPS-AUTOHEIGHTOptional: No
Call by Reference: Yes
E_WIDTHTW -
Data type: STXBITMAPS-HEIGHTTWOptional: No
Call by Reference: Yes
E_HEIGHTTW -
Data type: STXBITMAPS-WIDTHTWOptional: No
Call by Reference: Yes
E_WIDTHPIX - Width in pixels
Data type: STXBITMAPS-WIDTHPIXOptional: No
Call by Reference: Yes
E_HEIGHTPIX - Height in pixels
Data type: STXBITMAPS-HEIGHTPIXOptional: No
Call by Reference: Yes
E_COMPRESSED - Graphic storage: Compressed bitmaps
Data type: STXBITMAPS-BMCOMPOptional: No
Call by Reference: Yes
E_FDATE - Creation Date
Data type: DOptional: No
Call by Reference: Yes
E_FTIME - Creation Time
Data type: TOptional: No
Call by Reference: Yes
E_LUSER - Last Changed By
Data type: BAPISIGNAT-PROP_VALUEOptional: No
Call by Reference: Yes
E_LDATE -
Data type: DOptional: No
Call by Reference: Yes
E_LTIME -
Data type: TOptional: No
Call by Reference: Yes
E_DESCRIPTION - Description
Data type: BAPISIGNAT-PROP_VALUEOptional: No
Call by Reference: Yes
E_RESOLUTION - Resolution
Data type: STXBITMAPS-RESOLUTIONOptional: No
Call by Reference: Yes
E_RESIDENT - Resides in the Printer Memory
Data type: STXBITMAPS-RESIDENTOptional: No
Call by Reference: Yes
EXCEPTIONS details
ENQUEUE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BDS_INFO_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UPDATE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SAPSCRIPT_ATTRIB_GRAPHIC_BDS 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_e_fuser | TYPE BAPISIGNAT-PROP_VALUE, " | |||
| lv_i_object | TYPE STXBITMAPS-TDOBJECT, " 'GRAPHICS' | |||
| lv_enqueue_failed | TYPE STXBITMAPS, " | |||
| lv_e_autoheight | TYPE STXBITMAPS-AUTOHEIGHT, " | |||
| lv_e_widthtw | TYPE STXBITMAPS-HEIGHTTW, " | |||
| lv_e_heighttw | TYPE STXBITMAPS-WIDTHTW, " | |||
| lv_e_widthpix | TYPE STXBITMAPS-WIDTHPIX, " | |||
| lv_e_heightpix | TYPE STXBITMAPS-HEIGHTPIX, " | |||
| lv_e_compressed | TYPE STXBITMAPS-BMCOMP, " | |||
| lv_i_name | TYPE STXBITMAPS-TDNAME, " | |||
| lv_e_fdate | TYPE D, " | |||
| lv_bds_info_failed | TYPE D, " | |||
| lv_i_id | TYPE STXBITMAPS-TDID, " 'BMAP' | |||
| lv_e_ftime | TYPE T, " | |||
| lv_update_failed | TYPE T, " | |||
| lv_e_luser | TYPE BAPISIGNAT-PROP_VALUE, " | |||
| lv_i_btype | TYPE STXBITMAPS-TDBTYPE, " 'BMON' | |||
| lv_not_found | TYPE STXBITMAPS, " | |||
| lv_e_ldate | TYPE D, " | |||
| lv_read_only | TYPE C, " 'X' | |||
| lv_e_ltime | TYPE T, " | |||
| lv_i_description | TYPE BAPISIGNAT-PROP_VALUE, " | |||
| lv_i_resident | TYPE STXBITMAPS-RESIDENT, " | |||
| lv_e_description | TYPE BAPISIGNAT-PROP_VALUE, " | |||
| lv_e_resolution | TYPE STXBITMAPS-RESOLUTION, " | |||
| lv_i_autoheight | TYPE STXBITMAPS-AUTOHEIGHT, " | |||
| lv_e_resident | TYPE STXBITMAPS-RESIDENT. " |
|   CALL FUNCTION 'SAPSCRIPT_ATTRIB_GRAPHIC_BDS' " |
| EXPORTING | ||
| I_OBJECT | = lv_i_object | |
| I_NAME | = lv_i_name | |
| I_ID | = lv_i_id | |
| I_BTYPE | = lv_i_btype | |
| READ_ONLY | = lv_read_only | |
| I_DESCRIPTION | = lv_i_description | |
| I_RESIDENT | = lv_i_resident | |
| I_AUTOHEIGHT | = lv_i_autoheight | |
| IMPORTING | ||
| E_FUSER | = lv_e_fuser | |
| E_AUTOHEIGHT | = lv_e_autoheight | |
| E_WIDTHTW | = lv_e_widthtw | |
| E_HEIGHTTW | = lv_e_heighttw | |
| E_WIDTHPIX | = lv_e_widthpix | |
| E_HEIGHTPIX | = lv_e_heightpix | |
| E_COMPRESSED | = lv_e_compressed | |
| E_FDATE | = lv_e_fdate | |
| E_FTIME | = lv_e_ftime | |
| E_LUSER | = lv_e_luser | |
| E_LDATE | = lv_e_ldate | |
| E_LTIME | = lv_e_ltime | |
| E_DESCRIPTION | = lv_e_description | |
| E_RESOLUTION | = lv_e_resolution | |
| E_RESIDENT | = lv_e_resident | |
| EXCEPTIONS | ||
| ENQUEUE_FAILED = 1 | ||
| BDS_INFO_FAILED = 2 | ||
| UPDATE_FAILED = 3 | ||
| NOT_FOUND = 4 | ||
| . " SAPSCRIPT_ATTRIB_GRAPHIC_BDS | ||
ABAP code using 7.40 inline data declarations to call FM SAPSCRIPT_ATTRIB_GRAPHIC_BDS
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 PROP_VALUE FROM BAPISIGNAT INTO @DATA(ld_e_fuser). | ||||
| "SELECT single TDOBJECT FROM STXBITMAPS INTO @DATA(ld_i_object). | ||||
| DATA(ld_i_object) | = 'GRAPHICS'. | |||
| "SELECT single AUTOHEIGHT FROM STXBITMAPS INTO @DATA(ld_e_autoheight). | ||||
| "SELECT single HEIGHTTW FROM STXBITMAPS INTO @DATA(ld_e_widthtw). | ||||
| "SELECT single WIDTHTW FROM STXBITMAPS INTO @DATA(ld_e_heighttw). | ||||
| "SELECT single WIDTHPIX FROM STXBITMAPS INTO @DATA(ld_e_widthpix). | ||||
| "SELECT single HEIGHTPIX FROM STXBITMAPS INTO @DATA(ld_e_heightpix). | ||||
| "SELECT single BMCOMP FROM STXBITMAPS INTO @DATA(ld_e_compressed). | ||||
| "SELECT single TDNAME FROM STXBITMAPS INTO @DATA(ld_i_name). | ||||
| "SELECT single TDID FROM STXBITMAPS INTO @DATA(ld_i_id). | ||||
| DATA(ld_i_id) | = 'BMAP'. | |||
| "SELECT single PROP_VALUE FROM BAPISIGNAT INTO @DATA(ld_e_luser). | ||||
| "SELECT single TDBTYPE FROM STXBITMAPS INTO @DATA(ld_i_btype). | ||||
| DATA(ld_i_btype) | = 'BMON'. | |||
| DATA(ld_read_only) | = 'X'. | |||
| "SELECT single PROP_VALUE FROM BAPISIGNAT INTO @DATA(ld_i_description). | ||||
| "SELECT single RESIDENT FROM STXBITMAPS INTO @DATA(ld_i_resident). | ||||
| "SELECT single PROP_VALUE FROM BAPISIGNAT INTO @DATA(ld_e_description). | ||||
| "SELECT single RESOLUTION FROM STXBITMAPS INTO @DATA(ld_e_resolution). | ||||
| "SELECT single AUTOHEIGHT FROM STXBITMAPS INTO @DATA(ld_i_autoheight). | ||||
| "SELECT single RESIDENT FROM STXBITMAPS INTO @DATA(ld_e_resident). | ||||
Search for further information about these or an SAP related objects