From 41823b64c92c50d7eb533cecf868b3cf0fd67a94 Mon Sep 17 00:00:00 2001 From: Gregor Wolf Date: Sat, 2 Jan 2021 10:35:42 +0100 Subject: [PATCH] Dynamic prefill of date (#713) --- src/demos/zdemo_calendar.prog.abap | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/demos/zdemo_calendar.prog.abap b/src/demos/zdemo_calendar.prog.abap index 8ec1683..76ef8c0 100644 --- a/src/demos/zdemo_calendar.prog.abap +++ b/src/demos/zdemo_calendar.prog.abap @@ -29,8 +29,8 @@ INCLUDE zdemo_calendar_classes. DATA: lv_workdir TYPE string. -PARAMETERS: p_from TYPE dfrom DEFAULT '20190101', - p_to TYPE dto DEFAULT '20191231'. +PARAMETERS: p_from TYPE dfrom, + p_to TYPE dto. SELECTION-SCREEN BEGIN OF BLOCK orientation WITH FRAME TITLE orient. PARAMETERS: p_portr TYPE flag RADIOBUTTON GROUP orie, @@ -42,6 +42,8 @@ INITIALIZATION. cl_gui_cfw=>flush( ). p_path = lv_workdir. orient = 'Orientation'(000). + p_from = |{ sy-datum(4) }0101|. + p_to = |{ sy-datum(4) }1231|. START-OF-SELECTION.