Modify the value of a cell in an ALV. Rewarding points.

Hello Gurus, i am modifying the value of a certain cell in the internal table that is displayed in the ALV using the data_changed event, but when i refresh the ALV the values shown are the old ones.
Help.

Hello Ioan
Unfortunately you do not explain you scenario clearly enough. Therefore I must do some speculations.
You have an editable ALV list. The user can change data but not field USNAMECH which might be the user who changed the data.
A big question is how the CHECK_DATA_CHANGED event is raised. Perhaps you have registered the EDIT event (method REGISTER_EDIT_EVENT). Then the scenario would look like this:
1. User changes data and pushes the ENTER button.
2. Since the EDIT event is registered this triggers event CHECK_DATA_CHANGED.
3. In event handler method ON_DATA_CHANGED you enrich the changed data with the name of the current user.
4. And now you need to push this data back to your ABAP.
If this is your scenario then just trigger PAI from within your event handler method ON_DATA_CHANGED:
METHOD on_data_changed. "xxx
       modify itab index mod_cells-row_id from wa_itab transporting USNAMECH disponibilrag.
          "CALL METHOD grid->refresh_table_display.
  CALL METHOD cl_gui_cfw=>set_new_ok_code
    EXPORTING
      new_code = 'DUMMY'
*    IMPORTING
*       rc =
ENDMETHOD.
MODULE USER_COMMAND_nnnn PAI.
  CASE gd_okcode.
    WHEN 'BACK'  OR
               'EXIT'     OR
               'CANC'.
      set screen 0. leave screen.
    WHEN 'DUMMY'.
"  Do nothing here or perhaps call method:
" CALL METHOD grid->refresh_table_display
" Yet should not be necessary.
    WHEN others.
    ENDCASE.
ENDMODULE.
Regards
  Uwe

