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

How to convert a Binary table to another binary format

Naval_bhatt
Contributor
0 Likes
1,133

HI Everyone,

I am getting an attachment in format  sdokcntbins  I have to convert it to   solisti1 .

Please suggest how can this be done

Regards,

Naval bhatt.

1 ACCEPTED SOLUTION
Read only

Naval_bhatt
Contributor
0 Likes
831

found the answer ..

we just have to use SCMS_BINARY_TO_XSTRING

and then                SCMS_XSTRING_TO_BINARY

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
831

Hi,

    Try function module 'SCMS_BINARY_TO_TEXT'.

DATA : v_length TYPE i,
       content_bin  TYPE STANDARD TABLE OF sdokcntbin,
       content_txt  TYPE STANDARD TABLE OF solisti1.

CALL FUNCTION 'SCMS_BINARY_TO_TEXT'
  EXPORTING
    INPUT_LENGTH  = v_length
  TABLES
    binary_tab    = content_bin
    text_tab      = text_tab.

IF sy-subrc <> '0'.

ENDIF.

Thanks & Regards

Bala Krishna

Read only

0 Likes
831

Data gets corrupted  by this method ..

Read only

Naval_bhatt
Contributor
0 Likes
832

found the answer ..

we just have to use SCMS_BINARY_TO_XSTRING

and then                SCMS_XSTRING_TO_BINARY