‎2006 Jul 25 11:44 AM
hi
can any body tell me if user insert sy-datum through selection screen i want that date in character to convert (yyyymmdd) format ,is there any function module for that conversion,sy-datum to character,or if any other procedure so plz tell me it's urgent
gaurav upadhyaya
‎2006 Jul 25 11:46 AM
‎2006 Jul 25 11:47 AM
Hi,
Declare a field of type character length 10(8) depends on your requirement, and use the following to convert sy-datum to character,
data: v_date(10).
write sy-datum to v_date using edit mask '__.__.____'.
Rgds,
‎2006 Jul 25 11:48 AM
Hai Gaurav
data : v_date like sy-datum value '20060725'.
data : v_char_date(8) type c.
v_char_date = v_date.
write 😕 v_char_date.
Regards
Sreeni
Message was edited by: Sreenivasulu Ponnadi
‎2006 Jul 25 11:49 AM
Hi Gaurav,
You can use the FM : HR_IN_CHG_INR_WRDS
Reward points for the helpful solution.
Regards,
Harini
‎2006 Jul 25 11:51 AM
parameters : date like sy-datum.
data : data(8) type c.
data = date.
Now using the command split data and concatenate data you can convert it into any format.
‎2006 Jul 25 11:57 AM
Hi Gaurav,
Yes u can do this using the following FM-
CONVERT_DATE_TO_EXTERNAL
Regards,
Seema
‎2006 Jul 25 11:59 AM
u can use the FM :
convert_date_to_internal.
here u pass the date formats and the dates u want to change , for both source and target.
‎2006 Dec 12 1:52 AM
Hi,
You can try to use the following FMs:
CONVERSION_EXIT_PDATE_OUTPUT
CONVERSION_EXIT_PDATE_INPUT
Best regards!
Nina