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

Problem with SO_DOCUMENT_SEND_API1

graghavendra_sharma
Contributor
0 Likes
362

Hi all,

I am facing problem with the funciton module SO_DOCUMENT_SEND_API1.

I have written the following logic to send a mail with excel attachment.

LOOP AT it_ekpo INTO wa_charekpo.

CONCATENATE wa_charekpo-ebeln

wa_charekpo-ebelp

wa_charekpo-matnr

wa_charekpo-aedat

INTO it_attach SEPARATED BY con_tab.

CONCATENATE con_cret it_attach INTO it_attach.

APPEND it_attach.

ENDLOOP.

here in the above code, internal table "it_attach" is of type structure "solisti1".

This structure "solisti1" has only one field "LINE" with size 255 characters.

So it is not allowing me to store more than 255 chars per line and getting truncated if the length exceeds. As my requirement demands to send 15 columns information of EKPO table as an excel attachment which i am not able to do.

Could anyone help me in this regard.

Points will be rewarded for all the helpful answers.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
327

Hi Raghav ,

The SO_DOCUMENT_SEND_AP1 expects the Attachment Internal Table to be of

SOLIST1 type only . So you need to stick that structure type .

But what i would suggest is -- before u move ur data into the attachment table , you move each data into STRING type variable and then Use CONDENSE .

This will eliminate the extra blanks and then u can try CONCATENATE , this way u can reduce the truncation and maybe able to rid of it too .

Thanks

Soumyadip

1 REPLY 1
Read only

Former Member
0 Likes
328

Hi Raghav ,

The SO_DOCUMENT_SEND_AP1 expects the Attachment Internal Table to be of

SOLIST1 type only . So you need to stick that structure type .

But what i would suggest is -- before u move ur data into the attachment table , you move each data into STRING type variable and then Use CONDENSE .

This will eliminate the extra blanks and then u can try CONCATENATE , this way u can reduce the truncation and maybe able to rid of it too .

Thanks

Soumyadip