SAP G_SET_DECRYPT_SETID Function Module for Conversion of a Set ID into the Characteristics Encoded Therein









G_SET_DECRYPT_SETID is a standard g set decrypt 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 a Set ID into the Characteristics Encoded Therein 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 decrypt setid FM, simply by entering the name G_SET_DECRYPT_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_DECRYPT_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_DECRYPT_SETID'"Conversion of a Set ID into the Characteristics Encoded Therein
EXPORTING
SETID = "Set ID

IMPORTING
SETCLASS = "Set Class
ECCS_SITYP = "SAP Cons: Subitem Category
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
SEARCHFLD = "Obsolete: CoArea or CofA
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
.



IMPORTING Parameters details for G_SET_DECRYPT_SETID

SETID - Set ID

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

EXPORTING Parameters details for G_SET_DECRYPT_SETID

SETCLASS - Set Class

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

ECCS_SITYP - SAP Cons: Subitem Category

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

FIKRS - Financial management area

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

SUBCLASS - Organizational Unit for 'Other' Set Classes

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

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: No
Call by Reference: No ( called with pass by value option)

KTOPL - Chart of Accounts for Account Groups

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

SEARCHFLD - Obsolete: CoArea or CofA

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

LIB - Library for Report Writer Report

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

RNAME - Name of Report Writer Report

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

ECCS_DIMEN - SAP Cons: Dimension

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

ECCS_ITCLG - SAP Cons: Consolidation Chart of Accounts

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

Copy and paste ABAP code example for G_SET_DECRYPT_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_eccs_sityp  TYPE SETHIER-ECCS_SITYP, "   
lv_fikrs  TYPE SETHIER-FIKRS, "   
lv_subclass  TYPE SETSUBCLS, "   
lv_shortname  TYPE C, "   
lv_kokrs  TYPE SETHIER-KOKRS, "   
lv_ktopl  TYPE SETHIER-KTOPL, "   
lv_searchfld  TYPE SETHIER-SEARCHFLD, "   
lv_lib  TYPE SETHIER-LIB, "   
lv_rname  TYPE SETHIER-RNAME, "   
lv_eccs_dimen  TYPE SETHIER-ECCS_DIMEN, "   
lv_eccs_itclg  TYPE SETHIER-ECCS_ITCLG. "   

  CALL FUNCTION 'G_SET_DECRYPT_SETID'  "Conversion of a Set ID into the Characteristics Encoded Therein
    EXPORTING
         SETID = lv_setid
    IMPORTING
         SETCLASS = lv_setclass
         ECCS_SITYP = lv_eccs_sityp
         FIKRS = lv_fikrs
         SUBCLASS = lv_subclass
         SHORTNAME = lv_shortname
         KOKRS = lv_kokrs
         KTOPL = lv_ktopl
         SEARCHFLD = lv_searchfld
         LIB = lv_lib
         RNAME = lv_rname
         ECCS_DIMEN = lv_eccs_dimen
         ECCS_ITCLG = lv_eccs_itclg
. " G_SET_DECRYPT_SETID




ABAP code using 7.40 inline data declarations to call FM G_SET_DECRYPT_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 ECCS_SITYP FROM SETHIER INTO @DATA(ld_eccs_sityp).
 
"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 SEARCHFLD FROM SETHIER INTO @DATA(ld_searchfld).
 
"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).
 


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!