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: 

How to change the Subject line of the mail when PO is sent to a vendor

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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