SAP G_SET_ENCRYPT_SETID Function Module for Conversion of Combination of Characteristics in a Set ID









G_SET_ENCRYPT_SETID is a standard g set encrypt setid SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Conversion of Combination of Characteristics in a Set ID 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 g set encrypt setid FM, simply by entering the name G_SET_ENCRYPT_SETID into the relevant SAP transaction such as SE37 or SE38.

Function Group: GSAC
Program Name: SAPLGSAC
Main Program: SAPLGSAC
Appliation area: G
Release date: 16-Aug-1999
Mode(Normal, Remote etc): Normal Function Module
Update:



Function G_SET_ENCRYPT_SETID 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 'G_SET_ENCRYPT_SETID'"Conversion of Combination of Characteristics in a Set ID
EXPORTING
SETCLASS = "Set Class
* FIKRS = "Financial management area
* SUBCLASS = "Organizational Unit for 'Other' Set Classes
SHORTNAME = "Short Name of Set
* KOKRS = "Controlling area for CO groups
* KTOPL = "Chart of Accounts for Account Groups
* LIB = "Library for Report Writer Report
* RNAME = "Name of Report Writer Report
* ECCS_DIMEN = "SAP Cons: Dimension
* ECCS_ITCLG = "SAP Cons: Consolidation Chart of Accounts
* ECCS_SITYP = "SAP Cons: Subitem Category

IMPORTING
SETID = "Set ID

EXCEPTIONS
NO_CO_AREA_SPECIFIED = 1 ILLEGAL_SETCLASS = 2
.



IMPORTING Parameters details for G_SET_ENCRYPT_SETID

SETCLASS - Set Class

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

FIKRS - Financial management area

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

SUBCLASS - Organizational Unit for 'Other' Set Classes

Data type: SETSUBCLS
Optional: Yes
Call by Reference: Yes

SHORTNAME - Short Name of Set

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

KOKRS - Controlling area for CO groups

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

KTOPL - Chart of Accounts for Account Groups

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

LIB - Library for Report Writer Report

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

RNAME - Name of Report Writer Report

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

ECCS_DIMEN - SAP Cons: Dimension

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

ECCS_ITCLG - SAP Cons: Consolidation Chart of Accounts

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

ECCS_SITYP - SAP Cons: Subitem Category

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

EXPORTING Parameters details for G_SET_ENCRYPT_SETID

SETID - Set ID

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

EXCEPTIONS details

NO_CO_AREA_SPECIFIED - CO Groups: COARea/CofA was not specified

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

ILLEGAL_SETCLASS - The set class specified does not exist

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

Copy and paste ABAP code example for G_SET_ENCRYPT_SETID 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_setid  TYPE SETHIER-SETID, "   
lv_setclass  TYPE RGSBS-CLASS, "   
lv_no_co_area_specified  TYPE RGSBS, "   
lv_fikrs  TYPE SETHIER-FIKRS, "   
lv_subclass  TYPE SETSUBCLS, "   
lv_shortname  TYPE C, "   
lv_illegal_setclass  TYPE C, "   
lv_kokrs  TYPE SETHIER-KOKRS, "   
lv_ktopl  TYPE SETHIER-KTOPL, "   
lv_lib  TYPE SETHIER-LIB, "   
lv_rname  TYPE SETHIER-RNAME, "   
lv_eccs_dimen  TYPE SETHIER-ECCS_DIMEN, "   
lv_eccs_itclg  TYPE SETHIER-ECCS_ITCLG, "   
lv_eccs_sityp  TYPE SETHIER-ECCS_SITYP. "   

  CALL FUNCTION 'G_SET_ENCRYPT_SETID'  "Conversion of Combination of Characteristics in a Set ID
    EXPORTING
         SETCLASS = lv_setclass
         FIKRS = lv_fikrs
         SUBCLASS = lv_subclass
         SHORTNAME = lv_shortname
         KOKRS = lv_kokrs
         KTOPL = lv_ktopl
         LIB = lv_lib
         RNAME = lv_rname
         ECCS_DIMEN = lv_eccs_dimen
         ECCS_ITCLG = lv_eccs_itclg
         ECCS_SITYP = lv_eccs_sityp
    IMPORTING
         SETID = lv_setid
    EXCEPTIONS
        NO_CO_AREA_SPECIFIED = 1
        ILLEGAL_SETCLASS = 2
. " G_SET_ENCRYPT_SETID




ABAP code using 7.40 inline data declarations to call FM G_SET_ENCRYPT_SETID

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 SETID FROM SETHIER INTO @DATA(ld_setid).
 
"SELECT single CLASS FROM RGSBS INTO @DATA(ld_setclass).
 
 
"SELECT single FIKRS FROM SETHIER INTO @DATA(ld_fikrs).
 
 
 
 
"SELECT single KOKRS FROM SETHIER INTO @DATA(ld_kokrs).
 
"SELECT single KTOPL FROM SETHIER INTO @DATA(ld_ktopl).
 
"SELECT single LIB FROM SETHIER INTO @DATA(ld_lib).
 
"SELECT single RNAME FROM SETHIER INTO @DATA(ld_rname).
 
"SELECT single ECCS_DIMEN FROM SETHIER INTO @DATA(ld_eccs_dimen).
 
"SELECT single ECCS_ITCLG FROM SETHIER INTO @DATA(ld_eccs_itclg).
 
"SELECT single ECCS_SITYP FROM SETHIER INTO @DATA(ld_eccs_sityp).
 


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!