SAP SAPSCRIPT_IMPORT_GRAPHIC Function Module for









SAPSCRIPT_IMPORT_GRAPHIC is a standard sapscript import 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 import graphic FM, simply by entering the name SAPSCRIPT_IMPORT_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_IMPORT_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_IMPORT_GRAPHIC'"
EXPORTING
* I_OBJECT = 'TEXT' "
* I_NAME = "
* I_ID = 'ST' "
* I_LANGUAGE = SY-LANGU "
* I_RESOLUTION = "
* I_RESIDENT = ' ' "
* I_AUTOHEIGHT = 'X' "

IMPORTING
E_NAME = "
E_ID = "

EXCEPTIONS
NO_AUTHORITY = 1 CONVERSION_ERROR = 2 CANCELED = 3
.



IMPORTING Parameters details for SAPSCRIPT_IMPORT_GRAPHIC

I_OBJECT -

Data type: STXH-TDOBJECT
Default: 'TEXT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NAME -

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

I_ID -

Data type: STXH-TDID
Default: 'ST'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LANGUAGE -

Data type: STXH-TDSPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RESOLUTION -

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

I_RESIDENT -

Data type: RSSCG-RESIDENT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AUTOHEIGHT -

Data type: RSSCG-AUTOHEIGHT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SAPSCRIPT_IMPORT_GRAPHIC

E_NAME -

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

E_ID -

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

EXCEPTIONS details

NO_AUTHORITY -

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

CONVERSION_ERROR -

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)

Copy and paste ABAP code example for SAPSCRIPT_IMPORT_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_e_name  TYPE STXH-TDNAME, "   
lv_i_object  TYPE STXH-TDOBJECT, "   'TEXT'
lv_no_authority  TYPE STXH, "   
lv_e_id  TYPE STXH-TDID, "   
lv_i_name  TYPE STXH-TDNAME, "   
lv_conversion_error  TYPE STXH, "   
lv_i_id  TYPE STXH-TDID, "   'ST'
lv_canceled  TYPE STXH, "   
lv_i_language  TYPE STXH-TDSPRAS, "   SY-LANGU
lv_i_resolution  TYPE RSSCG-RESOLUTION, "   
lv_i_resident  TYPE RSSCG-RESIDENT, "   SPACE
lv_i_autoheight  TYPE RSSCG-AUTOHEIGHT. "   'X'

  CALL FUNCTION 'SAPSCRIPT_IMPORT_GRAPHIC'  "
    EXPORTING
         I_OBJECT = lv_i_object
         I_NAME = lv_i_name
         I_ID = lv_i_id
         I_LANGUAGE = lv_i_language
         I_RESOLUTION = lv_i_resolution
         I_RESIDENT = lv_i_resident
         I_AUTOHEIGHT = lv_i_autoheight
    IMPORTING
         E_NAME = lv_e_name
         E_ID = lv_e_id
    EXCEPTIONS
        NO_AUTHORITY = 1
        CONVERSION_ERROR = 2
        CANCELED = 3
. " SAPSCRIPT_IMPORT_GRAPHIC




ABAP code using 7.40 inline data declarations to call FM SAPSCRIPT_IMPORT_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.

"SELECT single TDNAME FROM STXH INTO @DATA(ld_e_name).
 
"SELECT single TDOBJECT FROM STXH INTO @DATA(ld_i_object).
DATA(ld_i_object) = 'TEXT'.
 
 
"SELECT single TDID FROM STXH INTO @DATA(ld_e_id).
 
"SELECT single TDNAME FROM STXH INTO @DATA(ld_i_name).
 
 
"SELECT single TDID FROM STXH INTO @DATA(ld_i_id).
DATA(ld_i_id) = 'ST'.
 
 
"SELECT single TDSPRAS FROM STXH INTO @DATA(ld_i_language).
DATA(ld_i_language) = SY-LANGU.
 
"SELECT single RESOLUTION FROM RSSCG INTO @DATA(ld_i_resolution).
 
"SELECT single RESIDENT FROM RSSCG INTO @DATA(ld_i_resident).
DATA(ld_i_resident) = ' '.
 
"SELECT single AUTOHEIGHT FROM RSSCG INTO @DATA(ld_i_autoheight).
DATA(ld_i_autoheight) = 'X'.
 


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!