Olá Yogesh
Tente com o seguinte código
data: v_text(2) type c value 'A',
v_laiso(2) type c value 'EN',
v_xbuff(1) type x.
data: v_length type i.
CALL FUNCTION 'SRET_TEXT_TO_BINARY'
EXPORTING
TEXT = v_text
-
TEXT_LENGTH = -1
LAISO = v_laiso
-
IV_CATID = ' '
-
IV_RFC_FOR_INITIALIZE = ' '
IMPORTING
OUTPUT_LENGTH = v_length
XBUFFER = v_xbuff
EXCEPTIONS
FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write: / v_length,
v_xbuff.
Obrigado e Cumprimentos
Sreenivas P