‎2010 Oct 14 7:43 AM
Hello Experts,
I'm using function module BAPI_OBJCL_GETDETAIL to retrieve material classification, it's called like below:
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey = '000000000000100000'
object = 'MARA'
classnum = 'SEL'
classtype = '001'
TABLES
allocvaluesnum = allocvaluesnum[]
allocvalueschar = allocvalueschar[]
allocvaluescurr = allocvaluescurr[]
return = return[].
The function module returns with all classfications' values except one which is set by action (a z-function module which set this value from another classification value set by user). Does anyone know a solution to it? Thanks very much.
‎2010 Oct 18 4:00 PM
Do you get the same result by using this FM?
DATA: lt_class TYPE TABLE OF sclass,
lt_objectdata TYPE TABLE OF clobjdat.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
classtype = '001' "Material Class
object = '000000000000100000' "Material Number
objecttable = 'MARA' "Object Table
initial_charact = 'X' "Show also emtpty Characteristic Values
TABLES
t_class = lt_class
t_objectdata = lt_objectdata
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.