Cl_gui_frontend_services

How it possible to download file to excel with the column header by using the class cl_gui_frontend_services

Hi,
Please go through the following Thread hope will help you out,
[Download Data Into Excel File  |Re: download data into excel file]
[Regarding CL_GUI_FRONTEND_SERVICES|Regarding CL_GUI_FRONTEND_SERVICES]
[CALL METHOD cl_gui_frontend_services=>file_save_dialog|Re: CALL METHOD cl_gui_frontend_services=>file_save_dialog]
Kind Regards,
Faisal

Similar Messages

  • Actions - How to replace GUI_DOWNLOAD and CL_GUI_FRONTEND_SERVICES= FILE_SA

    Hi,
    In sap gui was trigered action whih is using smartform and then output was being downloaded and saved as using:
    CALL FUNCTION 'GUI_DOWNLOAD' - to
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
    After the ubgrade this action is not working in web ui.
    Anyone knows how to change this to work in web ui?
    Thank you in advance

    Hi Tanja Lukovic 
    Pls check the settings defined in the SPRO path CRM->Basic settings->actions under this select your relevant application area and check whether any start/schedule conditions are not met (check in conditions) , apart from this reason there could be other reasons also pls check the trigger  processing type (it should be smart form print).
    if the actions are already created , you can change actions and conditions.
    Thanks & Regards
    Raj

  • Error when using the method cl_gui_frontend_services= file_open_dialog

    Hello Experts,
    I am currently practicing BDC and I think the first step is to locate where my text file is. Now based on my code below, after selecting my text file nothing happens.
    Also, what will be my next after getting the file from a specific location? Thanks guys!
    REPORT  z_aris_practice_bdc_0
            NO STANDARD PAGE HEADING
            LINE-SIZE 255
            LINE-COUNT 64
            MESSAGE-ID zz.
    *BDC Data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Internal Table
    DATA: BEGIN OF it_input OCCURS 0,
             user     TYPE usr02-bname,
             title    TYPE sza5_d0700-title_medi,
             lname    TYPE addr3_data-name_last,
             fname    TYPE addr3_data-name_first,
             initials TYPE addr3_data-initials,
             nickname TYPE addr3_data-nickname,
             function TYPE addr3_data-function,
          END OF it_input.
    DATA: gt_lines TYPE sy-tabix,
          gt_file  TYPE filetable,
          wa_file  TYPE filetable,
          gt_subrc TYPE i.
    *CONSTANTS
    CONSTANTS: c_mask(60) TYPE c  VALUE ',..'.
    *Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_input LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_input.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
       WINDOW_TITLE            =
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
       FILE_FILTER             =
          initial_directory       = 'C:\Temp\'
          multiselection          = 'X'
        CHANGING
          file_table              = gt_file[]
          rc                      = gt_subrc
       USER_ACTION             =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM put_in_itab.
      PERFORM process_records.
    *&      Form  get_files
          text
    FORM put_in_itab.
      DATA: lv_file TYPE string.
      lv_file = p_input.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = lv_file
        FILETYPE                      = 'ASC'
         has_field_separator           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
        CODEPAGE                      = ' '
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
        CHECK_BOM                     = ' '
        VIRUS_SCAN_PROFILE            =
        NO_AUTH_CHECK                 = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          data_tab                      = it_input
       EXCEPTIONS
         file_open_error               = 1
         file_read_error               = 2
         no_batch                      = 3
         gui_refuse_filetransfer       = 4
         invalid_type                  = 5
         no_authority                  = 6
         unknown_error                 = 7
         bad_data_format               = 8
         header_not_allowed            = 9
         separator_not_allowed         = 10
         header_too_long               = 11
         unknown_dp_error              = 12
         access_denied                 = 13
         dp_out_of_memory              = 14
         disk_full                     = 15
         dp_timeout                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        DESCRIBE TABLE it_input LINES gt_lines.
      ENDIF.
    ENDFORM.                    "get_files
    *&      Form  process_records
          text
    FORM process_records.
      LOOP AT it_input.
      ENDLOOP.
    ENDFORM.                    "process_records

    Hii viraylab,
    go throgh this link..This sample code solves ur problem....
    /people/milind.upasani/blog/2007/03/07/step-by-step-approach-to-ceate-simple-bdc-session-program-using-reusable-template
        U are new to BDC it seems...
        first u read the sap help ... then u will come know what to do after wards....
        http://help.sap.com/saphelp_47x200/helpdata/en/fa/097720543b11d1898e0000e8322d00/frameset.htm
    Be familiar with the structure BDCDATA.
    <b>Data transfers</b>  In this page..
    Next u need to know about the <b>transaction RECORDER the tcode is SHDB.</b>
    Nothing is difficult in this ..
    For example When u r creating a data element in SE11 u go through some screens in a flow, by clicking some pushbuttons and by generating some function codes manually, and entering values manually...
    But here u wont do it manually, these values will be populated from file into an internal table...
    Before calling a transaction into which u r going to populate the data is to be filled into a table with structure <b>BDCDATA.</b>
    <b>U need to use CALL TRANSACTION 'SE11' using BDCDATA or
    the session method..</b>
    Reward points for helpful answers...
    sai ramesh

  • Error calling class 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

    [CL_GUI_FRONTEND_SERVICES|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=cl_gui_frontend_services+portal&adv=false&sortby=cm_rnd_rankvalue] needs a SAPGUI, so it is not possible to use it in RFC, BSP or other portal.
    Regards

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

  • Cl_gui_frontend_services= gui_download, header and data in text file

    CALL METHOD cl_gui_frontend_services=>gui_download        EXPORTING
        filename                = c:\abc.txt
        filetype                = 'ASC'
         write_field_separator  = space                        
       HAS_FIELD_SEPARATOR     = SPACE
       HEADER_LENGTH           = 0
       DAT_MODE                = SPACE
       CODEPAGE                = 'ASC'                      
       IGNORE_CERR             = ABAP_TRUE
       REPLACEMENT             = '#'
       READ_BY_LINE            = 'X'
    IMPORTING
       FILELENGTH              =
       HEADER                  =
      CHANGING
        data_tab                = t_pch[]
    here the file abc.txt get some text as header.
    butwhen i want write actual data again witht he same file name the file get over writed
    CALL METHOD cl_gui_frontend_services=>gui_download    
      EXPORTING
        filename                = c:\abc.txt
        filetype                = 'ASC'
         write_field_separator  = space                       
       HAS_FIELD_SEPARATOR     = SPACE
       HEADER_LENGTH           = 0
       DAT_MODE                = SPACE
       CODEPAGE                = 'ASC'                      
       IGNORE_CERR             = ABAP_TRUE
       REPLACEMENT             = '#'
       READ_BY_LINE            = 'X'
    IMPORTING
       FILELENGTH              =
       HEADER                  =
      CHANGING
        data_tab                = t_pc[]

    Hi
    When second time you call method just add the following
    CALL METHOD cl_gui_frontend_services=>gui_download
         EXPORTING
           filename                  = v_value
           append                    = 'X'        <------- Just add this line

  • Cl_gui_frontend_services: possible to change the user for writing files?

    Hi,
    I'm using the class cl_gui_frontend_services to allow the user to copy a file to a specified network drive (using the method file_copy). The user can open the file again, if he double clicks on a row in a ALV table. So far so good, this works already.
    But one requirement for this solution is, that the user can not access the directory where the copied files are stored directly.
    Now I'm wondering if it is possible to use a specified system user for copying the files? My idea is to switch to the system user just for the method file_copy. I didn't find a method for doing this yet but maybe somebody knows if this is possible.
    Thanks and regards,
    Martin

    Hi ,
    Regarding to your last question; You can get the file list of a specified directory while using OPEN DATASET related commands. After the list populated you make the user select it with the help of a popup screen.
    Gets the list of a specified directory's content
      CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
        EXPORTING
          dir_name               = gv_drctry
        TABLES
          dir_list               = lt_dirlist
        EXCEPTIONS
          invalid_eps_subdir     = 1
          sapgparam_failed       = 2
          build_directory_failed = 3
          no_authorization       = 4
          read_directory_failed  = 5
          too_many_read_errors   = 6
          empty_directory_list   = 7
          OTHERS                 = 8.
    Hope it's useful...

  • Exit CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG once I get the file name

    Hi
    I have where I have a selection screen that finds the file, you can say where to get the file. After that I need to close that window. How do I close it???
    Below is an example of my program. After I choose the file and execute the program, I have a <b>write</b> statement. I don't see that statement on the screen. How do i terminate the input screen and display text.
    Parameters :  AUSZFILE      LIKE RFPDO1-FEBUMSF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR AUSZFILE.          "mo271101
      DATA: L_FILES TYPE FILETABLE,                            
            H_FILES TYPE FILE_TABLE,                           
            L_RC LIKE SY-SUBRC.                                
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG        CHANGING                                               
          FILE_TABLE              = L_FILES                    
          RC                      = L_RC                       
        EXCEPTIONS                                             
          FILE_OPEN_DIALOG_FAILED = 1                          
          CNTL_ERROR              = 2                          
          ERROR_NO_GUI            = 3                          
          NOT_SUPPORTED_BY_GUI    = 4                          
          OTHERS                  = 5.                         
      IF SY-SUBRC <> 0 OR L_RC < 0.                            
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO       "mo271101
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.   
      ELSE.                                                     "mo271101
        READ TABLE L_FILES INDEX 1 INTO H_FILES.              
        AUSZFILE = H_FILES-FILENAME.                           
      ENDIF.
    Write AUSZFILE.
    Thanks in advance

    You must remember the START-OF-SELECTION event here,  after you select the file name and click F8, the START-OF-SELECTION event is triggered, but if it is not there, nothing will happen.
      if sy-subrc <> 0 or l_rc < 0.
        message id sy-msgid type sy-msgty number sy-msgno       "mo271101
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.                                                     "mo271101
        read table l_files index 1 into h_files.
        auszfile = h_files-filename.
      endif.
    start-of-selection.            "<--  Add this
      write:/ auszfile.
    Regards,
    RIch Heilman

  • How to use CL_GUI_FRONTEND_SERVICES= GET_SCREENSHOT?

    Hi everybody,
    I've noticed this function lately and wanted to test it. I wrote report like below, but nothing is displayed. Data are read (at least I'm getting something in this xstring), url is being generated, container and picture objects are created, and url is loaded without error. So what is wrong here?
    REPORT  ZTEST11.
    data: lv_mime TYPE string,
           lv_data TYPE xstring.
    DATA: BEGIN OF graphic_table OCCURS 0,
            line(255) TYPE x,
          END OF graphic_table.
    DATA: graphic_size TYPE i.
    DATA: graphic_url(255).
    DATA: l_graphic_conv TYPE i,
          l_graphic_offs TYPE i.
    DATA: lo_picture TYPE REF TO cl_gui_picture,
          lo_container TYPE REF TO cl_gui_docking_container.
    data lv_result type i.
    PARAMETERS tmp.
    AT SELECTION-SCREEN OUTPUT.
      IF lo_container IS NOT BOUND.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_SCREENSHOT
          IMPORTING
            MIME_TYPE_STR        = lv_mime
            IMAGE                = lv_data.
          graphic_size = XSTRLEN( lv_data ).
          CHECK graphic_size > 0.
          l_graphic_conv = graphic_size.
          l_graphic_offs = 0.
          WHILE l_graphic_conv > 255.
            graphic_table-line = lv_data+l_graphic_offs(255).
            APPEND graphic_table.
            l_graphic_offs = l_graphic_offs + 255.
            l_graphic_conv = l_graphic_conv - 255.
          ENDWHILE.
          graphic_table-line = lv_data+l_graphic_offs(l_graphic_conv).
          APPEND graphic_table.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            TYPE                       = 'image'
            SUBTYPE                    = 'png'
          TABLES
            DATA                       = graphic_table
          CHANGING
            URL                        = graphic_url.
        CREATE OBJECT LO_CONTAINER
          EXPORTING
            EXTENSION                   = 600.
        CREATE OBJECT LO_PICTURE
          EXPORTING
            PARENT = LO_CONTAINER.
        CALL METHOD LO_PICTURE->LOAD_PICTURE_FROM_URL
          EXPORTING
            URL    = graphic_url.
      ENDIF.
    Best regards
    Marcin Cholewczuk

    Hi Sandra,
    I saw it somewhere, but I guess I was too cleaver and was hoping that maybe somehow it will work After your sugestion I've changed and instead of picture I've used html like below and now it works. Thank you very much for your help.
      CALL METHOD LO_HTML->LOAD_DATA
        EXPORTING
          TYPE                 = 'image'
          SUBTYPE              = 'png'
        IMPORTING
          ASSIGNED_URL = graphic_url
        CHANGING
          DATA_TABLE           = graphic_table."graphic_table.
        CALL METHOD LO_HTML->SHOW_URL
          EXPORTING
            URL                    = graphic_url.
    Best regards
    Marcin Choleczuk

  • Replacing WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD

    Hi Guys,
       I'm currently changing the programs that uses the obsolete function WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD, and I just want to ask what are the valid FILETYPE for GUI_DOWNLOAD and how can I use a WK1, XLS and DAT filetype in GUI_DOWNLOAD.

    Hi,
    PARAMETERS    p_file  LIKE rlgrap-filename.       
    DATA lv_file TYPE string.
    lv_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                filename                = lv_file
                filetype                = 'ASC'
                write_field_separator   = c_x
           TABLES
                data_tab                = i_download
           EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                no_authority            = 5
                unknown_error           = 6
                header_not_allowed      = 7
                separator_not_allowed   = 8
                filesize_not_allowed    = 9
                header_too_long         = 10
                dp_error_create         = 11
                dp_error_send           = 12
                dp_error_write          = 13
                unknown_dp_error        = 14
                access_denied           = 15
                dp_out_of_memory        = 16
                disk_full               = 17
                dp_timeout              = 18
                file_not_found          = 19
                dataprovider_exception  = 20
                control_flush_error     = 21
                OTHERS                  = 22.
      IF sy-subrc ne 0.
        MESSAGE i000 WITH text-005. "Error in File downloded
       ENDIF.
    Instead of 'ASC', you can give 'WK1' or 'XLS' if you want.

  • CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD not working in Windows 7 OS

    Hello experts,
    The FM CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD is not working in windows 7 OS.  The error is - Data provider exception.  But is is ok in XP. 
    Is there any solution for this.
    Thanks in advance,
    Balaji

    Now
    I've applyed patch 8 and no problem with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
    Have you sure you've have all authorization to write a file there?
    Max

  • Passing column headers in cl_gui_frontend_services= gui_download

    How to pass the coulumn  headers in in the internal table while down loading it to a excel file by using method cl_gui_frontend_services=>gui_download

    For having the header in the same internal table, all the fields must have type C. Fill the fields with the header text and insert at index 1.
    CALL METHOD cl_gui_frontend_services=>gui_download
       EXPORTING
         filename                = Your file name
         filetype                = 'TXT'
       CHANGING
         data_tab                = i_data
       EXCEPTIONS
         file_write_error        = 1
         no_batch                = 2
    Pls also refer the following Creating a comma delimited(.csv)file
    Thanks
    Vinod

  • CL_GUI_FRONTEND_SERVICES, Subscreen not found error

    Hello everyone,
    We'd like to use the file service methods of class
    CL_GUI_FRONTEND_SERVICES such as GET_SAPGUI_WORKDIR, GUI_DOWNLOAD and DIRECTORY_LIST_FILES in developing an upload facility that will be accessed via Integrated ITS.
    However, when we try to use either of these methods, we get an HTTP 500 Internal Server Error saying "Subscreen not found".
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSIT1
    Function: ITS_DIRECTORY_LIST_FILES of program SAPLSIT1
    Method: DIRECTORY_LIST_FILES of program CL_GUI_FRONTEND_SERVICES======CP
    Form: GET_FILE_LIST of program
    Module: STATUS_0100 of program
    I am under impression that these classes are compatible to use with Integrated ITS. We looked at note 895183 but the solution does not apply to us as we are not on SRM. Anyone have a clue as to why we couldn't use file service methods and how to resolve?
    Thanks!

    Hi,
    Thanks for your reply.
    I checked the trace file in the backend and below is the log of the session. It's looking for certain subscreen--any clue where it could be referring to and how we can fix it?
    W      *** ERROR => diag: Unable to find a subscreen named `frame2' [w3xxsemg.cpp 2158]
    W      *** ERROR => diag: Could not process target, rc=0xffffffd8 [w3xxsemg.cpp 1416]
    W      *** ERROR => plugin: XKrnHandleResponse failed rc= -40 [itspxkrn.cpp 764]
    W      *** ERROR => plugin: ItspXKrn_HandleResponse failed. 0x2b3880c25330 rc: 0 [itspxkrn.cpp 391]
    W    *** ERROR => ipl_ConvertOut failed rc = 1, send icf error page [itsplxx.c    1526]
    M    ***LOG W01=>  [itsplxx.c    1527]
    W    *** ERROR => ipl_ConvertOut returns 1(ITSPE_FAILURE) [itsplxx.c    1529]
    W    *** ERROR => Raise Last error:[40 from: w3xxsemg.cpp:2159] [itsplxx.c    1216]
    W    *** ERROR => RaiseError(sapdext) ITS_P:40 [w3xxsemg.cpp 2159]
    Thank you,
    Jocelyn

  • Cl_gui_frontend_services=   allow browsing to directory path

    Hi guys,
    i have created a program to automate the download of joblogs and spools using CALL TRANSACTION SM37 .
    currently i am taking the location where files need to be stored from selection screen.
    now  i want to use  <b>cl_gui_frontend_services=>?</b>
    to allow browse function to directory path where i need to save the files(i.e spool and joblog).
    it will be of great help if you could send me a piece of code using cl_gui_frontend_services=>? which can <i><i><u>allow browsing to directory path</u></i></i> where i can save the files.
    Thanks
    Ankit
    LnT Infotech,Mumbai

    I had the same problem like Adel when calling the browser via cl_gui_frontend_services=>execute().
    On my old school XP machine the synchronous start is doing well, but not on my colleagues W7 64 machines.
    I used a registrey key to get - in my case - the path to the Internet Explorer.
    (htmlfile\shell\open\command)
    On W7/64Bit this key contains the path to the 32 bit Binary:
    C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
    If I start this application it's not synchronous, if i hard-code the path 64 bit binary
    (C:\Program File\Internet Explorer\IEXPLORE.EXE) the application runs synchronous.
    A pragmatic programmer could replace the ' (x86)' in the path, which should work on most Windows platforms
    Regards
    Dominik

  • Cl_gui_frontend_services= gui_download - issue with german special char

    Hello,
    we are using cl_gui_frontend_services=>gui_download to create from an itab an excel file.
    We face the issue that in this excel file german special characters like Ä, Ü, Ö, ß are not displayed correctly.
    I think we need to use a different codepage. But which one?
    could you please give us a short coding example how to call cl_gui_frontend_services=>gui_download.
    Thanks a lot
    Kind regards
    Manfred

    Hi,
    Check the system is unicode or non-unicode . Codepage for Unicode system is ' 4102' and non-unicode is '1100'.
    Below are the sample code for the GUI_download with Class.
    DATA:  l_filename    TYPE string,
           l_filen       TYPE string,
           l_path        TYPE string,
           l_fullpath    TYPE string,
           l_usr_act     TYPE I.
    l_filename = SPACE.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        DEFAULT_FILE_NAME    = l_filename
      CHANGING
        FILENAME             = l_filen
        PATH                 = l_path
        FULLPATH             = l_fullpath
        USER_ACTION          = l_usr_act
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2     
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    IF sy-subrc = 0
          AND l_usr_act <>
          CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = l_fullpath
       FILETYPE                        = 'DAT'
      TABLES
        DATA_TAB                        = T_DOWNL
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22.
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDIF.
    Edited by: Sumodh P on May 11, 2010 5:24 PM

Maybe you are looking for

  • Adobe Muse page capacity

    HI , I am working on my page which is full of pictures and different kinds od stuff. The thing is that i can not create or delete any more pages or masters.Does Adobe Muse have a max use of space or something ? Because every time I try to make a new

  • My Adobe Photoshop Elements 6 doesn/t work under Vista Home.

    Please help me. Hylke

  • Update to Mountain Lion

    Can I update my iMac, built 05/07, Intel Core 2 Duo, 2.16 GHz?

  • Displaying Graph for current date

    Hi, I want to pass a dynamic value to display graph. Let say I want to display graph for the current date, so that whenever user opens the web page, he sees the data for the current date. Can anyone suggest any solution for this. Regards.

  • Importing nikon d610 files and presets are applying to raw files?

    I just picked up a nikon d610 and every time I import photos several presets are applied to my Raw images. White balance, contrast, Vibrance, saturation, and sharpening. It's like an import preset is set but I don't have anything selected. This only