Skip to Content
avatar image
Former Member

URL encoding in ABAP

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 29, 2007 at 03:28 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 10, 2014 at 10:24 AM

    Hi,

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

    Predefined escape function in ABAP - escape your HTML / XML / JS content

    Peter

    Add comment
    10|10000 characters needed characters exceeded