Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

at selection-screen

Former Member
0 Likes
435

how to use at selection-screen event for a set of input fields?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
417

Here is an example. You should use the BLOCK functionality.



report zrich_0001 .

parameters: p_parm1 type c,
            p_parm2 type c.

selection-screen begin of block b1.
parameters: p_datum1 type sy-datum,
            p_datum2 type sy-datum.
selection-screen end of block b1.

at selection-screen on block b1.

 if p_datum1 is initial
  and p_datum2 is initial.
   message e001(00) with 'Enter at least one date'.
 endif.

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
418

Here is an example. You should use the BLOCK functionality.



report zrich_0001 .

parameters: p_parm1 type c,
            p_parm2 type c.

selection-screen begin of block b1.
parameters: p_datum1 type sy-datum,
            p_datum2 type sy-datum.
selection-screen end of block b1.

at selection-screen on block b1.

 if p_datum1 is initial
  and p_datum2 is initial.
   message e001(00) with 'Enter at least one date'.
 endif.

Read only

0 Likes
417

thanks Rich. That solved my problem.