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 ...
SAP EWM Help Latest Questions
A friend class can access the protected and private components of another class. This is useful when you want to allow controlled access to internal details of a class without making them public. CLASS main_class DEFINITION. PUBLIC SECTION. METHODS: display. PRIVATE ...
1. Primary Index Created automatically when you create a table in SE11. Based on the primary key fields of the table. Always unique. Cannot be deleted. Used whenever you do a SELECT ... WHERE on the primary key. Example:For table MARA, the primary index is ...
SAP defines three main types of internal tables based on their structure and access method: 1. Standard Table (STANDARD TABLE) Default type if nothing is specified. Entries are stored unsorted (in the order you append them). Index-based access (like arrays). Duplicate entries allowed. Access time: By index ...
An Update Function Module is a special type of function module that executes update tasks (like DB changes, inserts, updates, deletes) asynchronously, after a COMMIT WORK. They are processed in update work processes (type UPD or UP2) instead of dialog work ...
Synchronous RFC (sRFC) Default type when you call a function module via RFC. The caller program waits until the remote system has completed the function execution and returned the result. Example use: Real-time data retrieval (e.g., fetching stock from another SAP system). FM execution: ...
Steps to Send Email with Attachment in ABAP (Background) Create document content (subject, body). Create an attachment (text, CSV, PDF, etc.). Build the BCS object and send. REPORT z_send_email_attachment. DATA: lo_send_request TYPE REF TO cl_bcs, lo_document TYPE REF TO cl_document_bcs, lo_sender TYPE REF TO cl_sapuser_bcs,
An Interactive Report in ABAP is a report that lets users interact with the list (usually by clicking on a line or hotspot). When the user clicks, the program reacts to the event and shows secondary details (like drilling down). Classic mechanism: ...
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, ...