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: 

how to handle more than 255 char in excel att. in FM SO_DOCUMENT_SEND_API1

Former Member
0 Kudos

hi all,

Good morning.

My requirement is to send a report as an excel attatchment to the respective managers mail box. For this I am using the function module SO_DOCUMENT_SEND_API1 as follows.

call function 'SO_DOCUMENT_SEND_API1'

exporting

document_data =

put_in_outbox =

sender_address =

sender_address_type =

commit_work =

tables

packing_list =

object_header =

contents_bin =

contents_txt =

receivers =

exceptions

too_many_receivers = 1

document_not_sent = 2

document_type_not_exist = 3

operation_no_authorization = 4

parameter_error = 5

x_error = 6

enqueue_error = 7

others = 8.

Here the problem is contents_bin is of type SOLISTI1 which takes max 255 characters, As my report columns occupies more than 400 characters, I am unable to get all the column values in excel attachement.

Can anyone please help me to get all the column values in the excel attachment.

Thanks in Advance.

3 REPLIES 3

Former Member
0 Kudos

Hi,

After exceeding 255 characters just u append the data to contents_bin is of type SOLISTI1 .

0 Kudos

could you please send the sample code for the same

Former Member
0 Kudos

Hi Srivallika,

Did you get the solution for this problem? Even I am facing the same problem. It would be of great help if you can share the solution, if you have got it.

Thanks,

Amol