Application Development 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: 

Parameter

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

4 REPLIES 4

former_member181995
Active Contributor
0 Kudos

Anirban,

you can refer:

this may not fulfill your requirement you have to modify as per your now.

and dont expect spoon feeding from SDN.

do not forget reward.

Amit.

Edited by: Amit Gujargoud on Jun 28, 2008 2:16 PM

huseyindereli
Active Contributor
0 Kudos

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...

Former Member
0 Kudos

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.

Former Member
0 Kudos

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).