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: 

Problem with TXT attach

sudhakara_reddy4
Participant
0 Kudos

1. i am using one internal table "it_reptab" with SOLI structure to store records.

2. writing these records to Application server (Unix Type)

3. used function module

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = st_doc_head

TABLES

PACKING_LIST = it_packlist

OBJECT_HEADER = it_objhdr

CONTENTS_TXT = it_attachment

RECEIVERS = it_receivers

in it_packlist, i am having two records one for mail body and one for attachment, the attachment record is having document type TXT.

now problem is i am not getting output like this in text file, the second line coming at 255 column or 512 column, Can anybody please help is how we can solve this problem.

Please let me know you need any other info. What delimiter we have to used when appending the records to "it_reptab".

Orders without, or with partial confirm qty

O----


System ID : SID

Report Date : 15.08.2006

Report Time : 06:15:29

Plant Code : X000

2 REPLIES 2

Former Member
0 Kudos

Hi Sudhakar

In the ITAB you are passing try to cancatenate the Line feed character at the end of the work area. Like for example

LOOP AT ITAB.

CONCATENATE wa_itab CL_GUI_ABAP_UTILITIES=>CR_LF INTO wa_itab.

MODIFY itab FROM wa_itab.

ENDLOOP.

Let me know if you are clear with this.

Reward if helpful.

0 Kudos

Hi, i am using 4.6, this calss is not availbe, thank you for your reply, Can you please think hexadecimal point.

constant c_carret type x value '0D'.