2007 Aug 18 7:35 AM
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
2007 Aug 18 8:06 AM
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.
2007 Aug 18 8:16 AM
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'.