06-28-2008 12:57 PM
Hi all,
I want a selection screen having 3 input boxes in one line and having one title. The first will hold the date,2nd will hold the month and the third will hold the year in 4 digit.
again at the time of first display, it will show the 1st day of the current month.
How to achieve it?
Anirban Bhattacharjee
06-28-2008 1:18 PM
Pl. see this sample code.
REPORT ztest_hl7.
selection-screen begin of block b1 with frame title text-a01.
selection-screen begin of line.
selection-screen comment 3(5) text-a06. << Date
parameters: p_day(2) type c,
p_mon(2) type c,
p_year(4) type c.
selection-screen end of line.
selection-screen end of block b1.
initialization.
data: l_date like sy-datum.
l_date = sy-datum.
p_day = '01'.
p_mon = l_date+4(2).
p_year = l_date+0(4).
Regards,
Joy.
06-28-2008 1:16 PM
06-28-2008 1:17 PM
Hi Anirban ,
SELECTION-SCREEN BEGIN OF LINE .
SELECTION-SCREEN COMMENT 1(30) comm1 MODIF ID mg1.
PARAMETERS : X(2) type n , y(2) type n, Z(4) type n.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN OUTPUT.
comm1 ='Your Text Here'.
LOOP AT SCREEN.
IF screen-group1 = 'MG1'.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
this will help you...
06-28-2008 1:18 PM
Pl. see this sample code.
REPORT ztest_hl7.
selection-screen begin of block b1 with frame title text-a01.
selection-screen begin of line.
selection-screen comment 3(5) text-a06. << Date
parameters: p_day(2) type c,
p_mon(2) type c,
p_year(4) type c.
selection-screen end of line.
selection-screen end of block b1.
initialization.
data: l_date like sy-datum.
l_date = sy-datum.
p_day = '01'.
p_mon = l_date+4(2).
p_year = l_date+0(4).
Regards,
Joy.
06-28-2008 1:18 PM
Hi Anriban
REPORT z_test .
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-001.
PARAMETERS:
p1(2), p2(2), p3(4).
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
DATA: w_date TYPE d.
w_date = sy-datum.
w_date+6(2) = '01'. " first day of this month
p1 = w_date+6(2).
p2 = w_date+4(2).
p3 = w_date+0(4).