‎2007 Jan 19 2:05 PM
Hi Experts,
I have a problem related to BAPI_OBJCL_GETDETAIL. I want to get the details of existing characteristics for a particular equipment. This gives me the details of the characteristics that contains some values. If values are not assigned to any characteristics then I am not getting that characteristics in the tables ALLOCVALUESNUM, ALLOCVALUESCHAR, ALLOCVALUESCURR. Is it the way in which this BAPI behaves?
Can you please guide me to get the remaining characteristics that doesn't contain any value assigned to it? Shall I use BAPI_CLASS_GET_CHARACTERISTICS to get the remaining characteristics or is there any alternative for the same?
Thanks,
Vibha
‎2007 Jan 19 2:34 PM
You can use either BAPI_CLASS_GET_CLASSIFICATIONS or BAPI_CLASS_GET_CHARACTERISTICS
‎2010 Sep 15 1:34 PM
in the fm set UNVALUATED_CHARS = 'X' to get all the values..
‎2023 Apr 12 4:13 AM
‎2023 Apr 12 10:08 AM
Yes, it is expected behavior for the BAPI_OBJCL_GETDETAIL function module to only return characteristics that have values assigned to them in the ALLOCVALUESNUM, ALLOCVALUESCHAR, and ALLOCVALUESCURR tables.
To retrieve all characteristics for a particular equipment, whether they have values assigned or not, you can use the BAPI_EQUI_GET_DETAIL function module instead of BAPI_OBJCL_GETDETAIL. This function module retrieves all details of a specific equipment, including the list of characteristics assigned to it.
Alternatively, you can use the BAPI_CLASS_GET_CHARACTERISTICS function module to retrieve a list of characteristics assigned to a class, whether they have values assigned or not. You will need to pass the equipment class as an input parameter to this function module to retrieve the characteristics assigned to it.