Category: ABAP

Useful ABAP code snippets that can be used in real life projects.

Flash News: Web-Based ABAP Editor SOON!

Our ABAP Academy Community member is already working on a web-based ABAP Editor and will share it with us soon! This is how it looks like: In the background of this ABAP Editor is our Fully Pre-Installed Local SAP System for Practicing ABAP on our ABAP Academy coding projects. See his quick demonstration from our discussion:...

Coding Session: Join tables together and display in ALV

Last time I was asked by one of my coaching clients to demonstrate the way on how I am approaching such project + with coding best practices. Let me share that with you as well: Are you interested to get such coding sessions regularly? Join our Community by signing up our Personalized Roadmap for FREE…

For Beginners: Multiple Variations of Output on the Screen

Find out what are the most used approaches when it comes to creating output on the screen in the ABAP program. In this video, you will create your first Help Library Program as a future reference for your later ABAP programs. Learn more about Help Library Programs and ABAP Academy Teaching System.

How to Create a Left Join View in SE11? + Explain Inner Join and Left Outer Join with Example

Question How to create database view in SE11 with LEFT OUTER JOIN? Original Question: Can I create Search Help / VIEW with all the existing ICPNs + information about ORDER_ID from Ordered Items database table. Required output: ICPN MODEL STORE PRICE CURRENCY ORDER ID 978-0997082302 SEDAN BRATISLAVA 45.000,00 EUR 12 978-0997082303 SEDAN BRATISLAVA 50.000,00 EUR 12...

“DBTAB_NAME” must be a flat structure. Internal tables, strings, references, and structures cannot be used as components.

Analysis Why SAP treats the table as a structure? Why is this error displayed when “DBTAB_NAME” exists in Data Dictionaty as Database Table? In our case we are dealing with the database table called „ZLR_DDIC_MODEL“: Here is the syntax error: Explanation Lets take a look to the help. (Pressing F1 when cursor is on TABLES statement) In...

How to Create Function Module in ABAP

What is Function Module? Function Modules are a set of codes that can be reused by other programs. Instead of copying exactly the same statements within programs, it is much more useful and maintainable to create a function module. Function Modules are created with importing, exporting, changing parameters, and exceptions. Function Modules can be executed independently and...

How to Create Function Group

What is Function Group? Function Group is a collection of Function Modules with similar characteristics. E.g. Function Modules with arithmetical logic can be stored into Function Group containing “Arithmetic” in its name. Each Function Module we create needs to be added into one Function Group. For that reason, Function Group is created earlier than Function Module....

How to Create a Database Table?

In this article, we are going to create a table to store records about cars step-by-step from scratch. Here is the information about cars that we are going to use in the table: Car ID Model: a model of a car such as Sedan, Hybrid, Hatchback, etc. Store: to which store the car belongs to Price Currency The...

What is Size Category?

Let’s start with frequently asked questions from newbies about this topic. Q: What is Size Category? The size category is basically our “estimation” on how many records database table which we are creating is going to contain. Of course, nobody knows the exact number. That’s why we want to shoot our best ;). Q: Why...

What is Data Class?

Data Class defines the space for database table where it should be stored physically on the hard drive of a database server. The setting for the Data Class is within the definition of Database Table in Techincal Settings. When you define the data class for the table that you create, the table is assigned to the...