Program Type Code Purpose Executable? Typical Usage Executable 1 Reports, standalone programs ✅ Yes Reports, jobs, selection screens Include I Reusable code ❌ No Shared FORM routines, definitions Module Pool M Dialog screens, GUI transactions ✅ Yes Custom SAP GUI apps Function Grp F Group of function modules ❌ No BAPIs, reusable logic Subroutine S Collection of FORM routines ❌ No Old-style code reuse Class Pool K Global class definitions ❌ No OO programming, ...
SAP EWM Help Latest Questions
In-App Extension involves customizing or extending SAP standard applications within the SAP core system itself (e.g., within SAP S/4HANA). Where it runs: Inside the same SAP S/4HANA system Uses SAP tools like Key User Extensibility tools, ABAP in Eclipse, or Fiori App Customization Typical ...
Feature List Report Grid Report (ALV) Output Format Plain text list Interactive grid/table User Interactivity Low High Sorting/Filtering Manual (if needed) Built-in Totals/Subtotals Not available Available Export Options Manual Export to Excel, etc. Development Effort Low Medium to High Modern UI Experience No Yes
ABAP Old vs New Syntax Cheat Sheet Assigning Value to a Variable *--Old Syntax DATA var1 TYPE char5. var1 = 'ABC'. *--New Syntax DATA(var1) = 'ABC'. 2. SELECT SINGLE INTO Work Area *--Old Syntax DATA wa TYPE ... SELECT SINGLE fld1 ...
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
The SET PARAMETER ID and GET PARAMETER ID statements are used with SAP memory to pass data between two separate transactions, each running in its own session. When you use SET PARAMETER ID to assign a value to a field, opening ...
Memory id is a place holder or memory location which stores the data. We need to specify the name of the memory location in a way to access it. In code below, the memory location is CID where the value of c ...
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 ...
Help Request (triggered by F1 key) provides field-level documentation to help users understand the purpose or use of a field. Types of Help Request: Automatic Help (F1) from Data Element Comes from documentation maintained in the data element. No coding needed — ...
A Listbox in SAP refers to a dropdown list UI element that allows users to select one value from a predefined set of values. *&---------------------------------------------------------------------* *& Report ZREP_LCLCLASS *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zrep_lclclass. PARAMETERS: p_color AS LISTBOX VISIBLE LENGTH 20 USER-COMMAND uc. INITIALIZATION. DATA: lt_list TYPE vrm_values, ls_list TYPE vrm_value. ls_list-key = 'R'. ls_list-text = 'Red'. APPEND ls_list TO lt_list. ls_list-key = 'G'. ls_list-text = 'Green'. APPEND ls_list TO lt_list. ls_list-key = 'B'. ls_list-text = 'Blue'. APPEND ls_list TO lt_list. CALL FUNCTION 'VRM_SET_VALUES' EXPORTING id = 'P_COLOR' values = lt_list. Output: execute the Code.