SAP Function Modules

SCTM_TRANSPORT_INSERT SAP Function module







SCTM_TRANSPORT_INSERT 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 SCTM_TRANSPORT_INSERT into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SCTM_TRANSPORT_INSERT - SCTM TRANSPORT INSERT





CALL FUNCTION 'SCTM_TRANSPORT_INSERT' "
  EXPORTING
    object =                    " ko200-object  Object Type
    obj_name =                  " ko200-obj_name  Object Name in Object List
*   masterlanguage = SY-LANGU   " ko200-masterlang  Original Language in Repository Objects
*   responsible = SY-UNAME      " ko200-author  Person Responsible for a Repository Object
*   transport_order = SPACE     " ko200-trkorr  Request/Task
*   development_class = SPACE   " ko200-devclass  Package
*   operation = SPACE           " ko200-operation  Object operation for correction interface
*   transport_type = 'K'        " char1         Single-Character Flag
  IMPORTING
    message =                   " hier_mess     Transfer structure for messages
    tr_tadir =                  " tadir         Directory of Repository Objects
    .  "  SCTM_TRANSPORT_INSERT

ABAP code example for Function Module SCTM_TRANSPORT_INSERT





The ABAP code below is a full code listing to execute function module SCTM_TRANSPORT_INSERT 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_message  TYPE HIER_MESS ,
ld_tr_tadir  TYPE TADIR .


DATA(ld_object) = some text here

DATA(ld_obj_name) = some text here

DATA(ld_masterlanguage) = Check type of data required

DATA(ld_responsible) = some text here

DATA(ld_transport_order) = some text here

DATA(ld_development_class) = some text here

DATA(ld_operation) = some text here
DATA(ld_transport_type) = 'Check type of data required'. . CALL FUNCTION 'SCTM_TRANSPORT_INSERT' EXPORTING object = ld_object obj_name = ld_obj_name * masterlanguage = ld_masterlanguage * responsible = ld_responsible * transport_order = ld_transport_order * development_class = ld_development_class * operation = ld_operation * transport_type = ld_transport_type IMPORTING message = ld_message tr_tadir = ld_tr_tadir . " SCTM_TRANSPORT_INSERT
IF SY-SUBRC EQ 0. "All OK 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_message  TYPE HIER_MESS ,
ld_object  TYPE KO200-OBJECT ,
ld_tr_tadir  TYPE TADIR ,
ld_obj_name  TYPE KO200-OBJ_NAME ,
ld_masterlanguage  TYPE KO200-MASTERLANG ,
ld_responsible  TYPE KO200-AUTHOR ,
ld_transport_order  TYPE KO200-TRKORR ,
ld_development_class  TYPE KO200-DEVCLASS ,
ld_operation  TYPE KO200-OPERATION ,
ld_transport_type  TYPE CHAR1 .


ld_object = some text here

ld_obj_name = some text here

ld_masterlanguage = Check type of data required

ld_responsible = some text here

ld_transport_order = some text here

ld_development_class = some text here

ld_operation = some text here
ld_transport_type = 'Check type of data required'.

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 SCTM_TRANSPORT_INSERT or its description.