SAP CNV_MBT_RULE_CODE_READ Function Module for Get Rule Coding from Include









CNV_MBT_RULE_CODE_READ is a standard cnv mbt rule code read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Rule Coding from Include 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 cnv mbt rule code read FM, simply by entering the name CNV_MBT_RULE_CODE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function CNV_MBT_RULE_CODE_READ 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 'CNV_MBT_RULE_CODE_READ'"Get Rule Coding from Include
EXPORTING
IV_PACKID = "Package Number to Specify CMIS and TDMS Packages
IV_INCLUDE_NAME = "MBT PCL: Name of Include
* IV_RULE_NAME = "Rule Name

CHANGING
XV_INCLUDE_STATE = "

TABLES
XT_RULE_CODING = "ABAP_SOURCE

EXCEPTIONS
PROGRAM_DOES_NOT_EXIST = 1
.



IMPORTING Parameters details for CNV_MBT_RULE_CODE_READ

IV_PACKID - Package Number to Specify CMIS and TDMS Packages

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

IV_INCLUDE_NAME - MBT PCL: Name of Include

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

IV_RULE_NAME - Rule Name

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

CHANGING Parameters details for CNV_MBT_RULE_CODE_READ

XV_INCLUDE_STATE -

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

TABLES Parameters details for CNV_MBT_RULE_CODE_READ

XT_RULE_CODING - ABAP_SOURCE

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

EXCEPTIONS details

PROGRAM_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CNV_MBT_RULE_CODE_READ 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_iv_packid  TYPE CNV_MBT_PACKID, "   
lt_xt_rule_coding  TYPE STANDARD TABLE OF ABAPSOURCE, "   
lv_xv_include_state  TYPE C, "   
lv_program_does_not_exist  TYPE C, "   
lv_iv_include_name  TYPE CNV_MBT_INCLUDE, "   
lv_iv_rule_name  TYPE CNV_MBT_RULE. "   

  CALL FUNCTION 'CNV_MBT_RULE_CODE_READ'  "Get Rule Coding from Include
    EXPORTING
         IV_PACKID = lv_iv_packid
         IV_INCLUDE_NAME = lv_iv_include_name
         IV_RULE_NAME = lv_iv_rule_name
    CHANGING
         XV_INCLUDE_STATE = lv_xv_include_state
    TABLES
         XT_RULE_CODING = lt_xt_rule_coding
    EXCEPTIONS
        PROGRAM_DOES_NOT_EXIST = 1
. " CNV_MBT_RULE_CODE_READ




ABAP code using 7.40 inline data declarations to call FM CNV_MBT_RULE_CODE_READ

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.

 
 
 
 
 
 


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!