‎2009 Mar 04 11:02 AM
Hi experts,
needed FM for date and time conversion.
Current: 20090304 005032
Required: 2/26/09 12:00 AM
thanks
manish
‎2009 Mar 04 11:05 AM
‎2009 Mar 04 11:05 AM
Hi
Try with the following .
DATE_TIME_CONVERT
DATE_TO_PERIOD_CONVERT
‎2009 Mar 04 11:06 AM
Hi,
To convert the time format
Function module HRVE_CONVERT_TIME
Import parameters Value
TYPE_TIME A
INPUT_TIME 13:10:00
INPUT_AM_PM AM
Export parameters Value
OUTPUT_TIME 01:10:00 " O_time
OUTPUT_AM_PM PM " O_AMPM
For Date Simply WRITE sy-datum to l_Date. and concatenate l_date(5) O_AMPM Separated by space.
Edited by: Avinash Kodarapu on Mar 4, 2009 4:36 PM
‎2009 Mar 04 11:08 AM
Hi,
PERIOD_AND_DATE_CONVERT_INPUT
ABI_TIMESTAMP_CONVERT_FROM
reg,
vijay
‎2009 Mar 04 11:13 AM
Hi Manish,
Us the followinf function modules :
DATE_TIME_CONVERT
CONVERT_DATE_TO_INTERNAL
If you are using ALV report then their is a conversion exit SSLTS for this
Y_WA_FCAT-COL_POS = 7. " - DG1K902190
Y_WA_FCAT-COL_POS = 8. "+ DG1K902190
Y_WA_FCAT-TABNAME = 'T_FINAL'.
Y_WA_FCAT-FIELDNAME = 'CRTSP'.
Y_WA_FCAT-edit_mask = '==SLLTS'.
Y_WA_FCAT-SCRTEXT_L = 'PROD CREATED ON'.
Y_WA_FCAT-INTLEN = 20.
APPEND Y_WA_FCAT TO Y_I_FCAT.
CLEAR Y_WA_FCAT.
Can you let me know the Table name and filed name that you are using..so that i will be able to let you know the conversion exit, if there is anything available....
Regards,
Kittu