ERPClimb logoERPClimb
SAP BAPIObjectBAPI_OBJCL_GETDETAILModuleMDG

BAPI_OBJCL_GETDETAIL — Read an Object's Classification Detail

Returns detailed classification information and characteristic values for a non-class object in a specified class. SAP documents separate tables for numeric/date/time, character/boolean, and currency characteristic values. The object key must follow internal-format rules; the BAPI is read-only and requires no commit.

SAP Classification BAPI reference for BAPI_OBJCL_GETDETAIL, covering the released business purpose, technical identity, transaction behavior, RETURN handling, S/4HANA/ABAP Cloud implications, and common classification mistakes.

Published 20 Sept 2026· 772 words

Diese Seite ist noch nicht auf Deutsch verfügbar.

What it does

Returns detailed classification information and characteristic values for a non-class object in a specified class. SAP documents separate tables for numeric/date/time, character/boolean, and currency characteristic values. The object key must follow internal-format rules; the BAPI is read-only and requires no commit. SAP's Classification documentation lists this interface in the released BAPI catalog for the corresponding class, object-classification, characteristic, or hierarchy business function. Use it instead of direct updates to classification master and assignment tables.

Important parameters

Classification BAPIs are sensitive to exact technical identity. The active SE37 interface is authoritative for field names, but the recurring business inputs are class name/type, object table and object key, characteristic name/value, key date/change number, language, status, and typed value tables for character, numeric/date/time, or currency values.

For an assigned object's classification, check the object table, class type, object key and class identification at the expected validity/context. A valid business material number does not always equal the concatenated technical key expected by a classification function; use the installed interface's conversion rules. Compare single-value and multi-value characteristic data separately and preserve unit/language semantics. If a characteristic is absent, confirm the class assignment and authorization before treating its value as deleted.

  • Pass object keys in the format required by the specific BAPI; SAP explicitly documents internal-format requirements for several ObjectClassification calls.
  • Keep class name and class type together; the class type is part of the semantic identity.
  • When values are typed into separate CHAR, NUM and CURR tables, place each characteristic in the correct table rather than coercing everything to text.
  • Use key date/change number deliberately for date-dependent classification content.

Commit behaviour

BAPI_OBJCL_GETDETAIL is read/check/key-conversion logic and does not require BAPI_TRANSACTION_COMMIT. Check RETURN plus the actual result because 'no matching class/object/value' can be a valid outcome distinct from a technical error.

Return handling

SAP Classification documentation consistently states that a successful BAPI should not return messages of type E. Process the complete RETURN table, not only SY-SUBRC. For writes, also verify the intended class, assignment, characteristic, or hierarchy relationship after commit. For reads, treat empty result tables as meaningful only after confirming object key, class type, key date, language, and authorization.

  • Treat E and A as blockers.
  • Retain message ID/number/variables for support reproducibility.
  • For multi-value characteristic processing, correlate messages with the characteristic/value that caused them.
  • Do not infer configuration values from the absence of RETURN errors alone; inspect the actual exported data.

ECC vs S/4HANA

SAP still publishes these Classification BAPIs in current support documentation, and SAP's ABAP Cloud migration guidance even demonstrates wrapping BAPI_OBJCL_CREATE behind a released wrapper when classic BAPI business logic must be reused. That does not make the BAPI itself directly released for ABAP Cloud; new clean-core code should use released wrappers/APIs where required.

Common pitfalls

  • Passing a material or other object key in external display format when the BAPI expects its internal format.
  • Mixing class types or assuming a class name is globally unique without its class type.
  • Placing numeric/date/currency characteristic values into the wrong typed value table.
  • Creating a duplicate assignment instead of checking existence or current classes first.
  • Changing/deleting shared characteristics or hierarchy relationships without checking where-used impact.

Whose problem this is

Master-data/classification ownership normally sits with the functional data-governance team responsible for the object being classified. MDG/data migration teams own governance and mapping at scale. ABAP/integration developers own key construction, typed value mapping, RETURN handling, transaction control, and safe reuse in clean-core architectures.

Production case and technical verification

SAP documentation specifies ObjectKey, ObjectTable, ClassNum and ClassType for BAPI_OBJCL_GETDETAIL, with optional key date and language context. The object key should use internal format, such as material numbers retaining necessary leading zeros. Result values are split by characteristic type—ALLOCVALUESCHAR, ALLOCVALUESNUM and ALLOCVALUESCURR—so reading only the character table can falsely report 'no classification.' Compare one material with a numeric characteristic and one with a character characteristic, then reconcile values with an authorized classification display. Note that assigned classification values are different from configuration values. An empty result should be investigated for wrong class type, object table, key date or authorization before diagnosing deleted master data. This is read-only; no update commit is appropriate.

Related SAP objects

Reviewed pages this object connects to in the ERPClimb knowledge graph.

Source: ERPClimb — https://erpclimb.com/sap-bapis/bapi-objcl-getdetailERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.