SAP COMC_PR_FORMAT Data for Converting the Product ID Table data and field list

COMC_PR_FORMAT is a standard SAP Table which is used to store Data for Converting the Product ID data in SAP systems, such as SAP R/3, S/4HANA, depending on the version and release level.

The COMC_PR_FORMAT table consists of various fields, each holding specific information or linking keys about Data for Converting the Product ID data available in SAP. These include LEXI (Save Product IDs Lexicographically), LENGTH (Maximum Input/Output Length of Product ID), MASK (Template for Converting the Product ID), DISP0 (Display Product ID with Leading Zeros)... 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. .

COMC_PR_FORMAT 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: Cannot Be Enhanced


SAP COMC_PR_FORMAT 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 COMC_PR_FORMAT 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
CLIENTClient MANDTCLNT3Assigned to domainMANDT
LEXISave Product IDs Lexicographically COMT_PRIDLEXICHAR1XFELD
LENGTHMaximum Input/Output Length of Product ID COMT_PRIDLENGTHINT13INT1
MASKTemplate for Converting the Product ID COMT_PRIDMASKCHAR40CHAR40
DISP0Display Product ID with Leading Zeros COMT_PRIDDISP0CHAR1XFELD
SAVE0Save Numeric Product IDs with Leading Zeros COMT_PRIDSAVE0CHAR1XFELD

Key field Non-key field



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

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

SELECT SINGLE *
FROM COMC_PR_FORMAT
INTO CORRESPONDING FIELDS OF WA_COMC_PR_FORMAT
WHERE...

How to access SAP table COMC_PR_FORMAT

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

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