ALV: Change of Cellstyle after SET_TABLE_FOR_FIRST_DISPLAY

Hi ABAPers!
I'd like to change the cellstyle of an ALV Grid <u>after</u> the method SET_TABLE_FOR_FIRST_DISPLAY was processed.
Depending on the value entered in one field, I want to change another field in the same row to make it editable or not. I react on the event DATA_CHANGED. Within the routine on this event I call the methods MODIFY_CELL followed by REFRESH_TABLE_DISPLAY, but the style of the appropriate field is not changed.
My coding is like this:
<i>MyStyleTabWA</i>-style = cl_gui_alv_grid=>mc_style_disabled.
MODIFY TABLE <i>MyStyleTab</i> FROM <i>MyStyleTabWA</i>.
er_data_changed->modify_cell(
   EXPORTING i_row_id    = <i>GoodCells</i>-row_id
             i_fieldname = 'CELLSTYLE'
             i_value     = <i>MyStyleTab</i> ).
<i>MyGrid</i>->refresh_table_display( i_soft_refresh = 'X' ).
The content of my personal cellstyle table seems to be ok. But the cell does never change to a uneditable mode.
Does anybody know what's going wrong?
Regards
Torsten

Hi Ravi!
Yes, it has.
I found a mistake in my field catalogue, where I named my cellstyle table different to the name in my data table. After correcting this, my application runs a little better, but not right.
Having an event DATA_CHANGED I alter the values of my cellstyle table. I REFRESH_TABLE_DISPLAY, but nothing happend. But it is changing, when I process PAI or the event DATA_CHANGED is fired a second time.
A refreshing problem? I do use CL_GUI_CFW=>FLUSH( ).
Any suggestions?
Regards
Torsten

