SAP CAT_REF_DATA_GET Function Module for









CAT_REF_DATA_GET is a standard cat ref data get 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 cat ref data get FM, simply by entering the name CAT_REF_DATA_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function CAT_REF_DATA_GET 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 'CAT_REF_DATA_GET'"
EXPORTING
ABLNR = "
* SPRAS = SY-LANGU "
* VARID = ' ' "Variant ID
* PSVAR = ' ' "

IMPORTING
KTEXT = "
ERFAS = "Creator
AENDER = "Last Changed By
MUSER = "Person Responsible
SPRAK = "
VARTX = "Variant Text
FRANGE = "Component Assignment
TITLE = "
PRIO = "Priority
OSPRA = "
ATYP = "
CBAU = "
ABBRU = "Termination flag
RVON = "Valid from release
PRREL = "
INAKT = "
KONTK = "

TABLES
* PARA = "Import and export parameters

EXCEPTIONS
DATA_NOT_FOUND = 1
.



IMPORTING Parameters details for CAT_REF_DATA_GET

ABLNR -

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

SPRAS -

Data type: CATG-SPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

VARID - Variant ID

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

PSVAR -

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

EXPORTING Parameters details for CAT_REF_DATA_GET

KTEXT -

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

ERFAS - Creator

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

AENDER - Last Changed By

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

MUSER - Person Responsible

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

SPRAK -

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

VARTX - Variant Text

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

FRANGE - Component Assignment

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

TITLE -

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

PRIO - Priority

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

OSPRA -

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

ATYP -

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

CBAU -

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

ABBRU - Termination flag

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

RVON - Valid from release

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

PRREL -

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

INAKT -

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

KONTK -

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

TABLES Parameters details for CAT_REF_DATA_GET

PARA - Import and export parameters

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

EXCEPTIONS details

DATA_NOT_FOUND - Test Case Does Not Exist

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

Copy and paste ABAP code example for CAT_REF_DATA_GET 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:
lt_para  TYPE STANDARD TABLE OF CATFI, "   
lv_ablnr  TYPE CATA-ABLNR, "   
lv_ktext  TYPE CATG-KTEXT, "   
lv_data_not_found  TYPE CATG, "   
lv_erfas  TYPE CATA-ERFAS, "   
lv_aender  TYPE CATA-AENDER, "   
lv_muser  TYPE CATA-MUSER, "   
lv_sprak  TYPE CATA-SPRAK, "   
lv_vartx  TYPE CATV-PATEXT, "   
lv_frange  TYPE TNODE02_A-TWB_FRANGE, "   
lv_title  TYPE TNODE02_AT-TWB_TITLE, "   
lv_prio  TYPE TNODE02_A-TWB_PRIO, "   
lv_ospra  TYPE CATA-OSPRA, "   
lv_spras  TYPE CATG-SPRAS, "   SY-LANGU
lv_atyp  TYPE CATA-ATYP, "   
lv_varid  TYPE CATP-VARID, "   SPACE
lv_cbau  TYPE CATA-MODEL, "   
lv_psvar  TYPE CATFI-PSVAR, "   SPACE
lv_abbru  TYPE CATA-ABBRU, "   
lv_rvon  TYPE CATA-RVON, "   
lv_prrel  TYPE CATA-PRREL, "   
lv_inakt  TYPE CATA-INAKT, "   
lv_kontk  TYPE CATA-KONTK. "   

  CALL FUNCTION 'CAT_REF_DATA_GET'  "
    EXPORTING
         ABLNR = lv_ablnr
         SPRAS = lv_spras
         VARID = lv_varid
         PSVAR = lv_psvar
    IMPORTING
         KTEXT = lv_ktext
         ERFAS = lv_erfas
         AENDER = lv_aender
         MUSER = lv_muser
         SPRAK = lv_sprak
         VARTX = lv_vartx
         FRANGE = lv_frange
         TITLE = lv_title
         PRIO = lv_prio
         OSPRA = lv_ospra
         ATYP = lv_atyp
         CBAU = lv_cbau
         ABBRU = lv_abbru
         RVON = lv_rvon
         PRREL = lv_prrel
         INAKT = lv_inakt
         KONTK = lv_kontk
    TABLES
         PARA = lt_para
    EXCEPTIONS
        DATA_NOT_FOUND = 1
. " CAT_REF_DATA_GET




ABAP code using 7.40 inline data declarations to call FM CAT_REF_DATA_GET

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 ABLNR FROM CATA INTO @DATA(ld_ablnr).
 
"SELECT single KTEXT FROM CATG INTO @DATA(ld_ktext).
 
 
"SELECT single ERFAS FROM CATA INTO @DATA(ld_erfas).
 
"SELECT single AENDER FROM CATA INTO @DATA(ld_aender).
 
"SELECT single MUSER FROM CATA INTO @DATA(ld_muser).
 
"SELECT single SPRAK FROM CATA INTO @DATA(ld_sprak).
 
"SELECT single PATEXT FROM CATV INTO @DATA(ld_vartx).
 
"SELECT single TWB_FRANGE FROM TNODE02_A INTO @DATA(ld_frange).
 
"SELECT single TWB_TITLE FROM TNODE02_AT INTO @DATA(ld_title).
 
"SELECT single TWB_PRIO FROM TNODE02_A INTO @DATA(ld_prio).
 
"SELECT single OSPRA FROM CATA INTO @DATA(ld_ospra).
 
"SELECT single SPRAS FROM CATG INTO @DATA(ld_spras).
DATA(ld_spras) = SY-LANGU.
 
"SELECT single ATYP FROM CATA INTO @DATA(ld_atyp).
 
"SELECT single VARID FROM CATP INTO @DATA(ld_varid).
DATA(ld_varid) = ' '.
 
"SELECT single MODEL FROM CATA INTO @DATA(ld_cbau).
 
"SELECT single PSVAR FROM CATFI INTO @DATA(ld_psvar).
DATA(ld_psvar) = ' '.
 
"SELECT single ABBRU FROM CATA INTO @DATA(ld_abbru).
 
"SELECT single RVON FROM CATA INTO @DATA(ld_rvon).
 
"SELECT single PRREL FROM CATA INTO @DATA(ld_prrel).
 
"SELECT single INAKT FROM CATA INTO @DATA(ld_inakt).
 
"SELECT single KONTK FROM CATA INTO @DATA(ld_kontk).
 


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!