Posts

Showing posts with the label Selection Screen

Exploring ABAP Classical Report Events: Start Of Selection, End Of Selection, Top of Page, and End of Page

Image
 Welcome back everyone, We have started Classical report events in the last blog. so, Let’s continue it. 3. Start Of Selection This event calls when user clicks execute button on the selection screen. The selection logic is the part of this event. Let’s create a type structure for our header table in our program, which we have seen in the last blog. Implementation :- Note :- Please go to the debug mode and check which events are triggering at what time, It will help everyone to understand the entire concept. Code :- *********************************************** *Start of Program *********************************************** *Declaring type strcuture TYPES: BEGIN OF ty_header, order_number TYPE zar_order_number, order_date TYPE zar_order_date, payment_mode TYPE zar_payment_mode, currency TYPE zar_curency, END OF ty_header. **************** *Internal Table and Work Area DATA : lt_header type table of ty_header, ls_h

Mastering SAP ABAP: Exploring Selection Screens and Classical Reports

Image
 Welcome back everyone, So we have started the concept of Selection Screen in our previous blog, So let’s Continue it. How To create a Selection Screen block ? Requirement :- We have to create a selection screen block which consists of two select options and one parameter as given below. Step 1 :- Create a executable program in ABAP Editor. Step 2 :- Follow the below code. Code :- *****************************Start Of Selection Screen SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001. ******************************** *Declaring Parameters PARAMETERS : p_ono TYPE zar_ono OBLIGATORY. *Creating Radiobuttons PARAMETERS : p_r1 TYPE c RADIOBUTTON GROUP r1, p_r2 TYPE c RADIOBUTTON GROUP r1 DEFAULT 'X', p_r3 TYPE c RADIOBUTTON GROUP r1. ************* *Creating Checkboxes PARAMETERS : p_chk1 AS CHECKBOX, p_chk2 AS CHECKBOX. *Creating a select option DATA : lv_ono TYPE zar_ono. SELECT-OPTIONS : s_ono FOR lv_ono. *************