Last active
February 13, 2018 06:43
-
-
Save quxiaowei/4c29114a003a1d93e23af001566d2e9e to your computer and use it in GitHub Desktop.
[Decoding] decoding #ABAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA buffer TYPE xstring. | |
DATA v_text TYPE string. | |
DATA v_text2 TYPE string. | |
DATA conv TYPE REF TO cl_abap_conv_in_ce. | |
conv = cl_abap_conv_in_ce=>create( encoding = 'UTF-8' ). | |
LOOP AT response. | |
buffer = response. | |
conv->convert( | |
EXPORTING input = buffer | |
IMPORTING data = v_text ). | |
CONCATENATE v_text2 v_text INTO v_text2. | |
ENDLOOP. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment