Encode and Decode String for security reason in SAP UTF8 Format


 PARAMETERS p_string TYPE string.

DATA lv_encode_str TYPE xstring,
lv_decode_str TYPE string.

WRITE :‘Plain String :’p_string.

CALL METHOD cl_http_utility=>if_http_utility~encode_utf8
EXPORTING
unencoded p_string
RECEIVING
encoded   lv_encode_str.

WRITE :‘Encoded String:’lv_encode_str COLOR 5.

CALL METHOD cl_http_utility=>if_http_utility~decode_utf8
EXPORTING
encoded   lv_encode_str
RECEIVING
unencoded lv_decode_str.


WRITE :‘Decoded Sing:’lv_decode_str COLOR 3.


 


 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s