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

Convert binary content to ASCII format

Former Member
0 Likes
1,144

Dear All,

I have used the FM SCMS_DOC_READ to read the contents of a document.

The output, however, is in binary format. To convert this into text I have used the FM SCMS_BINARY_TO_TEXT. This did not succeed and the ouput is junk value.

Please help me to convert the data into a useable format.

Thanks for your kind help.

Warm Regards,

Suman

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
658

Hi Suman,

Check whether you are using table

CONTENT_TXT of type SDOKCNTASC for reading the data or not.

Table CONTENT_BIN of type SDOKCNTBIN Contains the data in binary form.

Try Declaring an internal table of type SDOKCNTASC and use it to get the read data.

Hope this solves your problem.

Regards,

Amit.

Dear All,

I have used the FM SCMS_DOC_READ to read the contents of a document.

The output, however, is in binary format. To convert this into text I have used the FM SCMS_BINARY_TO_TEXT. This did not succeed and the ouput is junk value.

Please help me to convert the data into a useable format.

Thanks for your kind help.

Warm Regards,

Suman

2 REPLIES 2
Read only

Former Member
0 Likes
659

Hi Suman,

Check whether you are using table

CONTENT_TXT of type SDOKCNTASC for reading the data or not.

Table CONTENT_BIN of type SDOKCNTBIN Contains the data in binary form.

Try Declaring an internal table of type SDOKCNTASC and use it to get the read data.

Hope this solves your problem.

Regards,

Amit.

Read only

0 Likes
658

Hi Amit,

The internal table text is indeed declared as type table of SDOKCNTASC.

The value that is stored in the internal table is in junk format.

Please let me know if there is any other solution to achieve this functionality

Thanks & regards,

Suman