Similar Messages

  • How to read the value of OLAPDataGrid cell/s from external object

    Hi,
    I have an OLAPDataGrid control in an Adobe flex application,
    and I am using the cutom renderer to render the cells of the
    OLAPDataGrid ,
    any Idea how I can read the value of each cell at the
    renderer , so I will be able to decide about the actions for each
    cell at the renderer?

    "j_shawqi" <[email protected]> wrote in
    message
    news:gkqgdl$539$[email protected]..
    > Hi,
    > I have an OLAPDataGrid control in an Adobe flex
    application,
    > and I am using the cutom renderer to render the cells of
    the OLAPDataGrid
    > ,
    > any Idea how I can read the value of each cell at the
    renderer , so I will
    > be
    > able to decide about the actions for each cell at the
    renderer?
    I'm thinking that you'll need to look at the listData
    property. I'm not
    sure what you get in an OLAP Grid that orients you to your
    cell position,
    but I'd set a break point in the listData override of your
    renderer and see
    what you actually have, or look at the docs for the data type
    of the
    listData object that the default renderer expects to get.
    HTH;
    Amy

  • Can I modify the value of an enviroment entry for an EJB without having to re-deploy.

    I wish to modify the value of an envrioment entry for an EJB. The entry already exists and has been created using
    <env-entry>
    <env-entry-name>myFlag</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>true</env-entry-value>
    </env-entry>
    I can access the value using code similar to the following:-
    InitialContext initialContext = new InitialContext();
    String value = (String) initialContext.lookup("myFlag");
    However if I try the following:-
    InitialContext initialContext = new InitialContext();
    initialContext.rebind("myFlag", "false");
    I get an OperationNotSupportedException thrown.
    Do I need to use LDAP directly (rather than through JNDI) to modify this value or is there another / better way? If I do need to use LDAP directly what would the code look like ?

    Hi,
    As per J2EE specification:
    Naming environment entries allow customization of a component during deployment or assembly without the need to access or change the component?s source code. The container implements the naming environment, and provides it to the component instance through a JNDI naming context.
    The Deployer can modify values of environment entries that have been previously set by the Application Component Provider and/or Application Assembler.
    Generally only those variables/properties are set in environment entries which are likely to be different on various Application server configurations/installations, so it is not required/advisable to change these entries programmatically. Any way iAS-6.0/6.5 doesn't support changing environment entries programmatically, it binds all the JNDI names during Server startup after reading it from the registry.
    For your purpose you can use a boolean variable in your code to set your flag, and may be put it into session.
    Please feel free to ask further questions.
    Sanjeev,
    Developer Support, Sun ONE Application Server-India.

  • Can conditional formatting refer to the value in another cell

    Is there a way for conditional formatting refer to the value of another cell instead of entering the value in the conditional format box?

    wwjd is right. no way of doing that.
    WWJD, two wuestions:
    1) do you have the new office 2008 for mac beta (is it out?), how close is it to the new features in Office 2007 for windows, if you do?
    2) why do our pictures keep getting cut off after a day of posting. I posted a pic yesterday and its already not showing on the page the next day. Do they not load them after the question is marked as solved?
    thanks,
    Jason

  • Copying the value from a cell in the SQL results?

    I run an sql query. The results are returned in a results window. I would like to copy the value from this cell
    and paste it into an sql query. How can I do this? I can copy and paste a value from a cell in the view of the data in
    a table, but not from the test results. How do I do this? Is there a setting I need to change?

    I usually do this kind of operations and I've never had any issues, the procedure is as simple as CTRL-C in the results grid, with the required column/columns selected and CTRL-V in the worksheet or anywhere else.
    If you still have issues please post your
    - SQLDeveloper version
    - Java Version
    - OS
    - Database Version
    and if you can a small test case.

  • T.code F110 Created a proposal, could I modify the value date?

    Hi All,
    I need to create a proposal with tha value date successive to posting date....
    In particular, i wonder if, before running the payment i can modify the "value date" of the scheduled proposal  by hand.
    Thanks...
    Gandalf

    Hi Umberto,
    My understanding of your requirement is like this: When you make a payment to a vendor, it will be credited in his bank account say 2 days after the payment is generated in your system. Say if you have generated a payment document on 24th March, it will be credited to the vendor account on 26 th march. and you want to maintain the value date as 26th march in your payment document.
    If this is the requirement, maintain value date in FBZP settings, under bank determination, for the payment method/hosue bank and HB ID combination. You have to mention number of days to value date.
    Please let me know if this is your requirement

  • FB70: How t o modify the value of BSEG-XREF before posting?

    Hi ABAP Gurus,
    Good day!
    I would like to know the correct way to modify the value of BSEG-XREF1 in FB70 (Prior to posting of document).
    Currently, I have tried using substitution. First, I copied RGGBS000 into ZRGGBS000 AND added form u300, which will modify BSEG-XREF1.  Second, I have added a step to an already existing substitution (COGS), which was set-up in transaction OBBH.  I have assigned u300 to BSEG-XREF1 (Refernce Key 1).
    The said step didn;t seem to work.  I was able to post a document and then I displayed the document.  Unfortuantely, BSEG-XREF1 hasn't been modified. So,  I tried debugging the form U300.  It doesn't stop inside that form, which means the logic that i put there was useless. By the way, the the formname that Im using can be found in two internal tables: (1) exits, and (2) etab.
    Kindly advise on what to do.   Thank you very much!
    <b>Best Regards.
    Brando</b>

    Check this sample code which i've used to substitute the field BSEG-ZUONR
    Also ensure that the callup point in <b>OBBH</b> is 2
    Don't forget to attach ur <b>ZRGGBS000</b> to the application area <b>GBLS</b> in the tcode <b>GCX2</b>
    FORM get_exit_titles TABLES etab.
      DATA: BEGIN OF exits OCCURS 50,
              name(5)   TYPE c,
              param     LIKE c_exit_param_none,
              title(60) TYPE c,
            END OF exits.
      exits-name  = 'U102'.
      exits-param = c_exit_param_field.
      exits-title = text-101.           " Ship-to-Party to Assignment field
      APPEND exits.
      REFRESH etab.
      LOOP AT exits.
        etab = exits.
        APPEND etab.
      ENDLOOP.
    ENDFORM.                    "GET_EXIT_TITLES
    FORM u102 USING zuonr TYPE bseg-zuonr.
      bseg-zuonr = <value>.
    ENDFORM.

  • How do I copy the value of a cell?

    I'm trying to copy just the value of a cell that contains a formula. I only want to copy the cell that contains the answer and not the other cells that are contained in the formula. Any answers or suggestions would be gratefully appreciated.
    Thanks
    JQ

    Hi jonquant,
    Click on the cell that contains the answer.
    Edit > Copy (command c)
    Click on the cell where you want the value.
    Edit > Paste Values.
    That will paste the answer without the formulas.
    Regards,
    Ian

  • Setting the footer with the value of a cell - Excel 2010-2013

    Hi,
    is it possible to set the footer of a workbook with the value of a cell without using VBA code or macro?
    Thanks

    No; it is not possible to enter a formula that refers to cells in the header or footer. A VBA macro is the only way to set the header or footer to the value of a cell.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • EP forum is the worst forum when it comes to people rewarding points

    EP forum is the worst forum when it comes to people rewarding points. I wish somebody could moderate the EP forums.

    Hello Prakash,
    You have company. I do not know the exact statistics, but the ABAP Programming Forum is not far behind. Of late I find a lot of newbies in there and most of them don't even return back to look at what answers they've got, forget about rewarding points. If they do return, I keep trying to coax them into doing so :-).
    But there's always a trade-off between having the satisfaction of having cracked a tough problem and helping someone out and the disappointment of not getting the points for those answers which you have really spent effort trying to solve.
    There's one thing that you might want to do -
    1. Since you're a seasoned user here, you will be knowing about the trend of the points. For example, there are some users who always reward points. you can have a Watch for the posts made by them and the chances are you'll get the points you deserve. You'll even strike a rapport with some of them, as I have in the ABAP Forum.
    2. There will be certain questions which you simply can't let go, because they are so ineresting. You may have never thought about a particular possibility which someone else is trying to explore. but since you do have the basics very string, you can really set off and come up with a good answer. In such cases, you may not really bother about the points - because the idea might prod you to write a whole weblog on that, which will give you the points anyways. But, such questions are rare to come by - at least from my experience with the ABAP Forum.
    3. And lastly there are a few questions (actually there are several in the ABAP Forum) which have been asked several times in the past and answered. The person asking the question is either too lazy to do a search / is very new around here. If you want to, then you can remind that user to first do a search. These questions do not add value to the content on SDN. So <i>ideally</i>, we shouldn't be expecting to get any points for them. If the user remembers to give you the points, then it's okay, otherwise, I don't think it's a good idea to insist the user to give the points (this is of course, my personal opinion).
    4. Anyways, thanks to the increasing awareness about SDN among the developer community, there are more and more people who are getting conversant with new stuff. And these users will be able to solve questions which an experienced guy might consider very trivial - the reason, this guy had also learnt that answer very recently and answering the questions reinforces the concept. And he wouldn't mind the points too much :-). Hopefully, there'll always be such users  - which will ensure that every question gets answered regardless of whether the user asking the question is the kind who rewards points or not.
    Hmmm... That was a bit too long, wasn't it ? I just wanted to let you know that you're not alone :-). Let me know what you think.
    Regards,
    Anand Mandalika.

  • Copy the value of a cell in an other tab.

    Hi,
    First of all, I'm french. I hope you could understand my poor english.
    I've a got a form with a tab where u can ad or sup raws.
    I've gat a second tab.
    I'd like to copy the value of the cell (textfield) in a cell in the second tab.
    I've try "this.rawValue = evolution.forobj.tab1.r1.txt1.rawValue ;" in change event but it doesn't work.
    Thanks for your help.
    Nath

    Hi Nath,
    Your English is much better than my French
    The change event fires when the user is inputting data into the object that contains the script. As you have it in the change event of the object in tab 2, it does not fire at all when the user is inputting data into the object in tab 1.
    Also the change event needs xfa.event.newText and not .rawValue.
    I would recommend that you move the script to the calculate event of the object in tab 2. This way as soon as the user leaves the object in tab 1, the information will be undated in the object in tab 2.
    Good luck,
    Niall
    Assure Dynamics

  • Hide the value of certain cells in ALV GRID

    Hello Gurus,
    i need to hide the value or show a icon instead ib certain cells in the ALV GRID for the users that don't have the corresponding rights. Can anyone help?
    Regards,
    Ioan Constantin.

    Check this example, you'll need to adjust it to your authority object to run it.
    TYPES: BEGIN OF t_alv,
             mandt TYPE s_mandt,
             carrid TYPE s_carr_id,
             connid TYPE s_conn_id,
             fldate TYPE s_date,
             price TYPE s_price,
             currency TYPE s_currcode,
             planetype TYPE s_planetye,
             seatsmax TYPE s_seatsmax,
             seatsocc TYPE s_seatsocc,
             paymentsum TYPE s_sum,
             seatsmax_b TYPE s_smax_b,
             seatsocc_b TYPE s_socc_b,
             seatsmax_f TYPE s_smax_f,
             seatsocc_f TYPE s_socc_f,
             planetype2 TYPE s_planetye,
           END OF t_alv.
    DATA: go_alv     TYPE REF TO   cl_gui_alv_grid,
          gt_sflight TYPE TABLE OF sflight,
          gt_alv TYPE STANDARD TABLE OF t_alv,
          wa_fl TYPE sflight,
          wa_fl2 TYPE t_alv,
          gt_fieldcat TYPE lvc_t_fcat,
          wa_fcat TYPE lvc_s_fcat.
    FIELD-SYMBOLS <gs_fcat> TYPE lvc_s_fcat.
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    SELECTION-SCREEN END   OF SCREEN 1001.
    START-OF-SELECTION.
      SELECT * FROM sflight INTO TABLE gt_sflight.
      LOOP AT gt_sflight INTO wa_fl.
        wa_fl2 = wa_fl.
        IF sy-tabix <> 5.
          wa_fl2-planetype2 = wa_fl2-planetype.
        ENDIF.
        APPEND wa_fl2 TO gt_alv.
      ENDLOOP.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
          i_structure_name             = 'SFLIGHT'
        CHANGING
          ct_fieldcat                  = gt_fieldcat.
      LOOP AT gt_fieldcat ASSIGNING <gs_fcat>.
        wa_fcat = <gs_fcat>.
        IF wa_fcat-fieldname = 'PLANETYPE'.
          wa_fcat-fieldname = 'PLANETYPE2'.
          wa_fcat-col_pos = 7.
          AUTHORITY-CHECK OBJECT 'ZPERMISO16'
              ID 'ZPERMI' FIELD '01'.
          IF sy-subrc = 0.
            wa_fcat-tech = 'X'.
            wa_fcat-no_out = 'X'.
          ELSE.
            <gs_fcat>-tech = 'X'.
            <gs_fcat>-no_out = 'X'.
          ENDIF.
          APPEND wa_fcat TO gt_fieldcat.
        ENDIF.
      ENDLOOP.
      CREATE OBJECT go_alv
        EXPORTING
          i_parent = cl_gui_container=>screen0.
      CALL METHOD go_alv->set_table_for_first_display
        CHANGING
          it_outtab                     = gt_alv
          it_fieldcatalog               = gt_fieldcat .
      CALL SELECTION-SCREEN 1001.

  • Modify the value of the primary key...

    Hi all,
    I have made a mistake in the design of the table......
    and it is too late to get it changed....
    I have set the wrong field as primary key...
    These fields (keys) need to be modify , since i ve set it as a key, when ever modify those fields using
    "MODIFY ZTABLE VALUE INT_TABLE . ", it create a new row into the table because i change the primary key value. Using "UPDATE ZTABLE ....." it doesnt works because the key's value has changed.
    Thank you very much friends...

    Hi Wong,
    If the primary key value does not exist then MODIFY statement creates a new record and if exists it modifies(updates)...
    So better change the Table Primary key and try to reapeat u r code...
    For changing the primary key just goto SE11 and just check the primary key which  u want to assign and uncheck the preivous one ( make sure the primary key on to first line) then save it and before activating goto<b> Utilities --> Database Utility --> activate and adjust database</b>
    Now u r table is activated without deleting previous data also...
    Regards,
    Sridhar

  • How to write a formula that includes the value of a cell from another external numbers file ?

    Hello,
    Maybe my Numbers is too old : Numbers '08 v 1.0.3
    But it doesn't seem to allow me to write a formula that includes the value of an external cell...
    Any answers ?
    Upgrading to Numbers '09 ?
    Thanks !

    Olivier,
    Be sure to Send Feedback to Apple using the Feedback tool in the Numbers menu. That will help the Numbers design team prioritize their feature requests for the next version.
    Jerry

  • Masking the value of a cell in a JTable

    Hi
    I have JTable object which contains 2 columns (name and value). I want to create a table like below.
    Name Value
    host 12.21.23.12
    port 2009
    user root
    password *****
    JTable only allows adding an Object[][] as a row. Now how do I mask the values of the password only such that it does not appear and on the user keyed value is also stored in the tablemodel.
    Thanks
    BK

    Use a cell renderer which does that. I think that having it return a JPasswordField would work. You didn't say whether the table was editable, but if it is then you're going to have to do the same with your cell editor.
    (I'm guessing you have never heard of those things, based on the incorrect things you said about JTable in your post. I would suggest going through Oracle's JTable tutorial starting from the beginning and continuing until you get to the part where cell renderers and editors are covered.)

