Skip to Content

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.
        input  = i_kna1-adrnr
        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

Please suggest if i am missing something.

Thanks in advance.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 21, 2015 at 09:35 AM

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

    Add comment
    10|10000 characters needed characters exceeded