Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Customer Statement BTE issue with Email & Spool generation

Hi All,

I have used BTE 2310 for triggering the email for Customer statement.

It is working fine.

Issue is....when there is an email maintained in the customer master, it is triggering email but no spool is generated.

And if there is no email maintained in customer master, spool is getting generated... (off course no email)

We want both the functionality  i.e. spool should be there as well email should also trigger.

We have maintained following code in the BTE FM..

    IF i_kna1 IS NOT INITIAL.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = i_kna1-adrnr
      IMPORTING
        output = lv_addrnumber.

    SELECT SINGLE smtp_addr
      FROM adr6
      INTO lv_email
      WHERE addrnumber = lv_addrnumber.

    IF lv_email IS NOT INITIAL.
      c_finaa-intad = lv_email.
      c_finaa-nacha = 'I'.
      c_finaa-mail_body_text = 'ZPB_CUST_EMAIL_BODY_TXT'.  "mail body
      c_itcpo-tdcovtitle = 'Customer Statement'.      "mail subject
    ENDIF.
  ENDIF.

Please suggest if i am missing something.

Thanks in advance.

RK

Tags:
replied

config issue.....resolved by functional team....

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question