SAP SGT_SETUP_SAVE Function Module for Save all entries









SGT_SETUP_SAVE is a standard sgt setup save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save all entries processing and below is the pattern details for this FM, 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 sgt setup save FM, simply by entering the name SGT_SETUP_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SGT_SETUP_GRP_UI
Program Name: SAPLSGT_SETUP_GRP_UI
Main Program: SAPLSGT_SETUP_GRP_UI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function SGT_SETUP_SAVE 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 'SGT_SETUP_SAVE'"Save all entries
EXPORTING
IT_SGT_CSGR_U = "
IT_SGT_VALS_I = "
IT_SGT_COVS_D = "
IT_SGT_VALS_D = "
IT_SGT_CMRP_U = "
IT_SGT_CMRP_I = "
IT_SGT_CMRP_D = "
IT_SGT_CATP_I = "
IT_SGT_CATP_U = "
IT_SGT_CATP_D = "
IT_SGT_CSRC_I = "
IT_SGT_CSGR_D = "
IT_SGT_CSRC_U = "
IT_SGT_CSRC_D = "
IT_SGT_CRSC_I = "
IT_SGT_CRSC_U = "
IT_SGT_CRSC_D = "
IT_SGT_CPRC_U = "
IT_SGT_CPRC_I = "
IT_SGT_CPRC_D = "
IT_SGT_CSGR_L_I = "
IT_SGT_CSGR_L_D = "
IT_SGT_CSGR_I = "
IT_SGT_COVS_L_I = "
IT_SGT_COVS_L_D = "
IT_SGT_COVS_L_U = "
IT_SGT_CATS_D = "
IT_SGT_CATS_I = "
IT_SGT_CATS_U = "
IT_SGT_COVS_U = "
IT_SGT_COVS_I = "
IT_SGT_VALS_U = "
.



IMPORTING Parameters details for SGT_SETUP_SAVE

IT_SGT_CSGR_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_T
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_VALS_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_VALS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_COVS_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_VALS_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_VALS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CMRP_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CMRP
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CMRP_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CMRP
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CMRP_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CMRP
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CATP_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CATP
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CATP_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CATP
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CATP_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CATP
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSRC_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSRC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSGR_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_T
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSRC_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSRC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSRC_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSRC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CRSC_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CRSC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CRSC_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CRSC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CRSC_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CRSC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CPRC_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CPRC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CPRC_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CPRC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CPRC_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CPRC
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSGR_L_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_L
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSGR_L_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_L
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CSGR_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_T
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_COVS_L_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS_L
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_COVS_L_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS_L
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_COVS_L_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS_L
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CATS_D -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CATS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CATS_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CATS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_CATS_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_CATS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_COVS_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_COVS_I -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SGT_VALS_U -

Data type: CL_SGT_SETUP_DATA_UI=>TT_SGT_VALS
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SGT_SETUP_SAVE 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_it_sgt_csgr_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_T, "   
lv_it_sgt_vals_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_VALS, "   
lv_it_sgt_covs_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS, "   
lv_it_sgt_vals_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_VALS, "   
lv_it_sgt_cmrp_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CMRP, "   
lv_it_sgt_cmrp_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CMRP, "   
lv_it_sgt_cmrp_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CMRP, "   
lv_it_sgt_catp_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CATP, "   
lv_it_sgt_catp_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CATP, "   
lv_it_sgt_catp_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CATP, "   
lv_it_sgt_csrc_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSRC, "   
lv_it_sgt_csgr_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_T, "   
lv_it_sgt_csrc_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSRC, "   
lv_it_sgt_csrc_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSRC, "   
lv_it_sgt_crsc_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CRSC, "   
lv_it_sgt_crsc_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CRSC, "   
lv_it_sgt_crsc_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CRSC, "   
lv_it_sgt_cprc_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CPRC, "   
lv_it_sgt_cprc_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CPRC, "   
lv_it_sgt_cprc_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CPRC, "   
lv_it_sgt_csgr_l_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_L, "   
lv_it_sgt_csgr_l_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_L, "   
lv_it_sgt_csgr_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CSGR_T, "   
lv_it_sgt_covs_l_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS_L, "   
lv_it_sgt_covs_l_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS_L, "   
lv_it_sgt_covs_l_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS_L, "   
lv_it_sgt_cats_d  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CATS, "   
lv_it_sgt_cats_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CATS, "   
lv_it_sgt_cats_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_CATS, "   
lv_it_sgt_covs_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS, "   
lv_it_sgt_covs_i  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_COVS, "   
lv_it_sgt_vals_u  TYPE CL_SGT_SETUP_DATA_UI=>TT_SGT_VALS. "   

  CALL FUNCTION 'SGT_SETUP_SAVE'  "Save all entries
    EXPORTING
         IT_SGT_CSGR_U = lv_it_sgt_csgr_u
         IT_SGT_VALS_I = lv_it_sgt_vals_i
         IT_SGT_COVS_D = lv_it_sgt_covs_d
         IT_SGT_VALS_D = lv_it_sgt_vals_d
         IT_SGT_CMRP_U = lv_it_sgt_cmrp_u
         IT_SGT_CMRP_I = lv_it_sgt_cmrp_i
         IT_SGT_CMRP_D = lv_it_sgt_cmrp_d
         IT_SGT_CATP_I = lv_it_sgt_catp_i
         IT_SGT_CATP_U = lv_it_sgt_catp_u
         IT_SGT_CATP_D = lv_it_sgt_catp_d
         IT_SGT_CSRC_I = lv_it_sgt_csrc_i
         IT_SGT_CSGR_D = lv_it_sgt_csgr_d
         IT_SGT_CSRC_U = lv_it_sgt_csrc_u
         IT_SGT_CSRC_D = lv_it_sgt_csrc_d
         IT_SGT_CRSC_I = lv_it_sgt_crsc_i
         IT_SGT_CRSC_U = lv_it_sgt_crsc_u
         IT_SGT_CRSC_D = lv_it_sgt_crsc_d
         IT_SGT_CPRC_U = lv_it_sgt_cprc_u
         IT_SGT_CPRC_I = lv_it_sgt_cprc_i
         IT_SGT_CPRC_D = lv_it_sgt_cprc_d
         IT_SGT_CSGR_L_I = lv_it_sgt_csgr_l_i
         IT_SGT_CSGR_L_D = lv_it_sgt_csgr_l_d
         IT_SGT_CSGR_I = lv_it_sgt_csgr_i
         IT_SGT_COVS_L_I = lv_it_sgt_covs_l_i
         IT_SGT_COVS_L_D = lv_it_sgt_covs_l_d
         IT_SGT_COVS_L_U = lv_it_sgt_covs_l_u
         IT_SGT_CATS_D = lv_it_sgt_cats_d
         IT_SGT_CATS_I = lv_it_sgt_cats_i
         IT_SGT_CATS_U = lv_it_sgt_cats_u
         IT_SGT_COVS_U = lv_it_sgt_covs_u
         IT_SGT_COVS_I = lv_it_sgt_covs_i
         IT_SGT_VALS_U = lv_it_sgt_vals_u
. " SGT_SETUP_SAVE




ABAP code using 7.40 inline data declarations to call FM SGT_SETUP_SAVE

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!