Information message when the job gets completed

Hi,
  In foreground if i click a button a background job is scheduled.Now my need is when the job gets completed i need to inform the user that the job got completed.How to get that information message once it gets completed.Plz help

check sy-subrc value after completion of the job.....
if sy-subrc = 0.
    message i398(00) with 'You have succeeded'.
endif.

Similar Messages

  • Sending mail to recepients once the job gets complete

    Hi,
    Is there a way to send email to concerned receipients once the background job completes.
    Regards,
    NS

    Hi,
    While creating batch job, specify a "Spool list recipient" on the first screen of SM36 and then an email address for the recipient.
    aRs

  • Message when background Job is successful .. information

    Dear All
    I just want to give an information message when background job is successful.
    I am starting a job using SUBMIT <   > AND RETURN
    if sy-subrc = 0
    CALL FUNCTION  'JOB_CLOSE'
    if sy-subrc <> 0
    Do Nothing
    else
    message <>
    end if.
    end if.
    Let me know if above code is correct and how to make a message information only in this.
    Amol

    Hi Amol,
    I'm struggling to fully follow your requirements, but the job is not complete when you call the function 'JOB_CLOSE'.
    You can check if the background job is successful using the method below...
    Within a DO-ENDDO use the function module 'BDL_READ_JOB_STATUS' passing it job name and job number.
    If the job status returned from 'BDL_READ_JOB_STATUS' = 'F' then the job is finished and exit the DO-ENDDO.
    Kind Regards,
    Richard.

  • How to send a mail to the user when a job gets canceled?

    Hi experts,
                      I need to send a mail when a job gets canceled to the user.I know the FM for sending mail and i can find if a job is canceled from tbtco,but i want to know how to send the mail from the same program ,once it got canceled ?
    thanks in advance,
    helpful answers will be awarded with points
    regards,
    ashwin

    Hi Ashwin
    Use the below peace of code:
    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,
    Sree

  • HT1338 When trying to update my software, I get "an error occurred" message, and the update gets cancelled.  How do I fix it?

    When trying to update my software, I get "an error occurred" message, and the update gets cancelled.  How can I fix this?

    I have found other threads with this problem. The problem is that you are using your iTunes account on another user at the same time you want to update software. Just close iTunes from that user. See > https://discussions.apple.com/thread/4577180?start=0&tstart=0

  • After publishing an adobe captivate 8 file that has a video I got this message when the video slide starts, I'd appreciate if you have any useful suggestions.   Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=

    After publishing an adobe captivate 8 file that has a video I got this message when the video slide starts. I'm using Adobe media encoder and it outputs the file as f4v formate and when inserted into the adobe captivate 8 project, I found that I'm still getting the same error message after publishing the project. I'd appreciate if you have any useful suggestions.
    Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2036: Load Never Completed. URL: file://C:\Users\User\AppData\Local\Temp\Rar$DIa0.291\haloSkin1_as3_progressive.swf"]
    Thanks in advance
    Warm Reagrds

    After publishing an adobe captivate 8 file that has a video I got this message when the video slide starts. I'm using Adobe media encoder and it outputs the file as f4v formate and when inserted into the adobe captivate 8 project, I found that I'm still getting the same error message after publishing the project. I'd appreciate if you have any useful suggestions.
    Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2036: Load Never Completed. URL: file://C:\Users\User\AppData\Local\Temp\Rar$DIa0.291\haloSkin1_as3_progressive.swf"]
    Thanks in advance
    Warm Reagrds

  • My phone seems to delete contacts and info when the battery gets low, is there a solution to this issue?!

    After the most recent update, I've noticed a couple MAJOR changes! 1) The battery life can barely make it through half the day. I have to keep charging it no matter how little I use it. I've even turned off apps running in the background, it didn't make much difference. And 2) When the battery gets really low, at the 10% mark, it deletes contacts and settings. I've lost so many contacts all of the sudden and I constantly have to restore my iPhone. It's so frustrating! And when the battery gets low, it also deletes my e-mail account to receive e-mails on the phone. I'm tired of having to constantly reset my phone carry a charger with me, it's not reliable any longer and I'm not sure why. Help??

    Here is some information on the applecare +:
    http://www.apple.com/support/products/iphone.html
    It appears that you have to buy the applecare within 30 days of buying your phone - you said that your phone warranty is almost over, so when did you buy it??? That could be the explanation for the error.

  • Error in sql server with a trigger (I want to display a customize message, when the user left a blank field or null) How can I do?

    How I display a customize message(with a trigger)when a user left a blank field? I want to the stop the insert statament if the user left  the status field in blank. I create a trigger but now I can't enter a row, i used an instead trigger
    too but doesn't work. I want to display a customize message when the user left the
    status field in blank or null. 
     I have the following code:
    CREATE TRIGGER [dbo].[BLANKFIELD] 
    ON [dbo].[Status] 
    FOR INSERT 
    AS 
    BEGIN 
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
     PRINT 'Please Fill the Status  field is required'
    Rollback;
    END 

    I agree with other comments that you should do this with specifying that the column is NOT NULL to prevent it from being NULL and a constraint if you don't want it to be blank (spaces or the empty string - note that the empty string is not the same thing
    as NULL).
    But for completeness, the reason your trigger does not ever allow you to enter a row is the code
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
    PRINT 'Please Fill the Status field is required'
    Rollback;
    Since you don't have a begin/end block after IF, the only conditionally executed statement is the one immediately following the IF (that is the PRINT).  So the Rollback is always executed whether or not the IF is true and so all updates are rejected.
    So if you were to do this in a trigger you could do something like the following
    CREATE TRIGGER [dbo].[BLANKFIELD]
    ON [dbo].[Status]
    FOR INSERT
    AS
    BEGIN
    IF EXISTS(SELECT * FROM inserted WHERE Status IS NULL)
    BEGIN
    PRINT 'Please Fill the Status field is required';
    Rollback;
    END
    END
    (As José noted, there can be more than one row in the inserted pseudo table, so you don't want to test whether the COUNT = 1, instead just whether one or more rows exist where the Status  is null.  If you want to prevent Status is NULL, or all
    spaces, or the empty string, then your IF statement would be
    IF EXISTS(SELECT * FROM inserted WHERE ISNULL(Status, '') = '')
    Tom

  • How to display the information message in the end in BDC

    Dear All,
    I have been submitting a BDC for FB01, in a dialog program of mine.
    The BDC gets executed successfully but it does not display the 'Documnet No....generated' information message in the end.
    I have even written the following code in the BDC, after call transaction, to accomplish this, by assigning the value of genno (variable) to sy-msgv1, but it's not working.
    call transaction 'FB01' using bdcdata1 mode 'E'.
      message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      genno = sy-msgv1.

    Hi,
    try this its easy .
    create an internal table e_report for sucess with the fields you want to display .like the same for F_tab for failure .
    so finally u will be having the success record in e_report and the failure in f_itab.
    call transaction 'FB09' using bdcdata MODE 'N' MESSAGES INTO IT_ERROR.
    IF sy-subrc eq 0.
      E_report-status = 'Sucessfully Updated'.
      e_report-belnr = itab-belnr.
      e_report-year = fiscalyear.
      APPEND E_report.
    else .
       F_tab = itab.
       F_tab-year = fiscalyear.
       F_tab-status = 'FAILED'.
       APPEND F_tab.
    finally print this
    sort e_report by  belnr ascending.
    LOOP AT E_report.
        at FIRST .
           WRITE:/'**********SUCCESSFUL RECORDS ARE **********'.
           FORMAT COLOR 6.
           WRITE:/ 'Document Numer',20 'Year',35'Status',54 ''.
        ENDAT.
        FORMAT COLOR 3.
        write:/ E_report-belnr,20 E_report-year ,35 E_report-status.
        FORMAT COLOR OFF.
       at LAST.
         write:/ 'Total No.Of Successful Records:',sy-tabix.
         FORMAT COLOR OFF.
       ENDAT.
       RESERVE 20 LINES.
    ENDLOOP.
      IF F_tab is initial.
           FORMAT COLOR 1.
           WRITE:/ ' NO Errored Files'.
           FORMAT COLOR OFF.
      ENDIF.
    WRITE:/ SY-ULINE.
    new-PAGE.   " to display in a  new page
    sort f_tab by  belnr ascending.
    LOOP AT F_tab.
        at FIRST .
           WRITE:/'**********FAILED RECORDS ARE **********'.
           FORMAT COLOR 6.
           WRITE:/ 'Document Numer',20 'Year',35'Status',54 ''.
        ENDAT.
           FORMAT COLOR 5.
           WRITE:/ f_tab-belnr ,20 F_tab-year, 35 F_tab-status.
        at LAST.
         write:/ 'Total No.Of Failed Records:',sy-tabix.
        ENDAT.
    ENDLOOP.
    ENDIF.
    if they want to display in the excel sheet pass the internal table to the F.M.
    plz motivate me.
      by rewards.
    thanks
    vinoth

  • Recently I downloaded photos from an sd card. When the download was complete all photos were loaded in a random fashion completely out of order.This is the first time it has ever happened this way. downloaded same card to iPhoto and all photos were in ord

    Recently I downloaded photos from an sd card. When the download was complete all photos were loaded in a random fashion completely out of order.This is the first time it has ever happened this way. downloaded same card to iPhoto and all photos were in order. Help needed. Am working on a job that needs immediate attention and HDR images out of order are impossible to deal with.

    Thanks for your help. The out of numerical order comes before the actual import begins. It happens when first uploaded to Lightroom and prior selection of of photos to imported to the catalog.

  • How to handle Undelivered messages when the Target Application is down

    Hi
    in our scenario,
    sapEccSystem>OuboundProxy>PI>ReceiverAdapter>ReceiverThirdPartyApplication
    the known issue with the ReceiverThirdPartyApplication is, it gets down in frequent intervals, and automatically gets up and running, but we don't know at what times it will be down and when it will be up again.
    in this asynch scenario, when the scenario gets triggered from source SAP system, and at that time, if the receiverAppl is up, it is working fine.
    but when  the scenario gets triggered from source SAP system and at that time if the receiverAppl is down, the message exchange gets failed
    to address these kinds of issues,
    1. is their any concept of Queuing or anything in PI, that can keep the messages in something like Queues and process them when the receiver application gets up., if yes how can configure them
    Does PI act as Queuing server, so that it delivers the pending messages one ofter another, until they are all finally sent.
    or
    2.is there any retry mechanism, where can specify something like, the undelivered message needs to be resent after waiting for an hour.
    thanks,
    Madhu_1980

    Hi, the number of retries and the retry interval are modifiable java system parameters of the [Service SAP XI Adapter: XI|http://help.sap.com/saphelp_nw04s/helpdata/en/29/22ee41c334c717e10000000a155106/content.htm], check section Properties Related to Outbound Processing. You can change these properties in NWA of PI under Configuration Management -> Infrastructure -> Java System Properties -> Services -> XPI Adapter: XI. The screen in the bottom with the heading Extended Details displays the adapter's service property.
    I found these properties in oss Note 730870 - FAQ XI 3.0/ PI 7.0/ PI 7.1/ PI 7.11/ PI 7.2/ 7.3 RFC Adapter, under Q3, when doing research on another topic.
    Regards, Martin

  • Information message in the workflow

    Hi Experts,
    We are using an Information message ...message of type I inside a method in the leave request workflow.
    message i001(ztest1) with lv_pernr where ztest1 is teh message class.
    We are using this after a User Decision step....when the user clicks on the successful button, a messaage should just pop up telling him to run the RPTARQPOST program.
    When we executed and tested the same, it is not working.
    I just wanted to know whether we can put an Information Message inside the method and can this be used in the workflow.
    Is there something that we have missed out.
    Awaiting your response,
    Cheers,
    Belinda Clarke

    Hi,,
    If you test your code directly in SE24 does it work? If not, then it will not work in workflow either. If yes, then you probably need to set the advance with dialog checkbox in your user decision step (in SWDD).
    In general I would stay that your solution is not the most elegant one. I would consider any another solution than putting an information message into a (separate?) step in workflow? Can you just instruct the users to execute the report? Can you write the message to the user decision directly. Can you launch the report directly in the step (instead of asking the user to run it). There are multiple better ways to do this, if you just told what you want to achieve or what the users need to do.
    Regards,
    Karri

  • Good Morning, this morning I received the following error message when the iPhone connected to iTunes: itunes could not check for an update to the carrier settings for your iphone. an unknown error occurred (1635) iphone 3gs with IOS 5. any ideas? thx

    Hello,
    this morning I received the following error message when the iPhone connected to iTunes: i
    tunes could not check for an update to the carrier settings for your iphone. an unknown error occurred (1635) 
    any ideas? thx

    I get the same error (although in Dutch ;-)).
    It also says something like (I'm translating): "Make sure your network settings are correct and your networkconnection is active or try again later." Is there a way to find out these "correct networksettings"?
    I now get it for a week, eacht time I connect my iPhone to itunes...

  • Error is thrown ONLY when the job is run doe delivery creation

    Dear SDNres,
    I am facing a tricky issue.
    I have a job that creates Sales order , Delivery, Billing.
    When the sales order contains line items <=8 then the job runs fine and creates delivery successfully
    When the sales order contains line items more than 8, then the job fails on delivery creation and the BDC captures error "customised error''
    Doubt:
    steps in manual creation:
    1)I create a Sales order with line items > 8
    2)then i create delivery manually .
    After the above 2 steps i dont get the error at all in case of manual creation
    But the same steps when the job does for a Sales order with line items >8 then the error comes and job fails.
    Kindly suggest me as to where i need to look for the error.
    Regards,
    SuryaD.

    Thanks for your response Dave.
    Yes i am doing a BDC Call Transaction.
    there is no BAPI.
    Trickier part is when i execute the job through debugging then i do not get the error.
    What could be the reason for this error.
    Is it some error in teh coding?
    regards,
    SuryaD.

  • When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box,

    # Question
    When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box, but goes to some random collection of pages often from months ago. Very frustrating - can anything be done to COMMAND it to save current pages and re-open there? (As I said, I have this box checked in the options, but it does not work ..

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

Maybe you are looking for

  • Any standard tests i can use to check my new iMac - it's slow

    Hi I bought a new 27-inch iMac and thought I had got one with decent specs and graphics card with lots of memory so that it would be fast when editing images and running several applications at the same time. iMac 27-inch, Mid 2011 Processor  3.1 GHz

  • Can't find serial number - Aperture 3

    Hello, I reset my mac back to factory settings and now wish to reinstall my Aperture 3 .. But I cannot find the serial number anywhere. I think I may have registered it on the site when I bought it, but I see from looking on the forum that you can't

  • Add reference field

    Hi all, My task is like this. I have to include FI reference in report ME80FN. Actually the ebusiness needs to see the vendor invoice number (FI reference field) in the PO history report ME80FN. actually it is said that the query has to be replicate

  • How to change the dictionary language in Pages 5.01?

    I used to write texts in several languages but now I cant. Any tips to change the dictionary language? Thanks in advance

  • Clicking sound in 10.7.4

    I use to hear only a fan that's only if I put my ear right next to the fan in other words it was silent, but for some reason when I updated to 10.7.4 I can hear this clicking sound that is coming from the Mac I did not have this ploblem in previous v