Maybe you are looking for

  • Error 5: Access is Denied While using OSCDIMG to create Winpe x86 ISO with Deployment Tools Command Prompt

    Technician computer is Windows 7 HP x64. Running latest version of WAIK. Goal: To make a Winpe disc for each processor architecture (AMD64, x86, IA64) with an included Gimage.exe using this code for the default startnet.cmd file found in system32 dir

  • Replacement 20" iMac Constantly Humming

    Hello I have just received my replacement 20" aluminium iMac. I have had it replaced as the screen had the known gradient problem where its brighter at the bottom and darker at the top. Well first of all, the gradient problem is still there in this o

  • Increase in Direct Debit query

    Hi there I've tried phoning and I've tried 'live chat' but nobody is answering so am going to give the forum a try! I have a telephone line which is set up only so I can use Broadband (provider is TalkTalk).  I NEVER make calls on that line. My last

  • Excel & Word for iphone 3g

    I am looking for a program that will work on the iphone to open excel and word. Anyone know of any? I have been searching for days! Thanks

  • How to use SVM metadevices with cluster - sync metadb between cluster nodes

    Hi guys, I feel like I've searched the whole internet regarding that matter but found nothing - so hopefully someone here can help me?!?!? <b>Situation:</b> I have a running server with Sol10 U2. SAN storage is attached to the server but without any