It returns a filtered internal table based on a condition—no need for loops or APPEND. *&---------------------------------------------------------------------* *& 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_active_users TYPE STANDARD TABLE OF ty_user WITH EMPTY KEY. lt_users = VALUE #( ( name = 'Alice' status = 'ACTIVE' ) ( name = 'Bob' status = 'INACTIVE' ) ( name = 'Charlie' status = 'ACTIVE' ) ). lt_active_users = FILTER #( lt_users WHERE status = 'ACTIVE' ). LOOP AT lt_active_users INTO DATA(user). WRITE: / user-name, user-status. ENDLOOP. Output : Alice ACTIVE Charlie ACTIVE
SAP EWM Help Latest Questions
A Persistence Class is a special ABAP Objects class generated by the Persistence Service that maps database tables to ABAP objects, allowing you to read, modify, and save table data in an object-oriented way instead of writing SQL manually; it ...
In SAP, pooled tables are a type of database table used to store data from multiple internal tables (called logical tables) within a single physical table in the database. Pooled tables help in reducing the number of database objects and ...
Feature Transparent Table Pooled Table Cluster Table Physical Mapping 1:1 Many:1 Many:1 Data Compression No No Yes (compressed) Used For All-purpose Customizing data Related business data Supported in HANA? ✅ Yes ❌ No ❌ No Note: Pooled and Cluster tables are no longer supported in ...
LSMW (Legacy System Migration Workbench) is a standard SAP tool used to migrate data from non-SAP (legacy) systems into SAP. It is mainly used during data migration projects such as SAP implementation, system upgrades, or when large volumes of master ...
Dynamic Internal Tables are tables created at RUN TIME Using Field Symbols. It’s useful in creating a program where you don’t know name of table till run time. In other words, it’s very useful in creating Dynamic Programs. Dynamic internal tables can ...
Aspect Enhancement 🚀 (Safe) Modification ⚠️ (Risky) Definition Extend standard SAP without changing its code Change SAP standard code directly Upgrade Impact Upgrade-safe ✅ Upgrade issues ❌ (need rework) Where Used User Exits, BAdIs, Enhancements Direct changes in SAP standard objects Maintainability Easy to maintain Hard to maintain Example Add custom field validation Change standard pricing logic ...
A class can implement multiple interfaces at once, which allows you to combine functionality from many sources. Example: ” First interface INTERFACE if_flyable. METHODS: fly. ENDINTERFACE. ” Second interface INTERFACE if_swimmable. METHODS: swim. ENDINTERFACE. ” A class implementing multiple interfaces CLASS cl_duck DEFINITION. PUBLIC ...
Value Help (F4 Help) provides users with a list of valid input values for a field to ensure accurate data entry. Types of Value Help: Automatic Value Help Provided by the data element (via domain fixed values or check tables). No coding needed. Search ...