In ABAP, system fields are predefined fields provided by the SAP runtime environment. They hold important contextual information about the program’s current state — like the current date, time, user, or return codes of statements. These fields start with SY- and ...
SAP EWM Help Latest Questions
*&---------------------------------------------------------------------* *& Report ZTEST_PROGRAM_2 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ztest_program_2. *--- Radio Buttons PARAMETERS: r_opt1 RADIOBUTTON GROUP grp DEFAULT 'X' USER-COMMAND rad, r_opt2 RADIOBUTTON GROUP grp, r_opt3 RADIOBUTTON GROUP grp. *--- Fields controlled by radio buttons PARAMETERS: p_field1 TYPE char20, p_field2 TYPE char20, p_field3 TYPE char20. *--- Screen Modification AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. CASE screen-name. WHEN 'P_FIELD1'. screen-active = COND #( WHEN r_opt1 = 'X' THEN 1 ELSE 0 ). WHEN 'P_FIELD2'. screen-active = COND #( WHEN r_opt2 = 'X' THEN 1 ELSE 0 ). WHEN 'P_FIELD3'. screen-active = COND #( WHEN r_opt3 = 'X' THEN 1 ELSE 0 ). ENDCASE. MODIFY SCREEN. ENDLOOP. *--- Output START-OF-SELECTION. WRITE: / 'Option 1:', r_opt1, / 'Option 2:', r_opt2, / 'Option 3:', r_opt3, / 'Field1:', p_field1, / 'Field2:', p_field2, / 'Field3:', p_field3. Output: This ABAP program ZRADIO_DEMO demonstrates how to create a dynamic selection screen using radio buttons. It defines three ...
EML (Entity Manipulation Language) is a standardized way to interact with RAP business objects (BOs).Instead of directly updating database tables, you manipulate entities of a business object using EML statements. It’s similar to SQL but tailored for RAP-managed business objects ...
Log in to BTP Cockpit Go to SAP BTP Cockpit (or your landscape, e.g., eu10.hana.ondemand.com). Navigate to Your Subaccount Select your subaccount where your app/service will run. Go to Destinations In the left-hand menu → Connectivity → Destinations. Create a New Destination Click New ...
In SAP ABAP, pass by value and pass by reference are two methods of passing data to methods, function modules, or forms. They determine how the data is handed over and whether changes to the data affect the original variable.
Access specifiers define the visibility and accessibility of class components such as attributes, methods, and events. They help in implementing encapsulation, a core concept of object-oriented programming (OOP), by controlling which parts of a class can be accessed from outside ...
Identify the Type of CDS View You Want to Extend There are different layers in RAP: Interface View (I_) Consumption/Projection View (C_ or ZC_) Data Definition View (Z_) Usually, you extend interface or projection views. Use the EXTEND VIEW Statement You can extend a CDS view using ...
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,