Submit batch job and return control to the user

Hi
Have a situation where we need to submit a batch report and then return control to the user of the application before the report is finished. What is the best way to do this? The old application is written using Java and the application is using threads to do this. However, the application is being re-written in App Ex.
Any ideas would be appreciated.
Thanks

You need to use package APEX_PLSQL_JOB.
You can use the APEX_PLSQL_JOB package to run PL/SQL code in the background of
your application. This is an effective approach for managing long running operations
that do not need to complete for a user to continue working with your application.
Just look for it in the help.

Similar Messages

  • Find an iphone 5 in the club and i want you to help me find the owner and return it to the user.  its been erased and no sim card in it .when i try to configure , it says i should enter an apple  and a password.

    find an iphone 5 in the club and i want you to help me find the owner and return it to the user.
    its been erased and no sim card in it .when i try to configure , it says i should enter an apple
    and a password.

    Since it was erased and no sim card the owner probably got rid of it of some reason.

  • Submir Report "RSNAST00" and passing parametrs to the selection screen

    Hello ABAP,
    I have to code a Report/TA which gathers some info and then calls RSNAST00.
    The info gathering part is done.
    The info gathered shall be transferred to the report RSNAST00 or to it´s selection screen, tho the selection screen should not be visible. And then RSNAST00 shall do it´s normal job.
    Any hints how i can pass those parameters and make that selection screen not appear?

    Hi florian,
    1. We have to use the comand SUBMIT with the program name and some extensions.
       (please see F1 help on it)
    2. This will call the required program.
    3. We can also pass the required values using WITH Var1 = Val1
    4. we can use the extension AND RETURN so that the selection screen of RSNAST00 does not appear on screen.
    regards,
    amit m.

  • Difference between batch job and Background Job

    Hi Forum,
    Can anyone distinguish between batch job and background job for me please ?
    SK

    Hi,
    Batch Job:
    A batch job is a process that runs in the background, often deferred and unattended, to process data in groups (batch) rather than by individual transactions (e.g. a monthly phone bill rather than a bill for each individual phone call). A batch job executes a sequence of programs and technical instructions that are stored in a command file. Progress and error messages are output to a log file allowing users to determine, at any time, if the batch job completed successfully or identify the cause of the problem. Because batch jobs run in the background they are less visible to the end user.
    In a business-computing context, batch job scheduling implies the automatic execution of background tasks (batch jobs) at pre-determined points in time (e.g. every day at 8pm, midday on Wednesday).
    3 types of batch job scheduling can be distinguished: native, basic and advanced batch job scheduling.
    Most operating systems and some business solutions software come equipped with native batch job scheduling tools that provide a limited service (e.g. Windows Scheduled Tasks, UNIX crontab, SAP CCMS) locally to each installation. However, business processes may span multiple platforms, applications, countries and companies. Their complexity may require much more functional power as provided by basic batch job scheduling including national and regional variations in the working calendar, sequence variations according to the day of the month, triggering of jobs by the successful completion of preceding jobs, elimination of gaps and reduced batch windows. Major benefits of basic batch job scheduling are enhanced productivity, operations reliability and cost-reduction. For e-business applications that require real-time processing, the distance between interactive individual processing and batch processing tends to decrease. Advanced batch job scheduling can handle these advanced requirements: event-driven scheduling for a real-time synchronization with interactive processing, just-in-time scheduling to run operations as soon as possible, cross-platform and cross application services for the entire IT landscape, real-time overall monitoring to track background operations for all applications on all servers.
    The standard benefits of batch job scheduling are drastically amplified when job schedulers can handle the end-to-end automation and monitoring requirements for all background operations.
    To schedule a back ground job follow the below steps:
    1. Use Transaction SM36.
    2. Assign a job name.
    3. Set the job’s priority, or “Job Class”:
    High --- Class A
    Medium --- Class B
    Low ---Class C
    4. Here you can specify,when the job is to start by choosing Start Condition. If you want the job to repeat, or be periodic, check the box at the bottom.
    Else click on the immediate and save this.
    5. Now,define the job’s steps by choosing Step.
    Here you need to give the ABAP program that has been used and the name of the variant thats being used.
    6. Save the fully defined job to submit it to the background processing system.(You need to click save button on the main screen i.e SM36)
    7. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    8. Release the job so that it can run.
    The job, even those scheduled for immediate processing, can not run without first being released.So,do remember to release.
    Hope this helps you.
    Regards,
    Rakesh

  • I downloaded Macfee security and parental control.  The settings have gone back to basic settings but if I try to customise the toolbar by add the "home" icon or adding "contact" to bookmarks until I close and when I open they are gone. Any ideas

    I downloaded Macfee security and parental control.  The settings have gone back to basic settings but if I try to customise the toolbar by add the "home" icon or adding "contact" to bookmarks until I close and when I open they are gone. Any ideas

    Make that four.
    If you have any commercially advertised/available antivirus software installed on your Mac, completely uninstall this per the instructions on the AV developer's website.
    Antivirus software can slow down the normal operation of OS X and can negatively affect OS X performance and operation.
    Do you have apps like MacKeeper or any other maintenance apps like CleanMyMac 1 or 2, TuneUpMyMac or anything like these apps, installed on your Mac? These types of apps, while they appear to be helpful, can do too good a job of data "cleanup" causing the potential to do serious data corruption or data deletion and render a perfectly running OS completely dead and useless leaving you with a frozen, non-functional Mac.
    Plus, these type of apps aren't really necessary. They really aren't.
    There are manual methods to clear off unnecessary data off of your Mac that are safer and you have complete control over your Mac and not just leave a piece of auto cleaning software in charge of clearing off data off of your Mac.
    Their potential of causing OS X issues outweighs the implied good and benefits these types of hard drive or memory "cleaning" apps are written to do.
    Plus, the software companies that write these apps make it hard to easily uninstall these apps if something DOES go wrong and these apps work in a way where you have no recovery or revert function to return your Mac back to its former, working state in the event something does go wrong.
    It is best to never, EVER download and install these types of apps.
    The risk to your system and data is too great a risk!
    Search the web to learn how to correctly and properly uninstall these kinds of apps.
    They all uninstall differently.

  • Transaction CJI3 AND  - batch job and output in excel format

    We are trying to schedule a batch job and would like to have the output in an excel file.  Is there a way to enhance CJI3 and FMEDDW to have the output in a excel file.  I've looked at the Layout for creating the disvariant and I know you can have the output in excel format in the foreground, but I'm looking to put an excel file on the SAP DIRECTORY.
    Has anyone done this?
    Thank you.
    Linda

    Talking about Enhancement Options, I believe you can achieve it using Enhancement Implementation. There must be one towards the end of the program just before the ALV is displayed. You can create an implementation of the implicit enhacement spot and output the file to a location maintained in some VAR (to keep the output location dynamic as we don't have it on the select screen).
    My reply is not to the point but I hope you find a way using enhancement spots.
    Should you need any help with enhancement implementation, following blog is good enough:
    Blog - [Enhancement Framework|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID1759109750DB10206591421434314571End?blog=/pub/wlg/3595]
    or you can ask back here.
    regards,
    Aabhas
    Edited by: Aabhas K Vishnoi on Sep 24, 2009 10:40 AM

  • How to submit a report and return a table?

    Sumbit RVKRED01 and return .
    then how to get table value from report RVKRED01 ???

    Follow the below example:
    SUBMIT rashsd14
                          WITH vbeln IN l_rsdsselopt
                          WITH dbasar = c_x
                          EXPORTING LIST TO MEMORY AND RETURN.
    *Getting the list from memory
                          REFRESH t_tab1.
                          CALL FUNCTION 'LIST_FROM_MEMORY'
                            TABLES
                              listobject = t_tab1
                            EXCEPTIONS
                              not_found  = 1.
                          IF sy-subrc <> 0.
                          ENDIF.
    *Converting to ASCII
                          REFRESH t_tab2.
                          CALL FUNCTION 'LIST_TO_ASCI'
                            TABLES
                              listasci           = t_tab2
                              listobject         = t_tab1
                            EXCEPTIONS
                              empty_list         = 1
                              list_index_invalid = 2.
                          IF sy-subrc <> 0.
                            WRITE: / 'LIST_TO_ASCI error'(098).
                          ENDIF.
                          IF t_tab2 IS NOT INITIAL.
                            DELETE t_tab2 INDEX 1.
                            DELETE t_tab2 INDEX 1.
                            DELETE t_tab2 INDEX 1.
                            DESCRIBE TABLE t_tab2 LINES g_tabix.
                            DELETE t_tab2 INDEX g_tabix.
                          ENDIF.
                          REFRESH t_vbka1.
                          IF t_tab2 IS NOT INITIAL.
                            LOOP AT t_tab2 INTO wa_tab2.
                              CLEAR wa_vbka-vbeln.
                              REPLACE ALL OCCURRENCES OF '|' IN wa_tab2-vbeln WITH space.
                              CONDENSE wa_tab2-vbeln.
                              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                EXPORTING
                                  input  = wa_tab2-vbeln
                                IMPORTING
                                  output = wa_vbka-vbeln.
                             wa_vbka-vbeln = wa_tab2-vbeln.
                              APPEND wa_vbka TO t_vbka1.
                            ENDLOOP.
                            SORT t_vbka1 BY vbeln.
                          ENDIF.

  • CIF Batch jobs and LUW

    Hi Experts,
    Can anyone tell me about CIF Batch jobs and LUW please. Explain these two in detail whether they are the same or any difference and any relationship between both.
    Thanks in advance
    Suvecha

    Hi
    LUW stands for Logical Unit of work.
    Its a way of binding data together(multiple CIF queues under a single entity)
    It is useful to maintain the atomicity of data.
    For ex :- Say u have 5 materials under a single TLB order and u have sent that order to R3 for recieving number.If any of those materials is having master data which doesn't satisfy the filter criteria for Integration Model then the whole LUW will be blocked.
    Signifies the entire data set will be passed on as a single LUW.
    For CIF batch Jobs could you please explain what exactly you want to know.
    Thanks
    Amulya

  • I keep getting an intermittent error on web pages where a blue box with a question mark appears instead of pictures.  For example Facebook and Zappos would load normally on one visit, but if I visit other websites and return I get the blue box.

    I keep getting an intermittent error on web pages where a blue box with a question mark appears instead of pictures.  For example Facebook and Zappos would load normally on one visit, but if I visit other websites and return I get the blue box instead of pictures. If I restart the problem will go away temporarly. However, normally returnes in time.

    HI,
    From the Safari Menu Bar click Safari/Preferences then select the Appearance tab. Tick the box next to: Display images when the page opens.
    If that box is already ticked, from the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset. Relaunch Safari. If you still have problems loading images, go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    Make sure Safari is not running in Rosetta. Right or control click the Safari icon in your Applications folder then click Get Info. In the Get Info window click the black disclosure triangle so it faces down. Where you see Open using Rosetta... make sure that is NOT selected.
    If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If it's a successful launch, then that .plist file needs to be moved to the Trash.
    Carolyn

  • Batch job and background job

    Hi
    what is the difference between a batch job and backgroun job ??
    thanks
    kumar

    hi kumar,
    As far as I know
    Batch job are the jobs created with sessions. You can process those sessions in SM35. These are not direct update methods.
    Where as the background jobs are the jobs running in the background with out user interaction. Once you schedule the job for the background job it will run with out user interaction according to the given schedule.
    You can run the batch jobs also in background.

  • Difference between extraction as a batch job and BADI

    Hello
    Please can somoene explain me what does this mean:
    The extractor is based on the running of a BADI when tickets are saved rather than extraction as a batch job
    thanks

    Hi Tom,
    Batch Job and BAdi's are two different things but their purpose is somewhat similar i.e. background processing.
    BAdi's are SAP enhancmenents where in you can attach your own code to SAP code which is getting executed so that along with std code to ger our job is done.
    Background jobs are scheduled to run in system periodically. Here we can code like it will check for certain things and then if required it will execute some code.
    Thanks and Regards,
    Vaibhav Pendse

  • PL/SQL batch jobs and error reports handling

    Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
    I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mirp:
    Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
    I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
    <HR></BLOCKQUOTE>
    Just a thought
    If You use utl_file, You can write all opeations with files in a separate package with public variables of file handles and so on. Not necessary to pass all variables to each procedure and function

  • How can I have a canvas and external controls at the same time?

    Typically all the space of an applet is used for 2D or 3D; that is, the applet provides the canvas. I am trying to develop an applet where I only want to use part of the applet space for 3D, and then, outside that space (but still within the applet) I would like to add some controls (e.g. buttons or text fields) to provide some interaction. In other words, I want to have an applet that contains something like a frame for 3D, and some controls outside the frame.
    It may be quite easy, but I am very new to applets. Can anyone kindly give me some suggestions? Any help is highly appreciated!
    Regards,
    Hua

    I got it figured out. Thanks anyway!

  • Does OS installed through boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?

    I am planning to buy new PC for my faculty needs and this time I am thinking to buy Apple laptop like Mac book Pro 13" or so ( I owe already IPhone and Ipad 2)
    To make final decision I need few information . These are:
    1. May I use Boot Camp or similar utility software to install Windows 7 OS next to OS X Lion, or use some kind of virtual box software to create virtual machines with diverse guest OS in them like Windows , Linux etc.?
    2. Does OS installed through Boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?
    3. May I use the same disk partitions to access to the files regardless if I am using Windows 7 or OS X Lion operating system?
    4. Is there full compatibility between Microsoft Office under OS X Lion and Windows 7 M. Office?
    5. What is general user experience with OS X Lion operating system comparing to Windows 7?
    Thanks for  sharing your experience with me.
    Adnan S

    adnans wrote:
    I am planning to buy new PC for my faculty needs and this time I am thinking to buy Apple laptop like Mac book Pro 13" or so ( I owe already IPhone and Ipad 2)
    To make final decision I need few information . These are:
    1. May I use Boot Camp or similar utility software to install Windows 7 OS next to OS X Lion, or use some kind of virtual box software to create virtual machines with diverse guest OS in them like Windows , Linux etc.?
    2. Does OS installed through Boot camp or in virtual machine has access and full control of the peripherals like native OS X Lion?
    3. May I use the same disk partitions to access to the files regardless if I am using Windows 7 or OS X Lion operating system?
    4. Is there full compatibility between Microsoft Office under OS X Lion and Windows 7 M. Office?
    5. What is general user experience with OS X Lion operating system comparing to Windows 7?
    Thanks for  sharing your experience with me.
    Adnan S
    1. Yes. You can install Windows 7 natively using Boot Camp Assistant or you can install Windows 7 in a virtual machine using Parallels, Fusion, or VirtualBox
    2. If installed using Boot Camp Assistant Windows 7 uses all your computer's resources just as OSx does. If installed using a VM Windows 7 will share the computer's resources with OSx.
    3. A Boot Camp partition is separate from the OSx partition. The VMs allow sharing of files across partitions since both OS are running at the same time.
    4. No, not 100%.
    5. Too broad a question. Be specific about what feature you are asking about or search the Internet for comparisons. I use both and find they both work well.

  • In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    The application auto-saves your input when you close the document.  If you left the document, as you state, the notes/comments should have been saved and should have been visible the next time you opened the document with the Mobile Reader (note that if you are opening the document with another app such as Apple's built in PDF Viewer, things like notes/comments may not be visible).  Also note that if you are doing an Open In... from another app (like Dropbox), the version of the document in Dropbox does not update; only the version of the document in the Mobile Reader is updated.
    Would it be possible to send a video of the problem you are encountering to [email protected] so that we can try to help?

Maybe you are looking for