Running Browser calling method'CL_GUI_FRONTEND_SERVICES' in the background.

Hello SAP Gurus
My intention is to shutdown and restart communication channels on PI side. To do this externally, we can send a URL with right parameters.
I have written a simple ABAP  code to do this by calling the method 'CL_GUI_FRONTEND_SERVICES 'with the URL. Since I have several channels, I am calling this method in a loop. It is doing the job well.
However, for each channel an IE browser screen pops up with the XML data for that particular URL.  It is kind of annoying to see so many popups.
Is there a way in ABAP to supress this multiple browser pop ups? Is there a way to make this method run in the background?
I know that this method is meant to call a browser screen with the URL, however I want to suppress this Browser POP up and use the remaining function.
Any feedback will be highly appreciated.
Thanks
Ram

You cannot use a frontend (GUI) service when a program is running in the background.
You'll have to call the URL in a different way... something that doesn't create a popup window. Or execute the command that is invoked when accessing that URL.

Similar Messages

  • Error calling methods CL_GUI_FRONTEND_SERVICES

    Hi all,
    I have a requirement in BAPI (integrating solman to portal) to download file from app. server to local directory. I used the below FM to get temp directory of presntation server.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
       CHANGING
         TEMP_DIR             =  LV_TEMP_DIR
       EXCEPTIONS
         CNTL_ERROR           = 1
         ERROR_NO_GUI         = 2
         NOT_SUPPORTED_BY_GUI = 3
         others               = 4.
       CALL METHOD cl_gui_cfw=>flush.
    It works fine in R3, but when i called it from portal it shows Access not possible using 'NULL' object reference with a short dump .
    st22 shows
    Error in ABAP application program.
    The current ABAP program "CL_GUI_FRONTEND_SERVICES======CP" had to be
    terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    An exception occurred. This exception is dealt with in more detail belo
    . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL',
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "GET_TEMP_DIRECTORY" "(METHOD)"
    Since the caller of the procedure could not have expected this exceptio
    to occur, the running program was terminated.
    The reason for the exception is:
    Attempt to access a component using 'NULL' object reference (points
    to nothing).
    An object reference must point to an object (an instance of a class)
    before you can use it to access components (variable:
    "CL_GUI_FRONTEND_SERVICES=>HANDLE").
    Either the reference has not yet been set, or it has been reset to
    'NULL' by a CLEAR statement.
    When i put external break point and the dump comes during execution of CALL METHOD cl_gui_cfw=>flush.
    Is it not possible to use CL_GUI_FRONTEND_SERVICES in RFC ??.
    thanks and regards
    Jijo

    Hi,
    the dump is because you cannot use that function from a BSP application, which runs in internet or intranet. The procedure in this case is different:
    DATA: flights  TYPE flighttab,
            flight   LIKE LINE OF flights,
            appl     TYPE string,
            filetype TYPE string,
            output   TYPE string,
            output2  TYPE xstring,
            response     TYPE REF TO if_http_response,
            l_len        TYPE i,
            seatsmax     TYPE string,
            seatsocc     TYPE string.
      appl = 'application/msexcel'.
      filetype = 'attachment;filename=mi archivo.xls'.
      SELECT * FROM sflight
         INTO TABLE flights
         UP TO 20 ROWS.
      LOOP AT flights INTO flight.
        seatsmax = flight-seatsmax. CONDENSE seatsmax.
        seatsocc = flight-seatsocc. CONDENSE seatsocc.
        CONCATENATE output
        flight-carrid cl_abap_char_utilities=>horizontal_tab
        flight-connid cl_abap_char_utilities=>horizontal_tab
        flight-fldate cl_abap_char_utilities=>horizontal_tab
        flight-planetype cl_abap_char_utilities=>horizontal_tab
        seatsmax cl_abap_char_utilities=>horizontal_tab
        seatsocc cl_abap_char_utilities=>horizontal_tab
        cl_abap_char_utilities=>cr_lf
        INTO output.
      ENDLOOP.
      response = runtime->server->response.
      response->delete_header_field( name = if_http_header_fields=>cache_control ).
      response->delete_header_field( name = if_http_header_fields=>expires ).
      response->delete_header_field( name = if_http_header_fields=>pragma ).
      response->set_header_field( name = if_http_header_fields=>content_type
                                  value = appl ).
      response->set_header_field( name = 'content-disposition'
                                  value = filetype ).
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text     = output
          mimetype = 'text/unicode; charset=utf-16le'
        IMPORTING
          buffer   = output2.
      CONCATENATE cl_abap_char_utilities=>byte_order_mark_little
                  output2 INTO output2 IN BYTE MODE.
      l_len = XSTRLEN( output2 ).
      response->set_data( data = output2
                          length = l_len ).
      navigation->response_complete( ).
    This is the code for downloading an Excel file.

  • CALL METHOD cl_gui_frontend_services= file_save_dialog

    Hi,
    I want to use 'CALL METHOD cl_gui_frontend_services=>file_save_dialog', to choose a path for saving my txt files.  I only want the user to be able to choose the path and not have to supply a filename aswell.  My filenames are standard in the program and I don't want them to be changed by the user.
    Is there another method which is designed for this or is there a simple parameter I have missed?
    Thanks and regards,
    Simon.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_f.
       PERFORM f_search_help_pa_f1.
    FORM f_search_help_pa_f1 .
       CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
         EXPORTING
           program_name  = sy-repid
           dynpro_number = sy-dynnr
         CHANGING
           file_name     = pa_f
         EXCEPTIONS
           mask_too_long = 1
           OTHERS        = 2.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    ENDFORM.                    " f_search_help_pa_f1
    Try this
    Regards

  • My MBpro has been running some kind of app in the background upon turning on, heating up for no cause. Is this normal since Snow Lepard? It's been updated and I also have anti-virus software too.

    My MBpro has been running some kind of app in the background upon turning on, heating up for no cause. Is this normal since Snow Lepard? It's been updated and I also have anti-virus software too.

    you're welcome....
    also check activity monitor - all processes - see what's using up most of your cpu resources under % CPU....
    highlight anything that's really high and hit quit process......anything over 10% is considered high - unless it's your browser....
    good luck...

  • How to call a function in the background in WDA?

    __The requirement is__
    call the function XYZ from Webdynpro ABAP program to run in the background and user doesn’t have to wait to finish it, but can work on other screens/transactions.
    1. Should function XYZ be remote-enabled?
    2. Will CALL function XYZ in background task work?
    Points will be rewarded. Thanks.

    Hi John,
    I guess you will have to use the asynchronous RFC for your requirement.
    So that this FM can be called frm WD applicaiotn and due to asynchronous nature, it has no relation with other user actions which are going on .
    You can check this
    [help|http://help.sap.com/saphelp_nw04/helpdata/en/22/04259f488911d189490000e829fbbd/content.htm]
    Hope that helps.
    regds,
    Akshay
    Edited by: Akshay Bhagwat on Feb 6, 2008 2:25 PM

  • Running a cycle count job in the background

    I am trying to set up a job to run in the background to create the inventory documents for the warehouse for a week.  The program is RLINV050 and I have a variant for the settings (this is a program that calls transaction LX26).  The problem is when I run this program it only performs the first screen of the transaction.  I need to know how to create a step that  will perform and execute so it will go to the second screen of the transaction and then another step that will perform a save.  This will then create documents.  I have seen this done at companies I have been at in the past but I don't know how they set it up!  If anyone can help me I would really appreciate it!  Thanks

    Create a script that call the script and passes the parameters.
    i.e.
    vi wrapper_master_tts_transfer.ksh
    #!/bin/ksh
    export RUN_DIR=<path to script>
    $RUN_DIR/master_tts_transfer -e 10.87.90.204
    Then run
    nohup ./wrapper_master_tts_transfer.ksh &

  • Kinect extremely laggy and continually reboots until I run Kinect Studio 2.0 in the background.

    I'm relatively new to developing with the Kinect v2 sensor. I'm having a problem where the sensor is extremely laggy (1 frame per 5-10 seconds) and will continually reboot every 10-15 seconds. It's doing this in the ControlsBasics-XAML project that came
    with the SDK as well as any other Kinect app. 
    I found a strange workaround that makes it run extremely smooth. If I just open up the Kinect Studio v2 application (comes with the SDK) and leave it running in the background, then it makes any other Kinect app run smoothly. 
    I have the latest nVidia drivers, running Windows 8.1 and DirectX 11. Any ideas what the problem could be?
    Thanks,
    Mario Suau

    Your system is running in low power state and you need to ensure that the CPU has fully power to run the Kinect. Check the troubleshooting guide sticky(last post) on the main forum page:
    https://social.msdn.microsoft.com/Forums/en-US/20dbadae-dcee-406a-b66f-a182d76cea3b/troubleshooting-and-common-issues-guide?forum=kinectv2sdk
    Carmine Sirignano - MSFT

  • Calling function module in the background task

    Hello everybody,
    I have a function module which wil create conditon records,the problem is it has performance problems because of which i am planning to make this as background job.
    Can any one of please tell me how the call function ' fun name ' in background task behaves.
    Regards,
    Aruna

    hi,
    try to refer to the link below:
    http://help.sap.com/saphelp_nw04/helpdata/EN/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm
    i hope it helps
    regards
    arjun

  • Imac running 10.5.8  cannot change the background wallpaper without rebooting

    I have 10.8.4.  Trying to change the background.  Will not change unless I reboot.   Any ideas

    Open Finder, select Go > Go to Folder, type ~/Library/Preferences and delete com.apple.desktop.plist

  • How can i call method defined in the binding page from popup

    I couldn't call method defined in pageDef from dialog exist in popup
    while i can call it from button or link
    how can I do that

    Hi,
    my answer to this is : yes, this can be done. So next is that you explain what you've tried so we can share our view with you
    Frank

  • Run OC4J 903 on linux in the background?

    I am relatively new to Linux and have been trying to start OC4J either automatically or as a background process (so that I do not have to keep the terminal window open). I tried "$nohup java -jar oc4j.jar &", but OC4J still shuts down when I logout or exit the terminal. Does anyone know of a good way to start OC4J automatically or as a background process?

    I had this problem when running in Solaris machine. The workaround was changing the shell to csh first, execute nohup java -jar oc4j.jar &, and then exit the csh shell. Using this approach I was able to make my OC4J work in background.

  • I'm developing a test system that reqiures that I run a TCP/IP session in the background while running TestStand. How could I incorporate this TCPIP vi into the TestStand Operator Interface ?

    Test Engineering
    Empower RF Systems Inc.

    Mal,
    If you have the LabVIEW Operator Interace, you can place your TCP/IP Vi anywhere you want. Either at the beginning of the execution, when a particular sequence is running, when a user logs in, etc. Since you have the LV code, you can just add your TCP/IP as a subVI in the right place. You could also place a button in the front panel that will allow you to CONNECT/DISCONNECT by calling your VIs.
    Does this help?
    Azucena

  • Is it possible to run steam as a service in the background?

    Now that Steam In-Home streaming works from a Linux host, I was wondering if was possible to get Steam t run as a background service?  The idea being that I simply need to boot the host computer and can then play games on my laptop elsewhere without needing to log into the host box - or start Steam on it manually.
    Apart from possible performance issues, users on the host computer need not even be aware that Steam is running.
    Can this be done?

    MainStage is an application, not a plugin. So, no, it can't be used in Cubase.

  • Calling method what is the proper way

    hi fellows
    i want to call a method but i need some help on that issu with or without instance of an object. like
    package ch.fhnw.athene.ui.components;
    import ch.fhnw.athene.ui.components.model.CPTabModel;
    import ch.fhnw.athene.ui.components.model.CPTabpaneModel;
    import ch.fhnw.athene.ui.components.model.CPToolbarModel;
    i have add frame in CPTabmodel.
    i add JButton in CPToolbarModel and actionlistener also.
    the method
    public void showframe(){/body of the method}
    in CPTabpaneModel.
    how can i call this when press button. or define the method static if i define static what happen with frame and button class these are also static or not.

    I would think that using....
    var theMask:MovieClip = myContainer.getChildByName("NAME-"+String(num));
    would work, where you could use theMask to target it.  Another approach to this would be to store each mask in an array so that you can just use the array to target them...
    var maskArray:Array = new Array();
    var myMask:MovieClip = new MovieClip();
    maskArray[i] = myMask;
    myContainer.addChild(myMask);
    myContainer.mask = myMask;
    Note: When you first name the object you should be converting i to a String as well... myMask.name = "NAME-"+String(i);  unless i is already a String

  • Call method execute of the application Java mapping

    Hi,
    I'm using a RFC Lookup in a Java Mapping. In PI 7.0 it was working fine. Now we use the Mapping in our PI 7.30 Testsystem and I get following LookupException:
    Error when calling an adapter by using the communication channel CC_Receiver_RFC_XXXXX  (Party: , Service: BS_ERP_XXX_400, Object ID: 445eef339f2039b0856093c54c3656dd) The channel with object ID 445eef339f2039b0856093c54c3656dd could not be found in the Integration Server Java Cache. Check if the channel exists in the Integration Builder Directory and execute a refresh of the Java Cache
    The Channel name and Business Service Name are correct. If I look in the Integration Builder, my Communication Channel is working fine.
    I did a complete restart, the error afterwards was all the same. How can I refresh the cache for the ID's?.
    I checked the party name it's having the space value not with *.
    Thanks
    Naresh N
    Edited by: Naresh Nelapatla on Feb 25, 2012 5:46 AM

    Hello,
    Error when calling an adapter by using the communication channel CC_Receiver_RFC_XXXXX (Party: , Service: BS_ERP_XXX_400, Object ID: 445eef339f2039b0856093c54c3656dd) The channel with object ID 445eef339f2039b0856093c54c3656dd could not be found in the Integration Server Java Cache. Check if the channel exists in the Integration Builder Directory and execute a refresh of the Java Cache
    This error usually happens when you have created the RFC Receiver that has an entry of * in the Party. What you can do is to recreate the CC and remove the entry in the party. Save and activate.
    Hope this helps,
    Mark

Maybe you are looking for

  • Jabber for Mac - End User unable to Cut & Paste Images in IM

    Full discloure: I am an END USER, not an IT admin or anything like that. Not sure if this is the proper forum to ask this question but figured it was worth a shot... Running OSX 10.9.1 and Jabber 9.2.1. I am unable to copy-and-paste images into IM co

  • Bot App thru iTunes from iPhone, and deleted before sync.How to retrieve?

    Is there any way I can use my bill from the store to retrieve my app that I just bought? I erased it from my iPhone because I had it working, then app. (EyeTV)wouldn't connect, so I thought I would delete, however I had forgotten to sync my phone to

  • Openoffice and otf fonts

    openoffice is unable to recognize otf fonts. This is a bug in oo.org (upstream) which was first submitted three years ago. However I have seen reports that debian oopenoffice can recognize otf fonts (ubuntu camily can't). Just wondering if anyone man

  • Crystal Report jsp

    Hi Team, I am very new to crystal reports. My requirement is to pass a date parameter to crystal report server. Everytime it is showing error or it will show prompt window. I dont want any of these two. When i pass other datatypes like string and all

  • OpenDirectory corrupted after reboot - how to fix?

    Had a 10.8.2 Server all happily running until this afternoon. Had a strange Server Notification the "OS X Boot Drive is not longer available". Also saw a USB drive error, and it refused to eject. A reboot command stalled out and eventually had to per