2012 Feb 07 8:42 AM
Hi gurus,
I have the following requirement and I don't know how to solve it in the best way.
I have a Z transaction for uploading a local file. This file contains URL's and after upload, there are stored in SAP.
I need to check this URL and replace encoded characters with corresponding codes, for example: space -> %20
How can I do this? I've been looking for a solution, but I haven't found anything usefull yet.
Any ideas?
Thanks a lot!
2012 Feb 07 8:52 AM
Have a look at class CL_HTTP_UTILITY. There are some methods which looks promising.
The method ESCAPE_URL is waht you needed.
pass UNESCAPED = 'http://forums.sdn.sap.com/edit!default.jspa?messageID=11060123'
output = HTTP%3a%2f%2fFORUMS%2eSDN%2eSAP%2eCOM%2fEDIT%21DEFAULT%2eJSPA%3fMESSAGEID%3d11060123
& for vice versa use UNESCAPE_URL
Edited by: Keshav.T on Feb 7, 2012 2:23 PM
Have a look at class CL_HTTP_UTILITY. There are some methods which looks promising.
The method ESCAPE_URL is waht you needed.
pass UNESCAPED = 'http://forums.sdn.sap.com/edit!default.jspa?messageID=11060123'
output = HTTP%3a%2f%2fFORUMS%2eSDN%2eSAP%2eCOM%2fEDIT%21DEFAULT%2eJSPA%3fMESSAGEID%3d11060123
& for vice versa use UNESCAPE_URL
Edited by: Keshav.T on Feb 7, 2012 2:23 PM
2012 Feb 07 8:52 AM
Have a look at class CL_HTTP_UTILITY. There are some methods which looks promising.
The method ESCAPE_URL is waht you needed.
pass UNESCAPED = 'http://forums.sdn.sap.com/edit!default.jspa?messageID=11060123'
output = HTTP%3a%2f%2fFORUMS%2eSDN%2eSAP%2eCOM%2fEDIT%21DEFAULT%2eJSPA%3fMESSAGEID%3d11060123
& for vice versa use UNESCAPE_URL
Edited by: Keshav.T on Feb 7, 2012 2:23 PM
2012 Feb 07 10:06 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |