Send a email notifcation on payment of a invoice...???

Gurus,
Need guidance on this requirement where we have to send a email notifcation to the user when an invoice gets paid. So as soon as a payment document gets created in FI we have to send this email.
I was trying to find a user exit or a BADI that can do this but was not able to find one...
Any suggestions...???
Thanks.

Hello,
For check payment (RFFOUS_C), you can use Business Transaction event '2060' (FIBF). For ACH payment (RFFOUS_T), you can use function exit EXIT_RFFOEXIT_100. In both cases, you will get payment tables (REGUH & REGUP) data which can be made use for creating Emails.
Thanks,
Venu

Similar Messages

  • Error while sending the email notifcation

    Hi All
    I am getting this error while sending the email notifcation.If any one of you have any idea regarding this please suggest
    [2012-09-12T03:55:41.288-10:00] [soa_server1] [ERROR] [SDP-26102] [oracle.sdp.messaging.driver.email] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: OracleSystemUser] [ecid: f5c1f5acbf0bb7a6:22e05768:139ba096e4d:-8000-00000000000006ef,0] [APP: usermessagingdriver-email] Error while writing e-mail message content.[[
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Vector.java:427)
         at javax.mail.Multipart.getBodyPart(Multipart.java:157)
         at javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:256)
         at oracle.sdpinternal.messaging.driver.email.EmailDriver.getHeaderEncoding(EmailDriver.java:1079)
         at oracle.sdpinternal.messaging.driver.email.EmailDriver.send(EmailDriver.java:670)
         at oracle.sdpinternal.messaging.driver.email.EmailManagedConnection.send(EmailManagedConnection.java:50)
         at oracle.sdpinternal.messaging.driver.DriverConnectionImpl.send(DriverConnectionImpl.java:41)
         at oracle.sdpinternal.messaging.dispatcher.DriverDispatcherBean.onMessage(DriverDispatcherBean.java:296)
         at sun.reflect.GeneratedMethodAccessor2553.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy346.onMessage(Unknown Source)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:574)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:379)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
         at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
         at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    [2012-09-12T03:55:41.331-10:00] [soa_server1] [WARNING] [SDP-25107] [oracle.sdp.messaging.engine.store] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: OracleSystemUser] [ecid: f5c1f5acbf0bb7a6:22e05768:139ba096e4d:-8000-00000000000006ef,0] [APP: usermessagingserver] Message ID bac38bd50a1f32a129c5c739335a7855 in Status object does not match previously recorded Message ID b7e259a30a1f32a12c981a3ffd343f6d.
    [2012-09-12T03:55:41.362-10:00] [soa_server1] [ERROR] [] [oracle.soa.services.notification] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@3066bad4] [userId: <anonymous>] [ecid: 0000Jau4qHj9Lex_w9w0yW1GK6Rn000003,1:32530] [APP: soa-infra] <.> Error status received from UMS.[[
    Status detail :
         Status type : DELIVERY_TO_GATEWAY:FAILURE,
         Status Content : Failed to set message headers: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0,
         Addressed to : EMAIL:[email protected],
         UMS Driver : Farm_base_domain/base_domain/soa_server1/usermessagingdriver-email:oracle_sdpmessagingdriver_email#Email-Driver,
         UMS Message Id : b7e259a30a1f32a12c981a3ffd343f6d,
         Gateway message Id : ,
         Status Received at : Wed Sep 12 03:55:41 HST 2012.
    Check status details and fix the underlying reason, which caused error.
    [2012-09-12T03:55:51.492-10:00] [soa_server1] [WARNING] [] [oracle.soa.services.notification] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@3066bad4] [userId: <anonymous>] [ecid: 0000Jau4qHj9Lex_w9w0yW1GK6Rn000003,1:32530] [APP: soa-infra] <.> Could not find notification record corresponding to failed notification : (Channel message id) : b7e259a30a1f32a12c981a3ffd343f6d[[
    Hence it will not be retried.
    Possible cause could be purging of notification data after sending out notification, but before receiving status.
    ]]

    Are you using your email address to send the email notifications if it Is not configured with AD? Have you populated the mail attribute in weblogic console-->realms-->my realms-->users
    In addition are you sure you have configured the 'Email Driver Properties' correctly in EM ?? have you specified the Notification Mode to Email ?
    Please make sure that the outgoing mail server and port along with the username and password are correct.
    Also validate the workflow settings in your EM?
    In addition, please validate that when you logon to BPM worklist using the admin account and click on the name for e.g. weblogic, you see the email attribute populated properly.
    Thanks
    ACM

  • I want to create a query to send auto email to customer while adding AR Invoice

    Hi
    Friends
    I want to create a query to send auto email to customer while adding AR Invoice in SAP Business One 8.82.
    using the following fields & Text like
    email ID from - BP Master
    ' Dear Sir '
    Invoice is generated on the name  ---  BPName
    Quantity                                     ---  22.5 Tones
    Invoice Value                              ---   85,000/-
    date & Time                               ---  12-07-2014 : 16:18
    Thanks & Regards
    XXXXXXXXXX
    Please tell me how to set this in SAP B1.
    Srinivas

    I want to to send email to customer automatically the current invoice details while adding AR Invoice in SAP Business One 8.82.
    using the following fields & Text like
    email ID from - BP Master
    ' Dear Sir '
    Invoice is generated on the name  ---  BPName
    Quantity                                     ---  22.5 Tones
    Invoice Value                              ---   85,000/-
    date & Time                               ---  12-07-2014 : 16:18
    Thanks & Regards
    XXXXXXXXXX
    Please tell me how to write query in stored procedure to send email automatically.
    Srinivas

  • Sending an email when the payment run its finished

    Dear experts,
    I need to generate an email to only one recipient when the payment run its finished (F110).
    Can you help me with this?
    Points will be rewarded.
    Rgs.

    Hi
    If its just sending an email this can be achieved.
    An ABAP program can be developed to trigger this email and the same can be attached in the print programs tab of Automatic payment run with proper variant.
    But, if an workflow needs to be triggered then its a very huge task.
    Check if there is any standard SAP workflow for the same, i think there isn't any like that.
    Let me know if you require any further details.
    Kalyan
    Assign points if helpful

  • How to send an email to the customer after generating Invoice in Receivable

    Hi,
    package oracle.apps.xdo.ebsdelivery;
    import oracle.apps.xdo.delivery.DeliveryManager;
    import oracle.apps.xdo.delivery.DeliveryRequest;
    import oracle.apps.xdo.delivery.DeliveryPropertyDefinitions;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class EBSEmailDelivery
    public EBSEmailDelivery(String rRequestID, String rFile, String rUser)
         int userid = Integer.parseInt(rUser);
         int requestid = Integer.parseInt(rRequestID);
    try {
              //get the report title
    String repTitle = getReportTitle(requestid);
    // create delivery manager instance
    DeliveryManager delMgr = new DeliveryManager();
    // create a delivery request
    DeliveryRequest delReq = delMgr.createRequest
                        (DeliveryManager.TYPE_SMTP_EMAIL);
         // set email subject
         delReq.addProperty(DeliveryPropertyDefinitions.SMTP_SUBJECT,
                        "EBS Report:"+repTitle +" for request: "+ rRequestID);
    // set SMTP server host
    delReq.addProperty(
    DeliveryPropertyDefinitions.SMTP_HOST, "smtp.bizmail.yahoo.com");
    // set the sender email address
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_FROM,
                   "[email protected]");
    // set the destination email address
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_TO_RECIPIENTS,
                   getEmail(userid) );
    // set the content type of the email body
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_TYPE,
                   "application/pdf");
    // set the document file name appeared in the email
    delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_FILENAME,
                   repTitle+rRequestID+".pdf");
    // set the document to deliver
    delReq.setDocument(rFile);
    // submit the request
    delReq.submit();
    // close the request
    delReq.close();
    catch (Exception e) {
    e.printStackTrace();
    static Connection getConnection() throws SQLException, Exception
    String fDriverName = "oracle.jdbc.driver.OracleDriver";
    String fDbName = "DEV";
    String fServer = "centipede.bluestar.cvg0";
    String fPort = "1521";
    String fUserName = "apps";
    String fPassword = "apps";
    Class.forName(fDriverName).newInstance();
    Connection dbconn = DriverManager.getConnection
    ("jdbc:oracle:thin:@"+fServer+":"+fPort+":"
                        +fDbName, fUserName, fPassword);
    return dbconn;
    private String getReportTitle(int requestID)
    String reportName = "";
    try
    // Try and geta connection to the db
    Connection conn = getConnection();
    // fetch the report name based on the request id
    PreparedStatement getTitle = conn.prepareStatement(
              "select user_concurrent_program_name \n" +
              "from fnd_concurrent_requests fcr,\n" +
              "fnd_concurrent_programs_vl fcpv\n" +
              "where fcr.concurrent_program_id = fcpv.concurrent_program_id\n" +
              "and request_id = ?");
         //get the title
    getTitle.setInt(1,requestID);
    // get the query result in to a result set and then assign the
    // value to a variable we can pass back to the calling method
    ResultSet titleRslt = getTitle.executeQuery();
    titleRslt.next();
    reportName = titleRslt.getString(1);
    System.out.println(reportName);
    //Clean up
    titleRslt.close();
    getTitle.close();
    conn.close();
    catch (SQLException eSQL)
    System.err.println("Could not create connection");
    eSQL.printStackTrace();
    catch (Exception e)
    System.err.println("Exception thrown");
    e.printStackTrace();
    return reportName;
    private String getEmail(int userID)
    String eMailID = "";
    try
    // Try and geta connection to the db
    Connection conn = getConnection();
    PreparedStatement getEmail = conn.prepareStatement(
              "select email_address from fnd_user where user_id = ?");
    getEmail.setInt(1,userID);
    // get the query result in to a result set and then assign the
    // value to a variable we can pass back to the calling method
    ResultSet emailRslt = getEmail.executeQuery();
    emailRslt.next();
    eMailID = emailRslt.getString(1);
    System.out.println(eMailID);
    //Clean up
    emailRslt.close();
    getEmail.close();
    conn.close();
    catch (SQLException eSQL)
    System.err.println("Could not create connection");
    eSQL.printStackTrace();
    catch (Exception e)
    System.err.println("Exception thrown");
    e.printStackTrace();
    return eMailID;
    public static final void main(final String[] args)
    // Arguments passed
    //1.$PROFILES$.CONC_REQUEST_ID
    //2.$PROFILES$.FILENAME
    //3.$PROFILES$.USER_ID
    EBSEmailDelivery ebsMail = new EBSEmailDelivery(args[0], args[1], args[2]);
    By using the above code we created a java class file and moved to $JAVA_TOP.
    And also we were created Executable and concurrent program.
    How can we pass request id and user id to the above program.
    Regards,
    Venky.

    There is no way to do this for Webi (at least out-of-the-box). This is probably easy via the SDK.
    This is possible for Deski and Crystal via a Publication.

  • Automatic Email generation for Payment run F110

    Hi Friends
    I am working on to send email automatically when Payment program runs . The program which we are using is RFFOEDI1 to generate payment .
    I followed all steps as been posted in this forum ,which did worked for many of other member but not for us .
    BTE step carried out
    1) In cluded Email address in Vendor Master Data
    2)In FIBF - defined customer product ZEMAIL and attached that to Z sample Process 2040 and process 2040
    I could able to send short message through SAP Office which means that SCOT is  fully configured .
    Would like to hear your suggestion regarding this
    Points would be awarded for all reply
    Thanks
    Auroar

    Hi Aravind
    Infact even I am trying to send an email to every vendor separately but I am not sure how to do it as the payment advice is generated as 1 single document & I don't know how to split that based on the vendor number & send it to their email address from the master data. 
    I read about the Business framework but I am not sure how to use it...can u send me ur email address that way I can contact you directly as you are also implementing the same....
    My email by the way is [email protected]....you could even send a test email ..
    Thanks
    Morgan

  • Sending an email, containing an adobe interactive form, as a step in a gp

    I'm trying to create a process in gp.
    the first step is an interactive form that is submitted to netweaver and starts the gp process.
    second should be another interactive form that the system sends out to an email account.
    wstarting the process by interactive form is not a problem, but sending out emails seems impossible to me :-P...
    i tried by myself, but couldn't work anything out.
    then i searched for a while in the sdn and found the following article by ginger gatling:
    Guided Procedures:  Passing email address for Interactive Form step
    it doesnt help either. dunno what version of netWeaver she was using, but at least in version 7.0 it's not working like she describes. also it's not possible to insert an email adress via predefining the appropriate field in the attributes tab.
    i would be very glad if someone could provide me a hint to solve this problem.

    This is the way how to send the form through mail.
    Generate and Send the Form
    The next step is to write the ABAP program which will create the form and email it to the vendor so that it can be filled offline.
    The program will have the following steps:
    u2022 Data retrieval and processing : A select statement for the pre-populated information
    u2022 Obtain the name of the Generated Function Module of the form
    u2022 Start the form processing
    u2022 Call the Generated Function Module
    u2022 End form processing
    u2022 Send the form to the vendor using Business communication services (BCS)
    Data Retrieval and Processing
    This can be as simple as a select statement to complex data selection. In this example we select the vendor number, name and company code from the vendor table LFA1 based on the vendor from the selection screen
    Get vendor data
    select single lifnr name1 bukrs from lfa1 into wa_vndbnk where lifnr = p_lifnr.
    Get the Generated Function Module
    The next step is to get the generated function module. Call function module FP_FUNCTION_MODULE_NAME and pass the form name to it. The parameter e_funcname will contain the name of the generated function module name.
    First get name of the generated function module
    call function 'FP_FUNCTION_MODULE_NAME'
    exporting
    i_name = 'ZVK_TESTHD'
    importing
    e_funcname = fm_name.
    Start the Form Processing
    Form printing needs to be explicitly opened and closed. Use the function FP_JOB_OPEN to open the form for printing. The parameter ie_outputparams determines printer settings. This parameter is also where we ask the generated function module to return a PDF file back. Since this is an offline scenario and there is no printing involved we need to suppress the printer dialog popup as well. Optionally there is a parameter connection which can be used to determine the RFC destination for ADS.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-GETPDF = 'X'. " launch print preview
    call function 'FP_JOB_OPEN'
    changing
    ie_outputparams = fp_outputparams
    exceptions
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    others = 5.
    Call the Generated Function Module
    This is similar to the generated function module in Smart Forms. Since the parameters of the function module are defined in the interface, this will vary from form to form. However, /1bcdwb/docparams is a standard parameter. This is used to set the forms locale. This is also where we tell the form that it is fillable. Once this parameter is set - if the ADS is configured correctly (including the credential) - a fillable savable form will be returned when the function module is executed.
    Set form language and country (->form locale)
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'US'.
    fp_docparams-FILLABLE = 'X'.
    Now call the generated function module
    call function fm_name
    exporting
    /1bcdwb/docparams = fp_docparams
    Z_VNDBNK = wa_vndbnk
    importing
    /1BCDWB/FORMOUTPUT = fp_formoutput
    exceptions
    usage_error = 1
    system_error = 2
    internal_error = 3
    others = 4.
    End Form Processing
    Use the function FP_JOB_CLOSE to close the form for printing.
    Close spool job
    call function 'FP_JOB_CLOSE'
    exceptions
    usage_error = 1
    system_error = 2
    internal_error = 3
    others = 4.
    Send the Form to the Vendor
    The PDF file generated is available in the parameter fp_result which is returned by the generated function module. The next step would be to extract this PDF and send it to the vendor using BCS.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-PDF "PDF file from function module
    TABLES
    binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL,
    lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    append ' ' to lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    append ' ' to lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Vendor Payment Form'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
    i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    Add attachment
    Pass the document to send request
    lo_send_request->set_document( lo_document ).
    Create sender
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    l_send type ADR6-SMTP_ADDR value 'email address',
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    *DATA:
    lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    message 'The payment form has been emailed to the Vendor' type 'I'.

  • Problem by  Sending an Email with attached Adobe Interactive Form (Code)

    Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    But it doens`t send the email.
    Can anybody help me please???
    Kevin
    Here my Code:
    Report FP_EXAMPLE_01
    Printing of documents using PDF based forms
    REPORT z_example_02.
    Data declaration
    DATA: carr_id TYPE sbook-carrid,
    customer TYPE scustom,
    bookings TYPE ty_bookings,
    connections TYPE ty_connections,
    fm_name TYPE rs38l_fnam,
    fp_docparams TYPE sfpdocparams,
    fp_outputparams TYPE sfpoutputparams,
    error_string TYPE string,
    l_booking TYPE sbook,
    t_sums TYPE TABLE OF sbook,
    l_sums LIKE LINE OF t_sums,
    fp_formoutput TYPE fpformoutput.
    PARAMETER: p_custid TYPE scustom-id DEFAULT 38.
    SELECT-OPTIONS: s_carrid FOR carr_id DEFAULT 'AA' TO 'ZZ'.
    PARAMETER: p_form TYPE tdsfname DEFAULT 'FP_EXAMPLE_01'.
    PARAMETER: language TYPE sfpdocparams-langu DEFAULT 'E'.
    PARAMETER: country TYPE sfpdocparams-country DEFAULT 'US'.
    Get data from the following tables: scustom(Flight customer)
    sbook (Single flight reservation)
    spfli (Flight plan)
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
    WHERE customid = p_custid
    AND carrid IN s_carrid
    ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
    FOR ALL ENTRIES IN bookings
    WHERE carrid = bookings-carrid
    AND connid = bookings-connid
    ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = p_form
    IMPORTING
    e_funcname = fm_name.
    IF sy-subrc <> 0.
    MESSAGE e001(fp_example).
    ENDIF.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Set form language and country (->form locale)
    fp_docparams-langu = language.
    fp_docparams-country = country.
    *fp_docparams-fillable = 'X'.
    *fp_docparams-langu = 'E'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    *fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    currency key dependant summing
    LOOP AT bookings INTO l_booking.
    l_sums-forcuram = l_booking-forcuram.
    l_sums-forcurkey = l_booking-forcurkey.
    COLLECT l_sums INTO t_sums.
    ENDLOOP.
    Now call the generated function module
    CALL FUNCTION fm_name
    EXPORTING
    /1bcdwb/docparams = fp_docparams
    customer = customer
    bookings = bookings
    connections = connections
    t_sums = t_sums
    IMPORTING
    /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
    IMPORTING
    e_adserrstr = error_string.
    IF NOT error_string IS INITIAL.
    we received a detailed error description
    WRITE:/ error_string.
    EXIT.
    ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *********************Send the form*******************
    *********************to the Customer*****************
    *********************via Email***********************
    *IF i_down = abap_true.
    DATA: filename TYPE string,
    path TYPE string,
    fullpath TYPE string,
    default_extension TYPE string VALUE 'PDF'.
    Data:
    lt_att_content_hex TYPE solix_tab.
    *DATA: data_tab TYPE TABLE OF x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-pdf
    TABLES
    binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL.
    DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Vendor Payment Form'
    i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    lo_send_request->set_document( lo_document ).
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    lo_send TYPE adr6-smtp_addr VALUE '[email protected]'. "Absender SENDER
    lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient type ref to if_recipient_bcs value is initial.
    Data:
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    *lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    *lo_send_request->add_recipient(
    *EXPORTING
    *i_recipient = lo_recipient
    *i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.

    Hi Kevin,
    Please try this code to send your mail, i wrote it and works well in many system.
    Take care if in your profile you got an e-mail adress define .
    Take care also of trnasaction SCOT customizing, are you able to send mail to e-mail adress ?
    Let me know if it's works.
    Best regards.
    <i>**----
    CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Convert the pdf given by function module into Binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    Set the name of the attached document
    att_subject = 'Template du PDF'.
    TRY.
    Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    Read the E-Mail address for the user
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username = sy-uname
          TABLES
            return   = ireturn
            addsmtp  = iaddsmtp.
        LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
          CLEAR bapiadsmtp.
          MOVE <smtp> TO bapiadsmtp.
        ENDLOOP.
        CASE bapiadsmtp-e_mail.
          WHEN space.
    No adress main for user, so send it to the default mail adress
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
          WHEN OTHERS.
            recipient =
         cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
        ENDCASE.
    Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
        add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    Add document to send request
        CALL METHOD send_request->set_document( document ).
    Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.</i>

  • Email notification for payments made through F110 payment run

    Hi Gurus,
    I have configured all the settings for the email notification through F110 payment run. I got the email also by using the email field in the address tab.
    My question is the same field is using the sales team to send their customer statements and invoices. So i selected the Contact person tab and maintained the email address.
    But i could not send because the contact person tab is also pointing to the same field for email ( SMTP_ADDR)
    Basically i want to send email for my payment run, without interuptting the email id which is maintained for customer statements.
    Can you please suggest the alternative field to send email apart from address tab ( email field )
    Regards
    Krish

    Hi Krish,
    Please go through posted discussion tread for your needful:
    Re: F110 - Automatic email to vendor when payment run is carried out
    Regards,
    Santoshy

  • Sending an email when order is placed

    I need to send an email notifying the website owner whenever
    an order is placed. What would be the best option? And how would
    this be done?
    ASP/VBScript
    SQL Server 2005

    Depends on how you have your store setup, but after the
    payment has been verified, maybe the user is directed to a sucess
    page or something, that is where you would send your email. You can
    do a google search for a mail script to taylor to your needs.
    Or if the orders are stored in a DB, then just give the owner
    an admin page to check the status of orders.

  • PO Output email ID vs Payment Remittance Advice email ID

    Hi,
    PO output program automatically sends PO to vendors in PDF format.  Email ID is picked from vendor master - address tab - communication.  Payment remittance advice is emailed to email ID in vendor master - correspondence tab - Clerk's internet field (company code data).
    Couple of months back for some unknown reason/ requirement, payment remittance advice program is changed to send to email ID in vendor master - address tab - communication.  To accommodate this change, we are now planning to change PO program to send to email ID in vendor master - correspondence tab (company code data).
    Now the question, is it OK to use Clerk's internet field for PO email ?  Will there be any disadvantage with this approach ? I know Clerk's internet field can take only one email ID whereas address email can take multiple IDs. 
    *  One of the unknown reason/ requirement was :  Remittance needs to go to multiple IDs and therefore changed to vendor master - address - communication.
    Cheers,
    Sankar

    A very strange idea from my point of view.
    you had used the clerks internet field (company code view) for financial communication in the past,
    this was changed to the standard communication
    and since you need a different mail address for POs you consider to use the clerks internet field in the company code view.
    Undoing the change for the payment remittance advice would be more logical, as then at least Financial communication would pick its email from a financial data source, which is more logical than pulling the data from financial data source for purchasing activities.
    In general you can create a PO long before a company code view is needed, this speeds up the procurement process, as the company code view is needed when you do goods or invoice receipt.  So you are slowing down the process.
    Using the clerks internet field would be really confusing for the users, both FI and purchasing, and it can conflict with your authorization settings too. In our system a buyer has no access to company code data.
    I would eventually consider to use the Remark field in the email address to indicate for what purpose this email address is used. If you do this e.g.with a leading number 1 for finance , 2 for purchasing, then you could have a exit check on that and determine the right email address .

  • Create a form without the option to submit or send via email

    Just oant to know is it posible to create a form without the option to submit or send via email. I want my students to fill in the form and save it to a personal folder. The submit form button creates confusion.

    Many thanks Randy, I'll give it a go. But it means setting up the how to pay question at the top of the form. Currently we have it setup at the bottom.
    Think I can do a "Will you be paying by credit card?" check box at the top - Tick equal show Fields A (which I have already mapped to the payment option) and Unchecked Show Fields B.
    Sound logical..will be cumbersome though as there are 12 mult show/hide fileds in there already  here's the link just for the original form for future reference for anyone in the forum wanting to see what the form looks like and is facing the same problem.
    Will make the changes in a quiet perios and anyone interested can take a look next week and see how I got on.
    Appreciate your response Randy
    Roger

  • Problems with send receive Email ( Adobe Interactive)

    I have heard the E-Learning(Send, Receive, and Process Interactive Forms via Email in SAP NetWeaver Application Server ABAP (RIG session 4A)
    ) about this topic on this webpage but i still have to many problems. Can somebody give me a source code, that i know how this works. Or is there a source code anywhere in the sap?
    I hope anybody can help me, Thanks!

    Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'.   " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    But it doens`t send the email.
    Can anybody help me please???
    Kevin
    Here my Code:
          Report FP_EXAMPLE_01
          Printing of documents using PDF based forms
    REPORT z_example_02.
    Data declaration
    DATA: carr_id TYPE sbook-carrid,
          customer          TYPE scustom,
          bookings          TYPE ty_bookings,
          connections       TYPE ty_connections,
          fm_name           TYPE rs38l_fnam,
          fp_docparams      TYPE sfpdocparams,
          fp_outputparams   TYPE sfpoutputparams,
          error_string      TYPE string,
          l_booking         TYPE sbook,
          t_sums            TYPE TABLE OF sbook,
          l_sums            LIKE LINE OF t_sums,
          fp_formoutput     TYPE fpformoutput.
    PARAMETER:      p_custid TYPE scustom-id DEFAULT 38.
    SELECT-OPTIONS: s_carrid FOR carr_id     DEFAULT 'AA' TO 'ZZ'.
    PARAMETER:      p_form   TYPE tdsfname   DEFAULT 'FP_EXAMPLE_01'.
    PARAMETER:      language    TYPE sfpdocparams-langu   DEFAULT 'E'.
    PARAMETER:      country  TYPE sfpdocparams-country DEFAULT 'US'.
    Get data from the following tables: scustom(Flight customer)
                                        sbook  (Single flight reservation)
                                        spfli  (Flight plan)
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
             WHERE customid = p_custid
             AND   carrid   IN s_carrid
             ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
             FOR ALL ENTRIES IN bookings
             WHERE carrid = bookings-carrid
             AND   connid = bookings-connid
             ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = p_form
      IMPORTING
        e_funcname = fm_name.
    IF sy-subrc <> 0.
      MESSAGE e001(fp_example).
    ENDIF.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'.    " suppress printer dialog popup
    fp_outputparams-getpdf  = 'X'.    " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = fp_outputparams
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4
        OTHERS          = 5.
    Set form language and country (->form locale)
    fp_docparams-langu   = language.
    fp_docparams-country = country.
    *fp_docparams-fillable = 'X'.
    *fp_docparams-langu   = 'E'.  "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    *fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    currency key dependant summing
    LOOP AT bookings INTO l_booking.
      l_sums-forcuram  = l_booking-forcuram.
      l_sums-forcurkey = l_booking-forcurkey.
      COLLECT l_sums INTO t_sums.
    ENDLOOP.
    Now call the generated function module
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams  = fp_docparams
        customer           = customer
        bookings           = bookings
        connections        = connections
        t_sums             = t_sums
      IMPORTING
        /1bcdwb/formoutput = fp_formoutput
      EXCEPTIONS
        usage_error        = 1
        system_error       = 2
        internal_error     = 3
        OTHERS             = 4.
    IF sy-subrc <> 0.
      CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
        IMPORTING
          e_adserrstr = error_string.
      IF NOT error_string IS INITIAL.
        we received a detailed error description
        WRITE:/ error_string.
        EXIT.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
      EXCEPTIONS
        usage_error    = 1
        system_error   = 2
        internal_error = 3
        OTHERS         = 4.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *********************Send the form*******************
    *********************to the Customer*****************
    *********************via Email***********************
    *IF i_down = abap_true.
    DATA: filename TYPE string,
            path TYPE string,
            fullpath TYPE string,
            default_extension TYPE string VALUE 'PDF'.
    Data:
    lt_att_content_hex TYPE solix_tab.
    *DATA: data_tab TYPE TABLE OF x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = fp_formoutput-pdf
      TABLES
        binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL.
    DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
        lo_document->add_attachment(
        EXPORTING
        i_attachment_type = 'PDF'
        i_attachment_subject = 'Vendor Payment Form'
        i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    lo_send_request->set_document( lo_document ).
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    lo_send TYPE adr6-smtp_addr VALUE '[email protected]'.   "Absender SENDER
    lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient type ref to if_recipient_bcs value is initial.
    Data:
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    *lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    *lo_send_request->add_recipient(
    *EXPORTING
    *i_recipient = lo_recipient
    *i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.

  • HT3702 I was send an email from apple asking me to update my credit card information or my account will be cancelled within 48hours is this a valid email from apple or fraud ??

    I was send an email via apple stating that I need to update my credit card information or my account will be cancelled in 48hours. Is this a valid email or fraud. I had the iphone for more than 2 years and did not receive a similar email

    It's a phishing attempt to get your account and payment details (Apple don't send emails like that) . If you still have the email then you could forward it to Apple : [email protected]

  • Why am I suddenly sending blank emails from my ipad third generation. The emails are received but nothing is in them.

    Suddenly I seem to be sending blank emails to everyone from my third generation ipad. They receive the email but nothing is in it yet if I look at my sent mail it appears there. What happened?

    Hi, ybg, and welcome to the Community,
    Your detailed report (thank you) indicates to me your account has been compromised a second time.  Change your Skype account password immediately if you have not already done so, as well as that of any saved payment method on file.  I would also run a maintenance cycle on your computer/laptop, ensuring all patches and updates are installed.  Also run your preferred anti-virus/malware/spyware suite using the most recent virus signature files available.
    You are right to contact Skype Customer Service to report this incident.  I have read that people experience problems reaching them, however please do continue to do so, choosing a different path through the various steps than you used the first time; try also using a different web browser.  I have also read that the instant message chat sessions with Customer Service agents appear as a pop-up dialogue box, which needs to be enabled or the connection to the agent will not process.
    Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    As a general proactive precaution, I would recommend reviewing how you access the internet, particularly seeking any vulnerabilities or patterns common to the first incident and this one.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for