SAP BTP (Business Technology Platform) is SAP’s cloud platform that combines application development, integration, data management, and analytics in a unified environment. It enables developers—including ABAP experts—to build and extend enterprise applications efficiently, following modern cloud principles. ABAP is no longer ...
SAP EWM Help Latest Questions
This replaces the need for LOOP AT, IF, and APPEND all in one line—powerful and readable. *&---------------------------------------------------------------------* *& Report ZREP_LCLCLASS *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zrep_lclclass. TYPES: BEGIN OF ty_user, name TYPE string, status TYPE string, END OF ty_user. DATA: lt_users TYPE STANDARD TABLE OF ty_user WITH EMPTY KEY, lt_names TYPE STANDARD TABLE OF string WITH EMPTY KEY. lt_users = VALUE #( ( name = 'Alice' status = 'ACTIVE' ) ( name = 'Bob' status = 'INACTIVE' ) ( name = 'Charlie' status = 'ACTIVE' ) ). lt_names = VALUE string_table( FOR user IN lt_users WHERE ( status = 'ACTIVE' ) ( user-name ) ). LOOP AT lt_names INTO DATA(name). WRITE: / name. ENDLOOP. Output: Alice Charlie
Here in this example, We are going to create CDS view with Case statement, here new field “DocText” will be added and value will be calculated based on below. case vbtyp ...
An include is a code fragment stored separately and inserted into a program using the INCLUDE statement. It’s mainly used to split a large program into manageable blocks. When to use: To split large programs into smaller reusable blocks. Often used for reusable ...
A function module (FM) is a globally reusable procedure created in transaction SE37 or inside a Function Group. It can be called from anywhere in the system. When to use: · When you want reusable logic across different programs. · Supports exception handling ...
SAP R/3 is based on a 3-tier client-server architecture, which separates presentation, application, and database layers. This design provides scalability, flexibility, and better performance. Three-Tier Architecture: 1. Presentation Layer (Client Tier) Interface between the user and SAP system Usually a SAP ...
The SELECT statement in SAP ABAP is used to retrieve data from database tables into internal tables or variables. It’s one of the most powerful and frequently used Open SQL statements in ABAP and helps interact with the underlying SAP ...
A domain defines the technical characteristics of a field, such as: Data type (e.g., CHAR, NUMC, DEC) Field length Decimal places Value ranges (fixed values or intervals) Domains help in reusing field definitions across multiple tables or structures.