SAP Function Modules

CNV_MBT_PCL_TABLES_GET SAP Function module - Get relevant tables







CNV_MBT_PCL_TABLES_GET 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_PCL_TABLES_GET into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CNV_MBT_PCL_TABLES_GET - CNV MBT PCL TABLES GET





CALL FUNCTION 'CNV_MBT_PCL_TABLES_GET' "Get relevant tables
* EXPORTING
*   packid =                    " cnvmbtpack-packid
*   skip_not_use =              " cnvmbtretstr-and_return  flag
*   skip_no_exist =             " cnvmbtretstr-and_return  flag
*   target =                    " cnvmbtactivity-exec_target  Specifies The Target System the Activity is Executed in
  TABLES
    cnvmbttables =              " cnvmbttables
*   it_tables =                 " cnvmbttabrange  Range Structure for tabname
    .  "  CNV_MBT_PCL_TABLES_GET

ABAP code example for Function Module CNV_MBT_PCL_TABLES_GET





The ABAP code below is a full code listing to execute function module CNV_MBT_PCL_TABLES_GET 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_cnvmbttables  TYPE STANDARD TABLE OF CNVMBTTABLES,"TABLES PARAM
wa_cnvmbttables  LIKE LINE OF it_cnvmbttables ,
it_it_tables  TYPE STANDARD TABLE OF CNVMBTTABRANGE,"TABLES PARAM
wa_it_tables  LIKE LINE OF it_it_tables .


SELECT single PACKID
FROM CNVMBTPACK
INTO @DATA(ld_packid).


DATA(ld_skip_not_use) = some text here

DATA(ld_skip_no_exist) = some text here

SELECT single EXEC_TARGET
FROM CNVMBTACTIVITY
INTO @DATA(ld_target).


"populate fields of struture and append to itab
append wa_cnvmbttables to it_cnvmbttables.

"populate fields of struture and append to itab
append wa_it_tables to it_it_tables. . CALL FUNCTION 'CNV_MBT_PCL_TABLES_GET' * EXPORTING * packid = ld_packid * skip_not_use = ld_skip_not_use * skip_no_exist = ld_skip_no_exist * target = ld_target TABLES cnvmbttables = it_cnvmbttables * it_tables = it_it_tables . " CNV_MBT_PCL_TABLES_GET
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_packid  TYPE CNVMBTPACK-PACKID ,
it_cnvmbttables  TYPE STANDARD TABLE OF CNVMBTTABLES ,
wa_cnvmbttables  LIKE LINE OF it_cnvmbttables,
ld_skip_not_use  TYPE CNVMBTRETSTR-AND_RETURN ,
it_it_tables  TYPE STANDARD TABLE OF CNVMBTTABRANGE ,
wa_it_tables  LIKE LINE OF it_it_tables,
ld_skip_no_exist  TYPE CNVMBTRETSTR-AND_RETURN ,
ld_target  TYPE CNVMBTACTIVITY-EXEC_TARGET .


SELECT single PACKID
FROM CNVMBTPACK
INTO ld_packid.


"populate fields of struture and append to itab
append wa_cnvmbttables to it_cnvmbttables.

ld_skip_not_use = some text here

"populate fields of struture and append to itab
append wa_it_tables to it_it_tables.

ld_skip_no_exist = some text here

SELECT single EXEC_TARGET
FROM CNVMBTACTIVITY
INTO ld_target.

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_PCL_TABLES_GET or its description.