Skip to Content
author's profile photo Former Member
Former Member

Decoding in BSP

Hi

I am passing a encoding parameter into BSP using java.net.URLencoder class.

How to decode the parameter in BSP which is encoded in java using java encoder class.

Regards,

puneet aggarwal

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 14, 2005 at 01:25 PM

    Depending upon how you read this parameter, the runtime might be decoding it for you. However if you need to do this manually have a look at:

    Class CL_HTTP_UTILITY Method DECODE_BASE64 and ENCODE_BASE64

    Add a comment
    10|10000 characters needed characters exceeded

    • data: userid type string .

      l_fname = request->get_form_field( name = 'UserID' ).

      userid = cl_http_utility=>if_http_utility~decode_base64( encoded = l_fname ).

      clear l_bpartner.

      call function 'Z_CRM_BP_GETNUMBER'

      exporting

      lv_username = <b>userid</b>

      importing

      lv_bpartner = l_bpartner.

      if l_bpartner is not initial.

      l_fname = l_bpartner.

      Regards

      Raja

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.