Hello experts,
We have developed a custom Fiori application for approving invoices. When approving/rejecting any invoice the user enters a comment in the text field within the confirmation dialog box and then submits.
Here we have noticed that if user enters a special character like a comma (,) in the comment, the GET_ENTITY operation that we are triggering is not getting successful and we get an error message in the browser console and also in the transaction /IWFND/ERROR_LOG in the gateway system that says
400 (Bad Request) - Malformed URI literal syntax
The URL that triggers on submitting is like below (the entered comment text is approved,from fiori, this is being set in the field Tdline):
/sap/opu/odata/sap/ZOT_TASKPROCESSING_SRV/TUpdateSet(IWId='000001245949',IPAction='A',Tdline='approved,from%20Fiori',FioriUpdateFlag='F')
If user enters the same comment text without the comma, it goes through successfully.
How do we handle this behavior? Is there anything specific that we have to do at the SAPUI5 code side to prevent this when special characters are entered in the comment text?
Regards,
Saurabh