SAP C1R1_TEMPL_DESCR_GET Function Module for NOTRANSL: EHS: Lesen der sprachabhängingen Bezeichner von Templates









C1R1_TEMPL_DESCR_GET is a standard c1r1 templ descr get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Lesen der sprachabhängingen Bezeichner von Templates 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 c1r1 templ descr get FM, simply by entering the name C1R1_TEMPL_DESCR_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: C1R1
Program Name: SAPLC1R1
Main Program: SAPLC1R1
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function C1R1_TEMPL_DESCR_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 'C1R1_TEMPL_DESCR_GET'"NOTRANSL: EHS: Lesen der sprachabhängingen Bezeichner von Templates
EXPORTING
* I_LANGU = SY-LANGU "
* I_FLG_SECOND_DESCR = "
I_RECN_GRP = "Sequential Number of Data Record
* I_FLG_DESCR = TRUE "
* I_FLG_DETAIL = TRUE "

IMPORTING
E_NAM = "Short Description of Object
E_OBJID = "Group Entry
E_GRPID = "Group
.



IMPORTING Parameters details for C1R1_TEMPL_DESCR_GET

I_LANGU -

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

I_FLG_SECOND_DESCR -

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

I_RECN_GRP - Sequential Number of Data Record

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

I_FLG_DESCR -

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

I_FLG_DETAIL -

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

EXPORTING Parameters details for C1R1_TEMPL_DESCR_GET

E_NAM - Short Description of Object

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

E_OBJID - Group Entry

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

E_GRPID - Group

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

Copy and paste ABAP code example for C1R1_TEMPL_DESCR_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:
lv_e_nam  TYPE RCGGRPDESCRI-NAM, "   
lv_i_langu  TYPE ESP1_SPRAS, "   SY-LANGU
lv_e_objid  TYPE RCGGRPOBJADM-OBJID, "   
lv_i_flg_second_descr  TYPE ESP1_BOOLEAN, "   
lv_e_grpid  TYPE RCGGRPOBJADM-GRPID, "   
lv_i_recn_grp  TYPE RCGGRPOBJKEY-RECN_GRP, "   
lv_i_flg_descr  TYPE ESP1_BOOLEAN, "   TRUE
lv_i_flg_detail  TYPE ESP1_BOOLEAN. "   TRUE

  CALL FUNCTION 'C1R1_TEMPL_DESCR_GET'  "NOTRANSL: EHS: Lesen der sprachabhängingen Bezeichner von Templates
    EXPORTING
         I_LANGU = lv_i_langu
         I_FLG_SECOND_DESCR = lv_i_flg_second_descr
         I_RECN_GRP = lv_i_recn_grp
         I_FLG_DESCR = lv_i_flg_descr
         I_FLG_DETAIL = lv_i_flg_detail
    IMPORTING
         E_NAM = lv_e_nam
         E_OBJID = lv_e_objid
         E_GRPID = lv_e_grpid
. " C1R1_TEMPL_DESCR_GET




ABAP code using 7.40 inline data declarations to call FM C1R1_TEMPL_DESCR_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 NAM FROM RCGGRPDESCRI INTO @DATA(ld_e_nam).
 
DATA(ld_i_langu) = SY-LANGU.
 
"SELECT single OBJID FROM RCGGRPOBJADM INTO @DATA(ld_e_objid).
 
 
"SELECT single GRPID FROM RCGGRPOBJADM INTO @DATA(ld_e_grpid).
 
"SELECT single RECN_GRP FROM RCGGRPOBJKEY INTO @DATA(ld_i_recn_grp).
 
DATA(ld_i_flg_descr) = TRUE.
 
DATA(ld_i_flg_detail) = TRUE.
 


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!