ABAP顾问
分类:
2007-10-17 13:15:09
chinaunix网友2008-01-22 20:37:10
REPORT z_barry_test_ascii. DATA: str TYPE string , xstr TYPE xstring, l_con TYPE REF TO cl_rpe_convert . SYSTEM-CALL INITIALIZATION. WRITE 'a'. START-OF-SELECTION. CREATE OBJECT l_con. CALL METHOD l_con->string_to_xstring EXPORTING input = 'ABC' IMPORTING output = xstr. CALL METHOD l_con->xstring_to_string EXPORTING input = '4261727279' IMPORTING output = str. WRITE / : xstr ,str.