Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_OBJCL_GETDETAIL

Former Member
0 Likes
3,255

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

4 REPLIES 4
Read only

Former Member
0 Likes
2,706

You can use either BAPI_CLASS_GET_CLASSIFICATIONS or BAPI_CLASS_GET_CHARACTERISTICS

Read only

Former Member
0 Likes
2,706

in the fm set UNVALUATED_CHARS = 'X' to get all the values..

Read only

0 Likes
2,706

GOOD......

Read only

0 Likes
2,706

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.