SAP SAPSCRIPT_INCLUDE_GRAPHIC Function Module for









SAPSCRIPT_INCLUDE_GRAPHIC is a standard sapscript include 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 include graphic FM, simply by entering the name SAPSCRIPT_INCLUDE_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_INCLUDE_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_INCLUDE_GRAPHIC'"
EXPORTING
* I_OBJECTTYPE = 'OBGRAPHICS' "
* I_OBJECT = "Text Object
* I_NAME = "Text Name
* I_ID = "Text ID
* I_LANGUAGE = "Text Language
* I_GROBJECT = "Graphic Object
* I_GRNAME = "Name of graphic
* I_GRID = "Graphic ID
* I_GRTYPE = "Graphic type

IMPORTING
E_COMMANDLINE = "Command Line
E_OBJECTTYPE = "
E_HEADER = "
E_STXBITMAPS = "
E_RESOLUTION = "
E_FOUND = "

TABLES
* E_LINES = "

EXCEPTIONS
CANCELED = 1 ILLEGAL_OBJECTTYPE = 2
.



IMPORTING Parameters details for SAPSCRIPT_INCLUDE_GRAPHIC

I_OBJECTTYPE -

Data type: C
Default: 'OBGRAPHICS'
Optional: Yes
Call by Reference: Yes

I_OBJECT - Text Object

Data type: STXH-TDOBJECT
Optional: Yes
Call by Reference: Yes

I_NAME - Text Name

Data type: STXH-TDNAME
Optional: Yes
Call by Reference: Yes

I_ID - Text ID

Data type: STXH-TDID
Optional: Yes
Call by Reference: Yes

I_LANGUAGE - Text Language

Data type: STXH-TDSPRAS
Optional: Yes
Call by Reference: Yes

I_GROBJECT - Graphic Object

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

I_GRNAME - Name of graphic

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

I_GRID - Graphic ID

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

I_GRTYPE - Graphic type

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

EXPORTING Parameters details for SAPSCRIPT_INCLUDE_GRAPHIC

E_COMMANDLINE - Command Line

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

E_OBJECTTYPE -

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

E_HEADER -

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

E_STXBITMAPS -

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

E_RESOLUTION -

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

E_FOUND -

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

TABLES Parameters details for SAPSCRIPT_INCLUDE_GRAPHIC

E_LINES -

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

EXCEPTIONS details

CANCELED -

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

ILLEGAL_OBJECTTYPE -

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

Copy and paste ABAP code example for SAPSCRIPT_INCLUDE_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:
lt_e_lines  TYPE STANDARD TABLE OF TLINE, "   
lv_canceled  TYPE TLINE, "   
lv_i_objecttype  TYPE C, "   'OBGRAPHICS'
lv_e_commandline  TYPE TLINE, "   
lv_i_object  TYPE STXH-TDOBJECT, "   
lv_e_objecttype  TYPE C, "   
lv_illegal_objecttype  TYPE C, "   
lv_i_name  TYPE STXH-TDNAME, "   
lv_e_header  TYPE THEAD, "   
lv_i_id  TYPE STXH-TDID, "   
lv_e_stxbitmaps  TYPE STXBITMAPS, "   
lv_i_language  TYPE STXH-TDSPRAS, "   
lv_e_resolution  TYPE STXBITMAPS-RESOLUTION, "   
lv_e_found  TYPE C, "   
lv_i_grobject  TYPE STXBITMAPS-TDOBJECT, "   
lv_i_grname  TYPE STXBITMAPS-TDNAME, "   
lv_i_grid  TYPE STXBITMAPS-TDID, "   
lv_i_grtype  TYPE STXBITMAPS-TDBTYPE. "   

  CALL FUNCTION 'SAPSCRIPT_INCLUDE_GRAPHIC'  "
    EXPORTING
         I_OBJECTTYPE = lv_i_objecttype
         I_OBJECT = lv_i_object
         I_NAME = lv_i_name
         I_ID = lv_i_id
         I_LANGUAGE = lv_i_language
         I_GROBJECT = lv_i_grobject
         I_GRNAME = lv_i_grname
         I_GRID = lv_i_grid
         I_GRTYPE = lv_i_grtype
    IMPORTING
         E_COMMANDLINE = lv_e_commandline
         E_OBJECTTYPE = lv_e_objecttype
         E_HEADER = lv_e_header
         E_STXBITMAPS = lv_e_stxbitmaps
         E_RESOLUTION = lv_e_resolution
         E_FOUND = lv_e_found
    TABLES
         E_LINES = lt_e_lines
    EXCEPTIONS
        CANCELED = 1
        ILLEGAL_OBJECTTYPE = 2
. " SAPSCRIPT_INCLUDE_GRAPHIC




ABAP code using 7.40 inline data declarations to call FM SAPSCRIPT_INCLUDE_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_i_objecttype) = 'OBGRAPHICS'.
 
 
"SELECT single TDOBJECT FROM STXH INTO @DATA(ld_i_object).
 
 
 
"SELECT single TDNAME FROM STXH INTO @DATA(ld_i_name).
 
 
"SELECT single TDID FROM STXH INTO @DATA(ld_i_id).
 
 
"SELECT single TDSPRAS FROM STXH INTO @DATA(ld_i_language).
 
"SELECT single RESOLUTION FROM STXBITMAPS INTO @DATA(ld_e_resolution).
 
 
"SELECT single TDOBJECT FROM STXBITMAPS INTO @DATA(ld_i_grobject).
 
"SELECT single TDNAME FROM STXBITMAPS INTO @DATA(ld_i_grname).
 
"SELECT single TDID FROM STXBITMAPS INTO @DATA(ld_i_grid).
 
"SELECT single TDBTYPE FROM STXBITMAPS INTO @DATA(ld_i_grtype).
 


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!