SAP C1R3_EXPCB_READ_RULESET Function Module for NOTRANSL: EHS: Expert Callback, Auslesen von Regelwerken









C1R3_EXPCB_READ_RULESET is a standard c1r3 expcb read ruleset 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: Expert Callback, Auslesen von Regelwerken 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 c1r3 expcb read ruleset FM, simply by entering the name C1R3_EXPCB_READ_RULESET into the relevant SAP transaction such as SE37 or SE38.

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



Function C1R3_EXPCB_READ_RULESET 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 'C1R3_EXPCB_READ_RULESET'"NOTRANSL: EHS: Expert Callback, Auslesen von Regelwerken
EXPORTING
I_RULSETNAME = "Set of Rules for EH&S Expert Data Determination
I_AKT_VERSION = "ABAP System Field: Current Date of Application Server
I_CHECKOUT = "Truth Value

IMPORTING
E_RET_VERSION = "ABAP System Field: Current Date of Application Server

TABLES
E_TAB_RUL = "EH&S: Easy Expert Text Table with Sets of Rules
E_TAB_RULFILE = "EHS: Expert Structure for Binary Sets of Rules
E_TAB_MAPFILE = "EHS: Expert Stucture for Binary Mapping Data
E_TAB_RETURN = "Error Messages
.



IMPORTING Parameters details for C1R3_EXPCB_READ_RULESET

I_RULSETNAME - Set of Rules for EH&S Expert Data Determination

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

I_AKT_VERSION - ABAP System Field: Current Date of Application Server

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

I_CHECKOUT - Truth Value

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

EXPORTING Parameters details for C1R3_EXPCB_READ_RULESET

E_RET_VERSION - ABAP System Field: Current Date of Application Server

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

TABLES Parameters details for C1R3_EXPCB_READ_RULESET

E_TAB_RUL - EH&S: Easy Expert Text Table with Sets of Rules

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

E_TAB_RULFILE - EHS: Expert Structure for Binary Sets of Rules

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

E_TAB_MAPFILE - EHS: Expert Stucture for Binary Mapping Data

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

E_TAB_RETURN - Error Messages

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

Copy and paste ABAP code example for C1R3_EXPCB_READ_RULESET 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_e_tab_rul  TYPE STANDARD TABLE OF RCGEXPRUL, "   
lv_i_rulsetname  TYPE RCGEXPDIAL-EXPRULESET, "   
lv_e_ret_version  TYPE SY-DATUM, "   
lt_e_tab_rulfile  TYPE STANDARD TABLE OF RCGEXPRULFILE, "   
lv_i_akt_version  TYPE SY-DATUM, "   
lv_i_checkout  TYPE BAPISTDTYP-BOOLEAN, "   
lt_e_tab_mapfile  TYPE STANDARD TABLE OF RCGEXPMAPFILE, "   
lt_e_tab_return  TYPE STANDARD TABLE OF RCGEXPERROR. "   

  CALL FUNCTION 'C1R3_EXPCB_READ_RULESET'  "NOTRANSL: EHS: Expert Callback, Auslesen von Regelwerken
    EXPORTING
         I_RULSETNAME = lv_i_rulsetname
         I_AKT_VERSION = lv_i_akt_version
         I_CHECKOUT = lv_i_checkout
    IMPORTING
         E_RET_VERSION = lv_e_ret_version
    TABLES
         E_TAB_RUL = lt_e_tab_rul
         E_TAB_RULFILE = lt_e_tab_rulfile
         E_TAB_MAPFILE = lt_e_tab_mapfile
         E_TAB_RETURN = lt_e_tab_return
. " C1R3_EXPCB_READ_RULESET




ABAP code using 7.40 inline data declarations to call FM C1R3_EXPCB_READ_RULESET

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 EXPRULESET FROM RCGEXPDIAL INTO @DATA(ld_i_rulsetname).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_e_ret_version).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_akt_version).
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_i_checkout).
 
 
 


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!