‎2008 Mar 04 9:18 AM
hi,
i want to print the date as dd.mm.yy format. i want this format to be assigned to a variable and when i print the variable it should print like dd.mm.yy format.
i am getting the code to print the date in this format but i am not getting how to assign it to a variable and print.
can anyone help me out?
regards,
Santosh.
‎2008 Mar 04 9:21 AM
Hi,
HRGPBS_HESA_DATE_FORMAT : Format the date in dd/mm/yyyy format
Regards,
Priya.
‎2008 Mar 04 9:22 AM
You can achieve this by using the FM:
HRGPBS_TPS_DATE_FORMAT
Short Text
Format a date valid for TPS: DDMMYY
Functionality
This module returns a given date in string format "dd/mm/yyyy" with dd =
day, mm = month and yyyy = year.
An empty date is returned as space.
This is the required format for HESA reporting.
Example
"19991224" is returned as "24/12/1999".
"00000000" is returned as " " (ten spaces).
Parameters
P_DATE
DATESTRING
Exceptions
-
Hope this helps
Regards
Vinayak
‎2008 Mar 04 9:27 AM
Write like this :
data : v_date(8) ,
v_date1 like sy-datum.
v_date1 = sy-datum.
write v_date1 to v_date using edit mask '__.__.__'.
write 😕 v_date.
‎2008 Mar 04 9:51 AM
Hi,
assume date as your system date.
DATA formatdate (10)+
CONCATENATE p_date+6(2)
p_date+4(2)
p_date(4)
INTO c_date SEPARATED BY '.'.
Rgs.
‎2008 Mar 04 10:06 AM
Hi,
PLease use the FM CONVERSION_EXIT_PDATE_OUTPUT.
Thanks,
Sriram Ponna.