Batch job creation for sending email if the invoice is aged

Positive confirmation: Send system notification to the requestor if:
a) An invoice is received and GR is not yet posted in the ECC system.
b) An 'aged' invoice and GR is not yet posted in the ECC system.
This requirement is for USA only. i.e., we have only one company code which is 8960.
Identifiers of the invoice are
Company Code = u20188960u2019
Invoice Document Type = u2018R9u2019
Use table EKBE for relationship between Invoice, Goods Receipt and Purchase Order.
The field EKPO-BEDNR contains the Shopping Cart Number
Implementation Strategy
1. To send email if the invoice is aged.
Create a program that will run as a job. This job will frequently check for invoices related to SRM Shopping Carts received from E2OPEN. If an invoice is aged and there is no Goods Receipt posted through confirmation from SRM, then an email will go out from ECC system to the requestor. Using the Shopping Cart number on PO, find the requestor information (email ID) from SRM through an RFC call. This job will run once in a day and should have a parameter in the program for the age of the Invoice.
Both the emails should contain a link (To be taken from SRM system, to be supplied) to log into SRM system. The email will also contain the Shopping Cart number and the Description of the item, and a message to Confirm this, including age of the invoice if aged.
Please let me know how to create the batch job.
Regards,
Venkat
Edited by: VenkatG on Sep 1, 2009 3:14 PM

Do not pass the COMMIT_WORK flag... Leave it blank. Any transaction for the data integrity, one should never use COMMIT WORK related statements. Normally SAP transactions will have the COMMIT WORK at the end of transaction which is enough for any thing that is added part of the customer exits...
Hope this helps.
Regards
Anjaiah

