Iconet Services Ltd - SAP ABAP / SAPScript Consultant

Home Page
Company Profile
Search Internet for SAP Information
Subscribe to SAP R3 Mailing list
Sample ABAP Programs
ABAP How to
General Purpose layout set

Obtain material characteristic value

DATA: class like sclass occurs 0 with header line,

objectdata like clobjdat occurs 0 with header line,

classobject like ausp-objek,

W_CHARACTERISTIC_VALUE like clobjdat-ausp1.

classobject = tvbdpa-matnr.

call function 'CLAF_CLASSIFICATION_OF_OBJECTS'

exporting

classtype = '001'

features = 'X'

language = sy-langu

object = classobject

objecttable = 'MARA'

tables

t_class = class

t_objectdata = objectdata

exceptions

no_classification = 1

no_classtypes = 2

invalid_class_type = 3

others = 4.

read table objectdata with key smbez = 'CLASS_NAME'.

if sy-subrc = 0.

W_CHARACTERISTIC_VALUE = objectdata-ausp1.

endif.

if W_CHARACTERISTIC_VALUE = '?'.

clear W_CHARACTERISTIC_VALUE.

endif.

Back to How To list