SAP Function Modules

CNV_MBT_CHECK_INIT SAP Function module - PCL Checks: Read data from the database







CNV_MBT_CHECK_INIT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CNV_MBT_CHECK_INIT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CNV_MBT_CHECK
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM CNV_MBT_CHECK_INIT - CNV MBT CHECK INIT





CALL FUNCTION 'CNV_MBT_CHECK_INIT' "PCL Checks: Read data from the database
  EXPORTING
    i_packid =                  " cnvmbtcobj-packid
    i_customer =                " cnvmbtcobj-customer
    i_log =                     " cnvmbtcobj-customer
*   i_dd =                      " cnvmbtcobj-customer
*   i_cmis =                    " cnvmbtcobj-customer  Customer Object
  TABLES
    p_convobjects =             " cnvmbtconvobjects
    .  "  CNV_MBT_CHECK_INIT

ABAP code example for Function Module CNV_MBT_CHECK_INIT





The ABAP code below is a full code listing to execute function module CNV_MBT_CHECK_INIT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_p_convobjects  TYPE STANDARD TABLE OF CNVMBTCONVOBJECTS,"TABLES PARAM
wa_p_convobjects  LIKE LINE OF it_p_convobjects .


SELECT single PACKID
FROM CNVMBTCOBJ
INTO @DATA(ld_i_packid).


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO @DATA(ld_i_customer).


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO @DATA(ld_i_log).


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO @DATA(ld_i_dd).


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO @DATA(ld_i_cmis).


"populate fields of struture and append to itab
append wa_p_convobjects to it_p_convobjects. . CALL FUNCTION 'CNV_MBT_CHECK_INIT' EXPORTING i_packid = ld_i_packid i_customer = ld_i_customer i_log = ld_i_log * i_dd = ld_i_dd * i_cmis = ld_i_cmis TABLES p_convobjects = it_p_convobjects . " CNV_MBT_CHECK_INIT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_packid  TYPE CNVMBTCOBJ-PACKID ,
it_p_convobjects  TYPE STANDARD TABLE OF CNVMBTCONVOBJECTS ,
wa_p_convobjects  LIKE LINE OF it_p_convobjects,
ld_i_customer  TYPE CNVMBTCOBJ-CUSTOMER ,
ld_i_log  TYPE CNVMBTCOBJ-CUSTOMER ,
ld_i_dd  TYPE CNVMBTCOBJ-CUSTOMER ,
ld_i_cmis  TYPE CNVMBTCOBJ-CUSTOMER .


SELECT single PACKID
FROM CNVMBTCOBJ
INTO ld_i_packid.


"populate fields of struture and append to itab
append wa_p_convobjects to it_p_convobjects.

SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO ld_i_customer.


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO ld_i_log.


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO ld_i_dd.


SELECT single CUSTOMER
FROM CNVMBTCOBJ
INTO ld_i_cmis.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CNV_MBT_CHECK_INIT or its description.