SAP COMAP Online BDC output mapping from message table to container Table data and field list

COMAP is a standard SAP Table which is used to store Online BDC output mapping from message table to container data in SAP systems, such as SAP R/3, S/4HANA, depending on the version and release level.

The COMAP table consists of various fields, each holding specific information or linking keys about Online BDC output mapping from message table to container data available in SAP. These include BDC_NAME (Name of batch input session), SEQ (Batch Input Session Sequence), SOURCE (BDC output map value source), PID (Set/Get parameter ID)... 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. .

COMAP table Technical Details:

Delivery Class: C - Customising table, maintenance only by cust
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP COMAP table 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 COMAP 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
MANDTClient MANDTCLNT3T000MANDT
BDC_NAMEName of batch input session D0100_MAPNCHAR12CACCELCHAR12
SEQBatch Input Session Sequence CBDCSEQNUMC3NUMC3
SOURCEBDC output map value source CBDCOSOURCECHAR1CBDCOSOURCE
PIDSet/Get parameter ID MEMORYIDCHAR20Assigned to domainMEMORYID
DYNAMEBatch input module name BDC_MODULECHAR40PROGNAME
DYNUMBBatch input screen number BDC_DYNNRCHAR4DYNNR
MSGTYPBatch input message type BDC_MARTCHAR1CHAR1
MSGIDBatch input message ID BDC_MIDCHAR20Assigned to domainARBGB
MSGNRBatch input message number BDC_MNRCHAR3CHAR3
MSGVNOnline BDC variable message part number CBDCMNUMNUMC1CBDCMNUM
ELEMENTElement SWC_ELEMCHAR32SWC_ELEM
TYPEABAP Type of element SWC_TYPECHAR1INTTYPE
ELEMLENGTHLength of the field in bytes SWC_LENGTHNUMC3SWC_LENGTH
ITABBoolean Variable (X=True, -=False, Space=Unknown) BOOLEANCHAR1BOOLEAN
REFSTRUCTReference table SWC_REFSTRCHAR30Assigned to domainAS4TAB
REFFIELDReference field SWC_REFFLDCHAR30Assigned to domainFDNAME
OBJTYPObject Type SWO_OBJTYPCHAR10Assigned to domainOJ_NAMEOBJ

Key field Non-key field



How do I retrieve data from SAP table COMAP using ABAP code

The following ABAP code Example will allow you to do a basic selection on COMAP to SELECT all data from the table
DATA: WA_COMAP TYPE COMAP.

SELECT SINGLE *
FROM COMAP
INTO CORRESPONDING FIELDS OF WA_COMAP
WHERE...

How to access SAP table COMAP

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

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