Application Development 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: 

cl_document_bcs=>xstring_to_solix

Former Member
0 Kudos
2,389

hi,

does anyone got the way for cl_document_bcs=>xstring_to_solix.

i am trying to convert xstring to contents_hex(table), i turn i want to pass it to

SO_SEND_DOCUMENT_API1.

i am very much new to classes. so, kindly brief me the way.

regards

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos
447

you have to call the method like below

DATA: binary_content TYPE solix_tab.

DATA: xl_content TYPE xstring .

CALL METHOD cl_document_bcs=>xstring_to_solix

EXPORTING

ip_xstring = xl_content

receiving

rt_solix = binary_content

.

alternate FM doing the same stuff

call function 'SCMS_XSTRING_TO_BINARY'

exporting

buffer = xl_content

tables

binary_tab = binary_content.

Regards

Raja

1 REPLY 1

athavanraja
Active Contributor
0 Kudos
448

you have to call the method like below

DATA: binary_content TYPE solix_tab.

DATA: xl_content TYPE xstring .

CALL METHOD cl_document_bcs=>xstring_to_solix

EXPORTING

ip_xstring = xl_content

receiving

rt_solix = binary_content

.

alternate FM doing the same stuff

call function 'SCMS_XSTRING_TO_BINARY'

exporting

buffer = xl_content

tables

binary_tab = binary_content.

Regards

Raja