SAP SUBST_CREATE_SUBST_NAME Function Module for









SUBST_CREATE_SUBST_NAME is a standard subst create subst name 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 subst create subst name FM, simply by entering the name SUBST_CREATE_SUBST_NAME into the relevant SAP transaction such as SE37 or SE38.

Function Group: SUGI
Program Name: SAPLSUGI
Main Program: SAPLSUGI
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SUBST_CREATE_SUBST_NAME 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 'SUBST_CREATE_SUBST_NAME'"
EXPORTING
IV_ONAME = "
IV_DESTREL = "
IV_TABEX = "
* IV_BUILDCONV = '000' "
* IV_STARTREL = ' ' "

IMPORTING
EV_NNAME = "
EV_NNAME1 = "
EV_USEDCONV = "
.



IMPORTING Parameters details for SUBST_CREATE_SUBST_NAME

IV_ONAME -

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

IV_DESTREL -

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

IV_TABEX -

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

IV_BUILDCONV -

Data type: PUTTB-BUILDCONV
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_STARTREL -

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

EXPORTING Parameters details for SUBST_CREATE_SUBST_NAME

EV_NNAME -

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

EV_NNAME1 -

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

EV_USEDCONV -

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

Copy and paste ABAP code example for SUBST_CREATE_SUBST_NAME 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_ev_nname  TYPE PUTTB-TABNAME, "   
lv_iv_oname  TYPE PUTTB-TABNAME, "   
lv_ev_nname1  TYPE PUTTB-TABNAME, "   
lv_iv_destrel  TYPE PUTTB-SAPRELEASE, "   
lv_iv_tabex  TYPE GSUGI_PA-SUBST_EXT, "   
lv_ev_usedconv  TYPE PUTTB-BUILDCONV, "   
lv_iv_buildconv  TYPE PUTTB-BUILDCONV, "   '000'
lv_iv_startrel  TYPE PUTTB-SAPRELEASE. "   SPACE

  CALL FUNCTION 'SUBST_CREATE_SUBST_NAME'  "
    EXPORTING
         IV_ONAME = lv_iv_oname
         IV_DESTREL = lv_iv_destrel
         IV_TABEX = lv_iv_tabex
         IV_BUILDCONV = lv_iv_buildconv
         IV_STARTREL = lv_iv_startrel
    IMPORTING
         EV_NNAME = lv_ev_nname
         EV_NNAME1 = lv_ev_nname1
         EV_USEDCONV = lv_ev_usedconv
. " SUBST_CREATE_SUBST_NAME




ABAP code using 7.40 inline data declarations to call FM SUBST_CREATE_SUBST_NAME

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 TABNAME FROM PUTTB INTO @DATA(ld_ev_nname).
 
"SELECT single TABNAME FROM PUTTB INTO @DATA(ld_iv_oname).
 
"SELECT single TABNAME FROM PUTTB INTO @DATA(ld_ev_nname1).
 
"SELECT single SAPRELEASE FROM PUTTB INTO @DATA(ld_iv_destrel).
 
"SELECT single SUBST_EXT FROM GSUGI_PA INTO @DATA(ld_iv_tabex).
 
"SELECT single BUILDCONV FROM PUTTB INTO @DATA(ld_ev_usedconv).
 
"SELECT single BUILDCONV FROM PUTTB INTO @DATA(ld_iv_buildconv).
DATA(ld_iv_buildconv) = '000'.
 
"SELECT single SAPRELEASE FROM PUTTB INTO @DATA(ld_iv_startrel).
DATA(ld_iv_startrel) = ' '.
 


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!