Application Development 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: 

Customer Statement BTE issue with Email & Spool generation

former_member187457
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

former_member187457
Active Contributor
0 Kudos

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

3 REPLIES 3

former_member187457
Active Contributor
0 Kudos

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

0 Kudos

Hello Rahul,

Could you let me know what was the missing configuration? i am facing the same issue.

0 Kudos

Sorry VN....it was a functional issue...they resolved it at there end....I have no idea...sorry for that