10-04-2007 6:15 AM
Hi,
I am able to send payment advice via E-mail by activating 2040 BTE. But, I have a limitation of inserting the body text.
Please let me know if there is any option through which I can send payment advice via mail and also put some text in the body of the E-mail.
Thanks in Advance for your quick answer.
Thanks & Regards,
Madhuri.
10-04-2007 6:46 AM
Hi Madhuri,
Can u explain thru which FM u r sending that payment advice via mail.
Before sending mail u import the payment advice output & then store it in structure
t_mail_txt. And then u can append extra text according to ur requirement.
Pls go thru the code.
Data: t_mail_txt TYPE solisti1 OCCURS 0 WITH HEADER LINE,
doc_chng TYPE sodocchgi1,
reclist TYPE somlreci1 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
object_content = t_mail_txt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
IF sy-subrc EQ 0.
COMMIT WORK.
ENDIF.
Regards
Srimanta
11-28-2007 12:41 AM
Madhuri,
I've created an OSS message to SAP about this functionality but there's no solution for it. The reply was a suggestion to raise a developement request(see note 357732) for changing the body of the email.
Regards,
Nu
12-26-2007 4:27 PM
04-21-2008 6:36 PM