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.

Similar Messages

  • HT2731 why do i get an error message when entering my credit card information?

    why do i get an error message when entering accurate credit card information?

    If you would like help from these forums then saying what the error message is would be useful.
    The card is registered to exactly the same name and address as you have on your iTunes account ? And it was issued by a bank in the country where you and your iTunes account are ?

  • 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.

  • Message in background job

    Hi All,
    I have a report program which is executed in background. I am calling that from a FM.
    The report program after successful execution exports the reuslt back to the FM.
    In the report , I have a validation which goes like
    if itab is inlitial.
    message 'XXXXX'.
    exit.
    endif.
    As the program is executed in background, will this message command cause any problem?
    The problem i am facing is the job is cancelled whenever this message command is encountered.
    Kindly suggest whether i can have a message command in a report which is executed in background.
    Thanks in advance
    Uday Kuamr.

    Hi Uday,
    Instead of generating messages in the REPORT it's better you do generate a LOG containing all the messages of types ERROR,WARNING,ABEND,SUCCESS and INFORMATION. Then later you can use that LOG to analyze.
    To create an application log look at the FM BAL_LOG_MSG_ADD
    Also look into the function group SBAL where you would get a list of FM's which are related to activities with application logs.
    You can also find the documentation inside the function modules to understand what parameters have to be passed as well as in which order to call the function modules.
    Hope this helps.
    Thanks,
    Samantak

  • Output after the background job finished successfully

    Hi All,
    We executed a Dunning job  in the background (sm37) and the job finished succesfully.  How to check whether the job has created an output ? Where to look for the output ?
    Regards
    Shiva

    You can check the spool request of your job via SM37 or SMX. Go to SM37 select your job and check the spool request.
    Regards
    Subhash

  • SQL server 2012 sent job failure email when the job ran successfully

    This week we received emails from one of our productions servers indicating jobs failed. But after I checked and found they actually ran successfully.
    I was thinking this might came from some internal sql server agent errors. After I restarted SQL servr agent, I still get this false emails.
    Would like to ask help in this forum? Any ideas and suggestions will be welcomed!

    Do you use db email feature? Perhaps it is just set to send the email but mistake put into the successful step completion?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Is there a way to include a confirmation message when a form is successfully submitted?

    I have a form that uses both a regular button with javascript, and e-mail submit buttons (depending on which action on the form the user is trying to complete)...
    I'm trying to find a way to confirm to the user that their form has been submitted. Since the form stays open after the e-mail is sent, I have several customers who submit the same form several times (15 in one severe case ) which is causing things to gum up a bit.
    Alternatively, if there's a way to get the form to close once the button is clicked and/or the e-mail is sent, that would work just as well.
    Thanks in advance for any advice you can give me

    Also no,
    the mailDoc function controls just 6 parameters (bUI, cTo, cCc, cBcc, cSubject, cMsg), nothing else.
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=32 3

  • Issue with Compliance Calibrator 5.2 SP9 Background Jobs

    Hello,
    I'm having an issue with Compliance Calibrator 5.2 SP9 where If I run a role analysis as a background job that has the same parameters as a previously run role analysis background job, the second job that is run will display a failure message.  It does not appear to matter if the similar background jobs were run by the same individual or separate individuals.  As long as the job that was previously run is still in the background job history, than any job with the same parameters run by a user will fail. 
    Is this normal operation for CC? 
    Is there a configuration change that could allow a job to be rerun in the background multiple times?
    Is there a fix for this issue in a later support pack or with upgrade to 5.3?
    Thanks for the help it's much appreciated,

    To better clarify what is occurring, the 1st job will run and complete successfully and return/display the appropriate results correctly.  The 2nd job will than be subsequently kicked off and finish same as with the previous job except when you open the background results no data is displayed and the message at the bottom reads: Failed to display result.  To make more sense of what Iu2019m doing, these are the logical steps Iu2019m following:
    1.  Select Role Level analysis
    2.  Enter parameters for analysis
    3.  Schedule background job to run immediately
    4.  View background job results (successful job and correct results)
    5.  Select Role Level analysis (with same or any other user)
    6.  Enter same parameters as step 2 for analysis
    7.  Schedule background job to run immediately
    8.  View background job results (successful job, but the error message: u2018Failed to display resultu2019, instead of seeing the CC reports)
    I believe the error is somewhere in the running of a job with the same parameters (Same Role and same Report Type).  If I delete the previous jobs from the background history that have the parameters Iu2019m using and try the analysis again, a third time, with the same parameters as before, it will run successfully and display the correct results.
    Is this normal and acceptable operation for CC5.2 SP9?
    Is there a configuration change that would allow a job to be run in the background multiple times with the correct CC results?
    Is there a fix for this issue in a later support pack or with upgrade to 5.3?

  • Job Mgmt : error "This component cannot be used" when sending job request

    Hi,
    When i try to create a job request (basic job request link from the Job Management Workcenter), I am having an error : "This component cannot be used".
    It seems the component is the number read from the ibase corresponding to the client and the sid. There seems to be ne problem on this side.
    But everything is correctly setup regarding Ibases and components.
    What's more when trying to create a ZLFJ (duplicated from SLFJ) in CRMD_ORDER, there is no problem.
    Any suggestion where it could come from ?

    Hello Hervé ,
    could you please provide me with some more information?
    When exactly do you get the message? When trying to submit the job request? Or when clicking on the link "Create Job Request" in the workcenter?
    If you get the message when submitting, please provide more information on the entered System (IBase). Maybe a screenshot could help.
    Best regards,
    Jonny

  • EXPORT - IMPORT in BACKGROUND JOB

    Hello ABAP Gurus,
    There are two programs I am using.
    In 1st Program I am Exporting the Data to the ABAP Memory and then after that scheduling the second program in background from 1st Program through
    1 ) JOB_OPEN
    2 ) SUBMIT
    3 ) JOB_CLOSE
    Now I am trying to Import the data that is Exported in the second program which is scheduled in background.
    But I am not able to Import it.
    My question is that - Does EXPORT - IMPORT Statements works in such scenario when background job is scheduled.
    As it is working fine if, I only submits and does not put in the Background  JOB.
    Looking forward for the answer.
    Helpful answers will definately be awarded.
    Thanks in Advance
    Sudhanshu Garg

    Hi Sudhanshu,
    Export/import to memory uses ABAP memory which will not be accessible by the background job.
    No need of creating the structures in dictionary
    You can use the Table INDX for storing your data in the database.
    See the link below for an example.
    http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm

  • Trigger mail when backgroung job is cancel

    Hi,
    I want to trigger a mail to outlook when background job in sap gets cancel
    Regards
    Gopal

    Hi Gopal
    Have u read through [This|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/97d2e8b3-0b01-0010-b787-b8ce558a51c2] document?

  • Monitoring of File in FTP Server generated by background job in ECC system

    Hi,
    There is a background job in ECC system, which generates a file in FTP server. However the issue is that even if the background job is successfully executed, there are instances where the file is not generated in FTP server. Is there any way by which we can monitor such file in FTP Server?
    Regards
    Nishu Shah

    Hi,
    I guess this is not a solman question. Anyway, how do you perform the FTP?? custom code?
    Cheers,
    Diego.

  • Report with BDC not displaying success message when run in Background

    I am running a  BDC report in Background mode.The below statement  is not capturing the Success message when a document is posted.But when I am running the same in ForeGround mode it is capturing and is displayed in the output.Can anyone please help me in understanding why this is happening and how can I resolve this.
    CALL TRANSACTION 'MB1C' USING bdcdata MODE mode UPDATE 'S'
         MESSAGES INTO messtab.

    Hi Madhu,
    I think your BDC didnt generated any document when you run it in 'N' screen mode.
    Debug your program when you run it in background
    Goto Tcode :SM37
    Select the job ( march checkbox )
    ==> in command prompt enter 'JDBG'
    ==> Then you can start reexecting the job .
    You can check the sucess messages accordingly in debug mode
    Also add a read statement on messtab for msgtype = 'S'.
    Thanks
    Bhanu

  • DYNPRO_SEND_IN_BACKGROUND when submitting a background job, when creating a

    Hi.
    We create sales orders via EDI.   When certain sales orders are created, we execute user exists on the Sales Order save.  During the User Exit, we submit/create (job_open_adk function, the submit command, and the job_close_adk function) a background job. 
    The background, is created and executed successfully, but we get 2
    short dumps everytime.
    The short dump is:
    DYNPRO_SEND_IN_BACKGROUND
    The description is:
    Screen output without connection to user.
    The short dump is for the user WF-BATCH.
    I've used DEBUG and the shortdump occurs on the submit command.
    submit zsd
    to sap-spool
    destination 'null'
    immediately ''
    keep in spool 'X'
    without spool dynpro
    and return
    user l_user via job tbtcjob-jobname
    number tbtcjob-jobcount
    with p_vbeln = l_order
    with p_ebeln = l_po
    with p_uname = l_user.
    Nothing should be displayed on the screen.
    I used 'without spool dynpro' to prevent the 'Print Screen List' window
    from appearing.
    I've put this code into a TEST program. I ran the test program
    myself. (under my ID) The program run perfectly. No
    shortdump.
    Similar code is used in other programs and it works perfectly - no shortdumps.
    The short dump occurs when we use ALE/EDI to create a sales order.
    The short dump has the ID WF-BATCH on it.
    I'm guessing the problem is with the WF-BATCH ID. Are printer setting
    missing on a Work Flow ID?
    Any ideas why the 'without spool dynpro' parameter doesn't work for the
    WF-BATCH ID?
    I've tried searching OSS and I looked at the on-line help/documentation
    on Submit. I saw a recommentation to use the
    fuction 'GET_PRINT_PARAMETERS' to set all of the print parameters. I
    tried this, but still got the short dumps.
    Any suggestion on how I can run the Submit command and not get a short dump?
    thanks,
    Michelle

    Hi,
    Try this notes:
    0100915 RSBDCREO: System hangs or parameters not effective
    0377038 HR-CA-ALE: DYNPRO_SEND_IN_BACKGROUND for HR doc. d
    0105165 Dump "DYNPRO_SEND_IN_BACKGROUND" in prog.SAPMSSY0
    0169303 Warning messages displayed for settlement mass pro
    0428489 VL10: Dump 'DYNPRO_SEND_IN_BACKGROUND' with backgr
    [[http://forums.sdn.sap.com/thread.jspa?threadID=14875|http://forums.sdn.sap.com/thread.jspa?threadID=14875]]
    Regards
    HM

  • Background job status showing cacelled message number 564

    Hi Experts,
    We have a program wich will collect the purchase requisitions and releasses them.
    1) if u manually execute this report it will show the requisitions which have to be released in ALV .then u can select them and release
    2) if u run it in background, whenever it got the requisitions  job ended  with succussfully and finished , but if there are no requisitions our program will give warning message that no requisitions found , but after that job ststus is showing cancelled .
    now how to stop this cancelled message from it ?
    if do not show the warning message 'norequisitions found' then the job is successfully executed.
    plz guide me in this
    job log is like below :
                                                                                    Date       Time     Message text                                                                              Message class Message no. Message type                                                                               
    29.03.2011 03:18:27 Job started                                                                                00           516          S        
    29.03.2011 03:18:28 Step 001 started (program ZZ_REQU_DAILY_REPORT, variant &0000000000019, user ID KRISHNAV)      00           550          S        
    29.03.2011 03:18:35 No Requisitions found for release!!                                                            00           001          E        
    29.03.2011 03:18:35 Job cancelled after system exception ERROR_MESSAGE                                             00           564          A                                                                               
    Thanks,
    Vk

    Hello Vk,
    This is because 'W' messages behave as 'E' when used in report programs. Check the report DEMO_MESSAGES if you don't beleive me
    Anyway back to your question, as i've mentioned you can't use 'W' messages in report. You can:
    1. Write a log of your messages using traffic lights to indicate whether error, success or warning.
    2. My fav, write an application log & display it to the user.
    BR,
    Suhas

Maybe you are looking for

  • Need help in tuning a query

    Hi, I have the following query/report that takes hours to complete. Application version is 11.5.9 and database is on 9.2.0.6 {code} SELECT   c.inventory_location_id,             c.segment1          || '.'          || c.segment2          || '.'       

  • I can't use my photoshop because when I open it inmetely the sistem shut it down

    When I open photoshop inmediately the sistem shut it down tellling me that there was a problem and I have to close the program, what might be causing this problem?@

  • How can I check the color profile for the current document?

    I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked

  • RSS folders?

    I have several rss feeds in Mail and wanted to know if there was some way to lump same-topic feeds into folders (ie a sports folder for sport rss, tech folder, etc) I am not afraid to tinker with .plists or terminal.

  • I can't uninstall or repair Quicktime

    Hi, I have Quicktime (recent version)on my PC. De installation didn't go right. No messages what went wrong. No I try to uninstall. But I get about the same message. So now I am stuck. Ik can't uninstall, I can't repair and so I can't use iTunes for