‎2007 Jun 19 7:55 AM
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.
‎2007 Jun 19 8:07 AM
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
‎2007 Jun 19 8:07 AM
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