ALV Edit Mask isn't applied when exporting as "Spread Sheet".

Hi all,
One of our program has "Edit Mask" as XXXXX____ for displaying data in ALV (Mask first 5 numbers as X, display last 4 numbers as it is).  However, when data is exported as "Spread Sheet", the edit mask is not applied.  Does anyone know how to force edit mask when data is exported as SpreadSheet (MHTML)?  If you export as "local File" and then do "SpreadSheet", the edit mask works.. it is just when the direct "SpreadSheet" done, it doesn't work. 
(i.e. CL_GUI_ALV_GRID->EXPORT_TO_SPREAD_SHEET doesn't apply EDIT Masks set in Field Catalog.)
Here is more technical info.  We are on ECC 6.
Field Catalog is of type LVC_T_FCAT.
for a specific field, "EDIT_MASK" is set to XXXXX____.
The ALV is called using
My_ALV_CLASS->SET_TABLE_FOR_FIRST_DISPLAY
exporting
is_layout = My_layout
is_toolbar_excluding = my_toolbar_exclude
changing
it_outtab = My_data_table
it_fieldcatalog = MY_FIELD_CATALOG_DEFINATION_WHERE_EDIT_MASK_IS_SET
exceptions...
Thanks in advance!

Hello,
This is first time I am giving an answer.
Instead of using a function module to merge the field catalog, try doing it one by one.
for example,
pt_fieldcat-col_pos = 01.
pt_fieldcat-fieldname = 'KUNNR'.
APPEND pt_fieldcat.
pt_fieldcat-col_pos = 02.
pt_fieldcat-fieldname = 'IP'.
pt_fieldcat-edit = 'X'.
pt_fieldcat-edit_mask = '-.-.-.-'.
APPEND pt_fieldcat.
and use the structure Z_IPADDR in method parameters instead of a function.
CALL METHOD go_grid_ip->set_table_for_first_display
EXPORTING
     i_structure_name = 'Z_IPADDR'
     it_toolbar_excluding = lt_exclude
     is_layout = ls_layout
CHANGING
     it_fieldcatalog = pt_fieldcat
     it_outtab = p_t_auth_ip.
CALL METHOD go_grid_ip->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
and also you can use following function module to check if the edited value is still in ALV or not
CALL METHOD grid->check_changed_data
    IMPORTING
      e_valid = l_valid.
  IF l_valid IS NOT INITIAL.
then the edited data in alv is successfully changed in internal table behind that.
Debugging may find you an answer.
Kind Regards,
Manisha

Similar Messages

  • Blur effect not applied when exported to swf ?????

    hello,
    I have added a fast blur effect to a portion of my video project in AE, it looks great in AE.
    but when I export it out to a swf, the blur effect is not applied, why??????
    thank you

    See "Render and export a composition as a SWF file" for a description of what is supported and what isn't for SWF export.
    You can choose to either ignore or rasterize unsupported items. It seems that you probably have the Ignore setting selected.

  • Alv output splitting into two rows when converting into excel sheet.

    Hi frends,
    I have alv report with 60 fields . The report output is coming currently .  But when i am exporting into excel sheet from the option local file--> speadsheet  each row is splitting into two rows including header in excel sheet.
    Please provide your valuable suggestions to avoid this.
    Regards,
    Ramu .
    Edited by: Ramu.K on Sep 8, 2009 5:59 PM

    Hi,
    Please use the grid option and with the Spreadsheet button (CntrShiftF7). Do  "Save as" and save it as excel. It should work.
    Regards,
    Pradyumna

  • ALV output when transporting to spread sheet

    Hi all ,
      I am finding problem when I am transporting my ALV grid output to spread sheet. Irrespective of order all integer fields are moving to right most of the spread sheet.
      Actually i need to export that as it is in the output. Hope this is  a common problem. If any one faced this previously or know solution for this please let me know.
    regards
    raghav

    Raghav,
    You will need to create some custom functionality for your needs.
    I would suggest passing your internal table in this Func Module - MS_EXCEL_OLE_STANDARD_DAT.
    You can also pass a listing of field headers will be placed above each column in the Excel output as well (if needed).
    Example:
    TYPES:  BEGIN OF t_output,
              text80(80),
              kgoal(20),
              ytd(20),
              p1(20),
              p2(20),
              p3(20),
              p4(20),
              p5(20),
              p6(20),
              p7(20),
              p8(20),
              p9(20),
              p10(20),
              p11(20),
              p12(20),
              rowcolor(4),
            END OF t_output.
    DATA: single_output_tbl TYPE TABLE OF t_output WITH HEADER LINE.
      DATA: sname LIKE rlgrap-filename.
      data: outname LIKE rlgrap-filename.
      DATA: BEGIN OF fnames OCCURS 0,
              cname(80),
            END OF fnames.
      sname = 'Output'.
      outname = 'c:\outfile'.
      PERFORM insert_headings.
       CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                       = outname
        CREATE_PIVOT                    = 0
          data_sheet_name                 = sname
        PIVOT_SHEET_NAME                = ' '
        PASSWORD                        = ' '
        PASSWORD_OPTION                 = 0
       TABLES
        PIVOT_FIELD_TAB                 =
         data_tab                        = single_output_tbl
         fieldnames                      = fnames
       EXCEPTIONS
         file_not_exist                  = 1
         filename_expected               = 2
         communication_error             = 3
         ole_object_method_error         = 4
         ole_object_property_error       = 5
         invalid_pivot_fields            = 6
         download_problem                = 7
         OTHERS                          = 8.
      IF sy-subrc <> 0.
       MESSAGE s000(zz) WITH 'Export to Excel failed.'.
      ENDIF.
    FORM insert_headings.
      CLEAR fnames.  REFRESH fnames.
      MOVE ' ' TO fnames-cname.
      APPEND fnames.
      MOVE 'Company Goals' TO fnames-cname.
      APPEND fnames.
      MOVE 'YTD' TO fnames-cname.
      APPEND fnames.
      MOVE 'P1' TO fnames-cname.
      APPEND fnames.
      MOVE 'P2' TO fnames-cname.
      APPEND fnames.
      MOVE 'P3' TO fnames-cname.
      APPEND fnames.
      MOVE 'P4' TO fnames-cname.
      APPEND fnames.
      MOVE 'P5' TO fnames-cname.
      APPEND fnames.
      MOVE 'P6' TO fnames-cname.
      APPEND fnames.
      MOVE 'P7' TO fnames-cname.
      APPEND fnames.
      MOVE 'P8' TO fnames-cname.
      APPEND fnames.
      MOVE 'P9' TO fnames-cname.
      APPEND fnames.
      MOVE 'P10' TO fnames-cname.
      APPEND fnames.
      MOVE 'P11' TO fnames-cname.
      APPEND fnames.
      MOVE 'P12' TO fnames-cname.
      APPEND fnames.
    ENDFORM.                    " Insert_Headings
    Please points for helpful answers.

  • Missing page header when exporting a Numbers sheet to PDF??

    I am running OS X 10.8.5 and Numbers 09 Version 2.3, all on a 2009 MBP.
    I created a simple table and have a page header (title, etc).
    When I print this file directly from Numbers to the printer, everything is okay.
    But when I export the file to PDF and print the PDF, the header is gone.
    Any thoughts?

    I have done some addtional problem solving. I now have the issue isolated to the export function. It does not export the page header when exporting to PDF. It does do it when exporting to file type - post script.
    Interesting.
    Anybody got something to add here?

  • ALV truncation while download using  List--Save/send--File--Spread sheet

    Experts,
    In ALV output, I am trying to download using menu item
    "List --> Save/send  --> File --> Spread sheet" then in the popup appears
    here if i GIVE the FILE NAME THEN,material number is getting truncated.
    If I don't give any file name it is storing as ".xls" and not getting truncated.
    How to correct this or avoid this truncation.
    OR
    If we can't do correction about truncation ...my function consultant is asking to
    to disable "List --> Save/send  --> File".
    Thanks in advance.
    Sam

    Solved by my own....
    We need to pass
    i_fieldcat-no_zero = 'X'.
    so that the zeros at the end  won't get truncated.

  • Changes are not applied when exporting to plugin

    When I make changes to an image in Aperture (e.g. white balance) and then go to an editing plugin (Viveza, Dodge and burn,…) Aperture hands over the unedited file to the plugin. Can I change this beahiour or force Aperture to apply edits before editing with a plugin?

    David,
    This isn't normal behaviour at all. Are you sure you have the edited file selected when you choose to export to a plugin? For instance if Aperture is set to create a new version with each edit it'll create a stack containing all versions - if you then chose the stack when you export you could be selecting a pick that doesn't reflect your latest edits...
    This is all I can think of at the moment. I've never seen that bug before. Aperture bakes in all of a selection's edits to either a tiff or psd file when choosing any plugin. You can't select to do otherwise.
    There are exceptions with external applications when doing multiple passes, but that's an entirely different problem.

  • ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.

    Hi all,
    In our SAP system (6.0 ECC) we've noticed the following behaviour:
    In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
    We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
    It's possible to have tha same functionality in this new version like in 4.7?
    Regards.
    Edited by: Ole ES on Nov 17, 2010 6:05 PM

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

  • ALV truncates last digit of field when exported to Excel.

    Hello SAPients!
    I have an ALV grid that truncates the last digit of one of the fields (VBELN) when it is exported to Excel. The field is defined with reference to the standard field VBRK-VBELN.
    I'm working on SAP 4.6C.
    Any idea?
    Thank you for your help

    That's funny.  Make sure the the outputlen is big enough.
    REgards,
    RIch Heilman

  • Edited photo isn't saving when sharing or emailing

    Maybe this is supposed to happen? But when I try to "share" my edited photo via facebook, mobileme or via email, the ORIGINAL is the one that seems to be attached, not the photo I edited, even though the only option for me IS the edited photo (ie. I did not create a duplicate photo and email the original). Does anyone else have this same problem? Or is this just the way it is?

    backup your library and depress the option and command keys and launch iPhoto and repair the library - if that does not fix it do it again and rebuild from the last automatic database backup
    LN

  • ALV Grid Display - Dump when exporting (via right click)

    Hi,
    We have an ALV filled with a dynamic table because we needed dynamic columns. Our ALV has totals and subtotals. When exporting ALV via right click I get the following error:
    OBJECTS_OBJREF_NOT_ASSIGNED
    I observed two facts:
    1.- If I disable subtotals and totals (commentig wa_cat-do_sum = 'X') export works properly, otherwise I get the dump.
    2.- Having totals and subtotals enabled, if I use export icon (top toolbar) the export works properly, but using right-click export gets the same dump.
    Our fieldcat is like this:
        CLEAR wa_cat.
        wa_cat-fieldname = g_cols.
        wa_cat-seltext_s = gi_subdiv-btrtl.
        wa_cat-seltext_l =  gi_subdiv-btrtl.
        wa_cat-datatype = 'INT4'.
        wa_cat-do_sum = 'X'.
        wa_cat-outputlen = '6'.
        APPEND wa_cat TO fs_fldcat.
    and we call ALV:
    * Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat            = fs_fldcat
          i_callback_program     = v_repid
          is_layout              = s_layout
          i_callback_user_command  = 'USER_COMMAND'
          it_sort                = t_sort
    *      i_callback_top_of_page = 'F_TOP_OF_PAGE'
          i_save                 = 'X'
        TABLES
          t_outtab               = <t_dyntable>.
    Any help will be appreciated!
    Thanks,
    Josep

    Hi kat_k,
    I tried to do what you say, but I still get the same error!
    More ideas?
    Thanks!
    Josep

  • BOBI 4.x Webi - Graphs when exported to Excel, turns as picture.

    Hello,
    In SAP BO XI 3.x version, a Webi document having graphs, when exported to Excel sheet, the graphs are exported as they are and were able to modify them. However, in SAP BO BI 4.x version, the graphs are exported as picture and are not able modify them.
    I tried with multiple 4.x versions even with 4.1 SP4, but its still the same.
    Is this by design that the Chart\Graph engine saves them as picture in 4.x or there are some settings that need to be done?
    Any help is much appreciated.
    Regards,
    Abhay

    Hello Abhay,
    As you suspected, the functionality to add webi chart as excel chart while exporting has been changed in BO 4.x version. Please see below idea page where developers like us asking to restore the same functionality. The idea is under review now. Cast a vote for the idea.
    https://ideas.sap.com/ct/ct_a_view_idea.bix?c=1DA84A30-1E5A-43FA-95C5-857A8B99D197&idea_id=8F863F84-DFCB-48EF-B79B-348CCBC6D695
    Regards,
    Nikhil Joy

  • Excel Addin stops working when an other excel spread sheet is open

    Hi,
    I'm sure many would have faced this issue of,excel addin retreive either gets no results or gives an error message when an other spread sheet is active.
    Is there a work around or any option set up to get over this isssue. The version of essbase 11.1.2.1
    Thanks
    SC

    it happens when you open many excels ..and which u cant see in ur own desktop ..where when u go to task manager u can see excel process running at back end by killing those u can overcome the issue
    more over some time .xla gets corrupted or disabled which can be solved by going to excel help >about excel u can find disabled .xla files which u can refresh ...
    l..
    And some time u can see u try to retrive data in one sheet where data will be retrieved in another sheet ...like this there are many where the list is endless .. so mostly restarting excel will do ..Hope this gives u some workaround :)

  • Dump when exporting an ALV to excel at Portal

    Hi there,
    I am getting a dump ( Exception condition "CNTL_ERROR" raised) when exporting an ALV to an excel document. 
    I've done the following:
       1 - Create an ALV report at SAP R3 (with option export to excel);
       2 - Create a SAP transaction iview to show the ALV report at portal;
       3 - At portal, I am trying to export the ALV to excel.
    Isn't this correct?
    How can I get throught this problem. I really need to export this ALV to excel.
    Thanks and best regards,
    Vasco Brandã

    Hi,
    if it should not dump then it_output_alv-gehalt_eff this should be of type C. is it type char.
    and can you show the fieldcat of the field <b>gehalt_eff</b>, that might causing the problem. though you changed the type.
    Regards
    vijay

  • Header of ALV with space when exported to excel using Standard ALV

    Hi,
    I am Using Reuse alv grid display    to dispaly my report and it works fine and I am using the standard SAP application tool to export it to excel.
    But for some of the header fields I am getting space in the excel sheet but there is no space while displaying through ALV.
    I am using the following field catalog for the same.
    wa_fieldcat-col_pos = 10.
      wa_fieldcat-fieldname = 'SOLLWERT'.
      wa_fieldcat-seltext_l  = 'text-t10'.      "Target value (* this has no space here)
      wa_fieldcat-outputlen = 32.
    wa_fieldcat-colwidth_optimize = 'X'.
      APPEND wa_fieldcat to it_fieldcat.
    but there are still space for this Colomn when exported to excel if after optimizing the column.
    kindly suggest what field needs to be passed to the field catalogoe to avoid spaces in excel for the header.
    Thanks
    Ritesh

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

Maybe you are looking for

  • TS4006 how can i find my stolen imac i do have cloud id

    how can i find my stolen imac ? i do have cloud id.

  • Sent Items in the webMail

    HI All, could you please advice if there is any way to download the sent items which has been sent via webmail to the local outlook. other than move it to the inbox and download it. we are using iPlanet Messaging Server 5.2 Patch 2. Thanks All, K.Sad

  • Skip validation phase

    Hi My functionality is user creation. The fields are user name and role. I have an input text box to enter role name and a command button to search roles using the role name. My form has another input text box to enter user name and it is a required

  • All-day calendar entries and daylight savings time

    Since changing to daylight savings time, whenever I change the date on an all-day calendar entry, my iPad (but not my iPhone) changes the one-day calendar entry to a two-da calendar entry. How do I correct this?

  • Linux error 113

    on vmware , we have z box call rman.blobin.biz I have installed RMNDB on it on port 1571 . listener is also running on this. I am able to do sqlplus rman/rman@RMNDB. rman.blobin.biz tnsnames.ora for this DB has following entries. RMNDB = (DESCRIPTION