Problem solve Get help with specific problems with your technologies, process and projects.

Is there an equivalent to Java's instanceOf-operator in ABAP?

I was orginally a Java programmer and have written almost all OOP languages. I've been writing ABAP for about a year and have been using ABAP OO for most of that time. I'm trying to do some real OO design work for my company but I can't seem to find anything that I use all the time in Java: The instanceOf operator. Does such a thing exist in ABAP? If not, how integrated will Java be in SAP Enterprise, and how much of J2EE will it support? For information about what the instanceOf operator is you can check out this link:
I'm absolutely fascinated by your question, as I've never heard anyone, apart from the people who redeveloped BASIS, using ABAP Objects for real. My experiences is that ABAP Object developed programs are slower than the classic equivalent. Also, without persistent objects, it is difficult to be truly object oriented. In answer to your question, I don't believe such an operator exists, and I can't see how it could with the way objects is implemented in R/3. However, if anyone out there knows differently, I'd be delighted to hear from you!

Dig Deeper on SAP ABAP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.