Execute CL_GUI_ALV_GRID in background

Hi. I am using method CL_GUI_ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY  to display an ALV report. I have put this method in the PBO of a screen and first create a container from a custom container on the screen.
This works fine in the foreground, but in the background I am getting a dump when creating the container, saying that the "GUI can not be reached".
Is there any way of getting this to work in the background?
Thanks a lot for your help,
Dave.

David,
Check IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL. Then create the container
This will convert the grid to a list in the background.
Example
CLASS-DATA list TYPE REF TO cl_gui_alv_grid.
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
ENDIF.

Similar Messages

  • Front-end functions cannot be executed in the background in SM37

    Hi ,
    I have developed a BDC program for Tcode HRUSER . The program is working fine in Frontend but when Executed in Background through SM37 gives a error -:
    "Front-end functions cannot be executed in the background".
    I am not using any function like GUI_DOWNLOAD or anything like that .
    Thanks
    Nikhil Arya.

    Hi ,
    No , the program is not taking any inputs from the user .
    when i am executing the program in background mode it is just showing the messages at the end which i am writing in the program for eg:
    "creating a user for employee 2306328".
    So , only the list of messages comes at the end .
    Thanks
    Nikhil Arya.

  • Restrict 'Executing report in background' from selection screen

    I want user to not to select option for executing report in background from Selection Screen of the program.
    i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
    Thanks,
    Falguni

    Hi Falguni,
    Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
    AT SELECTION-SCREEN
    CASE SY-UCOMM.
    WHEN 'SJOB'.
    MESSAGE E000 WITH 'You cannot schedule background job'.
    ENDCASE.
    Thanks & Regards,
    Faheem.

  • Execute listcube in background - where is the file stored on app server

    Hi,
    I want to execute listcube in background.
    to execute in background, the only output option available is Store in file (appl server).
    My question is where is this file stored.
    there is no information in the job log nor is there any spool.
    Also, can I determine myself where is this output file written.

    I have a couple of questions that could lead to an answer to your question...
    Does your BW environment have one or more application servers, in addition to the Database Central Instance (DBCI)? If so, do you use logon groups for SAP Logon so that the logon loads are balanced?
    I'm asking these questions because if you have a multiple application server environment and logon balancing, you may not be logging onto the same server every time that you're executing LISTCUBE and it will save to the directory path of the server you're logged onto.

  • Execute report in background

    hi
    we have one requirement for execute report in background
    we want to run the report ME5A for a large date range and at plant level.
    Due to this, transaction data selected is large and so reportis taking very long time when executed in foreground.
    so requirement is
    execute report in background (i know possible in SAP)
    download the report output on desktop automatically
    can you pl suggest how to do this without customisation
    regards
    sara

    Hi Sara,
    Go to ME5A then enter the required field then go to Programme and then select the option execute in background

  • How to use CL_GUI_ALV_GRID in background run

    Hi expert,
    is possible to use CL_GUI_ALV_GRID in background run?
    Usually I do a call screen and I put the set_table_for_first_display method in the PBO.
    How I can use the ALV GRID in a background run?
    Moderator message: please search for information and try yourself before asking.
    Edited by: Thomas Zloch on Jul 11, 2011 10:17 AM

    Hi,
    Check out standard examples in SAP by passing BCALV* & pressing F4 in SE38.
    Regards,
    Amit
    Reward all helpful answers.

  • Issue with How Do I Run an Executable in the Background ?

    Hi,
    I am trying to run a LabVIEw executable in the background, but none of the methods described in the discussion forum and on ni.com seems to be working. I am using LV 2011 on a Win 7 64-bit machine in case this matters.
    I tried the method described in "How Do I Run an Executable in the Background as a Start-Up Application?" (http://digital.ni.com/public.nsf/websearch/4A8B626​B55B96C248625796000569FA9?opendocument&Submitted&&​... but I still see a fragment of a window at the bottom near the start-button (Exhibit 1). Exhibit 2 shows that it only consists of the title bar. (I have customized the window appearance as described, and added the two items
    HideRootWindow=True
    UseTaskBar=FALSE
    to the *.ini file.)
    I also tried disabling all the other items in the Customize Window Appearance menu with the same result.
    Then I tried the method described in "Running a LabVIEW Executable as a Background Process" (http://digital.ni.com/public.nsf/allkb/EFEAE56A94A​007D586256EF3006E258B) adding the FP.Open method to the VI and setting the state to hidden. I got the same result (Exhibit 1).
    Is there anything I need to do in addition or different for my windows version? I appreciate your help. Thank you.
    Solved!
    Go to Solution.
    Attachments:
    LabVIEW Executable.zip ‏4058 KB

    (I have customized the window appearance as described, and added the two items
    HideRootWindow=True
    UseTaskBar=FALSE
    to the *.ini file.)
    No you did not
    They need to go in the exe's ini so the exe sees them
    Jeff

  • Difference between exec. target and executing server in background jobs

    Dear experts,
    Please let me know
    Difference between exec. target and executing server in background jobs

    Dear Joe,
    Sorry for this
    I am closing this threaf now

  • Execute calc in background not working

    Essbase version 9.3.1 running on Red Hat Linux. When I'm in EAS and check the "Execute in the background" box I get the message if what launched in the background with a Process ID but no calc kicks off, nothing in the app log file, nothing shows up when I look at background processes, no session when I look at server. The calc runs fine if I don't select to run in the background.
    Anyone else run across this or am I missing something?

    I had the identical issue and received the below fix from Oracle Support, which worked. I thought I'd put the fix up here, since the forums were my first stop when I had the problem.
    1. There will be a file called Workstatus.xml in the EAS server
    2. Search for this file
    3. Rename the file or cut and paste this file to a different location.Restart the EAS server
    4. Run the calc in background it will work fine
    And it did! This was on Windows Server 2003, Essbase 9.3.1.2.
    Thanks,
    -Another Rob

  • Error while executing program in background

    We have a program to upload data to the presentation server in the xml file format.
    It is working fine in foreground.But whenever we are trying to execute it in the background it gives error:
    'Error in control framework'.

    Prem,
    Looking at the error that you have shown, looks like its a different error. Is there a control/GRID that is being used in the program.
    If you are using a CUSTOM CONTAINER and a GRID to display the data, whenever you executing the program, you should not create the container. Something like this ..
        if cl_gui_alv_grid=>offline( ) is initial.
          create object CUSTOM_CONTAINER
                 exporting container_name = CUSTOM_CONTROL
        endif.
    Regards,
    Ravi
    note : Please reward the helpful posts.

  • Execute BEx as background job

    Hi Guys,
    User hit abap dump for TIME_OUT when executing query in Analyzer by selecting All data.
    I understand it is standard setting of 600 seconds for dialog processing.
    Is there anyway i can execute the query in background when user select all data?
    I google and found out something about report agent, but is there any guide or manual to use that?
    Thanks.

    User must have got this error while running the query in web.
    Ask use to run the query in BEx Analyzer.
    We faced an similar issue where query in web was giving time out error but in analyzer I was to run it and it was taking around 60 minutes.
    Similarly with broadcast, if you do it web broadcast, you will get the time out error. You will have to go with Workbook broadcasting.
    Or suggest user to run the query multiple times with smaller selection.
    Or try creating a workbook with multiple sheets restricted for differetn values, thus time taken should be less and all the data will be available in mulitple sheets which can be merged later and advantage is that workbook is to be run only once as compared to run the query mulitple time.
    Regards,
    Gaurav

  • How to execute report in Background from Dialog process?

    How, or what is the best way, to lauch an executable program (report) into the background from a dialog program (dynpro)?
    <b>Example:</b>  The SUBMIT...AND RETURN still executes the called program before it returns control to the calling program.  I just want the report to be kicked off and the dialog to continue as normal.  I do not want the report execution time to affect the dialog process.
    Thanks in advance for your time.

    Hi Nablan, I'm also trying to do parallel processing and created a function module that kicks of another report program.
    However, the process doesn't seem to work. The Main program runs from start to finish but the called program in the function module doesn't seem to run. When I used the option STARTING NEW TASK task name the code ran but in the foreground. I don't want to use this option as it runs in the foreground and SAP limits one to six sessions. Is there something I'm missing in the attributes of the function module I created. Currently the attributes are: Processing type Remote enable module and it's set to start immediately. I had used Normal function module initially but this did not work with the STARTING NEW TASK task name option.
    Below are the codes segements I used.
    In my main program I have the following code segement
    CALL FUNCTION 'Z_CA_PROG_CALL'
      IN BACKGROUND TASK
      EXPORTING
        zprogram            = 'ZCA_TEST1'
      EXCEPTIONS
        program_call_failed = 1
        invalid             = 2
        OTHERS              = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    COMMIT WORK.
    In the function module I have the following code.
    FUNCTION z_ca_prog_call.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(ZPROGRAM) LIKE  ZCA_INTERFPROG-ZPROGRAM
    *"  EXCEPTIONS
    *"      PROGRAM_CALL_FAILED
    *"      INVALID
      SUBMIT (zprogram).
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            RAISE program_call_failed.
          WHEN OTHERS.
            RAISE invalid.
        ENDCASE.
      ENDIF.
    ENDFUNCTION.

  • Error while executing BDC in background.

    Hi
    I have written a program that creates a background job to execute a BDC on Transaction CKMPRPN. This transaction is used to update future price of Materials. When this program is executed in foreground it works perfect. But when it is executed in background it throws these error messages. Same error messages are displayed when I process the BDC recording in background.
    Enter at least one plant                                              
    Enter at least one plant                                              
    Spool request (number 0000023938 ) created without immediate output   
    No batch input data for screen SAPMSSY0 0120                          
    Can anyone tell me why this problem is occuring only during background execution?
    Or Do I need to find out a Function Module to update the future price of materials?

    Thanks Kris,
    Its a useful answer.. But unfortunately in 4.6C version we dont have this option of 'simulate background mode'.
    Anyways.. I was able to find the solution.. I used call transaction and executed the BDC program in background and it worked. Earlier I was executing a single transaction for set of materials. But now I m executing separate transaction for each material. It gives these messages at every execution but it also updates the database. Dont know how..

  • Error in executing RSAN_PROCESS_EXECUTE in background

    Hi All,
      While executing RSAN_PROCESS_EXECUTE for APD in background, the job is cancelling with error "You must enter a Date Range, to run this report". But when executing in foreground or directly executing APD in RSANWB tcode, its executing successfully.
    Regards,
    Pravender

    Hi,
    Are you selecting the variant while running the report program RSAN_PROCESS_EXECUTE? and is date a mandatory variable in the report if yes try to create a varaint and select that variant while running program rsan_process_execute.
    Regards,
    Nayan Joshi

  • Error while executing file in Background

    Hi All,
    I need to schedule a job in background.where i need to read data from  excel file.
    while executing in background mode its saying 'Error while reading file'.
    but in foreground i can able to execute it.can anybody help me out.
    Thanks
    Sudha

    hi Sudha,
    I think the program tries to read from presentation server (with GUI_UPLOAD or something similary), which is not possible in background (because in background there is no presentation server).
    hope this helps
    ec

Maybe you are looking for

  • Apps. no longer working on iPhone

    Hi, I got an iPhone yesterday and I downloaded some of the free game apps. from the Apps store. They loaded and worked fine, until I synced some songs onto it with iTunes. Now the icons for the apps are on the home page, but when I tap them to open o

  • Application is throwing NSAPI and other errors after the migration

    We started seeing NSAPI and other errors after the migration of new codes and recently make some changes 1) During the migration, all the 4 WLS cluster instances were bounced simultaneously. What is the best practice and recommendation from BEA Oracl

  • I am using iphone 4s in pakistan. siri doesn't respond to my command

    1.how to use siri in pakistan. siri doesn't respond to my commands at all and shows no answers. even i tried to use it when internet( wi-fi) is on. what to do? 2. to delete any apps. following operations is explained. but my phone dont show the cross

  • What is the Field name

    Dear friends, I want to add new column in Customer Line item i.e.in FBL5N,say I want to add payment amount in FBL5N.I knew the table name but from where I will get field name,Plz tell me the menu path. Thanks in Advance !!

  • JAXP: code works with JDK1.3.1/Xerces but not JDK1.4.1

    Switching from JDK 1.3.1 with the Xerces XML parser to JDK 1.4.1 with its bundled XML parser breaks my code. Here is the exception I am seeing: Exception in thread "main" com.post.bean.BeanException com.post.bean.Bea nException: Relative URI "bean.dt