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: 

Text in attchment file getting truncated

Former Member
0 Kudos
266

Hi,

Through program i need to send e-mail and text file as a attachment, to do this i am using SO_NEW_DOCUMENT_ATT_SEND_API1 function module.

E-mail is send to external user and also attachment is being send.

But lines in the file are getting truncated, the text in line is displayed only upto 129 characters whereas maximum legnth is 255.

I have set DOC_SIZE parameter of packing list to --> ( lv_tab_lines - 1 ) * 255 + STRLEN( wa_message ).

lv_tab_lines varaibles contain the total number of record in the attachement data internal table.

wa_message is the work area for the internal table.

I am converting the attachment data(internal table) into hex data by using FM  SO_SOLITAB_TO_SOLIXTAB and passing the converted data to parameter of fm CONTENTS_HEX.

In debugging mode I can see full data before converting it to hex data but in attachment file the text in line is displayed upto 129 characters only.

Is there any way to display full line.

Regards,

Fattesingh

1 ACCEPTED SOLUTION

former_member585060
Active Contributor
0 Kudos
126

Hi,

    Try to use CL_BCS class, check for example programs starting with BCS_EXAMPLE*.

BCS_EXAMPLE_1

BCS_EXAMPLE_2

BCS_EXAMPLE_3

BCS_EXAMPLE_4

BCS_EXAMPLE_5

BCS_EXAMPLE_6

BCS_EXAMPLE_7

BCS_EXAMPLE_8

Thanks & Regards

Bala krishna

1 REPLY 1

former_member585060
Active Contributor
0 Kudos
127

Hi,

    Try to use CL_BCS class, check for example programs starting with BCS_EXAMPLE*.

BCS_EXAMPLE_1

BCS_EXAMPLE_2

BCS_EXAMPLE_3

BCS_EXAMPLE_4

BCS_EXAMPLE_5

BCS_EXAMPLE_6

BCS_EXAMPLE_7

BCS_EXAMPLE_8

Thanks & Regards

Bala krishna