‎2007 Aug 30 6:58 AM
hi to all experts,
i have two field at selection-screen.
1. year
2. month
and i want to given by default current year and current month.
how can i do.
thanks in advance and reward also
regard : deep
‎2007 Aug 30 7:00 AM
‎2007 Aug 30 7:00 AM
‎2007 Aug 30 7:01 AM
Hi ..
this is the code....
Parameters: p_year(4) type n,
p_month(2) type n.
INITIALIZATION.
P_YEAR = SY-DATUM(4).
P_MONTH = SY-DATUM+4(2).
<b>REWARD IF HELPFUL</b>
‎2007 Aug 30 7:01 AM
HI,
parameters:year(4) default sy-datum,
month(2) default sy-datum+4(2).
rgds,
bharat.
‎2007 Aug 30 7:01 AM
HI Deep,
Use the event On Initialisation, in this block assign sy-datum0(4) to the year field in the selection screen and sy-datum4(2) to the month field in the selection screen.
Thanks..
Preetham S
‎2007 Aug 30 7:02 AM
Hi,
just give like this in selection-screen,
parameters: p_year type i default '2007',
p_month type i default '10'.
Reward points if helpful.
Regards,
Vimal
‎2007 Aug 30 7:05 AM
HI
PARAMETERS : YEAR(4) TYPE 1
PARAMETERS : MONTH(2) TYPE 1
INITIALIZATION.
YEAR = SY-DATUM+0(4).
MONTH = SY-DATUM+4(2).
REWARD IF USEFULL
‎2007 Aug 30 7:07 AM
Parameters: p_year(4) type n,
p_month(2) type n.
INITIALIZATION.
P_YEAR = SY-DATUM(4).
P_MONTH = SY-DATUM+4(2).
this code is going to work and it works fine too.please close the threat if satisfied with answer
‎2007 Aug 30 7:09 AM
hi,
to populate the selection screen u have to separate th year and month
here is some example which is helpfull.
check it out.
DOB = '05.03.1983'.
write 😕 'DATE OF BIRTH :',DOB.
write 😕 'YEAR OF BIRTH IS :', DOB+6(4).
write 😕 'MONTH OF BIRTH IS :', DOB+3(2).
write 😕 'DAY OF BIRTH IS :', DOB+0(2).
regards
ramesh.