2009 Mar 16 9:56 AM
Hi All,
Setting up sending remittance advices via emails using the below advice i have got from here ~:
"
Go to transaction code FIBF
Settings ==> Process Modules ==> ... of an SAP Application
Process: 00002040
Ctr: Blank
Appl.: FI-FI
Function Module: SAMPLE_PROCESS_00002040
You can copy the function module to "Z" function module and modify it accordingly. Then you can use your customized FM here.
This triggers an email of payment advice, provided if you have maintained Email Address in the Vendor Master "Address" Tab and the Standard Communication Method is "INT - Email"
You can see the email that is being triggered / delivered in transaction code SOST.
I have done this and this partially works because it will send an email if the e-mail address is populated but it still send the email out regardless of the Standard Communication Method' - i.e it will send a mail when you specify any form - not only when you specify 'Email'.
I have not changed the function in any way - so can anyone suggest anything else so it works? Is there a change that is required in the module?
Thanks for any help.
Spencer.
.
Hi All,
Setting up sending remittance advices via emails using the below advice i have got from here ~:
"
Go to transaction code FIBF
Settings ==> Process Modules ==> ... of an SAP Application
Process: 00002040
Ctr: Blank
Appl.: FI-FI
Function Module: SAMPLE_PROCESS_00002040
You can copy the function module to "Z" function module and modify it accordingly. Then you can use your customized FM here.
This triggers an email of payment advice, provided if you have maintained Email Address in the Vendor Master "Address" Tab and the Standard Communication Method is "INT - Email"
You can see the email that is being triggered / delivered in transaction code SOST.
I have done this and this partially works because it will send an email if the e-mail address is populated but it still send the email out regardless of the Standard Communication Method' - i.e it will send a mail when you specify any form - not only when you specify 'Email'.
I have not changed the function in any way - so can anyone suggest anything else so it works? Is there a change that is required in the module?
Thanks for any help.
Spencer.
.
2009 Mar 16 11:37 AM
Hi.
If the function succeed to find a valid email address, it will always send an email...
* check that internet address is available
READ TABLE l_addr1_complete-adsmtp_tab INTO l_adsmtp_line INDEX 1.
IF sy-subrc EQ 0
AND NOT l_adsmtp_line-adsmtp-smtp_addr IS INITIAL.
* choose message type 'I'nternet and fill email address
c_finaa-nacha = 'I'.
c_finaa-intad = l_adsmtp_line-adsmtp-smtp_addr.
...otherwise a fax is send (message type 2)
2009 Mar 16 1:22 PM
thanks for the reply, So the earlier advice i found on this subject was sort of wrong
:
"provided if you have maintained Email Address in the Vendor Master "Address" Tab and the Standard Communication Method is "INT - Email""
the function code only checks for an email address.
if i wanted to put a check on the Std Communication field having to be set to 'Email' before an email is sent - can you suggest the piece of code i could use in the IF statement. I know little of ABAP code and we dont have any ABAP code people where i work that could help.
thanks