Different Types of Selection Screens events

In SAP ABAP, selection screens provide a user interface for entering data and selecting options before executing a program. Selection screen events are triggered by user actions on the selection screen and allow you to perform specific actions or validations. Here are some of the commonly used selection screen events in SAP ABAP: Following details … Read more

Validation of selection screens

Validation of selection screen can be performed in the AT SELECTION SCREEN event. Example: ************************************************************************* AT SELECTION SCREEN *************************************************************************at selection-screen. perform validate_selection_screen using g_returkode. if g_returkode = c_returkode_error. exit. endif. *&———————————————————————**& Form validate_selection_screen*&———————————————————————** Validation of selection screen*———————————————————————-** –>P_G_RETURKODE text*———————————————————————-*form validate_selection_screen using p_returkode. if s_framd > 12 or s_framd < 1 or s_tilmd > 12 or … Read more

Submitting another report using select-options or ranges

Example 1: Submitting a report using ranges for select-options * Define range for ltak-tanumRANGES: r_tanum FOR ltak-tanum. * Read values from database tabel into the range* These values are later used for select-options in the report SELECT * FROM ltak WHERE lgnum = w_lgnum AND “Warehouse number/complex vbeln = w_screen1000-io_vbeln. “Transfer order number MOVE ltak-tanum … Read more