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 & day

Former Member
0 Likes
580

Hi friends,

actually in my selection screen i have to choose date as default sy-datum & days default to 30 days.

both as parameters.

will u tell me how to do this??

Hi friends,

actually in my selection screen i have to choose date as default sy-datum & days default to 30 days.

both as parameters.

will u tell me how to do this??

5 REPLIES 5
Read only

Former Member
0 Likes
557

Hi,

Do like this,

parameter: p_date like sy-datum default sy-datum,

p_days type i defualt 30.

Regs,

Venkat Ramanan

Read only

Former Member
0 Likes
557

Hi salil,

check the following code.


parameter : date type sy-datum default sy-datum,
            days type i default '30'.

this will always have default value set to desired values.

hope this helps.

Regards,

Kinshuk

Read only

Former Member
0 Likes
557

Hai Salil

Parameters : P_date type sy-datum default '20060626',

p_day(2).

initialization.

p_day = P_date+6(2).

Thanks & regards

Sreenivasulu P

Read only

Former Member
0 Likes
557

Hi salil,

1.

report abc.

*----


parameters : mydate type sy-datum.

parameters : days type i.

INITIALIZATION.

mydate = sy-datum.

days = 30.

regards,

amit m.

Read only

Former Member
0 Likes
557

use

PARAMETERS : P_DATE TYPE SY-DATUM,

P_DAYS(2) TYPE C DEFAULT '30'.

INITIALIZATION.

P_DATE = SY-DATUM.

This will work for your requirement.

regards,

srikanth.

Message was edited by: Srikanth Kidambi