DATA: BEGIN OF LS_A3,
X(1) TYPE X VALUE 'A3', " A3 : ASCII(A3)
END OF LS_A3.
DATA: LW_CHAR2(2) TYPE C.
WRITE LS_A3 TO LW_CHAR2+0(1). <- Error : "LS_A3" cannot be converted to a character-type field.
@@@@ 도와 주세요!!! ㅠㅠ;
DATA: BEGIN OF LS_A3,
X(1) TYPE X VALUE 'A3', " A3 : ASCII(A3)
END OF LS_A3.
DATA: LW_CHAR2(2) TYPE C.
WRITE LS_A3 TO LW_CHAR2+0(1). <- Error : "LS_A3" cannot be converted to a character-type field.
@@@@ 도와 주세요!!! ㅠㅠ;
*data: begin of ls_a3,
* x(1) type x value 'A3',
* end of ls_a3.
DATA: change_x TYPE xstring.
change_x = 'A3'.
DATA: last_x TYPE string.
DATA: BEGIN OF ls_a3,
x TYPE c,
END OF ls_a3.
CALL FUNCTION 'HR_RU_CONVERT_HEX_TO_STRING'
EXPORTING
xstring = change_x
IMPORTING
cstring = last_x.
ls_a3-x = last_x.
Have you got it ?