2023 Jul 03 12:40 PM
Dear Experts,
I need to convert the Timestamp to date format.
Example:
Timetstamp : 01/01/1950 00:01:00
Need to convert gets like 19500101 (YYYYMMDD).
Please provide any FM or some piece of code..
Thanks ,
Senthil
2023 Jul 03 12:52 PM
Did you really search before posting?
Look at ABAP Keyword Documentation - CONVERT TIME STAMP ...
Of course, you'll have to make sure the data type of the time stamp is TIMESTAMP or TIMESTAMPL (a simple assignment between data types should suffice).
2023 Jul 03 1:18 PM
And the usual question: why "ABAP Connectivtiy"? Doesn't look like HTTP- or RFC-communication is used at all here...
2023 Jul 03 3:33 PM
It's very simple to go from a string containing 01/01/1950 to 19500101. You have to use the classic "substring" which exists in all programming languages (substring, +offset(length), etc.)
2023 Jul 04 5:55 AM
Hi Senthil,
Please Refer to this post .
https://answers.sap.com/questions/5558983/index.html
Regards,
Shruthi.
2023 Jul 04 9:21 AM
This is why just posting links isn't a good thing. The link refers to a different problem from the one posted.