SAP CONTROL_RECIPE_CREATE Function Module for NOTRANSL: Anlegen von Steuerrezepten (interne Schnittstelle) - MES
CONTROL_RECIPE_CREATE is a standard control recipe create 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: Anlegen von Steuerrezepten (interne Schnittstelle) - MES 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 control recipe create FM, simply by entering the name CONTROL_RECIPE_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: COCB
Program Name: SAPLCOCB
Main Program: SAPLCOCB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CONTROL_RECIPE_CREATE 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 'CONTROL_RECIPE_CREATE'"NOTRANSL: Anlegen von Steuerrezepten (interne Schnittstelle) - MES.
EXPORTING
* PRE_CALL_XS = ' ' "Checkbox
TABLES
CONTL_REC_HEADER = "PP-PI-PMA: Structure for Creating New Control Recipes
* CONTL_REC_INSTR = "PP-PI-PMA: Process Instruction for New Control Recipe
* CONTL_REC_INSTR_CHARAC = "PP-PI-PMA: Proc.Instr.Characteristics for New Control Recipe
* CONTL_REC_TEXTLINES = "PP-PI-PMA: Texts for New Control Recipe
* CONTL_REC_NEW_ID = "PP-PI-PMA: IDs of New Control Recipes
* CONTL_REC_HEADER_RTC = "Return Codes for Header Data (Export)
EXCEPTIONS
NO_AUTHORITY = 1 INTERNAL_FAILURE = 2
IMPORTING Parameters details for CONTROL_RECIPE_CREATE
PRE_CALL_XS - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for CONTROL_RECIPE_CREATE
CONTL_REC_HEADER - PP-PI-PMA: Structure for Creating New Control Recipes
Data type: RCOCHNEWOptional: No
Call by Reference: Yes
CONTL_REC_INSTR - PP-PI-PMA: Process Instruction for New Control Recipe
Data type: RCOFTNEWOptional: Yes
Call by Reference: Yes
CONTL_REC_INSTR_CHARAC - PP-PI-PMA: Proc.Instr.Characteristics for New Control Recipe
Data type: RCOFVNEWOptional: Yes
Call by Reference: Yes
CONTL_REC_TEXTLINES - PP-PI-PMA: Texts for New Control Recipe
Data type: RCOCRTXTNEWOptional: Yes
Call by Reference: Yes
CONTL_REC_NEW_ID - PP-PI-PMA: IDs of New Control Recipes
Data type: RCOCH_NEW_CRIDOptional: Yes
Call by Reference: Yes
CONTL_REC_HEADER_RTC - Return Codes for Header Data (Export)
Data type: RCOCHRTCOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORITY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
INTERNAL_FAILURE - Internal Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CONTROL_RECIPE_CREATE 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_pre_call_xs | TYPE XFELD, " SPACE | |||
| lv_no_authority | TYPE XFELD, " | |||
| lt_contl_rec_header | TYPE STANDARD TABLE OF RCOCHNEW, " | |||
| lt_contl_rec_instr | TYPE STANDARD TABLE OF RCOFTNEW, " | |||
| lv_internal_failure | TYPE RCOFTNEW, " | |||
| lt_contl_rec_instr_charac | TYPE STANDARD TABLE OF RCOFVNEW, " | |||
| lt_contl_rec_textlines | TYPE STANDARD TABLE OF RCOCRTXTNEW, " | |||
| lt_contl_rec_new_id | TYPE STANDARD TABLE OF RCOCH_NEW_CRID, " | |||
| lt_contl_rec_header_rtc | TYPE STANDARD TABLE OF RCOCHRTC. " |
|   CALL FUNCTION 'CONTROL_RECIPE_CREATE' "NOTRANSL: Anlegen von Steuerrezepten (interne Schnittstelle) - MES |
| EXPORTING | ||
| PRE_CALL_XS | = lv_pre_call_xs | |
| TABLES | ||
| CONTL_REC_HEADER | = lt_contl_rec_header | |
| CONTL_REC_INSTR | = lt_contl_rec_instr | |
| CONTL_REC_INSTR_CHARAC | = lt_contl_rec_instr_charac | |
| CONTL_REC_TEXTLINES | = lt_contl_rec_textlines | |
| CONTL_REC_NEW_ID | = lt_contl_rec_new_id | |
| CONTL_REC_HEADER_RTC | = lt_contl_rec_header_rtc | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| INTERNAL_FAILURE = 2 | ||
| . " CONTROL_RECIPE_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM CONTROL_RECIPE_CREATE
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_pre_call_xs) | = ' '. | |||
Search for further information about these or an SAP related objects