How to print result of transaction processing in background job?

Hi experts,
Could you give me advice how to resolve following task:
I need to print a list of sales orders (transaction VA05) in background job.
Are exist standard techniques for this? Or should I create new program (report) and create the job with printing of parameters?
Thanks for advance

Hi,
Define a background job with the program  name  & variant.
Pass the print specifications as well.
Best regards,
Prashant

Similar Messages

  • Error in handling Print Params In Parallel Processing of background jobs

    Hi Friends,
    My requirement is to optimize the performance of standard pgm RELEABL1 that takes a long time to complete when scheduled in background,and for that i have created a zpgm which will split the input data and run the jobs in parallel . I am using the submit statement and JOB_OPEN and JOB_CLOSE function modules to schedule the standard prg RELEABL1 in background with the input from my zpgm. The problem here is there is a push button " PRINT PARAMETERS" near the execute button on the selection screen of the standard pgm RELEABL1 in which the printer details have to be mentioned. Whenever i schedule the job in backgroung it throughs an error stating that " Define the Print Parameter First " . I tried my luck with all possible combinations but not able to handle this through my zpgm.....otherwise my pgm works fine. Can someone please guide me on how to handle this print parameters either through submit or what ever way possible.
    Thanks & Regards,
    Balaji.K

    Hi Balaji,
    We have the same performanced problem. 8 processes in parallel, still suffers from bad performance. How many subscribers are there on the system and how many processes do you use ?
    Best Regards,
    Ugur Uygan

  • How can i implement a Transaction Processing procedure in my web app ?

    Im planning to enhance my web app servlet.
    the web app is about Online Banking.
    since it is Online banking, there would be time where simultaneous user accessing their account. mean several connection is made on my db.
    I read some article about Transaction processing, so i think it is wise for me to
    implement on my web app but i not sure where to start and in what way can i integrate it with my web app.
    here are several thing i have in mind..
    making the admin able to monitor , or better if can coordinate the transaction.determine the network traffic on my web app. etc.
    any advise or wise opinion please ..thank you for time reading too.

    Im planning to enhance my web app servlet.
    the web app is about Online Banking.
    since it is Online banking, there would be time where
    simultaneous user accessing their account. mean
    several connection is made on my db.
    I read some article about Transaction processing, so
    i think it is wise for me to
    implement on my web app but i not sure where to start
    and in what way can i integrate it with my web app.
    here are several thing i have in mind..
    making the admin able to monitor , or better if can
    coordinate the transaction.determine the network
    traffic on my web app. etc.
    any advise or wise opinion please ..thank you for
    time reading too.Read about ACID properties, isolation, and locking mechanisms. It's a database issue, not a network traffic problem.
    Please tell me that this is just a homework assignment. If not, please tell me the name of the bank that employs you so I can be sure to never have dealings with them.
    %

  • How to display more than 255 chars in background job with ALV Grid ????

    Hi All,
    I am using ALV grid with OO.
    I have used call screen for ALV grid display. I have to display more than 255 characters in width. While running it, I can see the list perfectly.
    But in background mode, the list is truncated after 255 chars.
    Can anybody help how to send complete list(width more than 255 chars) to spool.
    Thanks and Regards,
    Neha

    Hi SAP fan,
    <b>YES you can run the ALV report in background mode.
    To run the report in background do F9 instead of F8, then give immediate and save.
    Now goto Sm35 goto job overview and view the job listed
    Choose the job and press the spool button. It will show the list created on the next page. When u clcik the list u can see the ALV output.
    To see this the job should be in the finished status.
    How to define Periodic Jobs
    1.Execute transaction SM36
    2.Define Job name, Job class, Target server
    3.Click on 'START CONDITION' button
    4.Click on 'Date/Time' button
    5.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.
    6.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
    7.Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    8.Click on 'Job overview' button or execute SM37 transaction.
    9.Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    10.You will now see all your scheduled JOBS.
    <b>Case: 2</b>
    You can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
                    RECEIVING e_offline = off.
        IF off IS INITIAL.
          CREATE OBJECT g_custom_container
                 EXPORTING container_name = g_container.
        ENDIF.
    <b>Case: 3</b>
    if you are using OO ALV.
    Just before creating the custom container check for the following condition.
    Batch or Web Reporting
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_custcontainer
    EXPORTING
    container_name = lc_custcontrol
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    ENDIF.
    You can see the output in Spool in transaction SP01.</b>
    Good Luck and thanks
    AK

  • How to transfer a  bdc program online to background   job ?

    Hi,
       I have created a  program using BDC for inserting items into a specific sales order, which woks well inline.
       Now i want to transfer it to background  job,Could u
    give me steps in detail?  thanks in advance.

    I understand that with your program you can create BDC seesion ( and not use Call Transaction ).
    I am not sure if you want your program to run in batch or you want the session created by your program to run in batch. I am giving solution for both.
    To schedule the processing of session in backgroud you can use report RSBDCSUB.
    You can do in two ways -
    Ist Method
    Define a batch job in SM36 with two steps -
    First Step - Your Custom Program ( with a variant )
    Second Step - RSBDCSUB ( With a variant having
                             the session name ).
    2nd Method
    In your program after BDC_CLOSE_GROUP add a line.
    SUBMIT RSBDCSUB WITH MAPPE EQ <SESSION_NAME>.
    Scedule you program as a batch job in SM36 ( Single Step ). ( You can also test the program by running in online mode . After your programs executes , go and see in SM35. You will see that your session created in being processed or has been processed in background).
    In Both ways the session created by BDC_OPEN_GROUP will be processed in background,

  • How to check the ALV output for the background job

    Hi Guru,
    We are having a cutomized report which will display the result like a ALV report.
    We configured it as an background job, after the completion of the background job, it will send the result to the SPOOL, and we can use SP02 to check the output,
    But it is not easy for user to directly check the result easily, is there an method we can save it as an spreadsheet and send the output to a specific location or mailbox and then user can check it easily
    thanks,

    In SM37 ,select the Job > Spool > Select Spool No > Display Contents > Here it will show you the Output of the Report.Now select Ctrl +Shift + F12 , it will ask you to save the Spread sheet in specified location.
    Best Regards,
    Ankur

  • How to print the page number in a background processing program

    HI All,
    I have requirement where i need to print the page number in x of y format and the program is getting executed in background and  csv file will be downloaded at application server.
        i tried using sy-pagno but it is not working.

    csv file will be downloaded at application server --> How u are downloading this ? have u coded in ur program ? in tht case u will not get.
    Regards
    Prabhu

  • No result  when I submit in background job a Z transaction

    Hi,
    I design a screen with the screen painters for my Z report instead of using SELECTION-SCREEN command to build my screen of selection. In the PAI process, I launch the same report in backgound with JOB_OPEN,SUBMIT, JOB_CLOSE and nothing happens. I go to SM50 and no job is found and SM37 confirm me thatt the job has been launch and terminate without error.
    My report, when the background checkbox is checked, launch it-self in background to insert rows in 2 Z tables. Theses 2 tasks take time and are not possible to process in foreground and the user can't wait after the result. That is why I Submit my report in background.
    I made it in another program with a selection screen built with SELECTION-SCREEN command and I never had this problem.
    It is possible to do a selection screen with the screenpainters and launchable in background or it is only possible with SELECTION-SCREEN command.

    JOB_OPEN,SUBMIT, JOB_CLOSE and nothing happens. I go
    to SM50 and no job is found and SM37 confirm me thatt
    the job has been launch and terminate without error.
    In SM50 you can see the jobs only while they are running. Since there is an entry in SM37, it means that the job has been initiated, so something did happen. Check the job log for the details (I strongly advise to add some messages in your program to track the progress).
    You might also want to take a look at the FM SUBST_START_REPORT_IN_BATCH. Here is a code example that I've just written recently to force the report execution in the background (a message is displayed to the user but the report runs in a backrgound job):
    PARAMETERS: p_vkorg TYPE tvko-vkorg OBLIGATORY MEMORY ID vko.
    DATA: rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    START-OF-SELECTION.
    IF sy-batch IS INITIAL.
      wa_rspar-selname = 'P_VKORG'.
      wa_rspar-kind = 'P'.
      wa_rspar-low  = p_vkorg.
      APPEND wa_rspar TO rspar.
      CALL FUNCTION 'SUBST_START_REPORT_IN_BATCH'
        EXPORTING
          iv_repname                          = sy-repid
        TABLES
          tt_reportparam                      = rspar
       EXCEPTIONS
         variant_exist_check_failed          = 1
         variant_update_failed               = 2
         variant_update_not_authorized       = 3
         variant_update_no_report            = 4
         variant_update_no_variant           = 5
         variant_update_variant_locked       = 6
         variant_insert_failed               = 7
         variant_insert_not_authorized       = 8
         variant_insert_no_report            = 9
         variant_insert_variant_exists       = 10
         variant_insert_variant_locked       = 11
         variant_write_failed                = 12
         no_batch_service                    = 13
         no_server_list                      = 14
         batch_scheduling_failed             = 15
         OTHERS                              = 16
      IF sy-subrc = 0.
        MESSAGE ‘Report started in background’ TYPE ‘I’.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ELSE.
    <do stuff here>
    ENDIF.
    SUBST_START_REPORT_IN_BATCH actually calls JOB_OPEN, JOB_CLOSE but I just find it easier to use one FM instead of 2-3.

  • Process Chain background jobs

    Hi All,
    we got a typical issue in Process Chain,  every day process chain triggers in the midnight, and yesterday morning It got failed while activating DSO for HR data,  and we observed that the jobs are running in the background for longer time (there are 3 jobs related to HR still running since around 24 hours). In order to run the following processes which are no way related to HR, we made turning red to Finish (to skip this process - using Function module RSPC_PROCESS_FINISH) to make sure other reports work perfectly. yesterday PC ran successful expect HR data.
    Today morning we observed that the jobs are still running and also PC gets stopped in deleting contents of HR (after this we are loading HR DSO) . the process neither failed nor success. we checked in Sm37 and observed that job related to Delete content of HR data is also still running and in active status.
    it is not allowing us to skip the process as we did for the HR DSO. So we thought to kill the job and Killed the JOB of delete content of HR data, and tried refreshing in Process Chain. But the variant is empty now and process stopped at before the Delete contents (which are another deleting cubes) now the process is at delete contents of CUbe (which is before step to the delete HR DSO), if we right click and check the options it is showing display variant and display messages.
    We repeated the Process chain again it stopped at delete content HR DSO(back ground job running again and running longer time), the process is at delete contents DSO HR, (showing the box half filled).
    how to skip this delete contents of HR data DSO, because we don't want to stop all the following processes(which are not related to HR) and how to make my PC ran successful (expect HR) to make my report working perfectly expect HR reports
    Thanks in advance,
    Teena
    Edited by: Teenab on Feb 10, 2011 10:42 AM
    Edited by: Teenab on Feb 10, 2011 10:43 AM
    Edited by: Teenab on Feb 10, 2011 10:45 AM
    Edited by: Teenab on Feb 10, 2011 10:50 AM

    Thank you for the reply,
    Yes we can create PC for HR seperately.
    Presently the thing is yesterday we din't loaded the HR data (as we skipped the process by forcefully finished the process using FM -RSPC_PROCESS_FINISH) , As the jobs are still running morethan 26 hours. Now DSO HR doesn't have any data, but the process has been stopped at the deleting the content of HR data (our assumption since the HR loading jobs running longertime causing this, job delete content HR is also active and running (while loading it is trying to delete it, so it might be locked)
    But we need to skip the process of HR delete content now, inorder to run other process successful, (we can create other HR PC  later) but can you suggest the solution for now.
    Thank you,
    Teena
    Edited by: Teenab on Feb 10, 2011 11:03 AM

  • How to print the receipt details both on the console and on receipt

    Hi All
    In ORPOS, Can anybody know how to print the sale transaction details on receipt and console as well
    After configuring with printer we can print only on receipt, if we want both on receipt and console as well
    Appreciate your suggestions and ideas
    Regards
    Ramakrishna

    Hi Rama
    This would not be any configuration change
    You can print receipt in both pinter and console by adding a sysout just before string is sent for printing
    Regards
    Saurabh
    [email protected]

  • Transaction (Process ID 112) was deadlocked on lock resources

    i got a error when i run the ssis,how to fix it.
    Transaction (Process ID 112) was deadlocked on lock resources with another pr
                                   ocess and has been chosen as the deadlock victim

    i got a error when i run the ssis,how to fix it.
    Transaction (Process ID 112) was deadlocked on lock resources with another pr
                                   ocess and has been chosen as the deadlock victim
    Moderators please  move this to Databse engine forum.Can you see if this ooutput gives you deadlock graph.If you are on SQL server 2008 or later
    SELECT
    xed.value('@timestamp', 'datetime2(3)') as CreationDate,
    xed.query('.') AS XEvent
    FROM
    SELECT CAST([target_data] AS XML) AS TargetData
    FROM sys.dm_xe_session_targets AS st
    INNER JOIN sys.dm_xe_sessions AS s
    ON s.address = st.event_session_address
    WHERE s.name = N'system_health'
    AND st.target_name = N'ring_buffer'
    ) AS Data
    CROSS APPLY TargetData.nodes('RingBufferTarget/event[@name="xml_deadlock_report"]') AS XEventData (xed)
    ORDER BY CreationDate DESC
    --Got from Erland
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • How to find Spool number for a 2 steps background job.

    Hi All,
    How to find spool number (and also the background job name ) for a 2 steps background job.
    in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
    Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
    Thanks,
    Shiva.

    Which one creates the spool? (first one I guess)
    What kind of spool? (WRITE, sapscript, smartform, pdf...)
    Do you use special statements like NEW-PAGE, or other things?
    Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...)

  • How to Execute WebDynpro Applications as Background Job ?

    Hi Gurus,
    We have developed a lot of WDJ applications with component reusage; ie,
    quite a lot of business logic are wrapped in WDJ Components which are
    re-used by other WD UIs.
    Now we'd like to automate some of the processes with background jobs
    and faced with a few problems :
    #1. How can we write a background WD application which can be
    triggered by external mechanism and without presenting any UI?
    #2. If we write the background program in a Java DC, how can we
    invoke existing methods in WD components ?
    Anyone got a clue ??
    Ying-Jie Chen

    Hello Amit,
    > Well I can think of a workaround in this case.If you are aware
    > of the suspend-resume functionality of the WD application then
    > its possible to run the WD application virtually in background.
    [ stuffs deleted ...]
    It sounds like a possible alternative to our requirement, I'll
    spend some time to investigate on the WD suspend-resume mechanism !
    > Also let me know why are you preffering the WD if you dont
    > require its UI
    Our application requires the process to be performed with UI interaction;
    with some instances it should be run as a background job. Either case involves
    RFC calls to backend SAP R/3 and it's easy for RFC access with WD
    Component.  Though it's also possible to use CAF application service for
    RFC access; due to some technical constrains, we did not use CAF
    framework. Therefore it ends up where we are now ...
    Thanks for your tip!
    Ying-Jie Chen

  • Need to know how to find out the Variant associated with a background job

    Hello,
    Plz help me in finding out how to find the variant associated with a background job. I need to know which variant does the program picks up when it runs the scheduled background job. There are so many variants that exist. How do I figure out which one is being picked up by the program. When I go and see into the job that are already finished it shows the parameter as "&00000000645354" which I do not understand what it corresponds to. I was expecting a variant name instead of this number in the parameter field. Is there a way I can find out the name of teh variant the program is using automatically in the background job ??
    Thanks in anticipation

    Yes it is possible which is variant, input fields are choosen
    - go to SM37 and locate the background job which was processed using proper selection criteria
    - select the Job and click on 'Step' button availabe in the screen
    - the new screen is 'step list overview'. now, place the cursor on selected variant avaialble on the screen, then from Menu >> Goto>> variant
    which gives the list of input values.
    hope this helps
    Thanks
    JK

  • Background Job not Printing TOs immediately

    Hello experts,
    I am having an issue with printing Transfer Orders created by background job, the output requests are sent to the output controller with status '-' . It works when I manually create the TOs or if I run the RLAUTA10 program with my userID in SE38 .
    I have set the background job user default print parameters in SU3 to print immediately.
    Also in the Job step, I have set up the print parameters  to 'print immediately'
    I have assigned printer for sorce storage type & set the indicator to use the source sto type in OMLV, The printer seems to be determined correctly, I've checked the Spool request name & printer in the spool controller, only issue seems to be the print not being triggered immediately.
    Not sure, if there is some other setting that I have to make to be able to print the TOs created by the background job immediately.
    Any help would be appreciated.
    Thanks
    Kris T

    whether the printer which you assigned is configured in SAP (network printer)? or LOCL?
    printing may not happen if LOCL(background job)
    Thanks

Maybe you are looking for