Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Different ways to call methods in ABAP

Sorry for this basic ABAP question. What are the different ways to call methods in ABAP? And what are their "official" names? I've heard of perform, method call, and internal/inline method call.

Perform uses the PERFORM keyword and method call the CALL METHOD syntax, I guess. But what is an "internal" or "inline method call"?

Answer*

Cancel
2
  • Actually, I develop in Java and work on an (existing) tool that automatically analyzes and transforms ABAP programs. These ABAP programs are given to us as text, so the tool does not have direct access to SAP systems. I'm a beginner to ABAP and I'm learning on the fly. I promise you to my heart that I will never have the intention to program in ABAP. But in front of me I have gigantic ABAP code bases, stemming from all ages and styles, and I try to figure it out. Commented Feb 5, 2015 at 13:52
  • So, then for perform: perform is followed by a name of a formroutine. If You search for this name in the code, You will find all it's calls. Be carefull and check each include. The definition is preceeded by form. So perform calculate_sth using x , y. Has somewhere its definition like "form calculate_sth using x type i , y type i. " bla endform." Commented Feb 5, 2015 at 13:56