Google Search - Blog...........

ABAP - Example - Selection Screen Parameters

*Abap code

report ztest.

SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
selection-screen begin of line.
parameters: p_type radiobutton group grp1.
selection-screen comment 4(15) text-010 for field p_type.
selection-screen position pos_low.
parameters: p_tinput like p2001-awart.
selection-screen end of line.
selection-screen begin of line.
parameters: p_reason radiobutton group grp1.
selection-screen comment 4(17) text-010 for field p_reason.
selection-screen position pos_low.
parameters: p_rinput like p2001-umsch.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.


SELECTION-SCREEN BEGIN OF BLOCK out1 WITH FRAME TITLE text-s01.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_filchk AS CHECKBOX.
SELECTION-SCREEN COMMENT 4(17) text-s02 FOR FIELD p_filchk.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS: p_file LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK out1.

SELECTION-SCREEN BEGIN OF BLOCK out2 WITH FRAME TITLE text-s01.
selection-screen begin of line.
parameters: p_and radiobutton group grp2.
selection-screen comment 4(5) text-010 for field p_and.
parameters: p_or radiobutton group grp2.
selection-screen comment (5) text-011 for field p_or.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out2.


SELECTION-SCREEN BEGIN OF BLOCK out3 WITH FRAME TITLE text-s01.
selection-screen begin of line.
selection-screen comment 1(7) text-su9.
parameters: p_clerk1 LIKE knb1-busab OBLIGATORY DEFAULT '51'.
selection-screen comment 15(19) text-su1.
parameters: p_cstr1(20) type c OBLIGATORY DEFAULT 'ABCD'.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out3.


ALSO READ:

- Selection Screen To Restrict Options.

- Select Input Only Through F4 (Value On Request).

- Selection Screen With Radio Buttons.

- Selection Screen With Push Buttons.

- Selection Screen Events.

No comments:

Post a Comment