Value Assignment Type Sap

This Article will cover How Sap Classification is handled.

It starts with SAP Characteristics and Classes Customizing to get an overview of Classification.
The second part is more technical and covers the Master Data for Classification (ex: AUSP ).The last part explains how to handle Characteristics in ABAP Coding: How to read and Update Characteristics.

You will find a link to ABAP Program Update characteristic value in Sap: how to update the SAP Customer Classification.

Table of Contents

SAP Characteristics Customizing

Let’s start by the SAP Characteristics Customizing.
The main Tcode for Characteristics Customizing in SAP is CT04 and CL02 for Class Customizing.

Step by Step SAP Class & Characteristic Customizing

The path to customize Characteristics is:

  • CT04: Customizing of SAP Characteristics
  • CL02: Customizing of SAP Classes

You can access the Customizing Tcodes directly from Standard SAP Menu under:
SAP Men > Cross-Application Components > Classification System > Master Data

Fill a new for the new Characteristic. Then Choose the Data Type.

Characteristic can have the following type:

  • Character Format (fill the numbers of characters) ,
  • Currency Format,
  • Date Format,
  • Numeric Format
  • or Time Format.

Choose the Value Assignment: Single Value or Multiple Values

Set the list of SAP Characteristic Values depending on your scenario to :

  • a fixed list,
  • for check table,
  • for function module
  • or from Catalog Char.

The list of Value can be found in table CAWN.

SAP Classification: Retrieve and Update

Once the Class and its Characteristics are defined in SAP, let’s move how to assign how to assign SAP Classification to SAP object.
In order to illustrate, we will take some real life sample.

The first example deals about handling Customer Classification in SAP. Moreover, it will explain how to assign Customer Classification in SAP. Then how to retrieve and update SAP Customer Classification’s Characteristics values.

The next example will cover SAP Material Classification.

Customer Classification in SAP

To access Customer classification, go to XD02/3, then to Extra and Classification.

Read SAP Customer Classification

To read Classification, you can use this standard BAPI BAPI_OBJCL_GETDETAIL.

The class type and the class number can be read from the XD02/3 classification screen:

Update SAP Classification Characteristic

Classification Update can be managed by the standard bapi BAPI_OBJCL_CHANGE.
Don’t forget to call a BAPI_TRANSACTION_COMMIT after the update.

Material classification in SAP

Material Classification in SAP is the same process and access path for Vendor Classification in SAP.

SAP Material Characteristics Table in sap

In order to retrieve Sap Material classification, make a join between MARA-MATNR and AUSP-OBJEK.

SAP Classification Tables

Main SAP Classification Tables & Fields

The most importing SAP classification Tables are

  • AUSP: this table saves the value of characteristic for a single business object ( Customer, material … ).
    • The AUSP-OBJEK refers to business object key
      • for example Customer ID in table KNA1-KUNNR
      • or Material Number from MARA-MATNR).
    • The value of the Characteristic can be found in AUSP-ATWRT ( neutral value).
  • CABN: This Table contains the property of the Characteristic. It pilots the type, description … of the characteristic.
  • KLAH: The Class of Characteristic are kind of grouping/set of Characteristics.

When working in ABAP Code with Characteristic, the most important fields to help out extract classification values:

Table Description
AUSP-OBJEKkey of object for Characteristic ( Material and Customer and … )
AUSP-ATWRTValue of Characteristic
CABNT-ATBEZDescription of Characteristic

List of related SAP Classification Tables

Find the relevant list for SAP Classification Tables with more information.

The List of Important SAP Classification Tables is:

Table Description
KLAH Class Header Data
KLAT Classes: Long texts
CAWNCharacteristic values
KLAHClass Header Data
KLATClasses: Long Texts
KSMLCharacteristics of a Class
KSSKAllocation Table: Object to Class
CABNTCharacteristic Descriptions
CABNZLinks between Table Fields and Characteristics
CAWNCharacteristic values
AUSPCharacteristic Values

SAP Classification Query

Useless to try an SQVI for Classification. Actually the AUSP-OBJEK has hardly the same kind and length as the MARA-MATNR or KNA1-KUNNR.
A new view between AUSP and KNA1 or MARA can solved the problem.

To make your life easier, here the join to do in order to retrieve Characteristic data in any ABAP Code.

Join between CABN, AUST and KNA1 can be :


SAP Characteristics Tables and Fields

Characteristic Descriptions can be found at table CABN / CABNT in the field CABNT-ATBEZ

Characteristic Values can be found at table AUSP
in the field AUSP-ATWRT for Characteristic Value and AUSP-ATFLV for Data Values.
The field AUSP-OBJEK is Key of Object for Characteristic ( Material, Customer, … )

Sample SAP Customer Classification Update code

Here a Sample ABAP Program to maintain customer classification in sap.
Please check this link for a sample code to create or update a characteristic.

In this SAP MM tutorial, you will learn how to create material types in SAP step step using transaction code OMS2.

What are Material Types in SAP MM ?

The materials having common features are grouped under one group and assigned to a material type, for example raw materials are group together under ROH group. Before creation of material master record, you need to configure material type and assign material type to a material while creating the material master record.

How to create material type in SAP

You can create material type in SAP MM by using one of the following navigation method.

Transaction code : – OMS2

IMG Path : – SPRO > IMG > Logistics – General > Material Master > Basic Settings > Material Type > Define attributes of material types.

Step 1 : – Enter SAP t-code “OMS2” in the SAP commend field and enter.

Step 2 : – On change view material types overview screen, list defined materials types displays on the screen. Choose the existing material type and click on copy as button for maintaining new material types in SAP.

Step 3 : – On change view “Material Types” details of selected set screen, update the following details.

Material Type : – Enter the new key that you like to create new material type in SAP.

Description : – Update the description text of material type.

General data : – Under this field update the required details for Field reference, SRef material type, Item category group and check the option for external no assignment w/o check, with Qty structure.

Special material types : – Choose the options as per requirements.

User departments : – Choose the required departments for material types like work scheduling, accounting, classification, MRP, purchasing, basic data, storage, etc.

Internal/external purchase order : – update the values for internal purchase order and external purchase orders.

Valuation : – Under this field update the price control (moving average price or standard price) and account category reference.

Press enter and click  on save button and save the configured details.

Step 4 : – Now choose the created material type TROH and click on quantity /value updating option.

On change view quantity/value updating overview screen, check the options of quantity updating and value updating for valuation area.

Click on save button and save the configured material types in SAP.

0 Replies to “Value Assignment Type Sap”

Lascia un Commento

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *