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

problem with BAPI_CLASS_SELECT_OBJECTS

Former Member
0 Likes
1,599

I try to figure out the BAPI BAPI_CLASS_SELECT_OBJECTS but I'm not sure what to do

I have a class for DMS with 22 characteristics that can be searched.

when for instance the third characteristic is searched on I pass the next values in SELECTIONCRITERIONS

NAME_CHAR = ZDMS3

CHAR_VALUE = E

but the result only gives back the characteristic ZDMS3 and not the other 21 characteristics ??

is the BAPI only returning the searched characteristics or did I do something wrong in the input ??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,362

Hi

Incase if iam not wrong,

are you talking about classification and characteristc in mm03.

do you want to update?

if it is the case then use another FM or if iam wrong ....leave it.

Thanks

7 REPLIES 7
Read only

Former Member
0 Likes
1,363

Hi

Incase if iam not wrong,

are you talking about classification and characteristc in mm03.

do you want to update?

if it is the case then use another FM or if iam wrong ....leave it.

Thanks

Read only

0 Likes
1,362

hi,

If in the above case you can use..

FM "CLAF_CLASSIFICATION_OF_OBJECTS"

reward if useful

regards,

nazeer

Read only

0 Likes
1,362

The above function module is to search ..

use bapi_objcl_change followed by claf_classification_of_objects.

Thanks

Read only

0 Likes
1,362

thanks for the replies so far, it gave me a direction that the BAPI was not the right thing. the initial problem is that we have a Z programm in release 4.7 that works with the function CLSC_SEARCH_OBJECTS (which is also used in the bapi BAPI_CLASS_SELECT_OBJECTS) it's working fine

(now I know why the BAPI was not used but this function instead)

when I tested the programm on the new release ERP2005 this function suddenly takes 26 times longer to complete

so I first tried to replace it with the BAPI above but now I try to figure out why it performs so louzy suddenly

Read only

0 Likes
1,362

further on CLSC_SEARCH_OBJECTS has a last change date in the ERP2005 of 11.04.2005

and in the old 4.7 system the last change date is 28.10.2005 ??

is that normal, looks strange to me that a newer version of SAP has older functions ?

Read only

0 Likes
1,362

Hi.

FM BAPI_CLASS_SELECT_OBJECTS gets objects for a class. If you want to retrieve the characteristics, try using BAPI_CLASS_GET_CHARACTERISTICS.

Hope this helps.

Read only

0 Likes
1,362

problem solved, I thought all the characteristiscs were read from

CLSC_SEARCH_OBJECTS but they were read in BAPI_DOCUMENT_GETDETAIL2

so I could use the BAPI BAPI_CLASS_SELECT_OBJECTS for retrieving the objects instead of CLSC_SEARCH_OBJECTS