Hi All
I have a request to change the sender email (according with a Z transparent table), when messages are issued from ME23N (purchase order) or ME9F (message output).
So, the sender email should follow business rules - in tcode SOST the sender email should be the one that I have determined.
My question is how and where can I create this rule?
After debugging I found the function module CONVERT_COMM_TYPE_DATA.
IF pi_mail_sender IS INITIAL.
* default sender
swc_set_element lt_container 'AddressString'
sy-uname.
ELSE.
* other sender
swc_set_element lt_container 'AddressString'
pi_mail_sender.
ENDIF.
swc_set_element lt_container 'TypeID' 'B'.
There is no enhancement point in the fm CONVERT_COMM_TYPE_DATA.
Could you please advise?
Thanks in advance
Joao Gaia