2023 Jan 13 4:26 PM
Trying to use this FM, if I run the FM in se37 it returns results.
If I run this code with the same inputs, it doesn't return anything. Why would it work in the test but not in code? Subrc is returning 1.
DATA: lv_sclass TYPE TABLE OF sclass,
lv_clobjdat TYPE TABLE OF clobjdat WITH HEADER LINE.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
classtype = '001'
features = 'X'
object = 'testcomp'
objecttable = 'MARA'
initial_charact = 'X'
TABLES
t_class = lv_sclass
t_objectdata = lv_clobjdat
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
IF sy-subrc = 0.
LOOP AT lv_clobjdat.
WRITE: / 'SPR_PKG_TYPE =',lv_clobjdat-ausp1.
ENDLOOP.
ENDIF.<br>
2023 Jan 13 4:59 PM
If I had to venture a guess which is all anyone can do without knowing your system data it would be on account of the object = 'testcomp'. In SE37 the system will convert fields to upper case unless you select the option for lower case, which give you a different result than this code here.
Regards,
Ryan Crosby
2023 Jan 13 4:59 PM
If I had to venture a guess which is all anyone can do without knowing your system data it would be on account of the object = 'testcomp'. In SE37 the system will convert fields to upper case unless you select the option for lower case, which give you a different result than this code here.
Regards,
Ryan Crosby