Skip to Content
author's profile photo Former Member
Former Member

binary

Hi all,

How can i convert binary to string?

Thanks,

Shahana

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 09, 2007 at 08:40 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 08:09 AM

    FM SCMS_BINARY_TO_STRING

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 08:23 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.