Application Development 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: 

How can I get the class(ification) for an equipment with BAPI ?

Former Member
0 Kudos

Hello Experts,

I have created an Equipment with a BAPI. ("BAPI_EQUI_CREATE")

and i create the assignment to a (equipment-)class with the BAPI BAPI_OBJCL_CREATE.

When I use another BAPI BAPI_EQUI_GETDETAIL I get all information to the equipment,

but I don't get the information to wich class is it assigned.

How can I get this ?

Thanx in advance

1 ACCEPTED SOLUTION

former_member320332
Contributor
0 Kudos

Hi,

As Keshav mentioned you can get the classification data by using BAPI_OBJCL_GETDETAIL

you have to pass the following parameters to it.

CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'

EXPORTING

objectkey = equipment no in your case

objecttable = 'EQUI''

classnum = Class Name

classtype = Class Type

Thanks.

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

use BAPI_OBJCL_GETDETAIL

Just check for the BAPI's in se37 with bapi_objcl*

former_member320332
Contributor
0 Kudos

Hi,

As Keshav mentioned you can get the classification data by using BAPI_OBJCL_GETDETAIL

you have to pass the following parameters to it.

CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'

EXPORTING

objectkey = equipment no in your case

objecttable = 'EQUI''

classnum = Class Name

classtype = Class Type

Thanks.

0 Kudos

Hello all,

thank you for the helpful advices.

I have found three Functions for this Problem.

1 ) BAPI_OBJCL_GETCLASSES und

2 ) BAPI_OBJCL_GETDETAIL

or

3) CLAF_CLASSIFICATION_OF_OBJECTS

Best Regards