Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

URL encoding in ABAP

marie-pierre_mela
Product and Topic Expert
Product and Topic Expert
11,524

Hi all,

do you know an ABAP function to encode a string to pass in an url so that to get "http%253A%252F%252Fsap.com%252Fxi%252FAP%252FCRM%252FGlobal"

I'm passing dynamicParameter via an URL from an ABAP to a Java WD appli. They are automatically decoded on java side, but I need to encode them on ABAP side.

Thanks and regards,

Marie-Pierre

2 REPLIES 2
Read only

marie-pierre_mela
Product and Topic Expert
Product and Topic Expert
4,171

CL_HTTP_UTILITY=>IF_HTTP_UTILITY~ESCAPE_URL( string ) is the solution

Read only

Former Member
0 Likes
4,171

Hi,

there is new function in ABAP for escaping characters in different formats, including URL/URI.

Peter