SAP SRET_IDXCAT_CREATE Function Module for









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

Function Group: SRAD
Program Name: SAPLSRAD
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SRET_IDXCAT_CREATE 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 'SRET_IDXCAT_CREATE'"
EXPORTING
* CLIENTDEPENDENCE = "
* SYINDEPEND = "
* STATTAB = "Table for indexing status
* FCT_GETDAT = "Exit for data/text collection for indexing (non-KPRO)
* CLASSIFICATION = "
* USETM = "
* USEFILTER = "
* MODIFYCLS = "
DESCRIPTION = "Short description of index category
* SRSVRID = "
* APPLICATIONKEY = "
* CLIENT = "Client
* SAPCODEPAGE = "
* CLASS = "
* TYPE = "

IMPORTING
INDEXCATEGORYID = "Key of index category
ERRORCODE = "

TABLES
* CATTATTRIBUTTAB = "
DOCATTRIBUTETAB = "
LANGUAGETAB = "
* TECHATTRTAB = "

EXCEPTIONS
INTERN_ERROR = 1 CATATTR_ALREADY_DEFINED = 10 CATATTR_LOCKED = 11 CATATTR_CATID_DEF = 12 CODEPAGE_ERROR = 13 XERROR = 14 NO_APPLKEY = 15 PARAMETER_ERROR = 2 LANGUAGE_ERROR = 3 ATTRIBUTE_ERROR = 4 NO_IDXCAT_INSERT = 5 RFC_SYS_FAILURE = 6 RFC_COM_FAILURE = 7 NO_RFC_DEST = 8 NO_APPLICATIONKEY = 9
.



IMPORTING Parameters details for SRET_IDXCAT_CREATE

CLIENTDEPENDENCE -

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

SYINDEPEND -

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

STATTAB - Table for indexing status

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

FCT_GETDAT - Exit for data/text collection for indexing (non-KPRO)

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

CLASSIFICATION -

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

USETM -

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

USEFILTER -

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

MODIFYCLS -

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

DESCRIPTION - Short description of index category

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

SRSVRID -

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

APPLICATIONKEY -

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

CLIENT - Client

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

SAPCODEPAGE -

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

CLASS -

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

TYPE -

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

EXPORTING Parameters details for SRET_IDXCAT_CREATE

INDEXCATEGORYID - Key of index category

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

ERRORCODE -

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

TABLES Parameters details for SRET_IDXCAT_CREATE

CATTATTRIBUTTAB -

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

DOCATTRIBUTETAB -

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

LANGUAGETAB -

Data type: SRETLAN4
Optional: No
Call by Reference: Yes

TECHATTRTAB -

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

EXCEPTIONS details

INTERN_ERROR -

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

CATATTR_ALREADY_DEFINED -

Data type:
Optional: No
Call by Reference: Yes

CATATTR_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

CATATTR_CATID_DEF -

Data type:
Optional: No
Call by Reference: Yes

CODEPAGE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

XERROR -

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

NO_APPLKEY -

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

LANGUAGE_ERROR -

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

ATTRIBUTE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_IDXCAT_INSERT -

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

RFC_SYS_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

RFC_COM_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

NO_RFC_DEST -

Data type:
Optional: No
Call by Reference: Yes

NO_APPLICATIONKEY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SRET_IDXCAT_CREATE 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_intern_error  TYPE STRING, "   
lt_cattattributtab  TYPE STANDARD TABLE OF SRETCATATR, "   
lv_indexcategoryid  TYPE SRETIDCAT-CATID, "   
lv_clientdependence  TYPE SRETGSTRUC-CLDEP, "   
lv_syindepend  TYPE SRETGSTRUC-FLAG, "   
lv_catattr_already_defined  TYPE SRETGSTRUC, "   
lv_stattab  TYPE SRETIDX-STATTAB, "   
lv_catattr_locked  TYPE SRETIDX, "   
lv_fct_getdat  TYPE SRETIDX-FCT_GETDAT, "   
lv_catattr_catid_def  TYPE SRETIDX, "   
lv_classification  TYPE SRETGSTRUC-FLAG, "   
lv_codepage_error  TYPE SRETGSTRUC, "   
lv_usetm  TYPE SRETGSTRUC-FLAG, "   
lv_xerror  TYPE SRETGSTRUC, "   
lv_usefilter  TYPE SRETGSTRUC-FLAG, "   
lv_no_applkey  TYPE SRETGSTRUC, "   
lv_errorcode  TYPE SRETGSTRUC-RCODE, "   
lv_modifycls  TYPE SRETIDCAT-MODIFYCLS, "   
lt_docattributetab  TYPE STANDARD TABLE OF SRETATR1, "   
lv_parameter_error  TYPE SRETATR1, "   
lv_description  TYPE SRETIDCATT-DESCRIPT, "   
lt_languagetab  TYPE STANDARD TABLE OF SRETLAN4, "   
lv_language_error  TYPE SRETLAN4, "   
lv_srsvrid  TYPE SRETSRSVR-SRSVRID, "   
lt_techattrtab  TYPE STANDARD TABLE OF SRETTATR1, "   
lv_attribute_error  TYPE SRETTATR1, "   
lv_applicationkey  TYPE SRETIDCTAT-APPLKEY, "   
lv_no_idxcat_insert  TYPE SRETIDCTAT, "   
lv_client  TYPE SY-MANDT, "   
lv_rfc_sys_failure  TYPE SY, "   
lv_sapcodepage  TYPE SRETGSTRUC-SAPCP, "   
lv_rfc_com_failure  TYPE SRETGSTRUC, "   
lv_class  TYPE SRETIDCAT-CLASS, "   
lv_no_rfc_dest  TYPE SRETIDCAT, "   
lv_type  TYPE SRETIDCAT-TYPE, "   
lv_no_applicationkey  TYPE SRETIDCAT. "   

  CALL FUNCTION 'SRET_IDXCAT_CREATE'  "
    EXPORTING
         CLIENTDEPENDENCE = lv_clientdependence
         SYINDEPEND = lv_syindepend
         STATTAB = lv_stattab
         FCT_GETDAT = lv_fct_getdat
         CLASSIFICATION = lv_classification
         USETM = lv_usetm
         USEFILTER = lv_usefilter
         MODIFYCLS = lv_modifycls
         DESCRIPTION = lv_description
         SRSVRID = lv_srsvrid
         APPLICATIONKEY = lv_applicationkey
         CLIENT = lv_client
         SAPCODEPAGE = lv_sapcodepage
         CLASS = lv_class
         TYPE = lv_type
    IMPORTING
         INDEXCATEGORYID = lv_indexcategoryid
         ERRORCODE = lv_errorcode
    TABLES
         CATTATTRIBUTTAB = lt_cattattributtab
         DOCATTRIBUTETAB = lt_docattributetab
         LANGUAGETAB = lt_languagetab
         TECHATTRTAB = lt_techattrtab
    EXCEPTIONS
        INTERN_ERROR = 1
        CATATTR_ALREADY_DEFINED = 10
        CATATTR_LOCKED = 11
        CATATTR_CATID_DEF = 12
        CODEPAGE_ERROR = 13
        XERROR = 14
        NO_APPLKEY = 15
        PARAMETER_ERROR = 2
        LANGUAGE_ERROR = 3
        ATTRIBUTE_ERROR = 4
        NO_IDXCAT_INSERT = 5
        RFC_SYS_FAILURE = 6
        RFC_COM_FAILURE = 7
        NO_RFC_DEST = 8
        NO_APPLICATIONKEY = 9
. " SRET_IDXCAT_CREATE




ABAP code using 7.40 inline data declarations to call FM SRET_IDXCAT_CREATE

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 CATID FROM SRETIDCAT INTO @DATA(ld_indexcategoryid).
 
"SELECT single CLDEP FROM SRETGSTRUC INTO @DATA(ld_clientdependence).
 
"SELECT single FLAG FROM SRETGSTRUC INTO @DATA(ld_syindepend).
 
 
"SELECT single STATTAB FROM SRETIDX INTO @DATA(ld_stattab).
 
 
"SELECT single FCT_GETDAT FROM SRETIDX INTO @DATA(ld_fct_getdat).
 
 
"SELECT single FLAG FROM SRETGSTRUC INTO @DATA(ld_classification).
 
 
"SELECT single FLAG FROM SRETGSTRUC INTO @DATA(ld_usetm).
 
 
"SELECT single FLAG FROM SRETGSTRUC INTO @DATA(ld_usefilter).
 
 
"SELECT single RCODE FROM SRETGSTRUC INTO @DATA(ld_errorcode).
 
"SELECT single MODIFYCLS FROM SRETIDCAT INTO @DATA(ld_modifycls).
 
 
 
"SELECT single DESCRIPT FROM SRETIDCATT INTO @DATA(ld_description).
 
 
 
"SELECT single SRSVRID FROM SRETSRSVR INTO @DATA(ld_srsvrid).
 
 
 
"SELECT single APPLKEY FROM SRETIDCTAT INTO @DATA(ld_applicationkey).
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_client).
 
 
"SELECT single SAPCP FROM SRETGSTRUC INTO @DATA(ld_sapcodepage).
 
 
"SELECT single CLASS FROM SRETIDCAT INTO @DATA(ld_class).
 
 
"SELECT single TYPE FROM SRETIDCAT INTO @DATA(ld_type).
 
 


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!