Similar Messages

  • ALV change output

    Hello,
    I have a output in ALV.
    for example. output  30 rows
    There is one column in the output --> HOURS   this is empty in every row.
    I want to insert hours in this column.
    How can I change. delete rows of the data of the output of my ALV?
    Can someone give me some hints or help me with this?
    Akin

    No, I must change the output after it has been showed in a ALV (maybe in table control?  I have  no experience with this).
    My input is for example..
    infotype 2007    subtype 01
    O(organsiation) = 50000050
    SChool year = 2008
    Periode = 010 schoolyear ( 01.08.2008 - 31.07.2009)
    I get al of the personelnumbers in the output with this information.
    Just the column HOURS is empty.
    The output (ALV)  must be like a table where you can write in, like Excel. After it's finished, I have to save it.
    It must do the same thing as at transaction PA30. here you can input data for one personelnr.
    maybe now jou can give me more hints???
    Akin

  • ALV Export to Excel after Upgrade to ERP2005

    Hi Guys and Gals,
    We have a bespoke ABAP report which prior to the upgrade to ERP 2005 created an ALV list and from the menu list, we could select: -
    List --> Export (we then had the following options):-
    Word Processing
    Spreadsheet
    Local File
    Additional Function of SAP Query
    XML  Export
    However, after the upgrade only Local File and XML Export are selectable all the rest are grayed out and therefore <i><b>not</b></i> selectable. The code never changed before or after the upgrade.
    Any pointers will be greatly appreciated.
    Thanks in Advance.
    Kind Regards.
    Tony Roundhill.

    Sounds like it could be a Basis issue to me.  Check with them first.  I haven't come across this problem myself so I could be wrong.

  • Production order status was not changed to 'CNF' after final confirmation.

    Hi guru.
    I experienced very special case that production order status was not changed to CNF after final confirmation.
    I did final confirmation and canceled confirmation. (CNF -> REL)
    And I did final confirmation again because of fixing activity quantity.
    the strange thing is that production order status wasn't changed from REL to CNF.
    I did  confirmation again with 0 activity, thereby  I solved this problem
    BUT i don't know why this case happened.
    Please, explain the reason.
    Thanks.

    Hi,
    As per my observation, their is not any change in the status of the order REL with confirmation CNF, instead of this, it has change from CRTD & then to TECO.
       Sequence of the status of the order as below
    1) CRTD MANC NMAT SETC
    2) REL  NMAT SETC - Changes from CRTD to REL after releasing of the order
    3) REL  CNF  PRC  CSER ERTR OPGN SETC -  After confirmation, it updated after the order REL status.
    Rgd,
    Chetan

  • How to prevent PO changes in ME22N after Order acknowledgement?

    Hi everyone,
            Can anyone tell me how to prevent PO changes (ANY) in ME22N after Order acknowledgement?
            I would like to make it possible without release strategy process or authorizations.
            Do you know some User Exit or Customazing way?
    Regards.
    Jaime S.

    Dear Jaime S,
    You can do this by restricting in authorization SHDO and also by marking "changes not possible after release" in Release strategy procedure.
    And also you can navigate the menu to, SPRO------>IMG------>Material Management--->Purchasing(OLME)------->Purchase Order---->Define screen Layouts at Document Level---->And go to ME22n And Select the right parameter and in this you can make it display, optional or required entry for the fields.
    Regards,
    Manjunath B L

  • My display keeps changing to 800x600 after upgrade to 10.8.3

    After upgrading to 10.8.3 my display keeps changing to 800x600 after it wakes up from sleep. I have to go to preferences and set again, and it works. It is quite annoying. Any clue.

    Not much to go on.
    What monitor and connection method are you using with the mac Mini..?
    Have you tried resetting the > NVRAM and PRAM
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.

  • HT204053 I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    I used one Apple ID to set up iCloud after iOS 6 was downloaded to my iPhone, now I want to change the Apple ID for iCloud on my iPhone but I'm unable to. How do you change the ID after it's been set up?

    See https://discussions.apple.com/message/19218571#19218571.

  • RGB color in inDesign changes (washed out) after exporting it to PDF

    Hi,
    I am new to InDesign and i have a hard time figuring out how could I export my InDesign file to PDF without affecting the color.
    This is what I do.
    1. I created a new document with Transparency Blend Space set to Document RGB
    2. I created a box using the rectangle tool and filled it up with RGB color, R=126 G=12 B=110
    3. The color in Indesign is just how i wanted it, however, the problem arises when i export the file now to PDF
    4. Instead of the color i wanted, the color was changed to a lighter color, or washed out.
    5. THis happens even in text have the same RGB setting.
    How could I export it to PDF with the same color, without being washed out?
    I really appreciate your help on this. Thanks.

    That sounds like the Color Picker, which works a bit differently in ID than in Illustrator or Photoshop. If the cursor is not in one of the RGB fields when you say OK you won't get RGB color. You can see this by noting the text in the Add ... Swatch button. My guess is you added the color as the CMYK conversion which is a bit lighter.
    You might want to use the panel menu in the Swatches panel instead, or the new swatch button at the bottom of the panel while holding down the Alt key to open the new swatch definition dialog. You want to create a Process color and change the type to RGB, then enter the values in the RGB fields. Or if what you want is really Pantone 249U you can define a Spot swatch and choose Pantone Solid Uncoated and then specify the 249. I'll warn you though, that CS6 uses Lab values for displaying spot colors and 249U is considerably lighter than either the RGB you specified or the 249C. In earlier versions the book value conversions were used. Even when using Lab display values through Ink Manager in CS5, the coated and uncoated swatches incorrectly look the same in ID, and in Illustrator CS5 you would need to turn on overprint preview to see a difference.
    Here are a couple of screen captures from PDFs exported from ID CS5 and CS6 using High Quality Print. The colored boxes with the lables were pasted from Illustrator CS5 to be sure I was using the same color definitions and that theywere behaving as native objects. Below are the same boxes placed:
    and here is how the screen looked in CS6 in ID (notice the difference in the placed .ai file -- the screen preview is NOT using the Lab values, although it exports with them):
    I don't know what the content is and how you present it, but it doesn't sound like a web page. That said, if you choose Web for intent in Document Setup you can still use print size paper sizes for the document and change the rulers after the doc is created to read inches or millimeters or other units of your choice instead of pixels and the file will use default RGB swatches and default to RGB when making new colors.

  • HOW TO CHANGE HOST NAME AFTER SAP IS INSTALLED?

    i have installed ecc6 in my computer.But after installation is completed i want to change my computer(system) name.If i change the computer name is there any problem occur.May i change computer name after installation also.

    As far as my understanding goes it can be done. The only problem is SAP is not recommending it. Still if you want to give it a shot please go through the link to learn more and step by step guidance.
    [Click Here|http://www.saptechies.com/changing-host-name-on-r3-host-what-do-you-do/]
    Also take a look  at this SDN thread, you might find something interesting.
    [click here for SDN thread|How to change the hostname was set/defined in SAP system?;
    Edited by: santra.anirban on Sep 13, 2010 10:45 AM

  • How InDesign comes to know about any changes on document, but not saved. As it shows * on the name of document when it is opened and any changes. And after saving * symbol is get removed from the name of document. How and where indesign@ handles this?

    How InDesign comes to know about any changes on document, but not saved. As it shows * on the name of document when it is opened and any changes.
    And after saving * symbol is get removed from the name of document. How and where indesign@ handles this?

    Are you just asking because you want to know, or do you have a problem you need to solve? I don't know how to write a program, but I think what your are describing is not an unusual thing for a  program to do. The * tells you that changes have been made since the last save, and the program reserves a portion of memory for undo functions. I suppose a coder could tell you how it works, but I don't think it would help an average user to know, but that's just my opinion.

  • Why capital letters change in lower after copying them from a PDF document, or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    Why capital letters change in lower after copying them from a PDF document (Made by InDesign), or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    your home page to get into your Web site should be index.html (for Mac) or index.htm  (on PC)
    You can name it something other than index, but will be harder to find.  when you create the subjects and link to them, they can can be named anything with the html extension  Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
    My hosting service use a Linux server normally but can convert Windows for a Fee.  UNIX Linux has no concept of asp or aspx.
    See this : https://skitch.com/pjonescet/8mnnx/dreamweaver

  • TS2446 I changed my password after the acct. being disabled.  It is still not working.  How long does it take?  And how do I make it work again?

    I changed my password after the acct. was disabled.  We had to dispute some charges and got it worked out.  The new password won't work and thats what we were told to do.  How long does it take for the new password to take effect?  And is there something else we should do?

    Contact itunes support

  • Contact is available when i sign in,then changes to unavailable after a few seconds

    When I sign in to Skype,one of my contacts appears available,but then changes to unavailable after a few seconds,although this time varies too. What makes this happen?

    This page explains the method for restoring from a backup without having the sync process delete your calendars:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudtm.html

  • SBO2007A can no longer change the Price after Discount on marketing docs

    In SBO2005A (subjecting to Document Settings), you could change the Price after Discount.  Thisis no longer available in SBO2007A (unless you upgrade from SBO2005A with the appropiate settings.
    I have not found a customer who thinks this is good idea.
    Good to reinstate the functionality.
    Regards
    Jeff

    Hi,
    The field "Price after discount" can become editable if you unmark the checkbox "Calculate the row Total using the Unit Price" (Document Settings->General Tab). As default this checkbox is disabled for new installations.
    Also, please check the following link as well :
    Re: Net price calculation
    Regards,
    Jitin
    SAP Business One Forum Team

  • Changing Purchase Reqs after release.

    After releasing a Preq (Cost Centre), if we attempt to change it in ME52N everything on the line's display only. So I can't increase the qty for example and send for re-approval (trigger the release strategy). This is normal?
    The Changeability indicator in OMGQ for the release indicator (F - released) was blank. I changed this to 4 but neither allow us to change the Preq after realease. Could you maybe advise please? Is it possible to change the req after release, seems odd I can't?

    Hello,
      in customizing for release indicator, you must check also field "Field selection key" which is defined under "Material management --> Purchasing --> Purchase requisition --> Define screen layout at document level". You should check the "Field selection key" assigned to your release indicator: that key defines the mandatory, optional and view-only fields in Purchase documents, and can be linked to a release status.
    Hope to be useful.
    Best regards,
    Andrea

Maybe you are looking for