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

Performance problem object classification

3,076

Hallo experts,

I have a requirement to read the classification value of network plan and display it in ALV, for this work I have found the function module claf_classification_of_objects and it worked some how. My issue is that I have almost 300 network plan and by using this function module I have performance problem.

By searching for alternative, I have found out new Function Module: RFC_SELECT_OBJECTS_VIA_CLASS. By this function I can give the Class and I will receive all the objects, which have this class in classification. My problem is, I don't know how can I get the result, what come out from this function module, because the results is somehow displayed in Dialog and I have no idea, how can I get in in internal table or so on.

Does some one have any idea, how can I work around with it? Any kind of help would be greatly appreciated.

Best regards

Ton

9 REPLIES 9
Read only

RobertVit
Active Contributor
2,749

Hi,

try function module CLAF_OBJECTS_OF_CLASS or call the RFC in parallel for faster runtime

Kind regards
Robert
Read only

0 Likes
2,749

Hi Robert,

thanks for your answer. I will try this FM and will give you feedback, whether the fm helps me.

Regards

Ton

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,749

Why do you use function modules which are not released by SAP, while there are officially-released BAPIs?

BAPI_CLASS_SELECT_OBJECTS

Read only

0 Likes
2,749

Hi Rossi, thanks for your answer.

Let me explain a little bit more so you can better understand me. I just need to get the characteristics description in classification of network plant objects. The FM claf_classification_of_objects works, but I causes performance problem and im now trying to deal with it.

I have tried this BAPI you mentioend, but the problem here is, by this BAPI I get a table back (objectclassification I think so) and in this table there are only the internal number of the characteristics. What I really need here is the description from these characteristics, and when I do select again in those table like CABNT or CAWNT I again have performance problem. Secondly, in this table there are only the internal number of the objects from table INOB, not the number of the network plan, what I have (yes I know through the network plant number what I have I can get the internal number from table INOB, but its again performance problem by doing select in table INOB).

The FM RFC_SELECT_OBJECTS_VIA_CLASS give me exactly what I need, but as I mentioned, I have no idea how can I get the result back, because it was displayed in form from dialog (also not in Tables or Exporting like normal function module). I hope you can understand what problem I have. In any case, further tips are appreciated.

Thanks again and regards

Ton

Read only

0 Likes
2,749

It's interesting that you experience performance issues simply while querying CABNT and CAWNT; can you show and explain what contain the input values of those SQL queries and show the execution plans via the SQL trace please?

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,749

First of all, you should prefer officially-released function modules. They are supported by SAP, if there are performance issues, you may eventually get some help from SAP support.

If you have performance issues, you should use transaction codes SAT, SQL trace and its execution plans, and so on (eventually via Eclipse ADT) to determine the origin, then you can find a solution. It's difficult to help without further analysis from your side.

Read only

kjyothiraditya
Participant
0 Likes
2,749

Hi ,

If your network plan her/item has material, you can pass this to inob and using the cuobj, you can pass to klah, kssk. Similarly pass the value from these to cawn / cawnt/cabn/ausp table.

Match the table using key fields or common fields.

I think you are using FM in a loop and this is causing performance problems.

Please let me know if this is helpful.

Read only

kjyothiraditya
Participant
0 Likes
2,749

Also please check this link Material classification tables

Read only

kjyothiraditya
Participant
0 Likes
2,749