Skip to Content
Technical Articles

Starting with ABAP programming

Hi.

So, there’s a lot of people who always ask me “where should I start learning ABAP? How did you learn to program in abap” and my answer is always “I don’t know… I kinda just stumbled down into this rabbit hole. People taught me small things and here we are”.

And well… this is for all of you, I made a compilation of several blogs and videos that can help when starting to learning ABAP.

 

****************************************************************************************************************

First of all, what is ABAP. Ignore this if you don’t care about the formal definition, it’s not necessary at all in my opinion.

https://searchsap.techtarget.com/definition/ABAP

And a brief video on the basic structure of the system:

Youtuber: HandsonERP

 

****************************************************************************************************************

Second, how to create an extremely basic ABAP program:

https://www.wikihow.com/Create-an-ABAP-Program

This WikiHow explains it pretty well, my only advice would be to try to not get too attatched to the command WRITE ot the NEW-LINE, most likely you won’t be using them very often in your career (if at all)

And here’s a set of videos:

Youtuber: Pete Moxon

I find it more productive to learn from a video made from a real person than just from a manual, but if you really need it, I recomend www.saptechnical.com or blogs.sap.com (or just google) if you have particular doubts. Full written manuals tend to have too much unnecessary information.

Here’s what data base objects are:

https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=462057079

Also there’s a list of ABAP commands here:

https://www.erpworkbench.com/abap/statements/commandhome.htm

 

 

In most cases, the important thing to know how the program should behave, rather than the code itself, so… pseudocode:

What it is and how to eat it: https://www.geeksforgeeks.org/how-to-write-a-pseudo-code/

Simpler: https://m.wikihow.com/Write-Pseudocode

And examples on how you should do it: https://www.unf.edu/~broggio/cop2221/2221pseu.htm

But this is like the pirate’s code, is more what you’d call “guidelines” than actual rules. Welcome aboard the Black Pearl, Miss Turner!

 

****************************************************************************************************************

Third, what most of you want, debugging:

Debugging is the best thing you can learn, because it gives you the ability to read the functioning of any program (given you know the ABAP basics)

Here’s an article on debugging step by step:

http://www.apprisia.com/blog/sap-abap/your-complete-guide-to-using-debugger-in-abap-step-by-step-with-screenshots/

And several links of how to debug different ABAP Objects:

Report/Function Module:

http://saptechnical.com/Tutorials/ABAP/SystemDebugging/Page1.htm

Popup:

http://saptechnical.com/Tutorials/ABAP/Debug/Popup.htm

In background task:

http://saptechnical.com/Tutorials/ABAP/Debug/Page2.htm

SmartForms:

http://www.saptechnical.com/Tips/SmartForms/Debug/Index.htm

 

And again Pete Moxon’s greatly explained videos:

Here’s how to use watchpoints (the thing to keep an eye on a particular variable):

 

****************************************************************************************************************

Interesting Links:

Book: First steps in ABAP

Books and stuff: https://www.sap-press.com/programming/abap-basics/

Pete Moxon’s playlist on ABAP Programming

 

****************************************************************************************************************

If I find something else interesting relevant to this post, I’ll try to keep it updated.

 

See you 😉

3 Comments
You must be Logged on to comment or reply to a post.
    • The only problem with th ABAP documentation is that if you don’t know what you are looking for, it’s not of much use.

      These tutorials and articles are meant for people who don’t know where to start, to point them in the right direction (IMO at least).

      There’s a lot of functional consultants who want to know at least the basic structure of an ABAP program, or how to debug something. This should give them some idea of where to start.

      • I know that many people stop at looking the help because it’s difficult to read, it requires a first effort to understand the way it is organized. At least, if people want to understand why a “command” doesn’t work, or want to see its options, it would be a good idea to recommend the help.sap.com link or F1.