hi guys,
iam creating a smart form and i need a date in format 28august2007 for that i used the below program in program lines
data : date(10),
text1(26),
num1(10),
test_day(15),
o_date(20),
idate type sy-datum.
data : Day(2), month(2), Year(4).
data : ODay(2), Omonth(2), OYear(4).
data : Ltext Type T247-LTX.
date = '06.07.2007'.
day = date+0(2).
month = date+3(2).
year = date+6(4).
concatenate year month day into idate.
CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
EXPORTING
idate = idate
IMPORTING
DAY = oday
MONTH = omonth
YEAR = oyear
LTEXT = ltext.
concatenate oday '-' ltext '-' oyear into o_date.
write : O_date.
but i cant see this on the forum..
plz advise..
regds,