0% found this document useful (0 votes)
24 views10 pages

SAP ABAP Selection Screen Elements Guide

Uploaded by

sakshinikam699
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views10 pages

SAP ABAP Selection Screen Elements Guide

Uploaded by

sakshinikam699
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Evolvement Consulting Services

_______________________________________________________________________________

Selection Screen Elements


Page | 1
Contents
Radio Button ................................................................................................................................................. 2
Check Box ...................................................................................................................................................... 4
List ................................................................................................................................................................. 6
Parameters and Select Options .................................................................................................................... 9

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

Radio Button

Program Name: ZAA_RADIO_BTN

Page | 2
REPORT zaa_radio_btn.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : p_rad1 RADIOBUTTON GROUP rb1,


p_rad2 RADIOBUTTON GROUP rb1.

SELECTION-SCREEN END OF BLOCK b1.

START-OF-SELECTION.

IF p_rad1 = abap_true.
WRITE:/ text-010. "Radio Button 1 is selected
ELSEIF p_rad2 = abap_true.
WRITE:/ text-011. "Radio Button 2 Is selectd
ENDIF.

Selection Text:

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________
Text Symbols:

Page | 3

Execution:

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

Check Box

Program Name: ZAA_CHECKBOX

Page | 4
REPORT zaa_checkbox.

PARAMETERS : p_chk AS CHECKBOX .

START-OF-SELECTION.
IF p_chk = 'X'.
WRITE:/ 'Check box is selected'.
ELSE.
WRITE: / 'Check Box is not selected'.
ENDIF.

Selection Text:

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

Execution:

Page | 5

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

List

Program: ZAA_LIST_BOX

Page | 6
REPORT zaa_list_box.

TYPE-POOLS: vrm.

PARAMETERS p_carrid LIKE scarr-carrid AS LISTBOX


VISIBLE LENGTH 20 OBLIGATORY.

DATA: t_carrid TYPE vrm_values,


w_line LIKE LINE OF t_carrid.

INITIALIZATION.

SELECT carrid carrname FROM scarr INTO (w_line-key, w_line-text).


APPEND w_line TO t_carrid.
ENDSELECT.

AT SELECTION-SCREEN OUTPUT.

CALL FUNCTION 'VRM_SET_VALUES'


EXPORTING
id = 'P_CARRID'
values = t_carrid.

END-OF-SELECTION.

WRITE: / 'Selected Carrid value:', p_carrid.

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________
Selection Text:

Page | 7

Execution:

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

Page | 8

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

Parameters and Select Options

Program Name: ZAA_PARAMETERS_SELECTION

Page | 9
REPORT zaa_parameters_selection.

DATA: lv_planetype TYPE sflight-planetype.

PARAMETERS: p_carrid TYPE sflight-carrid.

SELECT-OPTIONS: so_ptype FOR lv_planetype.

Selection Text:

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355
Evolvement Consulting Services
_______________________________________________________________________________

Execution:

Page | 10

_______________________________________________________________________________
Contact for certification on SAP ABAP/SD/MM – 9160143355

You might also like