*&---------------------------------------------------------------------* *& 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 ...
SAP EWM Help Latest Questions
*&---------------------------------------------------------------------* *& Report ZTEST_PROGRAM_2 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ztest_program_2. TYPES : BEGIN OF lty_student, name TYPE string, id TYPE zstudent_id_01, departid TYPE zdep_id, departmentname TYPE string, END OF lty_student. " internal table DATA lt_student TYPE TABLE OF lty_student. " work area. DATA ls_student TYPE lty_student. DATA ls_department TYPE zdepartment_1. " assign --> " unassig --> directly access the place where the data is stored. START-OF-SELECTION. SELECT studentname studentid departmentid FROM zstudent_2 INTO TABLE lt_student. "using workarea. clear: ls_Student. ls_student-id = '2'. ls_student-name = 'RAM'. ls_student-departid = '4'. ls_student-departmentname = 'CSE'. " append append ls_Student to lt_Student. "using workarea. clear: ls_Student. ls_student-id = '3'. ls_student-name = 'RAM'. ls_student-departid = '5'. ls_student-departmentname = 'CSE'. " append insert ls_Student into lt_Student. LOOP AT lt_student INTO ls_student. WRITE: / ls_student-name, ls_student-id, ls_student-departid, ls_Student-departmentname. ENDLOOP. This ABAP report ZTEST_PROGRAM_2 is a beginner-friendly example that demonstrates how to work with internal tables, work areas, and database records. It starts by defining a custom structure lty_student to hold student ...
This report is a sample program that demonstrates how a user can enter and organize different kinds of input on an SAP screen. It includes simple fields like dates, codes, and names where you can type in values. It also ...
CLASS /iap/chm_cl_aux_product DEFINITION PUBLIC FINAL ...
In a RAP application, you usually expose business objects and services as OData APIs (consumed by Fiori apps or external systems).Every business object instance (like Complaint, Sales Order, Request) needs a unique identifier (key field). In SAP GUI-based classic apps, ...
In SAP ABAP, a TMG (Table Maintenance Generator) is used to create a standard maintenance screen for a table (so that users can create, update, or delete table entries easily). Now, TMG Events are hooks (user-exits) provided by SAP within the ...
In SAP, a Number Range Object is a central mechanism used to generate unique numbers for business documents, master data, and transactions. Key points: A Number Range Object is like a container that controls how numbers are assigned to a particular type ...
1. Using SEGW (Service Gateway Builder) – Traditional Approach Transaction code: SEGW Steps: Create a new project in SEGW. Define Data Model (Entity Types & Entity Sets). Map Entities to ABAP structures/tables. Implement CRUD operations in DPC (Data Provider Class). Register and activate the service ...
It is only called for collective search helps, using the search help exit, the set of elementary search helps available can be restricted depending on the context. We can call search helps exits in the following situation. Before displaying the dialog box ...
We can use the search help in OData as an entity type. But only the elementary search help can be used. Choose a elementary search help which is used to create a service ...