How can I mail the Job Log in the form of an excel sheet?

Daily I have to monitor a Job and I have to retrieve the Job Log in an excel sheet, Format the excel sheet, and then mail the excel sheet and the Job Status(Finished/Cancelled) to Client/Person Incharge.
I want to automate this entire process. Please guide me, how can I write a program that mails the Job Log, in the form of an excel sheet, to the Client?
Edited by: Jiten Rajendra Barai on Nov 25, 2008 3:03 PM

Hi,
You can use this FM to mail the excel sheet.
SO_NEW_DOCUMENT_ATT_SEND_API1
Also have a look at the below thread, it might be very helpful.
Sending Excel attachment in E-mail
Cheers...

Similar Messages

  • How can I write waveform data to a txt file or an excel sheet?

    I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work.
    Attachments:
    PWMReadWrite.vi ‏167 KB

    Yes, you must change block (Get Date/Time String.vi).
    You must write new subVI - this new VI convert date and time to the second [or ms or us].
    First choice is: time column will be count of second [the better ms or best us] since 12:00 a.m., January 1, 1904, Universal time[function "Get Date/Time In Seconds.vi"].
    Text file:
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333
    Second choice is: first record in TXT file will be time when test start and after will be table with time [ms or us] and value.
    Text file:
    Start time: Monday 30-th February 2005.
    0,000 0.000000
    0,050 0.062791
    0,100 0.125333
    Have a nice day.
    JCC
    P.S.: I recommend you creat header of result table to text file.
    Text file:
    time [ms] U [V]
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333

  • Job logs from the original system after Unicode conversion.

    Dear Globalization experts,
    We are doing Unicode conversion and would like to know, if the Job logs from the batch jobs, executed before conversion (system with a 1100 code page), would be readable  in the Unicode system after the conversion.  We will move job log files from the source to the target  system. I .  Thank you in advance for your help.
    Best regards,
    Alik Shapiro

    Hi Alik,
    I have strong doubts that this will work ...
    From SAP notes 842767 and 901004 you can see, that spool data will not be converted properly by default.
    In general this is valid for data stored in TemSe, as this is by definition temporary data (see for example http://help.sap.com/saphelp_nw70/helpdata/en/d9/4a8f9c51ea11d189570000e829fbbd/content.htm ).
    However I actually did not test it, so I am not 100% sure.
    Best regards,
    Nils Buerckel
    SAP AG

  • How can i insure that job finished and good  and send mail to the user  ?

    how can i insure that job finished and good  ,
    and how can i send mail to the user "ok"   ?

    Hi Dakota.  We do something simular with our nightly MRP job.  Our MRP job runs around midnight,  then we kick off another job about 4am which checks to see if any of the jobs in question have abended, if so,  then it sends an email to the email addresses specify in the report variant.  Of course, this could be modified to check for successfully complete jobs, if that is your requirement.
    REPORT ZBCJOBMONITOR .
    TABLES: SOMLREC90,
            TBTCO.
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: I_TBTCO    LIKE TBTCO OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_JOB FOR TBTCO-JOBNAME.
    SELECT-OPTIONS: S_JOBC FOR TBTCO-JOBClass.
    SELECT-OPTIONS: S_REC FOR SOMLREC90-RECEIVER.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      CLEAR:    MAILDATA, MAILTXT, MAILREC, I_TBTCO.
      REFRESH:  MAILTXT, MAILREC, I_TBTCO.
      PERFORM GET_ABENDED_JOBS.
      PERFORM BUILD_RECEIVERS.
      LOOP AT I_TBTCO.
        PERFORM BUILD_TEXT_MESSAGE.
        PERFORM SEND_MAIL_NODIALOG..
      ENDLOOP.
    *      Form  BUILD_TEXT_MESSAGE
    FORM GET_ABENDED_JOBS.
      SELECT * FROM TBTCO
              INTO CORRESPONDING FIELDS OF TABLE I_TBTCO
                         WHERE JOBNAME IN S_JOB
                           AND STATUS = 'A'
                           AND JOBCLASS IN S_JOBC
                           AND SDLSTRTDT = SY-DATUM.
    ENDFORM.
    *      Form  BUILD_TEXT_MESSAGE
    FORM BUILD_TEXT_MESSAGE.
      DATA: DATE(10) TYPE C.
      DATA: TIME(10) TYPE C.
      MAILDATA-OBJ_NAME = 'MONITOR'.
      MAILDATA-OBJ_DESCR = 'Batch Job Monitor'.
      MAILDATA-OBJ_LANGU = SY-LANGU.
      CONCATENATE 'Job Name:' I_TBTCO-JOBNAME
                  INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      PERFORM FORMAT_DATE USING I_TBTCO-SDLSTRTDT
                                DATE.
      CONCATENATE I_TBTCO-SDLSTRTTM+0(2) ':'
                  I_TBTCO-SDLSTRTTM+2(2) ':'
                  I_TBTCO-SDLSTRTTM+4(2)
                     INTO TIME.
      CONCATENATE 'Start Date/Time:' DATE TIME
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      CONCATENATE 'Job Class:' I_TBTCO-JOBCLASS
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      MAILTXT-LINE = 'Job has terminated abnormally'.
      APPEND MAILTXT.
    ENDFORM.
    *      Form  BUILD_RECEIVERS
    FORM BUILD_RECEIVERS.
      LOOP AT S_REC.
        CLEAR MAILREC.
        MAILREC-RECEIVER = S_REC-LOW.
        MAILREC-REC_TYPE  = 'U'.
        APPEND MAILREC.
      ENDLOOP.
    ENDFORM.
    *      Form  SEND_MAIL_NODIALOG
    FORM SEND_MAIL_NODIALOG.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                DOCUMENT_TYPE              = 'RAW'
                PUT_IN_OUTBOX              = 'X'
           TABLES
                OBJECT_HEADER              = MAILTXT
                OBJECT_CONTENT             = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    *      Form FORMAT_DATE
    FORM FORMAT_DATE USING IN
                           OUT.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
                DATE_INTERNAL            = IN
           IMPORTING
                DATE_EXTERNAL            = OUT
           EXCEPTIONS
                DATE_INTERNAL_IS_INVALID = 1
                OTHERS                   = 2.
    ENDFORM.
    Regards,
    Rich Heilman

  • If someone is checking the yahoo mail from my computer, their ID appears if the first letter of my ID is the same with theirs. How can I delete their history logging on my computer?

    If someone is checking the yahoo mail from my computer, their ID appears if the first letter of my ID is the same with theirs. How can I delete their history logging on my computer?

    thank you, Matt :)
    you really helped me!

  • How to get the job logs from sm35 by using the queue id and session name?

    hi all,
    can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
    FYI..
    i want to read this job log and i want to send it to an email id.
    -> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module  job_close.
    but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
    thanks in advance,
    koushik

    Hi Bharath,
    If you want to download it to the local file then you can follow the instructions in the below link.
    How to download Batch Input Session Log?
    Regards,
    Sachin

  • With journaling, I have found that my computer is saving a large amount of data, logs of all the changes I make to files; how can I clean up these logs?

    With journaling, I have found that my computer is saving a large amount of data, logs of all the changes I make to files; how can I clean up these logs?
    For example, in Notes, I have written three notes; however if I click on 'All On My Mac' on the side bar, I see about 10 different versions of each note I make, it saves a version every time I add or delete a sentence.
    I also noticed, that when I write an email, Mail saves about 10 or more draft versions before the final is sent.
    I understand that all this journaling provides a level of security, and prevents data lost; but I was wondering, is there a function to clean up journal logs once in a while?
    Thanks
    Roz

    Are you using Microsoft word?  Microsoft thinks the users are idiots. They put up a lot of pointless messages that annoy & worry users.  I have seen this message from Microsoft word.  It's annoying.
    As BDaqua points out...
    When you copy information via edit > copy,  command + c, edit > cut, or command +x, you place the information on the clipboard. When you paste information, edit > paste or command + v, you copy information from the clipboard to your data file.
    If you edit > cut or command + x and you do not paste the information and you quite Word, you could be loosing information.  Microsoft is very worried about this. When you quite Word, Microsoft checks if there is information on the clipboard & if so, Microsoft puts out this message.
    You should be saving your work more than once a day. I'd save every 5 minutes.  command + s does a save.
    Robert

  • DBMS_SCHEDULER: How can I query a job's log history?

    Hi,
    How can I query a job's log history?
    Thanks,
    Alan

    Hi
    The table user_scheduler_job_run_details contains info about your job
    Sushant

  • How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    Hello,
    Try Mail>Preferences>Accounts icon>Account Information tab>Click on the Outgoing SMTP server drop down, choose edit Server list, highlight the old one & click Remove.
    (Such convolution is worthy of Windows® in my estimation)

  • I'm new to Mac, have had for approx.  I put my iPhone and iPad and my wifes in iTunes and now when i start my system on.  I now have a Guest user show up at the log on screen.  Is this normal.  And how can I take it off.   Tried the help and no luck

    I'm new to Mac, have had for approx.  I put my iPhone and iPad and my wifes in iTunes and now when i start my system on.  I now have a Guest user show up at the log on screen.  Is this normal.  And how can I take it off.   Tried the help and no luck

    Tatanka11 wrote:
    I'm new to Mac,...
    Then...  You may find these Links of Interest and Value...
    Show me how to set up my Mac.
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    http://www.apple.com/findouthow/mac/
    Enjoy your Mac...

  • Since I updated I can't open anything that comes in a pop upwindow i.e. pdf or mail window. How can I solve or go back to the previous version - it worked just fine.

    Since I updated I can't open anything that comes in a pop upwindow i.e. pdf or mail window. How can I solve or go back to the previous version - it worked just fine.

    I am not sure what your problem is, can you give more details.
    One possibility is you may be in full screen mode, for details on fixing that see the [[menu bar is missing]] article.
    If you are missing various toolbar items, see the [[back and forward or other toolbar items are missing]] article.
    If your problem is something else please give more details.

  • How can I change colour or design to the folder icons in Mail ?

    How can I change colour or design to the folder icons in Mail ?

    Apple doesn’t routinely monitor the discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail/Provide Mail Feedback

  • Over the years and upgrading machines, I now have over 20k of emails in the import mailboxes within several folders. How can I archive these in way so the are still available, if necessary, to search, but don't load and slow down my mail app.

    Over the years and upgrading machines, I now have over 20k of emails in the import mailboxes within several folders. How can I archive these in way so the are still available, if necessary, to search, but don't load and slow down my mail app.

    Ok Thank you.
    I wont worry now.
    Just maybe dig in deep and delete the deleted mails that are still around and that will hopefully clean it up a bit.
    Many thanks for your help and advice.
    Regards
    Chrispl0

  • How can I post a simple message in the User Forum's page, immediately after logging in ?

    I had earlier asked a question re: including Merriam-Webster online dictionary into the list of search engines in the text area to the right of the location bar. I received a very helpful answer from cor-el, using which, I was able to include both the Dictionary and Thesaurus into the said list.
    I WISH TO THANK core-el SINCERELY FOR THIS HELP.
    The question is as follows:
    How can I post such messages directly in the Users Forum's pge?
    - - S.Rajaram

    what is your requirement can you please confirm.
    Regards
    Shobhit S

  • How can I cancel a document printed using the HP ePrint android app

    I sent a print job to a UPS store by accident.  I went to the place to collect my document but I was told that they didn't receive anything.  In fact, they were not connected to the cloud.  The document has some sensitive information.  Where can I go to cancel or delete the print queue?

    Hey iateabug,
    Please log into your ePrintCenter account to see if the print job is still in a 'Pending' state. If the job has already processed and is no longer pending, then there will not be a way to retrieve this information back and stop the job.  If the job is still in a pending state, then please click Cancel to stop the job.
    Hope this helps,
    Jason
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

