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

Restricted parameter on a report

Former Member
0 Likes
331

Hi abapers..

I need to restrict a value from any entry in the select screen.

Something like this.

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

SELECTION-SCREEN SKIP.

PARAMETERS:

no_emp TYPE pa0001-pernr OBLIGATORY,

date type PA0001-begda DEFAULT SY-DATUM <b>RESTRICTED</b>.

SELECTION-SCREEN END OF BLOCK bla.

any help?

Hi abapers..

I need to restrict a value from any entry in the select screen.

Something like this.

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

SELECTION-SCREEN SKIP.

PARAMETERS:

no_emp TYPE pa0001-pernr OBLIGATORY,

date type PA0001-begda DEFAULT SY-DATUM <b>RESTRICTED</b>.

SELECTION-SCREEN END OF BLOCK bla.

any help?

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
301

You can do like this.





selection-screen begin of block bla with frame title text-001.
selection-screen skip.
parameters: no_emp type pa0001-pernr obligatory,
            date type pa0001-begda default sy-datum .
selection-screen end of block bla.


at selection-screen output.

  loop at screen.
    if screen-name = 'DATE'.
      screen-input = '0'.
      modify screen.
    endif.
  endloop.

Regards,

Rich Heilman