SAP SAPSCRIPT_SEARCH_GRAPHIC Function Module for
SAPSCRIPT_SEARCH_GRAPHIC is a standard sapscript search graphic 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 search graphic FM, simply by entering the name SAPSCRIPT_SEARCH_GRAPHIC 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_SEARCH_GRAPHIC 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_SEARCH_GRAPHIC'".
CHANGING
* OBJECTTYPE = 'TEXT' "
* TEXTOBJECT = "
* TEXTNAME = "
* TEXTID = "
* TEXTSPRAS = "
* GROBJECT = "
* GRNAME = "
* GRID = "
* GRTYPE = "
EXCEPTIONS
ILLEGAL_OBJECTTYPE = 1 NOTHING_FOUND = 2 CANCELED = 3 INTERNAL_ERROR = 4
CHANGING Parameters details for SAPSCRIPT_SEARCH_GRAPHIC
OBJECTTYPE -
Data type: CDefault: 'TEXT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXTOBJECT -
Data type: STXH-TDOBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXTNAME -
Data type: STXH-TDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXTID -
Data type: STXH-TDIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TEXTSPRAS -
Data type: STXH-TDSPRASOptional: Yes
Call by Reference: No ( called with pass by value option)
GROBJECT -
Data type: STXBITMAPS-TDOBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
GRNAME -
Data type: STXBITMAPS-TDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
GRID -
Data type: STXBITMAPS-TDIDOptional: Yes
Call by Reference: No ( called with pass by value option)
GRTYPE -
Data type: STXBITMAPS-TDBTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ILLEGAL_OBJECTTYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SAPSCRIPT_SEARCH_GRAPHIC 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_objecttype | TYPE C, " 'TEXT' | |||
| lv_illegal_objecttype | TYPE C, " | |||
| lv_textobject | TYPE STXH-TDOBJECT, " | |||
| lv_nothing_found | TYPE STXH, " | |||
| lv_canceled | TYPE STXH, " | |||
| lv_textname | TYPE STXH-TDNAME, " | |||
| lv_textid | TYPE STXH-TDID, " | |||
| lv_internal_error | TYPE STXH, " | |||
| lv_textspras | TYPE STXH-TDSPRAS, " | |||
| lv_grobject | TYPE STXBITMAPS-TDOBJECT, " | |||
| lv_grname | TYPE STXBITMAPS-TDNAME, " | |||
| lv_grid | TYPE STXBITMAPS-TDID, " | |||
| lv_grtype | TYPE STXBITMAPS-TDBTYPE. " |
|   CALL FUNCTION 'SAPSCRIPT_SEARCH_GRAPHIC' " |
| CHANGING | ||
| OBJECTTYPE | = lv_objecttype | |
| TEXTOBJECT | = lv_textobject | |
| TEXTNAME | = lv_textname | |
| TEXTID | = lv_textid | |
| TEXTSPRAS | = lv_textspras | |
| GROBJECT | = lv_grobject | |
| GRNAME | = lv_grname | |
| GRID | = lv_grid | |
| GRTYPE | = lv_grtype | |
| EXCEPTIONS | ||
| ILLEGAL_OBJECTTYPE = 1 | ||
| NOTHING_FOUND = 2 | ||
| CANCELED = 3 | ||
| INTERNAL_ERROR = 4 | ||
| . " SAPSCRIPT_SEARCH_GRAPHIC | ||
ABAP code using 7.40 inline data declarations to call FM SAPSCRIPT_SEARCH_GRAPHIC
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_objecttype) | = 'TEXT'. | |||
| "SELECT single TDOBJECT FROM STXH INTO @DATA(ld_textobject). | ||||
| "SELECT single TDNAME FROM STXH INTO @DATA(ld_textname). | ||||
| "SELECT single TDID FROM STXH INTO @DATA(ld_textid). | ||||
| "SELECT single TDSPRAS FROM STXH INTO @DATA(ld_textspras). | ||||
| "SELECT single TDOBJECT FROM STXBITMAPS INTO @DATA(ld_grobject). | ||||
| "SELECT single TDNAME FROM STXBITMAPS INTO @DATA(ld_grname). | ||||
| "SELECT single TDID FROM STXBITMAPS INTO @DATA(ld_grid). | ||||
| "SELECT single TDBTYPE FROM STXBITMAPS INTO @DATA(ld_grtype). | ||||
Search for further information about these or an SAP related objects