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

date in selection screen

Former Member
0 Likes
404

I need to get date from a database table and pass the same date to selection screen and that should be non editable..is there a way out?

2 REPLIES 2
Read only

Former Member
0 Likes
373
data: gv_date TYPE sy-datum.

INITIALIZATION.
select SINGLE budat FROM bsis INTO gv_date.
  
  PARAMETERS : p_date TYPE sy-datum MODIF ID MOD.
  p_date = gv_date.
  
  AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    if screen-group1 = 'MOD'.
      screen-input = 0.
      MODIFY SCREEN.
    endif.
    ENDLOOP.
Read only

Former Member
0 Likes
373

Here is an example -

DATA : date TYPE sy-datum.

PARAMETER : p_date TYPE ekko-bedat.

INITIALIZATION.

SELECT SINGLE bedat

INTO date

FROM ekko.

where ebeln = <your selection>.

MOVE date TO p_date.

check if this would work for you!!