Similar Messages

  • Batch job creation for sales order

    Hi,
    How to create a job and schedule it so that it assigns reason of rejection to sales order line items for a particular sales org which are not delivered and after doing so, the status of the sales order is set to complete.
    regards
    sachin

    Hi,
    Execute transaction SM36
    Define Job name, Job class, Target server
    Click on 'START CONDITION' button
    Click on 'Date/Time' button
    Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.
    Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE
    Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    Click on 'Job overview' button or execute SM37 transaction.
    Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    You will now see all your scheduled JOBS.
    regards,
    mahantesh

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • TS3276 I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?

    I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?

    Sometimes deleting the account and then re-creating it can solve this issue
    Write down all the information in accounts before doing this
    Highlight the account on the left and click the minus button
    Then click the plus button to add the new account and follow the prompts

  • Hi i use iphone 4 with iso 6.1.3!! Am not getting an option to register my phone number in imsg!! Am just getting an option to set my email address for sending and receiving the imsgs!! How do i register my phone number??

    Hi i use iphone 4 with iso 6.1.3!! Am not getting an option to register my phone number in imsg!! Am just getting an option to set my email address for sending and receiving the imsgs!! How do i register my phone number??

    Hello Nikkii,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Troubleshooting telephone-number activation (iPhone only)
    After each step, toggle FaceTime and iMessage off and then on in Settings > Messages and Settings > FaceTime.
    Update to the latest version of iOS.
    Ensure that your iPhone is set to the correct time zone. Tap Settings > General > Date & Time.
    Note: If Set Automatically is on but the incorrect time zone is displayed, turn Set Automatically off and then choose the correct time zone, date, and time. Then turn Set Automatically on again.
    Ensure that FaceTime has not been restricted: Settings > General > Restrictions > FaceTime.
    Verify that you can send SMS messages. You need a valid SMS messaging plan to activate FaceTime.
    Contact your carrier to verify that there are no restrictions or blocks on text messages. Blocks on text messaging will prevent iMessage and FaceTime registration.
    If you are unable to activate iMessage or FaceTime on a device after remote wiping it, wait at least 24 hours and try again.
    If "Waiting for Activation" is displayed, leave FaceTime and iMessage enabled for 24 hours. Toggling FaceTime or iMessage off and on will cause the registration process to start over.
    Best of luck,
    Mario

  • Send email from the server

    I need to send email from the database.
    Two ways that I am familiar with -
    1. using VB/ODBC controls;
    2. dbms_pipe
    Anyone knows a more 'direct' solution?
    Regards
    Anatoliy Smirnov
    null

    by the way how can u send attchments with mails from database.
    chetan
    try this...(thanks for the subject line help)
    the first message line will be read by non MIME compliant readers, the second message line with be in the body of the note, the nest 2 (third and fourth) will come in as attachments ( text ). Change the Content-type for things like word docs or other 8bit docs (Content-type: application/msword) and write_raw_data for the 8Bit parts
    CREATE OR REPLACE PROCEDURE send_mail_test (sender IN VARCHAR2,
    recipient IN VARCHAR2, subject IN VARCHAR2,
    message IN VARCHAR2)
    IS
    mailhost VARCHAR2(30) := 'smtp.naxs.net';
    mail_conn utl_smtp.connection;
    cv_cCRLF VARCHAR2(10) := UTL_TCP.CRLF;
    lv_message varchar2(4000);
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn,'From: ' | | sender | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'To: ' | | recipient | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Subject:' | | subject | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'MIME-Version: 1.0' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Content-Type: multipart/mixed; ');
    utl_smtp.write_data(mail_conn,'boundary="NextPart_000_01C002D3.EB460626"' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| |' first mess part'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| | ' second mess part'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Content-Type: text/plain; charset=us-ascii'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| | ' third mess part'| |cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626' | | cv_cCRLF);
    utl_smtp.write_data(mail_conn,'Content-Type: text/plain; charset=us-ascii'| | cv_cCRLF);
    utl_smtp.write_data(mail_conn, cv_cCRLF | | message| | ' fourth mess part'| |cv_cCRLF);
    utl_smtp.write_data(mail_conn,'--NextPart_000_01C002D3.EB460626--' | | cv_cCRLF);
    utl_smtp.close_data(mail_conn);
    -- utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS
    THEN
    DECLARE
    error_code NUMBER := SQLCODE;
    error_msg VARCHAR2(2000) := SQLERRM;
    error_info VARCHAR2(30);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('We have an error: '| |error_code| |' '| |error_msg);
    END;
    END;
    show errors;
    null

  • I have two email accounts that are set up on the same iPad.  I cannot seem to see, read or send email from the second account

    I just set up a second email account on the same iPad but cannot seem to see, read or send email from the second account. 

    I'm using Windows 8 (not 8.1) and whatever the latest Thunderbird version is. They're both IMAP accounts. I was using Windows Live, but I couldn't get that to work, so I switched to TB. It works JUST fine for the one account, but not the other! They're identical except for the "handle". Both off my local ISP, set them up at the same time.

  • Unable to send email to the users from Project Server Workflow

    Hello all,
    I am facing issues in sending emails to the users from the workflow in SharePoint Designer 2013.
    I am trying to send emails to valid users in a Project server 2013 Workflow by Email action.
    I have set up the SMTP server successfully, I have configured SMTP server successfully in IIS manager 6.0
    I have configured the outgoing e-mail settings in Central Administration successfully,
    I have configured the SMTP email settings for my web app in IIS manager as well.
    I have configured and synced the User Profile App with the eMail addresses from Active Directory as well.
    I have configured the Alerts and Reminders in Operational Policies of PWA settings as well.
    I can send the emails to the users successfully through Powershell.
    But when I am trying to Start a Task Process with a user in the workflow, the task process starts but it never sent an email notification. So I tested by using the Action Email, that also the user is unable to receive any email. But the Workflow is not giving
    any error also. The email sending is successful, but the user is unable to receive it. The workflow succeeds to next phase without any errors.
    So to cross verify I tried 'Alert Me' option on a list, but that also is not sending(or might be sending but the user is not receiving) the mail.
    What else should I do to solve this issue.
    Please help me.
    Thanks,
    Shanky

    Hello Paul,
    I tried editing the PWA instance as you said, but that also didn't help :(
    I even restarted the Project Server Service, but nothing is changed. 
    I tried creating a new workflow for a List and used send email there, but that also is not sending the mail :(
    How do I check where the issue is from ? I mean, whether the workflow is sending the mail and the mail server is not receiving? or whether the workflow is not sending the mail itself? how do I check this? Is there any way to log these details?
    Please help me regarding this issue, I am totally clueless how to proceed.
    Thanks,
    shanky

  • I use Outlook for my email on the Safari web browser, and about 90% of the time when I want to attach a pdf or jpg file the email message will crash.

    I use Outlook for my email on the Safari web browser, and about 90% of the time when I want to attach a pdf or jpg file it fails and about 50% of the time when I want to send a standard text massage it will also fail and the email massage crashes. The only way I can get my Outlook to work is if I switch to Firefox web browser. I would rather not switch to a new web browser if I don't have to.
    It seems like what ever the problem is that its related the Safari web browser, because it works fine on the Firefox web browser.
    I think its some kind of plug-in failure because it giving me a LOC ERROR:
    LOC ERROR: Unable to locate localized string for resource ID 5007.
    How can I fix this Plug-in?
    And, yes my softwer is conpletly updated…

    That's an Outlook issue. You'll probably get better responses posting on the Office for Mac forums.

  • After installing the new Yosemite OS on my iMac I can no longer send email. I can receive email, but not send. I use gmail and can send email on the gmail (google) site, but not on "mail" on my iMac. Any others with this problem? What should we do?

    After installing the new Yosemite OS on my iMac I can no longer send email. I can receive email, but not send. I use gmail and can send email on the gmail (google) site, but not on "mail" on my iMac. Any others with this problem? What should we do?

    My gmail, which is correctly configured for Mail with gmail SMTP and Google IMAP, works for awhile on Mail, which I leave open while working on other applications. But several times a day I get msg from Google: "We recently blocked a sign-in attempt to your Google Account" . . . and requiring me to verify my account details, re-enter passwords, confirm security settings (or change them from "disable" to "enable less secure methods" and so on). In Mail I also have tried "taking all accounts online", and re-entering my gmail password inside Mail account settings. These steps successfully re-set comms between gmail and Mail ... for awhile, then it happens again. Enough occurrences over a work day that I just quit Mail and revert to accessing gmail directly. Apple Care advisor and an Apple knowledge base article say that Apple can't deal with this, as gmail is third-party app, and they refer me to gmail, and so far I've found nothing helpful there.
    From today I also have several instances of a window saying "Mail has unexpectedly closed" and asking me to Re-open it.
    I also use Yahoo mail, which stops working with Mac Mail at the same time as gmail, but I do not receive notices to re-verify from Yahoo.
    I recently upgraded from Mavericks to Yosemite. The Mail problem happened occasionally with Mavericks but is far more frequent with Yosemite.

  • Function module for sending email

    Hi all,
    Can I know list of function modules for sending emails.
    Other than "SO_DOCUMENT_SEND_API1"
    pls let me know

    Hi Praveen,
    Below is the sample code to send the external mail.
    &**********Reward Points if helpful**********&
    DATA: ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des .
           ld_receiver LIKE  sy-subrc.
      DATA:   it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
              w_cnt TYPE i,
              w_sent_all(1) TYPE c,                             "#EC NEEDED
              w_doc_data LIKE sodocchgi1.
      REFRESH it_receivers . CLEAR it_receivers .
      IF v_trip_send = 'X'.
        it_receivers-receiver = it_trip_dload-approver_email .
      ELSE .
        it_receivers-receiver = it_adv_dload-approver_email .
      ENDIF.
      it_receivers-rec_type = c_u .
      APPEND it_receivers. CLEAR it_receivers.
    it_receivers-receiver = " ------> pass your reciever email id.
      IF v_trip_send = 'X' .
        it_receivers-receiver = it_trip_dload-requester_email .
      ELSE .
        it_receivers-receiver = it_adv_dload-requester_email .
      ENDIF .
      it_receivers-rec_type = c_u .
      it_receivers-copy     = 'X' .
      APPEND it_receivers. CLEAR it_receivers.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = c_saprpt.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = c_saprpt.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = c_f.
      CLEAR it_attachment.
      REFRESH it_attachment.
      it_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR it_packing_list.
      REFRESH it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES it_packing_list-body_num.
      it_packing_list-doc_type = c_raw.
      APPEND it_packing_list.
    Create attachment notification
      it_packing_list-transf_bin = c_x.
      it_packing_list-head_start = 1.
      it_packing_list-head_num   = 1.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
      it_packing_list-doc_type   =  ld_format.
      it_packing_list-obj_descr  =  ld_attdescription.
      it_packing_list-obj_name   =  ld_attfilename.
      it_packing_list-doc_size   =  it_packing_list-body_num * 255.
      APPEND it_packing_list.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data = w_doc_data
          put_in_outbox = c_x
          commit_work   = c_x
        IMPORTING
          sent_to_all   = w_sent_all
        TABLES
          packing_list  = it_packing_list
          contents_bin  = it_attachment
          contents_txt  = it_message
          receivers     = it_receivers.

  • ABAP program for sending emails

    Hello SAP developers,
    I need ABAP program for sending emails to my internet adress in background - just some simple header with no body and no attachement. Recipient should be specified due the parameter etc... Does program like this exist or i have to create it? I am not familiar with ABAP. I am basis admin so I am little bit lost in this. I have tried program code from this page ->
    http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
    But anyway it does not work - there is an exception "no message send". SCOT is configured, mails are working fine from transaction SBWP.
    Thanks in advace
    JM

    I have already solved my issue through CCMS agents and RZ20 central autoreaction (sms) in Solution Manager.
    Regards
    JM

  • How to create a BO for sending emails

    Hi All,
               I want to create a Business Object which should have an event for sending emails.
              Please guide me on this.
    Thanks in Advance,
    Saket.

    Hi Raj,
    See i will explain why i want it.In the link it's done as below:
      IF ZCUST_INFO-COUNTRY = 'IN'.
        DATA: W_OBJTYPE TYPE SWETYPECOU-OBJTYPE,
              W_OBJKEY  TYPE SWEINSTCOU-OBJKEY,
              W_EVENT   TYPE SWETYPECOU-EVENT.
        W_OBJTYPE = 'YH355_BO'.
        W_OBJKEY  = ZCUST_INFO-CUSTNO.
        W_EVENT   = 'SENDEMAIL'.
        CALL FUNCTION 'SWE_EVENT_CREATE'
          EXPORTING
            objtype                       = W_OBJTYPE
            objkey                        = W_OBJKEY
            event                         = W_EVENT
        COMMIT WORK.
      ENDIF.
    But here w_objtype is a custom BO and also w_event  = 'SENDEMAIL'  .This event too
    is a custom event.
    Now i want to know what code is there in this custom BO because it is this BO which triggers the email through  SENDEMAIL event.
    Hope i am clear here.
    waiting for your reply.

  • Send emails to the same group of people every day

    I use the dock ios mail app and have to send emails to the same eight people everyday.
    Is there any easy way to group together email addresses so I don't have to input each one?

    Hey zzmama294,
    Thanks for the question. I understand that wish to learn more about group messaging. The following resources may provide assist you:
    iOS: Understanding group messaging
    http://support.apple.com/kb/HT5760
    Send a message to a group - Message - iPhone Basics
    http://support.apple.com/kb/TI82
    Thanks,
    Matt M.

  • Setting default account for sending email

    I have 4 accounts I use for sending email, but would like to have one be the default and can't figure how to do that. there is a check box next to the outgoing server dropdown that says use only this account. I don't think that is what I want, nor am i clear what that would do.
    Is there a way to set a preferred outgoing account?
    Does that require a plug in or helper app of some sort.
    thanks for any suggestions.

    In Mail>Preferences>Composing:
    Use Send new messages from: to select an account.

Maybe you are looking for