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

Function module for fetching characteristic values

Former Member
0 Likes
26,885

Hello Experts,

I had created an new equipment and while creating i assigned a class to the equipment,

This class has few characteristics values assigned to it .

Now i want a Function module to retrieve the characteristic values by passing the equipment id .

This Function module ALM_ME_CLASS_CHAR_GETDETAIL gives only the names of the class details

and the name of the characteristics , But how can i get the values for these characteristics.

Please suggest me any FM is available ?

Thanks,

Dev

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
10,027

Pass your class to fm CLAF_OBJECTS_OF_CLASS

Read only

0 Likes
10,027

Hello,

I will be passing an equipment id or a unquie object id to the FM and i need to get the Characteristic values.

Please let me know if any other FM are available.

I want char values as output and not char names .

Thanks,

Guru

Read only

kesavadas_thekkillath
Active Contributor
10,027

Also try BAPI_CHARACT_GETDETAIL

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
10,027

Hi ,

if you look into your fm ALM_ME_CLASS_CHAR_GETDETAIL .

In source code line 55 both characteristics and values are fetched.

but the characteristic value table is not exported from the fm.

You can write the same logic in your code.

call BAPI_OBJCL_GETCLASSES first , then BAPI_CLASS_GET_CHARACTERISTICS

Read only

0 Likes
10,027

Yes, he was right.

You can only use fm BAPI_OBJCL_GETCLASSES with READ_VALUATIONS = 'X' to get all characteristic's value.