cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to get Tech.Obj details based on Characteristic

sandeep99
Explorer
0 Kudos

Dear all,

I need a BAPI to get all the Func. Loc and Equipment data for some characteristic defined.

This characteristic with the class, is already assigned to the tech. obj.

I need a report where I can get all the names/numbers of tech.obj. for some characteristic value = YES.

Kindly help.

Thanks,

Sandeep

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor
0 Kudos
  • In case you've already checked this and is not suitable for your task then the following TWO Function modules will do your job.
    • BAPI_OBJCL_GETCLASSES
    • ALM_ME_CLASS_CHAR_GETDETAIL
  • These two FMs will give you all data you require for your requirement. In fact I already documented this with code attached. see this post: ALV Report on Equipment vs Class vs Characteristics and Values
  • Your query (Title) is centered at the Selection screen. Once the program is developed, you can design your Selection parameters as per your requirement.
  • I think this information will serve your purpose.

Good luck

KJogeswaraRao

sandeep99
Explorer
0 Kudos

Dear Sir,

Thanks a lot for your answer.

But the FMs you mentioned, I think I have to input the Equip. number to get the class/characteristic details. But I need the opposite one. Or I am not understanding it clearly.

Kindly help.

Thanks,

Sandeep

jogeswararao_kavala
Active Contributor
0 Kudos
  • You are right. And I know the issue.
  • In the scenario where we do not have direct FMs that do our job these FMs do an indirect job at the cost of Response time.
  • See the Selection-screen of a program developed with these FMs.

  • In your case you will have Characteristic and Value also in the Selection screen. And you will not fill Equipment number.
  • The program will start working by collecting Equipments matching to Planner group.
  • In addition or inplace of Planner Group you can haveany other Selection criterion which would reduce the list of Equipments and reduce the load on program.
  • Then it will start using these FMs to collect all classification data for these Equipments
  • And at the end the program will delete all records which do not fit into the Characteristic and value of the Selection screen.
  • So, as I mentioned this will be time consuming report, because the report will have to first work on many undesired equipments and at the end it will delete all rows which do not fit into the requirement by Characteristic and Value fields .
  • Tthis report might run endlessly for large databases of Equipments.
  • An expert ABAPer through debugging can make this program work more efficiently.
  • All above comments are valid when we do not fill Equipment number into he input screen.
  • I'll let you know if I come across any FM of that sort required by you.

  • In my view for this requirement the best available is through IE05 through Class and Valuation button
  • You should look at report CL24N where you get Equipment numbers and theirs Characteristic values by inputting the Class

Good luck

KJogeswaraRao

Answers (2)

Answers (2)

jogeswararao_kavala
Active Contributor
0 Kudos

Sanddep,

  • One more idea can be dropping the FM route and trying the Tables route to develop your report with inputs available from this discussion. Linking of Eqp no. and Char. values
  • Here figures one more FM  BAPI_OBJCL_GET_KEY_OF_OBJECT .

Regards

KJogeswaraRao

sandeep99
Explorer
0 Kudos

Dear Sir,

Thanks a lot for detailed explanation.

I found Linking of Eqp no. and Char. values very helpful.

Going by tables will be easy for me since my database is very large, and response time matters.

IE05 is useful. Apart from CL24N, I found CT12 - which is exactly what I wanted. I need to bring all the Equip. numbers as well as F.Loc names. So this report gives me the best result.

Thanks,

Sandeep

jogeswararao_kavala
Active Contributor
0 Kudos

Thank you Sandeep for very useful feedback. CT12  is a great tcode.

Regards

KJogeswaraRao

pavan_kumarcs
Active Participant
0 Kudos

Thanks Sandeep for the valuable feedback !

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Sandeep

  • Have you checked whether your requirement is possible with IH08 or IE05?
  • You need to input Class and click on Valuation button then you will be able to enter the Value of the Characteristic.
  • When you Execute this, you'd get all the Equipments with that value of the specified characteristic.

Regards

KJogeswaraRao

sandeep99
Explorer
0 Kudos

Dear Sir,

With IH08, it doesnt meet my requirement. But IE05 is helpful. Since I want to use the same in a custom report I need the BAPI.

Regards,

Sandeep