‎2007 May 11 10:46 AM
‎2007 May 11 10:48 AM
hi Murugan
You can do this way,
data: year(4) type c,
month(2) type c,
day(2) type c.
year = sy-datum(4).
month = sy-datum+4(2).
day = sy-datum+6(2).
write:/ year.
write:/ month.
write:/ day.
Thru function module...
HR_IN_GET_DATE_COMPONENTS
Regards,
Jayant..
‎2007 May 11 10:47 AM
‎2007 May 11 10:48 AM
hii,
you can pic up every single value like if
date = 12062007 and 06 is month then write
month = date+2(2)
you will get the month
reward if helpful
thanks
vikaas
‎2007 May 11 10:48 AM
What is the date format that u r getting??
data : v_date like sy-datum,
v_mon(2).
v_date = sy-datum.
v_mon = v_date+4(2).
write : v_mon.
‎2007 May 11 10:48 AM
hi Murugan
You can do this way,
data: year(4) type c,
month(2) type c,
day(2) type c.
year = sy-datum(4).
month = sy-datum+4(2).
day = sy-datum+6(2).
write:/ year.
write:/ month.
write:/ day.
Thru function module...
HR_IN_GET_DATE_COMPONENTS
Regards,
Jayant..