‎2006 Aug 07 1:56 PM
Hi,
I want to display the current DATE and TIMESTAMP (as AUG 07 2006, 6:24:49).Please tell me how can I get it in my report? Thanks..
‎2006 Aug 07 3:22 PM
Please try this sample progam.
report zrich_0001.
data: timestamp type string.
data: tmp_datum type string.
data: tmp_uzeit(10) type c.
data: imonths type table of t247 with header line.
call function 'MONTH_NAMES_GET'
tables
month_names = imonths.
read table imonths with key spras = sy-langu
mnr = sy-datum+4(2).
concatenate imonths-ktx sy-datum+6(2) sy-datum+0(4) into tmp_datum
separated by space.
concatenate tmp_datum ',' into tmp_datum.
write sy-uzeit to tmp_uzeit.
concatenate tmp_datum tmp_uzeit into timestamp separated by space.
write:/ timestamp.
Regards,
Rich Heilman
‎2006 Aug 07 3:38 PM
CALL This function module,
CONVERSION_EXIT_SDATE_OUTPUT
data: date type sy-datum, text(20).
date = sy-datum. "20060807
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
INPUT = date
IMPORTING
OUTPUT = text.
further help, refer this link:
now text will have "AUG/07/2006"
then print this TEXT along with TIMESTAMP
regards
srikanth
regards
srikanth.