SAP Function Modules

SAPSCRIPT_TRANSPORT_OBJECTS SAP Function module







SAPSCRIPT_TRANSPORT_OBJECTS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SAPSCRIPT_TRANSPORT_OBJECTS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: STXBITMAPS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SAPSCRIPT_TRANSPORT_OBJECTS - SAPSCRIPT TRANSPORT OBJECTS





CALL FUNCTION 'SAPSCRIPT_TRANSPORT_OBJECTS' "
* EXPORTING
*   objecttype = 'TEXT'         " c
*   textobject =                " stxh-tdobject
*   textname =                  " stxh-tdname
*   textid =                    " stxh-tdid
*   textspras =                 " stxh-tdspras
*   grobject =                  " stxbitmaps-tdobject
*   grname =                    " stxbitmaps-tdname
*   grid =                      " stxbitmaps-tdid
*   grtype =                    " stxbitmaps-tdbtype
*   i_task =                    " e070-trkorr
  IMPORTING
    e_task =                    " e070-trkorr
* TABLES
*   transported_graphics =      " stxbitmaps
*   not_transported_graphics =   " stxbitmaps
  EXCEPTIONS
    ILLEGAL_OBJECTTYPE = 1      "
    ILLEGAL_OBJECT = 2          "
    ILLEGAL_ID = 3              "
    ILLEGAL_NAME = 4            "
    ILLEGAL_LANGUAGE = 5        "
    ILLEGAL_SAVEMODE = 6        "
    ILLEGAL_GRTYPE = 7          "
    TRANSPORT_IMPOSSIBLE = 8    "
    NOTHING_FOUND = 9           "
    .  "  SAPSCRIPT_TRANSPORT_OBJECTS

ABAP code example for Function Module SAPSCRIPT_TRANSPORT_OBJECTS





The ABAP code below is a full code listing to execute function module SAPSCRIPT_TRANSPORT_OBJECTS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_task  TYPE E070-TRKORR ,
it_transported_graphics  TYPE STANDARD TABLE OF STXBITMAPS,"TABLES PARAM
wa_transported_graphics  LIKE LINE OF it_transported_graphics ,
it_not_transported_graphics  TYPE STANDARD TABLE OF STXBITMAPS,"TABLES PARAM
wa_not_transported_graphics  LIKE LINE OF it_not_transported_graphics .

DATA(ld_objecttype) = 'Check type of data required'.

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).


SELECT single TRKORR
FROM E070
INTO @DATA(ld_i_task).


"populate fields of struture and append to itab
append wa_transported_graphics to it_transported_graphics.

"populate fields of struture and append to itab
append wa_not_transported_graphics to it_not_transported_graphics. . CALL FUNCTION 'SAPSCRIPT_TRANSPORT_OBJECTS' * EXPORTING * objecttype = ld_objecttype * textobject = ld_textobject * textname = ld_textname * textid = ld_textid * textspras = ld_textspras * grobject = ld_grobject * grname = ld_grname * grid = ld_grid * grtype = ld_grtype * i_task = ld_i_task IMPORTING e_task = ld_e_task * TABLES * transported_graphics = it_transported_graphics * not_transported_graphics = it_not_transported_graphics EXCEPTIONS ILLEGAL_OBJECTTYPE = 1 ILLEGAL_OBJECT = 2 ILLEGAL_ID = 3 ILLEGAL_NAME = 4 ILLEGAL_LANGUAGE = 5 ILLEGAL_SAVEMODE = 6 ILLEGAL_GRTYPE = 7 TRANSPORT_IMPOSSIBLE = 8 NOTHING_FOUND = 9 . " SAPSCRIPT_TRANSPORT_OBJECTS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_task  TYPE E070-TRKORR ,
ld_objecttype  TYPE C ,
it_transported_graphics  TYPE STANDARD TABLE OF STXBITMAPS ,
wa_transported_graphics  LIKE LINE OF it_transported_graphics,
ld_textobject  TYPE STXH-TDOBJECT ,
it_not_transported_graphics  TYPE STANDARD TABLE OF STXBITMAPS ,
wa_not_transported_graphics  LIKE LINE OF it_not_transported_graphics,
ld_textname  TYPE STXH-TDNAME ,
ld_textid  TYPE STXH-TDID ,
ld_textspras  TYPE STXH-TDSPRAS ,
ld_grobject  TYPE STXBITMAPS-TDOBJECT ,
ld_grname  TYPE STXBITMAPS-TDNAME ,
ld_grid  TYPE STXBITMAPS-TDID ,
ld_grtype  TYPE STXBITMAPS-TDBTYPE ,
ld_i_task  TYPE E070-TRKORR .

ld_objecttype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_transported_graphics to it_transported_graphics.

SELECT single TDOBJECT
FROM STXH
INTO ld_textobject.


"populate fields of struture and append to itab
append wa_not_transported_graphics to it_not_transported_graphics.

SELECT single TDNAME
FROM STXH
INTO ld_textname.


SELECT single TDID
FROM STXH
INTO ld_textid.


SELECT single TDSPRAS
FROM STXH
INTO ld_textspras.


SELECT single TDOBJECT
FROM STXBITMAPS
INTO ld_grobject.


SELECT single TDNAME
FROM STXBITMAPS
INTO ld_grname.


SELECT single TDID
FROM STXBITMAPS
INTO ld_grid.


SELECT single TDBTYPE
FROM STXBITMAPS
INTO ld_grtype.


SELECT single TRKORR
FROM E070
INTO ld_i_task.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SAPSCRIPT_TRANSPORT_OBJECTS or its description.