Sending Payment Advice to Multiple E-Mails Ids and Changing Subject line of payment advice using BTEs

...Previous

Note– With the above code Payment advice is sent through E-Mail only, if both E-Mail and Fax is maintained for a vendor in vendor master then E-Mail will be given first preference.

Go to transaction SO10.

In the source code of the function module for the parameter namep it is maintain as ‘PAYMENT ADVICE’, So standard text needs to be created by 'Payment advice' in order to call the E-mail body.

c_finaa-namep 'PAYMENT ADVICE'.

By clearing Payments through F110 transaction code then the payment advices will be sent to Vendor and also to the id maintained in the function module.

Checking E-Mails through SOST

This confirms Payment Advice is sent to 2 email ids simultaneously.

E-Mail Body

Step-2 Implementing BTE-2050 to change Payment Advice subject line

Before Implementing in SOST Subject line of Payment Advice -

After Implementing BTE-2050

Follow the same steps to create product and process module same as BTE-2040.

Create the product and Process Module

Copy function module SAMPLE_PROCESS_00002050 to ZSAMPLE_PROCESS_00002050.

Source Code in the Function Module –

FUNCTION ZSAMPLE_PROCESS_00002050.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(I_REGUH) LIKE  REGUH STRUCTURE  REGUH
*"     VALUE(I_GJAHR) LIKE  REGUD-GJAHR
*"     VALUE(I_NACHA) LIKE  FINAA-NACHA
*"     VALUE(I_AFORN) LIKE  T042B-AFORN
*"  CHANGING
*"     VALUE(C_ITCPO) LIKE  ITCPO STRUCTURE  ITCPO
*"     VALUE(C_ARCHIVE_INDEX) LIKE  TOA_DARA STRUCTURE  TOA_DARA
*"       DEFAULT SPACE
*"     VALUE(C_ARCHIVE_PARAMS) LIKE  ARC_PARAMS STRUCTURE  ARC_PARAMS
*"       DEFAULT SPACE
*"----------------------------------------------------------------------

DATAlv_date(10type c,
      lv_Subline type string.

lv_date C_ITCPO-TDTITLE+25(10).

Concatenate 'Payment Advice from XXXXX' “ Added XXXXX to the subject line
            lv_date
       into lv_Subline
  separated by space.

IF I_NACHA EQ 'I'.
C_ITCPO-TDTITLE lv_Subline.
ENDIF.

ENDFUNCTION.

After clearing payments through F110 in SOST E-mails will be with added subject line.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image