Posts

Showing posts with the label encode decode

Encode and Decode String in SAP UTF8 Format

Image
* Encode and Decode String in SAP UTF8 Format. Report Program REPORT  zab_encode_decode_utf8 . PARAMETERS :  p_string  TYPE  string . DATA :  lv_encode  TYPE  xstring ,       lv_decode  TYPE  string . WRITE :  /  'Plain string : ' , p_string  COLOR  1 . ******************************************************** CALL  METHOD  cl_http_utility => if_http_utility ~ encode _utf8    EXPORTING     unencoded  =  p_string    RECEIVING     encoded    =  lv_encode . WRITE :  /  'Encoded string : ' ,  lv_encode  COLOR  2 . ******************************************************** CALL  METHOD  cl_http_utility => if_http_utility ~ decode _utf8    EXPORTING     encoded    =  lv_encode ...

Encode Decode String in ABAP

Image
  * To Encode and Decode the string. Report Program. REPORT  ZAB_ENCODE_DECODE . PARAMETERS :  p_string  type  string . data :  lv_encode  type  string ,       lv_decode  type  string . write  :  /  'Plain string' , p_string  COLOR  1 . ********************************************************** CALL  METHOD  cl_http_utility => if_http_utility ~ encode _base64    EXPORTING     unencoded  =  p_string    receiving     encoded    =  lv_encode . WRITE :  /  'Encoded string : ' , lv_encode  color  2 . ************************************************************    CALL  METHOD  cl_http_utility => if_http_utility ~ decode _base64      EXPORTING       encoded  =  lv_enc...