Application Development and Automation 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: 
Read only

electronic remittance advices via emails - function SAMPLE_PROCESS_000020

Former Member
0 Likes
606

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.

.

2 REPLIES 2
Read only

Former Member
0 Likes
555

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)

Read only

Former Member
0 Likes
555

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