ALV Colours when making a column editable

Why do the colours of the entire table change when I make a column editable and how do I change them back to how they were?!

Hi Ian
The control itself adjusts the colors if you do not set them explicitly. You can get information on making all those adjustments on the ALV  Grid control from relevant sections of the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">"An Easy Reference for ALV Grid Control"</a>.
*--Serdar

Similar Messages

  • How to make a entire column editable in an ALV grid

    Hi all,
             I am trying to make a column editable in an ALV grid. For that I wrote the following code. In the below code I have set the 'edit' field of ls_fcat to 'X'. But Iam getting Runtime error. Can anyone help in resolving this problem or suggest any method to make a column editable in an ALV grid.
    form prepare_fc  changing go_fieldcat type lvc_t_fcat.
    data: ls_fcat type lvc_s_fcat.
    refresh: go_fieldcat.
    clear: ls_fcat.
    ls_fcat-reptext   = ' Safety Stock Figures'.
      ls_fcat-coltext    = 'Safety Stock Figures'.
      ls_fcat-fieldname  = 'EISBE'.
    ls_fcat-ref_table  = 'IMAT'.
      ls_fcat-edit = 'X'.
    modify go_fieldcat from ls_fcat.
      APPEND LS_FCAT TO GO_FIELDCAT.
    endform.
    Thanks & Regards,
    Vishnu Priya.

    ls_fcat-edit = 'X'.
    is correct only.
    have a look into this code
    struct_grid_lset  TYPE lvc_s_layo,
    i_grid_fcat    TYPE lvc_t_fcat
    DATA ls_fcat TYPE lvc_s_fcat.
      CLEAR ls_fcat.
      ls_fcat-fieldname = 'MONTH'.
      ls_fcat-ref_table = 'TYPE'.
      ls_fcat-ref_field = 'C'.
    <b>  ls_fcat-edit      = 'X'.</b>
      ls_fcat-coltext   = text-030."Month
      ls_fcat-seltext   = text-030.
      APPEND ls_fcat TO p_i_grid_fcat.
      CLEAR ls_fcat.
      ls_fcat-fieldname = 'YEAR'.
      ls_fcat-ref_table = 'TYPE'.
      ls_fcat-ref_field = 'C'.
      ls_fcat-coltext   = text-031."Year
      ls_fcat-seltext   = text-031.
      APPEND ls_fcat TO p_i_grid_fcat.
    CALL METHOD o_grid->set_table_for_first_display
          EXPORTING
            i_bypassing_buffer    =  space
            is_variant            =  ws_f_grid_disvar
            i_save                =  ws_c_grid_save
            is_layout             =  struct_grid_lset
          CHANGING
            it_outtab             =  i_grid_outs[]
            <b>it_fieldcatalog       =  i_grid_fcat[]</b>
            it_sort               =  i_sort_fcat.      " Period
    Also Check this code.Another way using field symbols.
    i_fieldcat    TYPE lvc_t_fcat,
           w_layout TYPE lvc_s_layo ,
           w_variant TYPE disvariant.
    FIELD-SYMBOLS : <lfs_fieldcat> TYPE lvc_s_fcat.
    *Default display
      LOOP AT p_fieldcat ASSIGNING <lfs_fieldcat>.
        CASE <lfs_fieldcat>-fieldname.
          WHEN 'GL_ACCT'.
            <lfs_fieldcat>-coltext = text-050.
            <lfs_fieldcat>-no_out = ' '.
            <lfs_fieldcat>-scrtext_l = text-050.
           <b> <lfs_fieldcat>-edit    = 'X'.</b>
    WHEN OTHERS.
        ENDCASE.
      ENDLOOP.
    Hope this helps.

  • How Format Text in ALV Colum when Column set as TEXTVIEW

    I am displaying ALV with Multiple Column's , One of the Column is TEXTVIEW .
    When ALV is Displayed TEXT Column Comes as Continues TEXT  and is Not Formatted .
    Now when i want to edit this text i am Calling another View which contains UI element Formated textview  . This Formated textview  will display correct Formatted Text . but when i save it and Come back to ALV again i do see continues text .
    I use the cl_salv_wd_uie_text_view to set the ALV Column as text view.
    Is there any way where in i can display the Formatted text in ALV Column ?
    Thanks in Advance
    Badarinarayan patil

    Hi ,
    You cannot use the Formatted TextView as a celleditor in table or ALV , its not provided by SAP .
    Regards
    Yash

  • No column heading in second page in alv report when save in excel file

    Hi Expert,
    How can i remove the column header from Alv report when program execute in background and save in excel file right now
    its comming column header in each page. Client dont want header column in excel from second page. is this possible?
    with regards
    chandan_viji

    Hi Ravi,
    thanks for reply i have solved this problm throug line count and NEW-PAGE LINE COUNT 10000 bcoz client want output in excel file only one page header.
    with regards
    chandan_viji

  • [svn:fx-trunk] 13293: When making the halo - mx namespace changes we missed the following edits in revision 12635.

    Revision: 13293
    Revision: 13293
    Author:   [email protected]
    Date:     2010-01-05 17:07:48 -0800 (Tue, 05 Jan 2010)
    Log Message:
    When making the halo -> mx namespace changes we missed the following edits in revision 12635. The mxml-manifest.xml describes the contents of the legacy Flex 3 MXML 2006 namespace and the presence of this file is required by Flash Builder. The mx-manifest.xml describes the contents of the MX Component Library namespace. From MXML 2009 onwards it does not include the built-in ActionScript types (those are language elements in the MXML 2009 language namespace).
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-24568 - Remove obsolete library://ns.adobe.com/flex/halo mapping from frameworks flex-config.xml and air-config.xml
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24568
    Modified Paths:
        flex/sdk/trunk/frameworks/air-config.xml
        flex/sdk/trunk/frameworks/flex-config.xml
        flex/sdk/trunk/frameworks/mx-manifest.xml
        flex/sdk/trunk/frameworks/mxml-manifest.xml
        flex/sdk/trunk/webapps/webtier/WEB-INF/flex/flex-config.xml

  • Leave out specified columns when making source ODBC connection to Access?

    Hello,
    I have question. I am making Non Oracle ODBC connection to Access file and then of course the Import of the tables from the Access file in OWB 10.2.0.1. Is it possible to choose and leave out (omit) some columns from the tables during this process? You may suggest that I should make connection to the whole table as it is and then leave out the unnecessary columns during mapping to the target table. But the problem is that these columns I would like to leave out are represented as LONG datatype which is not supported by Oracle (ORA-00997 problem). The result is that the tables with this datatype are "somehow imported" but it is not possibe to open them in Data Viewer (ORA-00997 message) and it is not possible to use them in Mapping editor (API8014 message). So, is it possible to choose only several columns from the Access table when making the ODBC connection to it and the Import of the tables to Non Oracle / ODBC / "eg. My Access" / Tables ?
    Thanks a lot!
    Jan

    OK,
    the first reply will be from me :)
    Now I found a solution which is not so elegant but works for me.
    My task was to make the connection and loading the data from Access to Oracle without any modification to the original source file (which is of course normal DW condition...).
    I created another Access file linked to the original one (no copy, only linkage, it means every change to the original file are immediately seen in the second one). It was not still possible to make changes to the attributes in this link file, so i created views (in Access called queries) of all the tables and here I left out unnecessary columns.
    Then I changed my ODBC connection link to the second file instead of first and tried to do it all the tasks in OWB... it works, I can see the data and I can use the views in mappings and so on...
    but if any one knows the solution just for OWB as I asked before, please let me know!!!
    Jan

  • Marking words with background colour, the colour disappears when making pdf. How to do?

    Hi, I am working with a project that needs to highlight certain word or phrases with different colours. I use the background colour option to do this, but when making a pdf, the colour disappears. How do I get this to work? FM10 unstructured.
    JW

    Unfortunately, this doesn't work in FM10 (or 11) using the CMYK settings - you have to use RGB and convert the colours either in the PDF (with tools like Enfocus' PitstopPro) or during the postscript stage with a tool like PubliPDF (see: Grafikhuset Publi PDF for GPL licensed freebie version; usage details and other info is available at: Welcome to Grafikhuset Publi PDF ).
    You could also try using the CMYK joboptions setting in the RGB mode to see if you get an acceptable conversion (however be aware that any graphics and images in the documents may be affected). You should also set GetLibraryColorRGBFromCMYK=None to prevent FM from trying to do unnecessary colour conversions.
    The background colour feature works correctly in the CMYK mode starting only with FM12.

  • Editable ALV issue: When Delete/Modify a row, ztable doesnt reflect changes

    Greeting Fellow Abapers,.
    I have been running into an issue that I need some advice on.  I am allowing users to edit a Ztable via ALV.  When the quantity field is updated everything is fine. However, when the field "lic_plate" is edited the code appends another row into the Ztable instead of modifying it.  Also, when the delete row functionality of the grid is used the row is not deleted from the Ztable.
    Here is the ztable structure. The fields I allow to be edited are in BOLD...
    ZPALLET-VBELN
    ZPALLET-MATNR
    ZPALLET-LINE_NUM
    ZPALLET-LIC_PLATE
    ZPALLET-LOT_NUMBER
    ZPALLET-PAL_TYPE
    ZPALLET-MAN_DATE
    ZPALLET-QUANTITY
    ZPALLET-PROC_DATE
    Here is the source code that the APPEND is taking place...
    FORM save_database .
    Getting the selected rows index*
      CALL METHOD o_grid->get_selected_rows
        IMPORTING
          et_index_rows = i_selected_rows.
    Through the index capturing the values of selected rows*
      LOOP AT i_selected_rows INTO w_selected_rows.
        READ TABLE itab INTO wa INDEX w_selected_rows-index.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING wa TO w_modified.
          APPEND w_modified TO i_modified.
        ENDIF.
      ENDLOOP.
    IF sy-subrc = 0.
        MODIFY zpallet FROM TABLE i_modified.
    ENDIF.
    ENDFORM.
    Please help. I am in your debt.
    ...as always, points will be awarded.
    Best,
    Dan

    Hello Dan
    When you are using an editable ALV for table maintenance you have to take care that the users
    - cannot edit the key fields of existing DB records   and
    - every new record (row) does not match any existing record (i.e. has identical key field values)
    Instead of relying on selected rows for the DB update I would recommend to store a "PBO image" of your data and compare this with the "PAI image" of the data as soon as the user pushes the SAVE button.
    Example:
    DATA:
      gt_outtab_pbo    TYPE   < your table type>,  " PBO image
      gt_outtab           TYPE   < your table type>.  " PAI image
    " 1. Select data from DB table and store in both itabs:
      SELECT * ... INTO TABLE gt_outtab.
      gt_outtab_pbo = gt_outtab.
    " 2. Display editable ALV list -> user modifies gt_outtab
    " 3. SAVE function requested
    " ... compare gt_outtab vs. gt_outtab_pbo
    " .... INSERT, UPDATE, or DELETE DB records
    " Finally set:
      gt_outtab_pbo = gt_outtab.
    " 2. User continues with editing
    In order to compare PBO vs. PAI data you may have a look at my sample coding:
    [Comparing Two Internal Tables - A Generic Approach|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/comparing%2btwo%2binternal%2btables%2b-%2ba%2bgeneric%2bapproach]
    Regards,
      Uwe

  • How to validate data in editable ALV report after making changes

    Hi Folks,
    My requirement is to display data in ALV format with quantity field is editable. Once we get the data in display mode only quantity field is enabled right. I am going to make changes to that quantity field and updating that modifed value to the database table. Before updating databse table i want to validate the data for perticluar field which I edidted(Quantity).
    Can you guide me on this.
    Currently I am using FM: GET_GLOBALS_FROM_SLVC_FULLSCR and calling the method CHECK_CHANGED_DATA.
    I want to validate the quantity data.
    If I entered negative value like -100 instead of 100. It should validate and show some popup screen or message.
    Pls guide me on this or give some code to do that.
    Thanks&Regards,
    Surendra

    Hey Surendra,
    Check if this helps: Link:[Click here|Edit Field in Oops Alv;
    There are many posts available for this requirement. Please look SDN/web for same.
    Regards,
    Santosh

  • Adobe Premiere Pro CS6 crashing when making edits

    I everyone. I migrated to Adobe Premiere Pro CS6 (I need to finish a couple of project before I can update the computer to CC and Mac OS 10.8.) and it's been crashing right from the begining. It's a random crash but my impression that it becomes more probable as the projects grow.
    It happens whenever I'm editing and I press the shortcut for "overwrite" or "insert". (It also happens when I press the icon or move the clip to the timeline)
    The screen message I get is this one:
    The log message that I get afterwards goes as follows:
    On previous days, I've been able to keep working just by deleting the Media database preview files from Premiere but it's not working anymore.
    I'm working with XMF files shot with a Canon C300 synced using premiere to sound files (.wav). It only happens when I try to edit but it doesn't matter if I try to edit sound, sound and image or just image.
    What it doesn't make sense is that it says something about "dynamic lynk" and, as far as I know, I'm not using dynamic link at all.
    Thanks in advance for your time and wisdom
    Jaime From Spain

    Now, a few updates after a very long night (just in case it might  help somebody)
    Up until last night, I was saving my Premiere Projects in a Dropbox Folder inside my computer. It was a quick safe way of having a backup copy. Well, it seems that the crash is somehow related. Don't ask me why but once I moved the project file to a regular hard drive (actually a RAID0 where I keep my heavier files) the crashes have stopped.
    This morning I went back to the dropbox idea with a new project and -Voilá!- after three hours of work, it crashed again. I moved the file to the RAID disk and no more crashes. My guess is that it is somehow related to the auto-save files that premiere keeps saving. Once it reaches a certain amount (around 20 in my experience) dropbox and Premiere start to do something weird and they crash the software... (It might be related to the software dropbox uses to keep your folders updated and keep backup versions of everything)
    I'll run a few tests next week trying to keep the Auto-save files out of dropbox and just the regular files there to see what happens.
    Best regards
    Jaime

  • Making few columns of excel editable and some readable

    Hi,
    i have a requirment were if we dowload from portal to excel using download to excel functionality, few columns should be editable and few readable. kindly help me to ressolve this issue.

    Hi Noel,
    There is a table in portal whose values i am exporting to excel  using download to excel button.  i want  3 columns of  this excel sheet to be readable and one column editable. how to do that?
    Edited by: AnujaSinha on Aug 26, 2011 7:19 AM
    Edited by: Anja Engelhardt on Aug 29, 2011 9:08 AM
    Be so kind and stay polite. Our community users try to help you. By the way: the question from Noel wasn't that bad. Why do you write the same stuff a second time instead of trying to explain in a better way?
    Anja (Moderator)

  • Making buttons change colour when clicked on, sounds simple......

    hello could somebody please give me the code to make a jbutton change colour when it is clicked on, muuuuuuuuuch appreciated, thanks!!!!!!!!!!!!!!!!!!!!

    w e l l - k e w l !
    I made a few adjustments here. Mainly for myself:- you know when you JUST CANNOT FIND THAT DARN COLOUR !!! - 'Pandavas' sexy little program is right on the button!
    Click on the button and it cycles through colours randomly and tells you the RGB value ...import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorChanges extends JFrame implements ActionListener {  
      int red = 0;
      int blue = 0;
      int green = 0;
      java.util.Random rand = new java.util.Random();
      JButton button = new JButton("Colour Me!");
      JLabel label1 = new JLabel("                  The new colours are:                ");
      JLabel label2 = new JLabel("");
      public ColorChanges() {
        super("RGB VALUES:");
        setSize(200,108);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
        button.addActionListener(this);
        getContentPane().setLayout(new FlowLayout() );
        getContentPane().add(button);
        getContentPane().add(label1);
        getContentPane().add(label2);
        setVisible(true);  
      public void actionPerformed(ActionEvent eve) {    
            red = (Math.abs((rand.nextInt())%255));
            blue = (Math.abs((rand.nextInt())%255));
            green = (Math.abs((rand.nextInt())%255));
            cooller();
      public void cooller() {   
          button.setBackground(new Color(red,green,blue));
          label2.setText("RED: "+red+" GREEN: "+green+" BLUE: "+blue);      
      public static void main(String[] args) {
          new ColorChanges();  
    }

  • ALV colouring download to excel sheet

    Hi Experts ,
    I have a requirement in which I have coloured the cells of the ALV display , in order to highlight them.
    I have made use of 'REUSE_ALV_GRID_DISPLAY' FM for displaying ALV.
    When I  download this output to an excel sheet , the colour filled in various cells disappears.
    Can someone let me know that , is it possible to retain this colour of the cell even after ALV download to an excel sheet?
    Thanks in Advance !!!

    Hi retwika
    I had searched on this previously and found out the following code,for download a report to excel with format (border, color cell, etc) 
    REPORT ZSIRI NO STANDARD PAGE HEADING.
    * this report demonstrates how to send some ABAP data to an
    * EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    * handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    TABLES: SPFLI.
    DATA  H TYPE I.
    * table of flights
    DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    * read flights
      SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
    * display header
      ULINE (61).
      WRITE: /     SY-VLINE NO-GAP,
              (3)  'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (4)  'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (8)  'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
      ULINE /(61).
    * display flights
      LOOP AT IT_SPFLI.
      WRITE: / SY-VLINE NO-GAP,
               IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
      ENDLOOP.
      ULINE /(61).
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = TEXT-007
           EXCEPTIONS
                OTHERS     = 1.
    * start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    *  PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    *  CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
    *  PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = TEXT-008
           EXCEPTIONS
                OTHERS     = 1.
    * get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    * add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    * output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    * copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    * changes by Kishore  - start
    *  CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    * add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP  EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    * tell user what is going on
      SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    * output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    * copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    * changes by Kishore  - end
    * disconnect from Excel
    *      CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING  #1 = 'C:\SKV.XLS'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
    *       FORM FILL_CELL                                                *
    *       sets cell at coordinates i,j to value val boldtype bold       *
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
    *       outputs OLE error if any                                       *
    *  -->  p1        text
    *  <--  p2        text
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
    Look out the changes
    Revert if any prblem
    Thanks and Regards
    Srikanth.P

  • Bad performance when deleting report column in webi(with "Design – Structure only")

    Hi all,
    One of our customer has recently upgraded from BO XI to BO4.1. In the new BO 4.1, they encountered a bad performance issue when they were deleting a column in Webi(using "Design – Structure only" mode).
    With “Design – Structure only" mode,  it took webi about 10 seconds to complete after the customer right-clicked a report column and clicked the "delete".  The customer said that they only need to wait for less than 1 second when they did the same in BO XI old version.
    The new BO version used is 4.1SP02, installed in Windows Server 2008 R2. (Server with 32 core CPU, 32G memory)
    This bad performance happened in both Webi web and Rich Client. (in Webi Rich Client, the performance is a little bit better. The 'delete column' action takes about 8 seconds to complete).
    Do anyone know how to tune this performance in webi?  Thank you.
    Besides, it seems that each time we are making change in the webi report structure in IE or Rich Client, webi need to interact with Server site to upload the changes. Is there any option to change this behavior?  Say, do not upload change to Server for when 'deleting report column', only trigger the upload after a set of actions(e.g. trigger when click the "Save" button).
    Thank you.
    Regards,
    Eton.

    Hi all,
    Could anyone help me on this?  Thanks!
    What customer concerns now is that when they did the same 'column editing' action in BO XI R2 for the same report, they did not need to wait.  And they need to wait for at least 7-8 second in the BO 4.1SP02 environment for this action to complete.(data already purged, in structure-only mode)
    One more information about the webi report being editing is: there are many sheets in the report(about 6~10 sheets in one report). Customer don't want to separate these sheet into different reports  as it will increase the effort of their end users to locate similar report sheets.
    Regards,
    Eton.

  • ALV  List  in the same Column for the row  CELL  i need button or value

    Hi,
    In my ALV list  for the same column I need Button or  Value for the different rows (CELL) depending upon my condition.
    as well as I have to make  read only of 3 rd column CELL based on my first column dropdown value CELL for this Row Only.
    Depends upon the value in  column 1 /  row 2   I have to  read only  the CELL of   column 5 / row 2   ie for the same row.
    Depends upon the value in Column 1/ row 3    I have to   EDITABLE  or   Button   the CELL  of column 5 / row 3 ie for the same row
    How to do the logic for this.
    I tried and got it for the entire column only.
    But my requirement is for the sepecific cell in the column.
    Kindly help to proceed further.
    Thanks in advance.
    Dav

    Here is how you can make a particular cell in the row read-only based on certain conditions.
    In my example I am displaying the flight details in an ALV. Here I am checking the airline id and if it is "AA' I am making the cell in the column airline id as readonly. In my example I am putting a check and readonly on the same column. However you can do this for different columns as well.
    In order to achieve this you need to add a new context attribute 'READONLY' of type abap_bool to the context node which is bound to data node of ALV.
    The method where I populate the node has the following code to populate the data.
      data: lr_input_node type ref to if_wd_context_node,
            lr_flight_node type ref to if_wd_context_node,
            lv_cityfrom   type s_from_cit,
            lv_cityto     type s_to_city,
            ls_from       type bapisfldst,
            ls_to         type bapisfldst,
            lt_flights    type table of bapisfldat,
            ls_flights    type bapisfldat.
      data: lt_final type if_mainview=>elements_node_flighttab,
            ls_final type if_mainview=>element_node_flighttab.
    * Instantiate the variable lr_input_note to the node NODE_FLIGHT
      lr_input_node  = wd_context->get_child_node( name = 'NODE_FLIGHT' ).
    * Instantiate the variable lr_flight_note to the node NODE_FLIGHTTAB
      lr_flight_node = wd_context->get_child_node( name = 'NODE_FLIGHTTAB' )
    * Get the attributes CityFrom und CityTo
      lr_input_node->get_attribute( exporting name = 'CITYFROM'
                                    importing value = lv_cityfrom ).
      lr_input_node->get_attribute( exporting name = 'CITYTO'
                                    importing value = lv_cityto ).
    * Fill the stuctures ls_from and ls_to
      ls_from-city = lv_cityfrom.
      ls_to-city   = lv_cityto.
    * Call the function BAPI_FLIGHT_GETLIST
      call function 'BAPI_FLIGHT_GETLIST'
       exporting
         destination_from       = ls_from
         destination_to         = ls_to
       tables
         flight_list            = lt_flights.
    Now I am going to check if the airline id is 'AA' and based on that I will fill the readonly context attribute.
    loop at lt_flights into ls_flights.
        MOVE-CORRESPONDING ls_flights to ls_final.
        if ls_flights-airlineid = 'AA'.
          ls_final-readonly = abap_true.
        else.
          ls_final-readonly = abap_false.
        endif.
        append ls_final to  lt_final.
      endloop.
    Finally bind the data to the context node.
    * Bind the data to the node NODE_FLIGHTTAB
      lr_flight_node->bind_elements( lt_final ).
    Now you need to do the ALV configuration settings.
    * create an instance of ALV component
      DATA:
        lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage.
      lr_salv_wd_table_usage = wd_this->wd_cpuse_alv( ).
      IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
        lr_salv_wd_table_usage->create_component( ).
      ENDIF.
    * get ALV component
      DATA:
        lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
      wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
      CALL METHOD wd_this->alv_config_table->if_salv_wd_table_settings~set_read_only
        EXPORTING
          VALUE  = ABAP_FALSE
    * set visible row count
      DATA:
        lr_table_settings TYPE REF TO if_salv_wd_table_settings.
      lr_table_settings ?= wd_this->alv_config_table.
      lr_table_settings->set_visible_row_count( '10' ).
      DATA:
        lr_column_settings TYPE REF TO if_salv_wd_column_settings,
        lr_column          TYPE REF TO cl_salv_wd_column.
      lr_column_settings ?= wd_this->alv_config_table.
      DATA: lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
      lr_column = lr_column_settings->get_column( 'AIRLINEID' ).
      CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'AIRLINEID'.
      lr_column->set_cell_editor( lr_input_field ).
      lr_input_field->set_read_only_fieldname( value = 'READONLY' ).
      CALL METHOD lr_column_settings->delete_column
        EXPORTING
          id     = 'READONLY'

Maybe you are looking for

  • IPod Touch is having a problem with a single character!?

    I've tried to login to many websites over safari since I bought my iPod Touch, and until then, it was the very only thing that made my frustrated! I was never able to login to any web sites, always getting a login/password error. I was thinking that

  • How fast should I be able to go wirelessly??

    Linksys Wireless Router WRT54G I have a 3Mbit Internet connection with one PC hard wired and two PCs using the signal wirelessly. When I do a speed test on the hard wired PC, my speed is right where it should be, at 3Mbits. When I test my speed wirel

  • What's wrong in my customer component

    Hi all, I'm newer to JSF, and I am writing a component which extends UICommand, The component is same to commandButton exclude that it preventing from duplicately submit . When I complete it, I found that it doesn't fire the action. I found that the

  • Help please , Checking media presence , no media present !

    Hi , i have a gx70 , it arrived today and it wont boot up windows installation... I installed a second ssd before the first boot , i have windows on a cd and on a stick , i open the laptop , it appears Checking media presence . no media present, it g

  • Verizon Prepaid Account Owner

    I just got a verizon Prepaid plan. and when i sighned in to my account it told my i wasnt the account owner. but im the only person on the account. how do i fix that, because im unable to use almost all of my Pre installed Verizon apps due to this is