‎2005 Nov 30 1:09 PM
Hi,
I have used this function in one of my program
CLAF_CLASSIFICATION_OF_OBJECTS
-
but it is throwing "NO_CLASSIFICATION" Exception and breaks into a short dump
only if i give some plant in the selection screen which is
can any one help.
‎2005 Nov 30 1:12 PM
if you want to prevent the dump, after the function module call check for sy-subrc
if sy-subrc eq 1 .
its NO_CLASSIFICATION exception
endif .
call function 'CLAF_CLASSIFICATION_OF_OBJECTS'
....
exceptions
no_classification = 1
invalid_class_type = 2.
make sure that the exceptions are not commented when you call the FM.
Regards
Raja
‎2005 Nov 30 1:13 PM
try to uncomment the exceptions.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
classtext = ' '
classtype = '300'
features = ' '
language = sy-langu
object = matl
objecttable = 'MARA'
key_date = p_date
TABLES
t_class = class_allocs
t_objectdata = obj_data
<b> EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
IF sy-subrc = 0.</b>
endif.and handle them if you can.
regards
vijay
‎2005 Nov 30 5:55 PM
It means that there is no classification maintained for the object in that plant. Are you asking how to avoid dump or avoid the error itself? Avoiding dump is already covered by others here, and to avoid the error itself, you basically need to maintain the data.
Is this material classification at batch level or something else?
Please let us know.
Srinivas