SAP API has date and needs to convert in to System date
BeantwoordHI Team
We have an SAP API which has an Key date in the link (API) wanted to convert the date to the system date, In the GET request.
https://sapcom:111/v1/td/XT/RPTransactionData(P_KeyDate=datetime'2025-03-11T14:49:52')
The Key date should be used with the variable of the system time stamp (some thing like this System.DateTime variable).
I used this { "%Y-%m-%d-T%H:%M:%S" } but it does not work.. Please give some suggestions.
Thanks
-
Hi Takkellapatikiran Kumar (Capgemini Norge AS,Oslo)
It sounds like you're trying to dynamically generate a timestamp and pass it through to an SAP API call. Can you please provide a little more information.
- What is the exact SAP API endpoint your using and can you provide a link to the SAP documentation for the API endpoint?
- What is the full error message you get?
- Does the GET request succeed if you test with a hardcoded timestamp value?
0Hi Takkellapatikiran Kumar (Capgemini Norge AS,Oslo)
I think your format of "%Y-%m-%dT%H:%M:%S" is correct (assuming you need two digit day and month) for the date transform. Make sure you are selecting ISO Extended as your input format, and set the input/output timezones. You may also need to validate the expected format for the GET request.

Wade
--
Wade Hays - https://towerturn.com/services/dedicated-expert 0U moet u aanmelden om een opmerking te plaatsen.
Opmerkingen
2 opmerkingen