SAP CPE_ERP_MD_MV13A_TCTRL_INIT Function Module for CPE in ERP: Create an initial formula
CPE_ERP_MD_MV13A_TCTRL_INIT is a standard cpe erp md mv13a tctrl init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CPE in ERP: Create an initial formula 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 cpe erp md mv13a tctrl init FM, simply by entering the name CPE_ERP_MD_MV13A_TCTRL_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CPE_ERP_MD_INT_API
Program Name: SAPLCPE_ERP_MD_INT_API
Main Program: SAPLCPE_ERP_MD_INT_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CPE_ERP_MD_MV13A_TCTRL_INIT 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 'CPE_ERP_MD_MV13A_TCTRL_INIT'"CPE in ERP: Create an initial formula.
EXPORTING
* IV_APPLICATION = 'M' "Application
IV_USAGE = "Usage of the Condition Table
IV_SYTABIX = "Index of Internal Tables
IMPORTING
EV_UNCHANGED_SYTABIX = "Index of Internal Tables
CHANGING
CS_SCXTAB_COLUMN = "TableControl Column Table
IMPORTING Parameters details for CPE_ERP_MD_MV13A_TCTRL_INIT
IV_APPLICATION - Application
Data type: KAPPLDefault: 'M'
Optional: No
Call by Reference: Yes
IV_USAGE - Usage of the Condition Table
Data type: KVEWEOptional: No
Call by Reference: Yes
IV_SYTABIX - Index of Internal Tables
Data type: SYTABIXOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CPE_ERP_MD_MV13A_TCTRL_INIT
EV_UNCHANGED_SYTABIX - Index of Internal Tables
Data type: SYTABIXOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CPE_ERP_MD_MV13A_TCTRL_INIT
CS_SCXTAB_COLUMN - TableControl Column Table
Data type: SCXTAB_COLUMNOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CPE_ERP_MD_MV13A_TCTRL_INIT 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_application | TYPE KAPPL, " 'M' | |||
| lv_cs_scxtab_column | TYPE SCXTAB_COLUMN, " | |||
| lv_ev_unchanged_sytabix | TYPE SYTABIX, " | |||
| lv_iv_usage | TYPE KVEWE, " | |||
| lv_iv_sytabix | TYPE SYTABIX. " |
|   CALL FUNCTION 'CPE_ERP_MD_MV13A_TCTRL_INIT' "CPE in ERP: Create an initial formula |
| EXPORTING | ||
| IV_APPLICATION | = lv_iv_application | |
| IV_USAGE | = lv_iv_usage | |
| IV_SYTABIX | = lv_iv_sytabix | |
| IMPORTING | ||
| EV_UNCHANGED_SYTABIX | = lv_ev_unchanged_sytabix | |
| CHANGING | ||
| CS_SCXTAB_COLUMN | = lv_cs_scxtab_column | |
| . " CPE_ERP_MD_MV13A_TCTRL_INIT | ||
ABAP code using 7.40 inline data declarations to call FM CPE_ERP_MD_MV13A_TCTRL_INIT
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.| DATA(ld_iv_application) | = 'M'. | |||
Search for further information about these or an SAP related objects