CLIPBOARD_EXPORT method of CL_GUI_FRONTEND_SERVICES

Hello All,
I am using the CLIPBOARD_EXPORT  method of CL_GUI_FRONTEND_SERVICES class to copy the content of the EXCEL sheet to the clipboard, which I later append in an Internal Table.
The problem I face is that the EXCEL sheet is very huge and while copying it's content to the clipboard; the clipboard runs out of space and hence only a truncated EXCEL sheet is read into the internal table.
Can someone please suggest some way of overcoming this issue of 'clipboard running out of space'.
Points will be rewarded.
Regards,
Khushboo

Hi,
clip board depends on the desktop configuration on which you are working. Like if you have more RAM it will take more memory form that for more data .. From developer side we can do nothing....
Regards
Raj

Similar Messages

  • CLIPBOARD_EXPORT from class CL_GUI_FRONTEND_SERVICES and string table - sh

    Hi Gurus,
    I have a problem with this method. When I'm passin to it table of strings I'm getting short dump. Something about RFC and XML. In my opinion this is error in SAP coding, but maybe I'm wrong. Has anyone this kind of problems with this method? Maybe there is a note to it?
    BR
    Marcin Cholewczuk
    Edited by: Rob Burbank on Jul 30, 2010 2:50 PM

    > @Sandra thank you, I know this will work
    Then, next time, you will ask the question clearly, because it's not what we all have understood!
    > but I still think that this short dump is an effect of error in SAP coding so my question remains.
    No, as I said, all functions based on frontend / OLE always used the C type. When OLE was issued in release 3, the STRING type didn't exist (available since 4.6). As OLE worked very well with C type, they had no reason to spend time to make it work for other types (there is always a risk that there are new bugs, I don't see why it should be considered as a bad policy).
    You may simply argue that the documentation is not complete (or even inexistent sometimes), that's all.
    In your case, we see that the CLIPBOARD_EXPORT method documentation is incomplete:
    DATA (exporting) Contains a table of the data to be copied to the clipboard.
    SAP always worked like that, and we abapers, always had to guess and spend time how these API work. But that's not a big deal usually (as for this one).

  • Methods in cl_gui_frontend_services will break the progress indicator

    Hi guys,
    I have a list of directories of client to check if it exists.
    I use cl_gui_frontend_services=>directory_exist method.
    And I want to show the progress indicator.
    But the method directory_exist will break the indicator, show the status bar's message is like, flashing. appear, disappear, appear, disappear ...
    You can use the codes below to see what happens and can take a comparsion when you comment the method directory_exist .
    any suggestions?
    thanks a lot.
    REPORT  z_test.
    type-POOLs abap.
    DATA: A LIKE SY-UCOMM,
        ldf_derectory  TYPE string,
        ldf_result     TYPE abap_bool.
    ldf_derectory = 'c:\'.
    DO 100 TIMES.
      DO 300 TIMES.
        GET TIME.
      ENDDO.
      A(3) = SY-INDEX.
      A+3 = '%'.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
      EXPORTING
        PERCENTAGE = SY-INDEX
        TEXT       = A.
      CALL METHOD cl_gui_frontend_services=>directory_exist
      EXPORTING
        directory = ldf_derectory
        RECEIVING
        result    = ldf_result.
    ENDDO.

    Hi,
    I'm not sure there is anything you can do about the flashing clock icon in this case.  This may just be a limitation of the GUI.
    Of course, you always have the option of using 0% as the percentage when calling SAPGUI_PROGRESS_INDICATOR.  This will eliminate the clock from the progress display, leaving just the percentage number plus the '%' sign.
    In other words, you can eliminate the annoying flickering by changing your function call to:
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          percentage = 0
          text       = a.
    Regards,
    Jamie

  • Cl_gui_frontend_services= gui_UPload

    Hi ,
    I am using the above class to upload a file into SAP .
    call method cl_gui_frontend_services=>gui_download
        exporting
          filename                  = lf_filename
          filetype                  = w_filetype
    has field seperator   = X
    here in the input file after this moethid i have only one record in the my exel file but
    method reads 10 records in the file with dummy data
    help me

    Hi Gayatri,
    Your requirmrnt is to upload the Excel file content to internal table.
    GUI_UPLOAD is used to upload normal file content with extension .TXT or DAT
    Excel is a Spared sheet file to upload the content from spread sheet the function module is ALSM_EXCEL_TO_INTERNAL_TABLE or you can use the CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT or cl_gui_frontend_services=>clipboard_export method.
    Regards
    Dhirendra

  • Method class for calling/executing VB script from abap

    Hi All,
    I need to call a vb script from abap.
    This vb script performs some function then.
    For executing this VB script i use the method CL CL_GUI_FRONTEND_SERVICES=>Execute.
    Now i need to pass data to the vb script in the from of a structure/workarea.
    Does anyone have any idea on what class/method shoul i use?
    Regards,
    Harshit Rungta

    Check Connect VB to SAP
    Kanagaraja L

  • Gui_upload (class method) problem

    Hi friends,
    I used the FM gui_upload to transfer a txt file. It works fine, but now i need to change to class method gui_upload. But my txt file have 8 blank space at end of each line. When i changed to class method gui_upload, theses spaces were deleted.
    What i need to do to keep the final space??
    Thanks in advance!

    Use GUI_DOWNLOAD method of CL_GUI_FRONTEND_SERVICES and use parameter  TRUNC_TRAILING_BLANKS_EOL parameter = space.
    Best!
    Jim

  • Preparing for upgrade and Unicode conversion while on 4.6c

    We're currently on 4.6c and preparing to upgrade to ERP 2005 and do a Unicode conversion.  I'm trying to compile a list of coding techniques that can used in 4.6c that will minimize changes needed for Unicode.  Does anyone have such a list?
    Some things I've discovered reading about Unicode include:
    1) Use GUI_UPLOAD and GUI_DOWNLOAD rather than WS_UPLOAD and WS_DOWNLOAD.
    2) Structures or table headers that contain non-character data need to be identical when moving, comparing, selecting into, updating from, etc.  This includes not moving structures/tables with non-character data to a character field or vice-versa.
    3) Offsets can't cross non-character data.
    4) Assign statement with offset must specify a length.
    5) Open dataset must specify "FOR INPUT", "FOR OUTPUT", "FOR APPENDING", or "FOR  UPDATE".  It no longer defaults to FOR INPUT when omitted.
    6) Many implicit conversions from char to numeric are no longer allowed.  Use explicit conversion instead; such as the move statement.
    I know there are others.  Any help would be appreciated.
    Regards,
    Mark Perrey

    Hai Mark
    Check the following F.M Replacents
    Upgrade Error Details     Suggestions
    Function Module "DOCUMENT_REGISTRY_PROGRAM"not found in the target system     Suggest to replace this FM with the function module CV120_GET_APPL_FROM_REGISTRY.
    Function Module "RP_HIRE+FIRE"not found in the target system     Suggest to replace this FM with the function module RP_HIRE_FIRE .
    Function Module "ME_READ_HEADER_SINGLE" not found in the target system     Suggest to replace this FM with the function module ME_EKKO_SINGLE_READ.
    Function Module "ME_READ_ITEM_SINGLE" not found in the target system     Suggest to replace this FM with the function module ME_EKPO_SINGLE_READ.
    Function Module "RZL_ALERT_CONTROL" not found in the target system     Function Module "RZL_ALERT_CONTROL" is not available in the Enterprise Version. Suggest to use the function module "TH_SEND_ADM_MESS" to acheive the same functionality of "RZL_ALERT_CONTROL".
    Function Module "MM_SELECT_ADDRESS" not found in the target system     Suggest to replace this FM with the function module MM_SELECT_PARTNER.
    Function Module "MM_READ_ADDRESS" not found in the target system     Suggest to replace this FM with the function module MM_PARTNERS_FOR_MESSAGING
    Function Module "ME_VALUES_T161" not found in the target system     Suggest to replace this FM with the function module HELP_VALUES_BSART.
    Function Module "ME_VALUES_T024W" not found in the target system     . Suggest to replace this FM with the function module HELP_VALUES_WERKS.
    Function Module "SD_PACKING_REFRESH" not found in the target system     Suggest to replace this FM with the function module HU_PACKING_REFRESH.
    Function Module "SD_PACKING_RENAME" not found in the target system      Suggest to replace this FM with the function module V51P_PACKING_RENAME.
    Function Module "RV_EXPORT_CONTROL_UPDATE" not found in the target system     Suggest to replace this FM with the function module RV_EXPORT_CONTROL_UPD_PREPARE.
    Function Module "RV_INVOICE_COPY" not found in the target system     Suggest to replace this FM with the function module RV_SALES_DOCUMENT_COPY.
    Function Module "SD_SCHEDULE_AGREEMENT_PACKING" not found in the target system     Suggest to replace this FM with the function module HU_PACKING_SALES_PROPOSAL.
    Function Module "SERIAL_RENUM_WV" not found in the target system     Suggest to replace this FM with the function module IWOL_WV_SWITCH_NUMBER.
    Function Module "CUD0_DISPLAY_CONFIGURATION" not found in the target system     Suggest to replace this FM with the function module VC_I_DISPLAY_CONFIGURATION.
    Function Module "SD_PACKING_CREATE" not found in the target system     Suggest to replace this FM with the function module V51F_PACKING_CREATE.
    Function Module "FI_ARCHIVE_CHECK_DOC" not found in the target system     Function Module FI_ARCHIVE_CHECK_DOC is not available in the Enterprise Version. Suggest to replace this FM with the function module FI_DOCUMENT_ARCH_CHECK_DOCS.
    Function Module "OPEN_FI_CHECK" not found in the target system     Function Module OPEN_FI_CHECK is not available in the Enterprise Version. Suggest to replace this FM with the function module OPEN_FI_PERFORM_******_E.
    Function Module "SD_PACKING_UPDATE"not found in the target system     Function Module SD_PACKING_UPDATE is not available in the Enterprise Version. Suggest to replace this FM with the function module HU_PACKING_UPDATE.
    Function Module "F4_MACO" is being used in the program     Function Module "F4_MACO" is not available in the Enterprise Version. Since the Matchcode objects are not used in the Enterprise Version, Suggest to replace this FM with Search help's Value Request function module F4_SEARCH_HELP.
    Function Module "SWZ_AI_RELEASE_S" is used in the program     Suggest to use the function module "SWZ_AI_RELEASE" instead of "SWZ_AI_RELEASE_S".
    Function Module "SWW_WI_ORGTASK_READ" is  used in the program      Suggest to replace this FM with the function module RH_WI_ORGTASK_READ.
    Function Module "RH_READ_EXCEL_PATH" is being used in the program     Suggest to replace this FM with "RH_CHECK_EXCEL_SUPPORT".
    Function Module "RZL_ALERT_CONTROL" is used in the program     Function Module "RZL_ALERT_CONTROL" is not available in the Enterprise Version. Suggest to use the function module "TH_SEND_ADM_MESS" to acheive the same functionality of "RZL_ALERT_CONTROL".
    Function Module "CONVERT_TO_OTHER_CURRENCY" is used in the program     Suggest to ruse the function module "CONVERT_TO_LOCAL_CURRENCY" for currency conversion.
    Function Module "LOAN_TABLECONTROL_SCROLLING" is not available in the Enterprise Version.      Suggest to replace this FM with the function module SCROLLING_IN_TABLE.
    CALL FUNCTION 'DOWNLOAD' used in program is obsolete in target system.     "DOWNLOAD function module is obsolete and result in errors on Unicode systems or on systems that may potentially be Unicode enabled.
    Suggest to use the unicode enabled methods
    FILE_SAVE_DIALOG and GUI_DOWNLOAD
    from class CL_GUI_FRONTEND_SERVICES.
    Note:
    However, to support existing applications, a compatibility mode was added to the function module(enhanced with Support Package) that will forward calls to DOWNLOAD to the new GUI_DOWNLOAD functions."
    CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' used in program is obsolete in target system.     "HELP_VALUES_GET_NO_DD_NAME function module is obsolete and result in errors on Unicode systems or on systems that may potentially be Unicode enabled.
    Suggest to use the function module F4IF_INT_TABLE_VALUE_REQUEST in the target system."
    CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' used in program is obsolete in target system.     "POPUP_TO_CONFIRM_LOSS_OF_DATA is obsolete in the target system.
    Suggest to use function module POPUP_TO_CONFIRM."
    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' used in program is obsolete in target system.     "POPUP_TO_CONFIRM_STEP is obsolete in the target system.
    Suggest to use function module POPUP_TO_CONFIRM."
    CALL FUNCTION 'WS_DOWNLOAD' used in program is obsolete in target system.     "WS_DOWNLOAD function module is obsolete and result in errors on Unicode systems or on systems that may potentially be Unicode enabled.
    Suggest to use the unicode enabled GUI_DOWNLOAD function module.
    Note:
    However, to support existing applications, a compatibility mode was added to the function module(enhanced with Support Package) that will forward calls to WS_DOWNLOAD to the new GUI_DOWNLOAD function."
    CALL FUNCTION 'WS_FILENAME_GET' used in program is obsolete in target system.     "WS_FILENAME_GET function module is obsolete, and results in errors on Unicode systems.
    Suggest to use FILE_OPEN_DIALOG und FILE_SAVE_DIALOG Unicode-enabled methods of the cl_gui_frontend_services class.
    Note:
    New applications should restart on these methods instead of the function module. The function module is extended by a Support Package so that it diverts calls to the methods without the application having to be changed."
    CALL FUNCTION 'WS_UPLOAD' used in program is obsolete in target system.     "WS_UPLOAD function module is obsolete and result in errors on Unicode systems or on systems that may potentially be Unicode enabled.
    Suggest to use the unicode enabled GUI_UPLOAD function module.
    Note:
    However, to support existing applications, a compatibility mode was added to the function module(enhanced with Support Package) that will forward calls to WS_UPLOAD to the new GUI_UPLOAD function."
    Function parameters EBENE, GRUPP, DATE_LOW, DATE_HIGH, BANKK. BUKRS, S_BUKRS, S_DISPW in function module CASH_FORECAST_TR_SELECT_ITEM is missing in the target system.     "Function Module CASH_FORECAST_TR_SELECT_ITEM is no longer used, instead it has been split based on the functionalities.
    Suggest to use function module
    1) CASH_FORECAST_PR_SELECT_ITEM for Payment Arrangements.
    2) For TR, WP, DA use function module CASH_FORECAST_TR_ITEM_2.
    The IMPORT and TABLES parameters of the above 2 function modules are almost same as CASH_FORECAST_TR_SELECT_ITEM.
    The IMPORT parameter BUKRS is not available in the above 2 function modules. Hence suggest to change the coding accordingly."
    Import parameter BUKRS in function CASH_FORECAST_LO_SELECT_ITEM is missing in the target system.     "Import parameter BUKRS in function CASH_FORECAST_LO_SELECT_ITEM is not available in the target system.
    Also the coding in Function Module based on the parameter BUKRS has been removed, instead the TABLES parameter S_BUKRS and S_GSBER has been used.
    Suggest to check the coding in the program accordingly.
    Import parameter BUKRS in function CASH_FORECAST_RE_SELECT_ITEM is missing in the target system.     "Import parameter BUKRS in function CASH_FORECAST_RE_SELECT_ITEM is not available in the target system.
    Also the coding in Function Module based on the parameter BUKRS has been removed, instead the TABLES parameter S_BUKRS and S_GSBER(new parameter) has been used.
    Suggest to check the coding in the program accordingly.
    Function Module HELP_VALUES_GET_WITH_MACO is obsolete in target system     Suggest to use F4IF_FIELD_VALUE_REQUEST
    Function Module G_OBJECT_GET is obsolete in target system.     Suggest to Use G_INTERVAL_GET_NEXT
    Function Module READ_COSTCENTER is obsolete in target system     Suggest to Use K_COSTCENTER_SELECT_SINGLE
    Function Module K_BUSINESS_PROCESS_READ_MULTI is obsolete or not available in target system     Suggest to Use K_PROCESSES_SELECT_TAB
    G_SET_AVAILABLE     Suggest to Use G_SET_GET_INFO
    Function Module G_SET_DOUBLE_CHECK is obsolete or not available in target system     "DO NOT CALL THIS FUNCTION MODULE
    FROM 4.0A VERSION ,THIS PROBLEM WILL NOT OCCUR"
    Function Module HELP_VALUES_GET is obsolete or not available in target system     Suggest to Use F4IF_FIELD_VALUE_REQUEST
    G_SELECT_SET     Suggest to Use G_SET_SELECT
    Function Module G_SET_AVAILABLE is obsolete or not available in target system     Suggest to Use G_SET_GET_INFO
    Function Module NAMETAB_GET is obsolete or not available in target system     Suggest to Use DDIF_FIELDINFO_GET
    Function Module DD_GET_DD03P is obsolete or not available in target system     Suggest to Use DDIF_FIELDINFO_GET / DDIF_TABL_GET
    CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' used in program is obsolete in target system.     Suggest to use function module POPUP_TO_CONFIRM.
    CALL FUNCTION 'POPUP_TO_DECIDE' used in program is obsolete in target system.     Suggest to use function module POPUP_TO_CONFIRM.
    Function Module HELP_VALUES_GET_WITH_TABLE is obsolete or not available in target system     Suggest to Use F4TOOL_F4FUNCTION_BRIDGE
    Function Module CLPB_EXPORT is obsolete or not available in target system     "Suggest to Use Suggest to use the unicode enabled methods
    CLIPBOARD_EXPORT from class CL_GUI_FRONTEND_SERVICES."
    Function Module SAP_TO_ISO_MEASURE_UNIT_CODE is obsolete or not available in target system     Suggest to Use UNIT_OF_MEASURE_SAP_TO_ISO
    Regards
    Sreeni

  • Add columns to EXCEL exported from ALV

    Hi,
    I'm using the function module REUSE_ALV_GRID_DISPLAY, to display an ALV report. This report shows a standard text when users click on one column.
    I wanna know if its possible to add the standard text as a column into the EXCEL exported from this ALV? and if so, how can I do it?
    Regards.
    Gregory.

    Thanks again Raymond,
    With internal tables that have a type from ABAP dictionary works fine. My problem is that my internal table is declared into my program's global variables. My code bellow:
    DATA: BEGIN OF it_excel OCCURS 0,
             department  TYPE adcp-department,
             bname       TYPE usr02-bname,
             name_text   TYPE adrp-name_text,
             agr_name    TYPE agr_users-agr_name,
             text        TYPE agr_texts-text,
             from_dat    TYPE agr_users-from_dat,
             to_dat      TYPE agr_users-to_dat,
             tcode       TYPE agr_tcodes-tcode,
             ttext       TYPE tstct-ttext,
             tdesc       TYPE string,
          END OF it_excel.
    * fills the it_excel table
    perform fill_excel_data.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title         = 'File location'
          file_filter          = cl_gui_frontend_services=>filetype_excel
          prompt_on_overwrite  = 'X'
        CHANGING
          filename             = v_file
          path                 = v_path
          fullpath             = v_fpath
          user_action          = v_useraction
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      CHECK sy-subrc EQ 0 AND v_useraction EQ 0.
      CREATE OBJECT v_excel 'EXCEL.APPLICATION'.
      SET PROPERTY OF v_excel 'VISIBLE' = 0.
      CALL METHOD OF v_excel 'WORKBOOKS' = v_workbooks.
      CALL METHOD OF v_workbooks 'ADD'.
      SET PROPERTY OF v_excel 'SHEETSINNEWWORKBOOK' = 1.
      CALL METHOD OF v_excel 'Worksheets' = v_sheet
        EXPORTING #1 = 1.
      CALL METHOD OF v_sheet 'Activate'.
      CLEAR v_subrc.
      CALL METHOD cl_gui_frontend_services=>clipboard_export
        IMPORTING
          data                 = it_excel[]
        CHANGING
          rc                   = v_subrc
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      CHECK v_subrc EQ 0.
      GET PROPERTY OF v_excel 'ACTIVESHEET' = v_sheet.
      CALL METHOD OF v_sheet 'PASTE' NO FLUSH.
      CALL METHOD OF v_sheet 'SAVEAS'
        EXPORTING #1 = v_fpath #2 = 1.
    When calling cl_gui_frontend_services=>clipboard_export method the variable v_subrc is equal to 0 and sy-subrc is equal to 1 and the EXCEL file is not saved.
    Can you please tell me, what am I doing wrong?
    Regards,
    Gregory
    Edited by: Gregory Mayorga on Sep 7, 2010 10:56 AM

  • How to print the file name in sap

    Hi All,
    I have requirment like,
    there is a folder in my local system, inside that folder there are 10 Excel file like file1.xls,file2.xls..............file10.xls
    how to print the file name of all these file in SAp like
    file1.xls
    file2.xls
    file3.xls
    file4.xls
    file10.xls
    Appropriate points will be rewarded.
    Thanks in Advance
    Arun kumar

    Hi,
    Still you are facing any problem with this code expalin the problem with details , otherwise close this thread.
    Use Method <b>cl_gui_frontend_services=>directory_list_files</b> to read file names for a given directory
    after reading the files then Use FM : <b>RSPO_SX_OUTPUT_TEXTDATA</b> to create spool from internal table data and print the data.
    <b>sample code :</b>
    data: desktop_dir type string.
    data: ifiles type table of string.
    data: xfiles type string.
    data: count type i.
    data: filepath type string.
    call method cl_gui_frontend_services=>get_desktop_directory
      changing
        desktop_directory    = desktop_dir .
    call method cl_gui_cfw=>flush.
    call method cl_gui_frontend_services=>directory_list_files
      exporting
        directory                   = desktop_dir
    *    filter                      = '*.xls'
         files_only                  = 'X'
    *        DIRECTORIES_ONLY            =
      changing
        file_table                  = ifiles
        count                       = count.
      DATA : x_name       LIKE tsp03d-name,
             x_dest       LIKE tsp03d-padest VALUE 'LOCL',
             x_rows       LIKE sxpcklsti1-body_num VALUE 0,
             x_startrow   LIKE sxpcklsti1-body_start VALUE 1,
             x_pages      LIKE rspotype-pages VALUE 1,
             x_pages_1    TYPE p DECIMALS 2,
             x_rqtitle    LIKE sxpcklsti1-obj_descr,
             x_rqcopies   TYPE i VALUE 1,
             x_rqowner    LIKE trdyse01cm-username,
             x_immediate  LIKE pri_params-primm VALUE ' ',
             x_rqid       LIKE tsp01-rqident,
             i_contents    LIKE  solisti1 OCCURS 0 WITH HEADER LINE,
          x_pages   = 1.
          x_rqowner = sy-uname.
          x_dest     = 'LOCL'.
          x_startrow = 1.
          x_rqcopies = 1.
          x_immediate = 'X' .
          CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
           EXPORTING
    *       name                 =   x_name
             dest                 =  x_dest
             rows                 =  x_rows
             startrow             =  x_startrow
             pages                =  x_pages
             rqtitle              =  x_rqtitle
             rqcopies             =  x_rqcopies
             rqowner              =  x_rqowner
             immediately          =  x_immediate
           IMPORTING
             rqid                 =  x_rqid
           TABLES
             text_data            = i_contents
           EXCEPTIONS
             name_missing         = 1
             name_twice           = 2
             not_found            = 3
             illegal_layout       = 4
             internal_error       = 5
             size_mismatch        = 6
             OTHERS               = 7.
          IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Regards
    Appana
    *Reward Points for helpful answers
    Message was edited by: L Appana

  • ECC 6.0 bar chart short dump

    We are starting an upgrade from 4.7(non-Unicode) to ECC 6.0(Unicode), using SAPgui for Windows (version 7.10).  In our 4.7 systems, the graphical bar chart on the Project Planning Board (txn CJ2C) works as expected.  However, in the 6.0 development system, before displaying the gantt chart, the system short dumps with CREATE_ERROR.
    I have searched the forums and looked through OSS notes and was unable to find anything that described the problem or was pertinent to our release.  I have debugged through the transaction and am finding that the short dump occurs in method cl_gui_barchart=>constructor around the following code:
    at line 83 if the system is unicode (which it is), the code calls method cl_gui_frontend_services=>check_gui_support, exporting 'ganttcontrol'/'usedataasstream' and expecting a result in variable l_guisupp_data_as_string.  When it returns from the check_gui_support method, l_guisupp_data_as_string is blank, so the next "if" statement raises an error that is not handled:
         if l_guisupp_data_as_string = abap_true.
         .....code not executed because the variable = abap_false.
         else.
         .....raise create_error.    <<<<< this is where the dump occurs.
         endif.
    Note that in the debugger, if I force l_guisupp_data_as_string to be = abap_true, the gantt chart/barchart displays as expected.  (gotta love the debugger)  But since it is standard SAP code I would prefer to resolve the problem without a modification and am hoping someone out there can point me in the right direction.
    This short dump occurs with gui versions 710 and lower.  (I personally am using sapgui version 710, patch level 7.)  Has anyone had problems like this with the graphical elements in SAP or does anyone have a suggestion as to why the gui is not displaying the barchart correctly in our unicode system?
    Sorry for the very long message, but thanks in advance for the help!
    Amanda Salt
    Edited by: Amanda Salt on Jun 17, 2008 11:14 PM

    We are starting an upgrade from 4.7(non-Unicode) to ECC 6.0(Unicode), using SAPgui for Windows (version 7.10).  In our 4.7 systems, the graphical bar chart on the Project Planning Board (txn CJ2C) works as expected.  However, in the 6.0 development system, before displaying the gantt chart, the system short dumps with CREATE_ERROR.
    I have searched the forums and looked through OSS notes and was unable to find anything that described the problem or was pertinent to our release.  I have debugged through the transaction and am finding that the short dump occurs in method cl_gui_barchart=>constructor around the following code:
    at line 83 if the system is unicode (which it is), the code calls method cl_gui_frontend_services=>check_gui_support, exporting 'ganttcontrol'/'usedataasstream' and expecting a result in variable l_guisupp_data_as_string.  When it returns from the check_gui_support method, l_guisupp_data_as_string is blank, so the next "if" statement raises an error that is not handled:
         if l_guisupp_data_as_string = abap_true.
         .....code not executed because the variable = abap_false.
         else.
         .....raise create_error.    <<<<< this is where the dump occurs.
         endif.
    Note that in the debugger, if I force l_guisupp_data_as_string to be = abap_true, the gantt chart/barchart displays as expected.  (gotta love the debugger)  But since it is standard SAP code I would prefer to resolve the problem without a modification and am hoping someone out there can point me in the right direction.
    This short dump occurs with gui versions 710 and lower.  (I personally am using sapgui version 710, patch level 7.)  Has anyone had problems like this with the graphical elements in SAP or does anyone have a suggestion as to why the gui is not displaying the barchart correctly in our unicode system?
    Sorry for the very long message, but thanks in advance for the help!
    Amanda Salt
    Edited by: Amanda Salt on Jun 17, 2008 11:14 PM
    I just installed the latest patch on the SAPgui, so I am now running:
    Release: 710 Final Release
    File Version: 7100.2.8.1039
    Build: 983952
    Patch Level: 8
    But I am still getting the short dump.  I have done extensive searches of SAP Help, OSS notes, and this and other forums (even just looking up the problem on "google") but can't seem to find anything that applies to this scenario.  I'm not very familiar with the methods in cl_gui_frontend_services, so if anyone can give me a pointer of where else I can look, I would greatly appreciate it!
    I also have edited the Subject line to be more informative about the problem

  • Downloading the data to external file

    HI ABAPers,
       I have a dynamic internal table which i created using CREATE DATA statement and i have put in data into it. I have to download that internal table data into a external file. As the internal table is dynamically created it will be dereferenced using a field symbol. In all the download function modules like gui_download ws_downlaod and method like CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD we can pass only the standarad table for downloading the data and not the table which is dereferenced by field-symbols. Kindly help.
    Regards,
    Kasi S

    Hi Kasi,
    As the great Max just said, the best way for you to download the dynamic internal table is via an intermediate table made up of characters.
    Declare a table as under:
    DATA: BEGIN OF itab  OCCURS 0,
               FIELD TYPE char256,
              END OF itab.
    Then transfer the contents of your field symbol to this internal table row by row.
    Then you can download the table using CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD .
    Regards,
    Chetan.
    PS: Reward points if this helps.
    Regards,
    Chetan
    PS:Reward points if this helps.

  • How to get terminal name

    hello friends.
    where should i get the Terminal name whose making the changes.
    actually one user change the PO and i want who change this PO i get the User name but I Wants to know on which Terminal that changes was made can i get such detail.
    Its very urgent.
    thanks in advance.
    regards
    Bhaskar

    hi,
    you have to capture the IP of terminal.
    for caputing IP address,
    Use the class method <b>CL_GUI_FRONTEND_SERVICES=>GET_IP_ADDRESS</b>
    or
    Use the FM : TERMINAL_ID_GET
    DATA terminal LIKE USR41-TERMINAL.
    CALL FUNCTION 'TERMINAL_ID_GET'
    EXPORTING
       USERNAME                   = SY-UNAME
    IMPORTING
       TERMINAL                   = terminal
    rgds
    Anver

  • Ws_query function module obsolete in ECC 6.0

    HI experts,
       V r upgrading system from 4.6 to ecc 6.0 . In one of the programs FM ws_query is obsole, pls let me know the replacement of it.
    form process_selections_filen.
      call function 'WS_QUERY'
           exporting
                filename = p_filen
                query    = 'FE'
           importing
                return   = g_subrc
           exceptions
                others   = 1.
      check syst-subrc ne 0 or g_subrc ne 1.
      message e000(zz) with p_filen text-e01.
    endform.

    You must OO ABAP.
    You can use a method of CL_GUI_FRONTEND_SERVICES class to do the same process. This is the new class for handling files.

  • Reg: Interface - SAP payroll data to payroll system

    I am downloading employee data from SAP to TAB delimited flat files.
    For this , i am using logical databases PNP ,Info type P0002 and tables CATSDB.
    In selection screen, i am getting the file name by using PARAMETRERS.
    1.Then at selection-screen , I am calling a method  <b>CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG</b> for display a file open dialog .
    then using GET , i am collecting the reocords into an internal table and then downloading using CALL FUNCTION 'GUI_DOWNLOAD'.
    MY DOUBTS ARE
    1.this is an interface program,as the interface run, a log file should be produced.how to  do this???
    2.I am using CAll Method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG . is there an alternate function for this???
    3.Give me more information on CAll Method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG and RP_PROVIDE_FROM_LAST ?????
    4.Payroll data downloaded from SAP must be separated into different files depending on receiving payroll system and business unit.  This is because the data file will be specific to payroll system and business unit.  The file will however have the same format .
    i.e.From : SAP SYSTEM
        To:various systems
            1.PBHR
            2.MICROPAY
            3.PAYFLEX
            4.UNIPAY
    So what conditions i need to put???
    Pl kindly reply imm

    Jayasree,
    1.this is an interface program,as the interface run, a log file should be produced.how to do this???
    Generate a log in a internal table and use the method to download the data into a file. This will be your log file.
    2. I am using CAll Method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG . is there an alternate function for this???
    This will open a dialog where the user can choose which file needs to be read. This is the latest method that SAP has given, not sure why are you looking for alternatives.
    3. Give me more information on CAll Method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG and RP_PROVIDE_FROM_LAST ?????
    Sames as above.
    4. The conditions you need to know probably from your functional consultants as to which data needs to go to which system.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • How to get sytem information in abap

    Freinds,
    I want to create a screen/report form by executing them  or on that sceen user can know his/her computer existing ip,computer name please suggest.

    The GET_COMPUTER_NAME method of CL_GUI_FRONTEND_SERVICES can be used for the computer name. This class has a few methods for some other useful information too.

Maybe you are looking for

  • Aperture 3 book preview: Always WYSIWYG compared to the print?

    I have found that the Aperture photo book previews of identical images differ significantly depending on the file type.  This came to my attention when I compared .jpg images to RAW images on the same page.  The reds and resulting skin tones were ver

  • Contacts not loading from second iCloud account.

    I have two icloud accounts, one for personal, one for work. My home iMac and iPhone and iPad allows me to access both Contacts lists by accessing both accounts. The work iMac on Mountain Lion, will not let me see the Contacts from the personal iCloud

  • When I open a link in a new tab reduces the size of the font on the current page.

    The font is shrinked only on the current page (just like ctrl+wheemouse down). Happens if is ctrl+click or use the mouse middle button. Can you please advise how to fix this? Setting minimal font doesnt work. Thank you for your help.''

  • Not connected to internet message?

    I keep getting a message "not connected to the internet". I am connected to the internet. I've downloaded installed software and I click on icon and I get this message. I've tried everything. Disable virus software, logged on to different networks. H

  • Example of a IBAN Number

    Hi, Can any body give me an example of a IBAN number.What is the total composition like. I know its the is a combination of the following elements: - The bank country key - Check digit - Country-specific account number Regards Aravind