06-25-2009 1:22 PM
Hi,
I wanted to send PO through Email.All the settings have been done and the output goes fine.
I wanted to change the text in the title and hence have set the programme as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
After setting ,NAST table is picking the text under TDCOVTITLE field as desired.But in the SOST queue ,it is not updating correctly.The PO number is not appearing and is giving some default number.
Why it is not updating in SOST queue ,whereas the NAST table is picking the desired text?
Please let me know if some more settings are to be made in output types or somewhere else?
Expecting reply at the earliest
Regards
Saurabh
06-25-2009 1:32 PM
Hi Saurabh,
We have also same email functionality but we have written z-driver program. From driver program we are populating title field.
Create Attachment Notification
move w_title TO i_packing_list-obj_descr.
*" Specify Document Data
move w_title TO e_doc_data-obj_descr.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = e_doc_data
put_in_outbox = c_x
sender_address = sender
sender_address_type = c_sender_type
commit_work = 'X'
TABLES
packing_list = i_packing_list
contents_bin = i_mess_att
contents_txt = contents_txt
receivers = receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Regards,
Anil Salekar