Executing WS_EXECUTE in background

Hi,
I need to execute a call to WS_EXECUTE in background but is not possible.
Are there another function to do this?
Tks,
Douglas

WS_EXECUTE is used to execute a front end program(WORD, EXCEL, etc)  Makes no sense to use this in the background. 
What exactly are you trying to do?
Regards,
Rich Heilman

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

  • 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

  • Process a File by WS_EXECUTE in background

    Hi Experts,
    I have one .EXE file which capture data from Non-SAP system and place it into one text (.txt) file.
    Now I am executing that file by WS_EXECUTE FM like this way;
    CALL FUNCTION 'WS_EXECUTE'
          EXPORTING
           DOCUMENT          = ' '
           CD                        = ' '
           COMMANDLINE    =
           INFORM                = ' '
            PROGRAM             = 'C:\fetch.exe'
           STAT                    = ' '
           WINID                    = ' '
           OSMAC_SCRIPT   = ' '
           OSMAC_CREATOR    = ' '
           WIN16_EXT                = ' '
           EXEC_RC                   = ' '
         IMPORTING
           RBUFF                        =
         EXCEPTIONS
            FRONTEND_ERROR    = 1
            NO_BATCH                 = 2
            PROG_NOT_FOUND    = 3
            ILLEGAL_OPTION        = 4
            GUI_REFUSE_EXECUTE       = 5
            OTHERS                   = 6
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    So Is it possible to Execute this file in background ???
    Regards & Thanks,
    Nishit.

    If the file is on the presentation server i dont think there is any way to exeute it in the background. If you place it in the application server or through FTP, you may try using SXPG_COMMAND_EXECUTE
    Vikranth

  • 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

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

Maybe you are looking for

  • How do I get the correct ICloud account on my iOS devices?

    Hello. A few days ago, I changed my Apple ID username from my old email to my new one. Everything worked fine and I was able to re-login to the App Store, iMessage, etc. A few days later, I got a message from iCloud asking me to login. When I tried t

  • My Refine Edge in Photoshop CS6 has STOPPED WORKING, please help!

    Photoshop CS6 Windows 8.1 I have been using refine edge with no problem for months. everything worked great! I was able to extract out hair and edges very, very, very well... but about 2 weeks ago...something changed... the refine edge brush no longe

  • Help!!! i cant speak to a live person

    My plan didnt renew and i had the money on my phone and now i cant speak to a live person to resolve this issue!!! I am unable to use my phone in fear it will depleat the amont of money i just put on it. Every time i call it says they are unable to c

  • Custom Fields Dropped

    Hi All, We use classic model where SRM post PR in R3. (which later get converted to PO) We recently upgraded from SRM 4.0 SP 6 to SP 13. After the ugprade in our non prod system we found that custom fields that were posted from SRM to R3 are getting

  • I have forgotten my password to my mac, I have forgotten my password to my mac

    I have forgotten my password to my Mac Air and I do not have a security question so I do not seem to retrieve via my apple id. What can I do? Will I lose all my programmes etc.?