Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

binary

Former Member
0 Likes
717

Hi all,

How can i convert binary to string?

Thanks,

Shahana

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
651

hi,

try this.


1. submit report exporting list to memory.

2. to get the output from memory
call function 'LIST_FROM_MEMORY'
tables
listobject = int_listobject
exceptions
not_found = 1.

3. to convert the list in binary format to text (ASCI)

call function 'LIST_TO_ASCI'
tables
listasci = int_listascii
listobject = int_listobject
exceptions
others = 1.

you dont need to use

SCMS_BINARY_TO_TEXT

Regards

Anver

4 REPLIES 4
Read only

Former Member
0 Likes
651

FM SCMS_BINARY_TO_STRING

Read only

0 Likes
651

Use FM SCMS_BINARY_TO_STRING

Read only

Former Member
0 Likes
651

Hi shahana,

SCMS_BINARY_TO_STRING .

if you want the resulting string to be in an itab.

declare a itab type string.

data: stringtab type standard table of string.

append <result string from FM> to stringtab .

or

Use below function module inorder to convert as string from a given internal table .

CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'

  • EXPORTING

  • FIRST_LINE = 0

  • LAST_LINE = 0

  • MIMETYPE = ' '

IMPORTING

BUFFER = lv_XSTRING

TABLES

TEXT_TAB = LT_TEXT_OUT

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.

Read only

anversha_s
Active Contributor
0 Likes
652

hi,

try this.


1. submit report exporting list to memory.

2. to get the output from memory
call function 'LIST_FROM_MEMORY'
tables
listobject = int_listobject
exceptions
not_found = 1.

3. to convert the list in binary format to text (ASCI)

call function 'LIST_TO_ASCI'
tables
listasci = int_listascii
listobject = int_listobject
exceptions
others = 1.

you dont need to use

SCMS_BINARY_TO_TEXT

Regards

Anver