This ABAP class is designed for SAP BTP ABAP Environment to connect securely to an external OData or REST API (for example, an EHS Raw Material service).It demonstrates: Secure HTTP communication via BTP destinations CSRF token handling JSON serialization/deserialization Clean separation between connection ...
SAP EWM Help Latest Questions
GET CURSOR → to capture the position of the cursor in a list/report. HIDE → to store values “hidden” behind a line for later retrieval. USER COMMAND (AT USER-COMMAND) → to react to user actions (e.g., double-clicks, buttons, PF keys). 1. GET CURSOR This ...
Hierarchical ALV allows you to display header–item relationships (like parent–child data). Example: One material (MARA) is the header, and its plant details (MARC) are the items. Useful for showing 1:N relationships in a single ALV output. In the SAP function module world, this ...
ALV (ABAP List Viewer) is used to display reports in a structured, interactive way. A Block List means you display multiple ALV lists one below another in the same output. Example: You want to show MARA (Material Master general data) and then, ...
Automatically from a Dictionary Structure/Table The easiest way — ALV can build the field catalog from the DDIC (Data Dictionary). You just pass the internal table reference. ALV uses the metadata (field labels, data type, length) from DDIC. Example: CALL ...
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
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, ...
A line type defines the structure of a single row in an internal table. · It can be a: Data element (e.g., MATNR) Structure (e.g., SFLIGHT) Custom type created via TYPES Example: TYPES: BEGIN OF ty_line, matnr TYPE matnr, maktx TYPE maktx, END OF ty_line. Here, ty_line is the line type ...
AT SELECTION-SCREEN OUTPUT Purpose:This event is triggered before the selection screen is displayed to the user. Use Case:To modify the selection screen dynamically — for example, to hide/show fields, enable/disable them, or set default values based on conditions.
Reports are a major part of application development used to display data to users. There are three main types of reports: Classical Reports Simplest and most basic report type. Output is in line-by-line format using WRITE statements. Limited formatting, but supports interactive ...