Maybe you are looking for

  • Error in installation ecc6.0

    i am getting this error while installing sapinst. SAPinst is getting started. Please be patient ... starting gui server process:   sapinstport: 21200   guiport    : 21212   guistart   : true   command    : "D:\j2sdk1.4.2_12/bin\javaw.exe" -cp "D:/DOC

  • Mapping-Testing

    Hi guys, i am a little confused. I am doing a HTTP2IDoc and i want to test the mapping of my Datatypes. For this i have a sample file (XML) which the sender of the scenarios will send to the HTTP-Adapter. With this i'd like to test the Message-Mappin

  • $1 charged For Free 3 Month Trail SignUp

    Hi Today i signed Up for free trail of windows azure for 3 month. As mentioned everywhere it was free but $1 has been credited from my credit card. I want to know was it any hidden fee or there is anything else there. I am new for free trail so pleas

  • Problem with key mnemonics in JPopupMenu

    Hello everyone... Since mnemonics do not work in a popup menu using Java sdk 1.3 (due to a bug), i am currently trying to implement this fuctionality myself. However i have a few problems... Please consider the following chunk of code: textAreaOut =

  • How Can I View Photos On iCloud On OS X?

    How can I view or access all my photos that are stored in iCloud from my Mac after they have been synced from iPhone?