SAP Function SPE_SEND_SUPPLIER_EMAIL - Send rejection E-mail to supplier when TPOP supersession fails

Parameter Reference Type Length Default Optional Text
IV_DOMAIN /SPE/TPOP_EMAIL_DOMAIN C 50 Domain name for E-Mail via SMTP protocol
IV_EMAIL_ADDRESS TEXT128 C 128
IV_EMAIL_ADDRESS_SENDER TEXT128 C 128 X
IV_PORT /SPE/TPOP_EMAIL_PORT C 10 Sender E-mail address
IV_SERVER /SPE/TPOP_EMAIL_SERVER C 50 Server name for E-Mail via SMTP protocol
IV_SUBJECT CHAR63 C 63 X Char63
IV_TEXT STRING g 0 X

Exception Text
NO_RECIPIENT
SMTP_ERROR

Functionality
This function module is used to send a predefined rejection e-mail tothe suppliers if supersession reported by suppliers in TPOP POconfirmations is found to be invalid.
The e-mail of the supplier is taken from the vendor master record.
The sender mail id is configurable via IMG customizing for the TPOPprocess.

Example
The following are the descriptions of the parameters of the functionmodule.
Importing Parameters
IV_MAIL_ADDRESS -,,E-mail id of the supplier
IV_EMAIL_ADDRESS_SENDER -,,E-mail id of the sender
IV_TEXT -,,Predefined content of the mail
IV_SUBJECT -,,Predefined subject of the mail
IV_SERVER -,,SMTP server name which is maintained in customizing
IV_DOMAIN -,,SMTP domain name which is maintained in customizing
IV_PORT -,,SMTP port number which is maintained in customizing
Exceptions
SMTP ERROR -,,Exception if the server name or port or domain is invalid
NO_RECIPIENT -,,Exception if the supplier e-mail address is invalid