RFBELJ00 - Executed in Background

Folks,
I have executed the program RFBELJ00 in  background , interestingly this program do not generate any spool. It gives output when ran in online mode.  I am in need of executing this program in background and generating the spool. Any suggestions ?
- Balaji

Max,
Where do you set this flag ?. I am executing this report in SAP 3.1 I, I do not see that option the report's selection criteria.
Regards,
Balaji

Similar Messages

  • How to extract the column width in ALv report if its executed in background

    I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extract coulmns in back ground.
    I have executed in background and checked the spool and  for some of the columns width is not sufficient to display comeplete data so please suggest how to extract the columns sizes if executed inj background for an ALV

    Hi Deepthi,
    you can try with the above mentioned suggestions ,if its worked its fine ,
    If not use Docking container instead of custom container, For ALV in back ground jobs, its suggest to use docking container instead of custom container , below you can find the declaration for docking container and code to use docking and custom container in your program for fore and back ground.
    or you can use docking container alone for both operations.
    Data : G_DOCK1 TYPE REF TO CL_GUI_DOCKING_CONTAINER,
    IF CCON IS INITIAL. (ccon is container name )
    *Check whether the program is run in batch or foreground
        IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    *Run in foreground
          CREATE OBJECT CCON
            EXPORTING
              CONTAINER_NAME = 'CON1'.
        CREATE OBJECT GRID1
            EXPORTING
              I_PARENT = parent_1.
    ELSE.
    *Run in background
          CREATE OBJECT GRID1
            EXPORTING
              I_PARENT = G_DOCK1.
        ENDIF.
      ENDIF.
    B&R,
    Saravana.S

  • Issue in Foreground Report executing as background

    I have developed a Report in ABAP which has a selection screen and 2 radiobuttons
    Foreground
    Background
    The report basically reads a TXT file from Desktop and calls a standard BAPI.
    In foreground, I have no issues i.e. I browse the call from desktop and call GUI_UPLOAD and so on
    However, in background, I am confused how to proceed??
    Please note: Report is still running in foreground mode i.e. i am browsing the file. Its just that i have selected background Radiobutton
    Can anyone tell me how to proceed i.e. to execute in background.
    Do I need to submit the same program via JOB_OPEN JOB_CLOSE in background and then exit??
    Please advice

    Hi Razdan,
    If want to schedule the background job through the program, then you can try method explained in below links. Here you might have to create a separate program to submit.
       https://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm
       http://scn.sap.com/thread/590077
      Another approach would be like below
    Add an additional field apart from the radio button, say “ip_file” in the selection screen. This you can show while selecting the radio button “background”
    Suppose if you have updated the file in app. Server(AL11 ) , in a location , say ( “home/myfile/test.txt” ) .
    Save a variant with the radio button “background” selected and input field ip_file value as   “home/myfile/test.txt”.
    Now from the SM36 you can schedule the background job to run the report with the same variant.
    Please note that , here you need to upload the file separately to app. Server using , tcode - CG3Z or any other FM. And in the program you can use open dataset to access the file in the app. Server.

  • Report is executing in background and need data(output) in excel format

    Report is executing in background and need data(output) to get downloaded in excel format in my PC from an internal table;;in any drive i.e. C: or D: .When executing in backround it prompt to user with which location excel file to be saved and the name of file.How to download in background in excel format?
    Edited by: PRASHANT BHATNAGAR on Aug 26, 2008 6:24 AM

    Hi
    Download a report to excel with format (border, color cell, etc)
    Try this program...it may help you to change the font ..etc.
    Code:
    REPORT ZSIRI NO STANDARD PAGE HEADING.
    this report demonstrates how to send some ABAP data to an
    EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    TABLES: SPFLI.
    DATA  H TYPE I.
    table of flights
    DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    read flights
      SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
    display header
      ULINE (61).
      WRITE: /     SY-VLINE NO-GAP,
              (3)  'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (4)  'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (8)  'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
      ULINE /(61).
    display flights
      LOOP AT IT_SPFLI.
      WRITE: / SY-VLINE NO-GAP,
               IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
      ENDLOOP.
      ULINE /(61).
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-007
           EXCEPTIONS
                OTHERS     = 1.
    start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
    PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-008
           EXCEPTIONS
                OTHERS     = 1.
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - start
    CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP  EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    tell user what is going on
      SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - end
    disconnect from Excel
         CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING  #1 = 'C:\SKV.XLS'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
    Regards
    Murali Papana

  • Submit a program to execute in background.

    Hi Everyone,
    Is there a way to submit a program to execute in background. So that the runtine is fast. Any help on this will be great.
    Thanks,
    Prabhu.

    Hi,
    Check this code -
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum
                sdlstrttm        = sy-uzeit
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    URL: http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
    Hope this code snippet helps you!

  • F.28 error while executing in background

    Hi All,
    F.28 -Reset Credit Limit, while executing in Background it is showing an error message Internal Error with Background job Scheduling. can any one helpme in this case what is that internal error.
    Regards
    Harsha

    Hi
    Credit Control Basics
    There are only three places where a credit check can occuru2014the sales order, the delivery,
    and at goods issue.
    The system executes the credit check on the sales order or delivery based on the
    configuration settings. If the credit check fails, the system then either stops the user from
    saving the document, or it allows the document to be saved but it blocks the document with
    a credit block.
    Documents blocked for credit must be released by an authorized person before they can
    be processed further. For example, a delivery for an order cannot be created if the order has
    a credit block on it.
    You can view documents blocked for credit by selecting Logistics | Sales and
    Distribution | Credit Management | Sales and Distribution Documents | All (transaction
    code VKM3). You can also use this transaction to release a blocked document.
    Once a document is released, you can continue processing it even though the credit
    limit check failed.
    Every time a user changes a sales document, the credit limit check is executed again.
    For example, if a document was released with a value of $10,000, and the value is changed to
    $11,000 and the customer is still over his limit, the document will be blocked for credit again.
    This is because the new value exceeds the released value.
    You can use program RVKRED08 to recheck all documents blocked for credit. For example,
    if a customer pays his account, you want to recheck all his documents. Some documents can
    now be released because of the payment received. It is a good idea to schedule a background
    job using this program so that blocked documents are checked on a regular basis. This will
    keep the blocked documents up to date with any changes to the account or to sales documents,
    such as a payment being made. If a large sales order that was holding up the credit limit is
    cancelled, other blocked documents can use the value that is freed up by the cancellation.
    Regards from Pakistan

  • Error executing in Background

    Hello people,
    I have a program that when running on line, the files are saved in a local Folder or in a Folder in the server  but when try to execute in Background saving in the same Folders, a error occurs.
    Anybody knows what can I do to resolve this problem, please ?
    tks
    regards
    Flavio Ferreira

    If you are not scheduling it in Backgroung you can use that FM .
    you cannot download to the frontend in a background job simply because the GUI isn't available. You will have to use OPEN DATASET and put the file on the Application server in the background and then use the transaction CG3Y in the foreground to download the file to the pc from the application server.
    Rhea.
    Edited by: rhea on Nov 27, 2008 3:31 PM

  • How to restrict user at selection screen while executing in background mode

    hi all,
    how to restrict user at selection screen while executing in background mode
    Regards
    Deepak

    Hi,
    We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
    so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
    Regards
    Sudheer

  • How to display pop up in foreground when report is executing in background

    Hi All,
    The requirement is:
    My report is executing in background and I have to display a pop-up to end user in foreground.
    Is there any method to do this.
    it is urgent,
    Reward points will be awarded to correct answers.
    Thanks,
    Vishal.

    Thanks frnds,
    ok can we go in this way......I need to display the pop up when the "program -> execute in background" button is clicked or F9 is pressed....just at that time....later the report can be executed in back ground.
    Is there a way to do so......just displaying a pop up when one entry in menu bar ic clicked?
    Vishal.

  • MMBE Execute in Background - Spool Request Missing Header Information

    Greetings,
    While reviewing differences between MMBE and MMBE_OLD in ECC 6.0 upgrade test environment it was discovered that when MMBE (RMMMBESTN) is executed in background the spool request does not display the material number, description, material type , UoM and Base UoM.  I created a message to SAP.
    Has anyone else had this issue?

    That you can execute transactions in background is just a standard functionality, which certainly makes sense for reports that have something to do, that run long, need a lot performance etc.
    But MMBE..........I really never had the  idea to run MMBE in background. to get the result online I just have to click the execute button, to run in background I habe to click the menu, click the run in background, click the run immediatly, click okay .....
    and then I would need to open the job to find the spool  etc etc.
    all for just the stock overview of one single material.
    I really would never had spend a thought that somebody would do this effort.
    Why do YOU need to do this?
    I am really curious what SAP answers you

  • MAXL SCRIPT TO EXECUTE IN BACKGROUND THE DATA LOAD

    Hi,
    I have problem with a MaxL script, I don´t know the command to execute a data load in the background, someone knows??? it would be very grateful if you can help me because now I have to load the data manually and then tick execute in background.
    Thanks for your help
    Regards,

    If the two processes are in no way dependent on each other, why not just use two separate MaxL scripts and run / schedule them separately?
    If you really need to launch multiple MaxL operations against different cubes to run in the background from a single script you can only do this with a shell / command script, not 'natively' in MaxL. If you're on Windows and using CMD, for example, see the 'START' command.
    --EDIT: Crossed over with Sunil, think he pretty much covers it!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Execute in background

    Hi!
    I have a program after 20-30 minutes die for Run Time Exceded.
    The program consists in a selection screen and then we call a function. I have thought to call this function in background.
    CALL FUNCTION 'ZBAPI_00001' IN BACKGROUND TASK
    But the program apparently finish automatically. The result of the program is an idoc but never is created. Is it normal? Maybe the program needs to take some hours to process although we can do other things in this seaseon because it is executing in background? Or probably the program is not working good?
    Thx for your comments and advices.
    Regards

    up message

  • Execute in background, selecting target server

    Hi Gurus,
    System with DB-server and one applicationserver. for TC ZDOP, we increased Extendmemory on applicationserver only.
    With F9 - execute in background, there is no choice  to select the targetserver - like in SM36 for jobscheduling.
    Is thare a global setting to enable this feature, or depends this from tranaction ?
    Thanks in advance for any help
    Kind regards Thomas

    Hi,
    You can do the following:
    1. Make sure that you are logged onto to the app server where you want to execute the job.
    or
    2. Create a background server group in SM61 and ask your developer to make the job to run on that particular server group
    Please refer foll thread for details:
    Ref: Force the execution in background in an specific server
    Regards,
    Varun

  • File not creating in AL11 wen executing in Background

    Hi,
    I have written code to upload some data to Appln server(AL11). When i execute in foreground, file is creating. But wen i execute in background, i couldnt find that file in the path which i have given.
    Since we cant debug the program in Background, i dont know whether OPEN DATASET returns SUBRC = 0 or not. I even checked with the Path thr AL11. The same path is accessible too..
    Plz help me out for this.
    Thanks,
    Ramesh

    Ramesh,
    You can debug a background job.
    go to sm37 and select the job and type /JDBG in the command prompt.
    search in sdn on how to debug a background job
    Thanks
    Bala Duvvuri

  • PDF document first page is blank when executing in background

    Hi,
    I am creating spool before displyaing report output by using GET_PRINT_PARAMETERS and NEW PAGE PRINT ON option and displaying report header and report final internal table. calling NEW PAGE PRINT OFF
    finally i am sending mail, by using SO_NEW_DOCUMENT_SEND_API1 function module in foreground executing and background execution.
    When we execute in foreground i am recieveing mail and pdf is perfect.
    when we  execute in background i am recieveing mail. But when i opend the pdf document in mail, PDF doucment first page is balnk and second page onwards i am able to see the report output
    why the PDF first page is blank when i execute the same report with same variant in back ground.
    Please help me in this issue.
    Thanks in advance
    Raju

    Hi Raju,
    <li> Call ABAP4_COMMIT_WORK function module after NEW-PAGE PRINT OFF command.
    NEW-PAGE PRINT OFF.
    CALL FUNCTION 'ABAP4_COMMIT_WORK'.
    Thanks
    Venkat.O

Maybe you are looking for

  • Black screen and slow movement with Gnome and ati driver

    Greetings, I use ati driver free.... and Gnome... and gnome  sometimes works very slow and shows black screens... other days works fine...ideas?... i try installed catalyst-utils, but gdm dont start. Greetings and thanks.

  • RFC destination and logigal destination.`

    If I am transfering the data uisng ALE, is  RFC destination and logical system name of receiveing system should be same  ?????? If the names of the both  are different what will be the effect plz tell me ????

  • Adobe MM Purchase Order - Output as FAX Message Type - Output Missing

    Hi All, Hope some one has some pointers on what to do here, I am at a bit of a loss. Situation. I have developed a Adobe Purchase order based on the std form MEDRUCK_PO supplied with the ECC6 R/3 system.  We have kept the same interface inputs, so no

  • Serializing PageFormat

    I would like my application to remember the page format selected in the PageDialog and use that setting as the default next time the application is executed. Sounds easy...but PageFormat is not serializable. Ok I could extract page size and image off

  • Photoshop elements 4 & scanner quit unexpectedly

    I have tried reinstalling both applications, but since today (previously seemed OK) both these applications quit when I try to open them. Please help! Scanner is new CanoScan LiDE 60