Skip to Content
avatar image
Former Member

whent run tcode F.27 pdf format sent to cust thru mail

Hi abap gurus,

I am new BTE implemetation And FI Module , I found BTE .

i have gone thru Fm SAMPLE_ PROCESS_00002310 in SE37 i.e function builder.. I understood the interface of FM.


when f.27  tcode is run it has created on spool request . in sp01 tode i can see that pdf data by spoor request number.

here requirement is need to send the PDF format through email maintained in customer master when i run f.27 mails should be send automatically.

can you tell explain how design code please .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 26, 2015 at 09:49 AM

    First use search tool to find related documents as Email Sending Functionality for Different Business Process in Sap.

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 30, 2015 at 04:34 AM

    Hi Balaji,

    After Creating Business Transaction Event you need to create USER EXIT to acheive your requirement.

    Assign your newly created function module to your BTE.

    These will directly send a PDF Mail.

    Check These link

    1. https://www.scribd.com/doc/237274940/Email-Configuration-for-f-27-Customer-Accounts-Statement-Purpose

    2. Send Customer Statement By EmailSAP Training

    Regards,

    Kabil

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Raymond Giuseppi

      Hi Raymond,

      i have written code one mail to customer another one is notification to acct.cleark. so need to send 2 mails one for customer another for acc.clerk but here in sost tcode i can  see only acc.cleark mail , customer mail status is not coming . pl suggest me if m wrong.

      _FINAA-NACHA  = 'I'.

          TYPES: BEGIN OF TP_ADRT,

                 ADDRNUMBER TYPE ADRT-ADDRNUMBER,

                 REMARK     TYPE ADRT-REMARK,

                 END OF TP_ADRT.

          DATA: LWA_ADRT TYPE TP_ADRT.

          DATA : L_ADR6 TYPE ADR6,

                 L_T002 TYPE T002,

      *   DATA:L_TEXT TYPE RSSCE-TDNAME,

                 L_FLAG TYPE CHAR1,

                 L_TEXT1 TYPE CHAR100.

         SELECT SINGLE * FROM  ADR6  INTO L_ADR6

           WHERE ADDRNUMBER = I_KNA1-ADRNR .

           SELECT SINGLE

                      SPRAS FROM T002 INTO L_T002

               WHERE  SPRAS = I_KNA1-SPRAS.

                    IF SY-SUBRC = 0.

             IF L_ADR6-SMTP_ADDR IS NOT INITIAL.

            L_FLAG = 'X'.

          SELECT SINGLE  ADDRNUMBER

                          REMARK    FROM ADRT INTO LWA_ADRT

                    WHERE ADDRNUMBER = L_ADR6-ADDRNUMBER

                    AND   REMARK     = 'F.27'.

           IF LWA_ADRT-REMARK = 'F.27'.

             C_FINAA-INTAD = L_ADR6-SMTP_ADDR.

      *      CONCATENATE I_KNA1-KUNNR 'CUSTOMER HAS RECIEVED STATEMENT' INTO L_TEXT SEPARATED BY SPACE.

             CASE L_T002-SPRAS.

                 WHEN 'E'.

             C_FINAA-NAMEP   = 'ZTEXT_EN'.

               WHEN 'D'.

             C_FINAA-NAMEP   = 'ZTEXT_DE'.

             ENDCASE.

           ELSE.

             C_FINAA-INTAD = I_KNB1-INTAD.

             CONCATENATE I_KNA1-KUNNR 'HAS NOT RECEIVED THE STATEMENT BECAUSE EMAIL ID OR F.27 HAS NOT MAINTAINED'

                       INTO L_TEXT1 SEPARATED BY SPACE.

             C_FINAA-NAMEP   = L_TEXT1.

           ENDIF.

      *  ENDIF.

           IF L_FLAG = 'X'.

             C_FINAA-INTAD = I_KNB1-INTAD.

             CONCATENATE I_KNA1-KUNNR 'CUSTOMER HAS RECIVED STATEMENT' INTO L_TEXT1 SEPARATED BY SPACE.

             C_FINAA-NAMEP   = L_TEXT1.

           ENDIF.

         ENDIF.

      ENDIF.

      ENDFUNCTION.