SAP BAPI_RCOCHAPI BAPI PI-PCS Interface: Control Recipe Header Table data and field list

BAPI_RCOCHAPI is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "BAPI PI-PCS Interface: Control Recipe Header" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_BAPI_RCOCHAPI TYPE BAPI_RCOCHAPI.

The BAPI_RCOCHAPI table consists of various fields, each holding specific information or linking keys about BAPI PI-PCS Interface: Control Recipe Header data available in SAP. These include PLANT (Plant), PROC_ORDER (Process order number), DEST (Control Recipe Destination), DEST_ADDRESS (Address of the control recipe destination)... See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

BAPI_RCOCHAPI structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP BAPI_RCOCHAPI structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the BAPI_RCOCHAPI table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
CNTL_REC_IDControl recipe number CO_CRIDNUMC18COCHALPHACO_CRID
PLANTPlant WERKS_DCHAR4T001WWERKSWRKH_T001W_C
PROC_ORDERProcess order number CO_BORDCHAR12AUFKALPHAAUFNRANR
DESTControl Recipe Destination PHSEQCHAR2TC52PHSEQ
DEST_ADDRESSAddress of the control recipe destination ADR_FSCHAR32RFCDESRFCDEST
DEST_TYPEType of Control Recipe Destination COMTYCHAR1COMTY
CNTL_REC_STATUSControl recipe status CO_CRSTATCHAR5TCB04CO_CRSTAT
TEST_FLAGIndicator: Message or Control Recipe for Test Purposes TSTKZCHAR1FLAG
RECIPE_TEXTDescription AUFTEXTCHAR40TEXT40
MATERIALMaterial Number for Order PI_MATNRCHAR18MARAMATN1MATNRMAT
MATERIAL_TEXTMaterial Description PI_MATXTCHAR40TEXT40
INSPLOTInspection Lot Number PI_QPLOSNUMC12QALSQPLOSQLSQALS
MATERIAL_EXTERNALLong Material Number for MATERIAL Field MGV_MATERIAL_EXTERNALCHAR40MATNR_EXT
MATERIAL_GUIDExternal GUID for MATERIAL Field MGV_MATERIAL_GUIDCHAR32MATNR_EGUID
MATERIAL_VERSIONVersion Number for MATERIAL Field MGV_MATERIAL_VERSIONCHAR10MATNWMATNR_VERS
BATCHBatch Number CHARG_DCHAR10MCH1CHARGCHA
SCHEDULED_START_DATEEarliest Scheduled Start: Execution (Date) PI_FSAVDDATS8DATUM
SCHEDULED_START_TIMEEarliest Scheduled Start: Execution (Time) PI_FSAVZTIMS6ATIME

Key field Non-key field



How do I retrieve data from SAP structure BAPI_RCOCHAPI using ABAP code?

As BAPI_RCOCHAPI is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on BAPI_RCOCHAPI as there is no data to select.

How to access SAP table BAPI_RCOCHAPI

Within an ECC or HANA version of SAP you can also view further information about BAPI_RCOCHAPI and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).