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: 

Options to insert the body in the mail sent for payment advice.

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

nu_dang
Explorer
0 Kudos

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

Former Member
0 Kudos

Limitation of SAP

nu_dang
Explorer
0 Kudos

see Note 1033893 for detail