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

4.6 - convert string to xstring to binary table - how

Former Member
0 Likes
9,229

Hello all,

In 4.7 I use the following code to create a binary table that is used to send an email file attachments of any record length.

I build the string, adding data, tabs, and line breaks, convert string to xstring, convert xstring to binary table.

data: w_string type string.

data: x_string type xstring.

data: binary_att type standard table of solix.

call function 'SCMS_STRING_TO_XSTRING'

exporting

text = w_string

importing

buffer = x_string.

call function 'SCMS_XSTRING_TO_BINARY'

exporting

buffer = x_string

append_to_table = 'X' "Do not clear/refresh table

tables

binary_tab = binary_att.

We were bought by a company that uses 4.6. I haven't found any functions or class/methods in the 4.6 system that will do the same thing.

Is anyone doing this on a 4.6 system, if yes, how?

Thanks

Bruce

Edited by: Bruce Tjosvold on Oct 26, 2011 7:42 PM

Edited by: Bruce Tjosvold on Oct 26, 2011 8:00 PM

1 REPLY 1
Read only

gokul_radhakrishnan3
Active Participant
0 Likes
3,238

Hi,

You can refer the below link where I have just now posted a possible solution & see whether that helps. You need to check the open dataset/last part in that I guess since your question more specific to conversion.

Regards,

Gokul