Date field not updated when select on F4 value on editable ALV Grid

Can some one look into this to see what was wrong.
I have a report that display fields extracted from a ZTable and display on an ALV Editable Grid.
The data are displayed as read only mode for these fields:
Field A -   type char20 and have a search help available.
Start Date - type dats
End Date - type dats.
Field B
Field C ...
When user select to add new record,  Field A, Start Date and End Date must be editable, the rest are read only.
On field A because there is search help available, I have no problem select data on F4 pull down menu and the data is updated on the grid.
But on field start date and end date, there is F4 menu and when you pull down, it shows the calendar date.  But when I select the date to change, it acts like nothing happens.  I run the debug mode and found out that in function module 'F4IF_FIELD_VALUE_REQUEST', after you select the date field, I got the return code irc = 8 from line 305 of this FM.
Here is what I did.
I build field catalog similar like BCALV_EDIT04  (add table type lvc_t_styl to each extracted record to indicate which field will be  editable.
In the PBO,  I build field catalog and set style as enable for these fields:
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name = p_struct
    CHANGING
      ct_fieldcat      = p_t_fieldcat.
LOOP AT p_t_fieldcat INTO ls_fcat.
    CASE   ls_fcat-fieldname.
       when 'Field_A'.
           ls_fcat-ref_table = 'ZTABNAME'.
        ls_fcat-ref_field = 'FIELD_A'.
        ls_fcat-edit = 'X'.
        MODIFY p_t_fieldcat FROM ls_fcat.
   when 'START_DATE' or 'END_DATE'.
    ls_fcat-style = CL_GUI_ALV_GRID=>MC_STYLE_enabled.
         MODIFY p_t_fieldcat FROM ls_fcat.
   endcase.
Just curious, I copied program BCALV_EDIT_08 to ZBCALV_EDIT08 and make field booking date as editable to test.  When I select to change booking date from F4 menu pull down, the new date is populated to the screen field.  So what was wrong between my program and BCALV_EDIT_08?  Thanks for your help.  I am stuck on this problem for 2 days and could not figure out what was wrong.

not sure why you use that FM for date filed , you just need in the field catalog make sure that are use a date field of reference , anyway check program BCALV_EDIT_01

Similar Messages

  • Field not updating when switching fields.

    I am using Oracle Forms Builder 10g and I created a procedure to get the data from a related table into the data block
    PROCEDURE GET_MODEL_VAL IS
    CURSOR MODEL_VAL IS
    SELECT VMODEL_NAME
    FROM VEHICLE, VEHICLE_MODEL
    WHERE :VEHICLE.VEHICLE_ID = VEHICLE.VEHICLE_ID
    AND :VEHICLE.VMODEL_ID = VEHICLE_MODEL.VMODEL_ID;
    BEGIN
      OPEN MODEL_VAL;
      FETCH MODEL_VAL INTO
      :VEHICLE.VMODEL_NAME;
      IF MODEL_VAL %NOTFOUND THEN
           :VEHICLE.VMODEL_NAME := NULL;
      END IF;
      CLOSE MODEL_VAL;
      EXCEPTION
           WHEN NO_DATA_FOUND THEN
           MESSAGE ('Model Data Not Found');
           WHEN OTHERS THEN
           MESSAGE ('Post-Query Unsuccessful');
    END;And I created an on validate trigger to check if the FK is valid and then call the above pcedure
    DECLARE
         NUM NUMBER;
    BEGIN
         SELECT COUNT(*) INTO NUM
         FROM VEHICLE, VEHICLE_MODEL
         WHERE :VEHICLE.VMODEL_ID =  VEHICLE_MODEL.VMODEL_ID;
         IF
              NUM = 0 THEN
              DISPLAY_VMID_ALERT;
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
         GET_MODEL_VAL;
    END;Now here's the fun part. If I am updating the record when I tab or click away from the VMODEL_ID field the VMODEL_NAME field updates and everything is fine, however during an insert it does not.
    Any insight?
    The Oracle Peon...
    Edited by: Oracle Peon on Apr 25, 2013 10:18 AM
    Edited by: Oracle Peon on Apr 25, 2013 10:31 AM
    Edited by: Oracle Peon on Apr 25, 2013 11:25 AM

    I was just typing up a response to you Steve when it hit me, the VEHICLE_ID isn't in the database yet during an insert.
    WHERE :VEHICLE.VEHICLE_ID = VEHICLE.VEHICLE_ID
    AND :VEHICLE.VMODEL_ID = VEHICLE_MODEL.VMODEL_ID;should be
    WHERE :VEHICLE.VMODEL_ID = VEHICLE_MODEL.VMODEL_ID;Now I'm a bit new to Oracle so excuse my ignorance but you and Amatu lost me in your explanation.
    I'm going to mark this as answered but I'd appreciate either a little more detail on what you guys did answer or some links to help me learn a bit more.
    Thanks...
    The Oracle Peon...
    Edited by: Oracle Peon on Apr 25, 2013 11:25 AM

  • ALV OO data is not refreshing when selection changes on previous screen

    Hi All,
    I have a module pool with 2 screens. First screen has plant and 1 button. When button is pressed in screen 1 the 2nd screen shows some data as per the plant selection in screen 1. The output of screen 2 is coded in OO ALV.
    Now the problem is first time when plant is input and button is pressed the data is fine in screen 2. However 2nd time onwards the data is not getting updated on ALV when plant selection is changed! It gets stuck to the data it produced the very first time.
    I've debugged the program and table which passes to method "set_table_for_first_display" is fine i.e. it selects new data everytime as per plant and fills this table. I've also tried GUI FLUSH, calling method "refresh_table_display", FREE, clear, unassign etc. etc. at diff. points but nothing seems to work
    <b>I'll be generously giving away points with any help.</b>
    Thanks.

    Hi,
    1. Please refresh the output table before the select query which you are passing to set_table_for_first_display.
    2. The ALV container needs to be freed & again generated everytime you call the screen.
    so on the BACK button of Screen 2 in PAI, release & clear the container
    In the PBO of Screen 2, Assign grid to container.
    Here is the sample program:
    PROGRAM TEST.
    DATA: OK_CODE LIKE SY-UCOMM,
          GT_SFLIGHT TYPE TABLE OF SFLIGHT,
          G_CONTAINER TYPE SCRFNAME VALUE 'BCALV_GRID_DEMO_0100_CONT1',
          GRID1  TYPE REF TO CL_GUI_ALV_GRID,
          G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    *       MAIN                                                          *
    SELECT * FROM SFLIGHT INTO TABLE GT_SFLIGHT.
    CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE PBO OUTPUT.
      SET PF-STATUS 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.  " Check this
        CREATE OBJECT G_CUSTOM_CONTAINER  " DO this
               EXPORTING CONTAINER_NAME = G_CONTAINER.
        CREATE OBJECT GRID1  "DO this
               EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
        CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
             EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'
             CHANGING  IT_OUTTAB        = GT_SFLIGHT.
      ENDIF.
    ENDMODULE.
    *       MODULE PAI INPUT                                              *
    MODULE PAI INPUT.
    *   to react on oi_custom_events:
        call method cl_gui_cfw=>dispatch.
      CASE OK_CODE.
        WHEN 'EXIT'.
          PERFORM EXIT_PROGRAM.
        WHEN OTHERS.
    *     do nothing
      ENDCASE.
      CLEAR OK_CODE.
    ENDMODULE.
    *       FORM EXIT_PROGRAM                                             *
    FORM EXIT_PROGRAM.
    CALL METHOD G_CUSTOM_CONTAINER->FREE. " Do under BACK button
    CALL METHOD CL_GUI_CFW=>FLUSH. "Do under back button
      LEAVE PROGRAM.
    ENDFORM.

  • Some Tabs not updating when selecting a link or entering data fields

    This is weird, and it's been happening for at least months. It did it in Firefox 6x, and upgrading to Firefox 7x did not help.
    A lot of times when I click a link in a tab, Firefox looks like it is going to go to the link, but it doesn't. The same page appears. This is not website specific, and happens sometimes on Google as well as on many other sites. It is very unpredictable. Even when I type a search term into Google or another search engine, the window in the tab stays the same.
    If I click a link and the page doesn't change, it doesn't matter how many times I click it. However, if I do CTRL-click or SHIFT-click, it does open a new tab or window with the correct page (the one I wanted).
    I have disabled add-ons, cleared cache, updated Firefox, all with no help. I'm sure I'm not the first person who's experienced this, so I hope someone understands what I'm talking about and has some advice. Thanks!

    IF '''dmcritchie''''s reply mentioned in the above link didn't solve your problem, then try this:
    Locked or Damaged places.sqlite
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Check and tell if its working.

  • VBU-FKSAA field not updated when the item category is changed

    Hi,
    The sales order is created with the item category ZZZZ which is not relevant for billing. So the VBUP-FKSAA value is blank which means not relevant for billing.
    Now in the change mode, the item catg is changed to XXXX. this is relevant for billing. But even after changing the item catg the billing status is not changed. so the sales order can not be billed.
    Please let me know if anyone has come across this problem and also the soution.

    Thank You Vincent. It works for finish goods that currently have cost in the sap-bo (taking std or avg) . Do you what should I do when the item is receiving the first-transation and it is an inventory entry coming from DTW ? Because when I test this conditions, the field "price" is ignored and when I check the inventory entry sent using dtw the recorded cost is "cero".
    Thank a lot
    Salomon Ponce

  • PS Forecast Dates are not synchronized when Cproject Dates are updated

    hello Experts,
    I did all necessay customizing for DFM synchonization but when i modify date in Cproject and i check the project defintion in "CJ20N" , dates are not updated.
    Do you have any idea why? Project defintion has a statut "PREL".
    Thank you in advance,
    Amal

    Is there a page online demonstrating this problem? I think without taking a look, we might speculate wildly and waste a lot of your time...
    One thing that turned on in Firefox 29 is support for &lt;input type="number">. If any of your date fields were using type="number" as a way to be scripted or styled specially, that may no longer work correctly in Firefox 29 and higher.
    This article might be useful:
    https://developer.mozilla.org/Firefox/Releases/29/Site_Compatibility

  • When we synch data from AD to FIM Portal 2010 r2 the data is not updates in FIM Portal.

    Hi,
    When we synch data from AD to FIM Portal 2010 r2 the data is not updates in FIM Portal.
    Active directory attribute co have value vietnam but in FIM Portal country attribute have value VIET NAM
    we simply mapped AD Attribite to FIM Attribute for inbound
    co===>country
    why this happen
    Regards
    Anil Kumar

    Anil, please check what do you have in metaverse. It seems that you have attribute flow precedence configured in a way that doesn't export to FIM Portal.
    Let's say you have flows like:
    (AD MA)
    Import flow: (AD) description -> (metaverse) description
    (FIM MA)
    Import flow (FIM) description -> (metaverse) description
    Export flow (FIM) description <- (metaverse) description
    And you have higher precedence from FIM. Then, you would never have FIM value updated - even if value in AD changes. It would be exported to FIM only when you don't have this attribute filled in FIM.
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Time/Date Field Not Returned in PDF

    I have created a very simple form in LiveCycle Designer 8.0. The form enables the user to input data into columns labeled "name," "change type," and "change date." I used the date/time object for the "change date" row fields.
    When my testers (using Acrobat 7.0) email the saved form back to me, all of the fields are populated with the information they entered, except the "change date" column fields. I asked if they used the flyout calendar or typed in the date manually, and all used the calendar.
    Is this a compatibility issue, or is there something I need to do to bind the chose value to the field when the form is saved?

    The issue with the time portion of date field not displaying in Data tab of a Table window has been posted before - see date format while browsing data
    I still get the problem in v1215 connecting to either 9i or 10g databases. Note that this problem does not happen in the SQL Worksheet results area, so simply querying the table data with a select doesn't test this.
    As for Ctrl-C, Ctrl-V changing the date format to MM/DD/YYYY HH24:MI:SS when copying data out of the SQL Worksheet Results - I also still get this in v1215.

  • Sharepoint 2013 Active Directory Import- Manager field not updating

    Hi,
      SharePoint 2013 Active directory import  -Manager field not updating
    Concern/Issue-
     We are using SharePoint and configured the Active Directory Import .First import it seems everything is working fine and OOB Organization chart  built using User profile data is coming out right.
    Now the user is moved from one Organization Unit to Another.
    Now our Manager field is not Updating .There is change in AD manager attribute but not reflecting in the SharePoint User profile.
    Manger field is mapped to "manager" attribute in SharePoint.
    We tried removing the user and Re-Import using Incremental import but no luck.
    Thanks for help in advance
    Sachin

    Moving a user from one OU to another in AD won't normally change the Manager attribute in AD.  You would need to edit the user's organization settings to change the manager value in AD.  I've also seen these changes not be picked up unless something
    other than just the manager field in AD changing.  Try changing something like Office location and see if the manager change is picked up by AD Import.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Vendor field not updated in CRM pricing condition table

    Hi,
    We have maintained condition table with Material and Vendor fields in ECC and table is active
    After replicating this table from ECC to CRM, vendor field not updated in table and it is inactive.
    There is any mapping settings required to update vendor field in CRM table from ECC.
    Please help me out to solve this issue
    Regards
    kishore kumar

    hi,  the data field of vendor is a standard one or custimizing one?
    I remeber there is a data mapping setting in CRM, for condition field.   If you want to mapping a ERP standard field to a CRM custmizing one, you need to setting your rule in it.  Maybe you can find it in SM30 view.
    I can't login a CRM system now, so sorry for not offer your the view name.

  • Audit columns not updated when update statement is invoked

    I am trying to perform DML operation using "Process Row" process.
    I have provided the default values for audit columns in the default section of the page item attributes.
    When I insert, the record is inserted with proper default values.
    The problem arises when I try to update the record. For e.g. the last_update_date is not update with the current timestamp. I tried using "After Submit -Computation". But the column is not updated with the current timestamp value.
    I do not want to use database triggers.

    I am trying to perform DML operation using "Process Row" process.I have provided the default values for audit columns in the default section of the page item attributes.
    When I insert, the record is inserted with proper default values.
    The problem arises when I try to update the record. For e.g. the last_update_date is not update with the current timestamp. I tried using "After Submit -Computation". But the column is not updated with the current timestamp value.>
    What is the datatype of Last_update_date, DATE or TIMESTAMP or some variant of TIMESTAMP ?
    Post your code and describe your computation point and conditions on it.
    >
    I do not want to use database triggers.>
    I really wonder why you do not want to use the better approach. Don't elaborate, I don't want to hear it.
    Cheers,

  • After editing file in ACR 8.6 (Mac) , the file (NEF and XMP) modification dates are not updated

    With both my Mac's, reset Photoshop C  (2014) to previous version 2014.0. Now find that after editing file in ACR 8.6 (Mac) , the file (NEF and XMP) modification dates are not updated. Reloaded camera raw, etc., but still find modification dates are not updated, either using Finder or using Bridge to view dates. Editing other files, PSD, DNG, TIFF, etc., are updated and the information is correctly displayed.

    Ok, not entirely sure what I did but it's now working (Bizarre!). The only thing I did was 'eject' the ACR 8.6 .dmg file from the finder side bar and restart PS CC, so that may have been where I was going wrong all along!
    However, I now have another issue in that there is no preview of the shot in Finder on my iMac when I highlight the NEF file. I assume this is simply because Apple haven't yet released an update for the new D810 NEF files and so the computer doesn't know what it's looking at?!?
    If anyone has any other ideas though, then I'm more than willing to listen.
    Thanks again.

  • Why the PO action history is not updating when i perform the vacation rules

    Hi,
    Can any one explain why the action history is not updating when performed the vacation rules using the below example
    Example: A >B>C>D are in the approval hierarchy here I have defined the vacation rules by login to the user C here I selected the item type as “All” and delegated to D.
    Now the buyer “A” has sent the document for approval. The user “B” can successfully reserve funds and approved the document. Now the document is automatically delegated to D. Here D can open the document from open notifications and approved the document. Now when I checked the Action history here I cannot find the performed name D who has actually approved the document.
    Note:we are using the 11.5.10.2 version.
    The Action History in the following manner
    Seq Action Performed By
    ================================
    4 Approve C
    3 Forward B
    2 Reserved B
    1 Forward A
    0 Submit A
    From the above action history why the user D name is not showing. Can any one let me know ASAP?
    Regards,
    Keivn.
    Edited by: user10960960 on May 5, 2009 3:36 AM

    When you set up the vacation rule, if you simply delegate the ownership to D, then C retains the ownership and the approval occurs with C's limits. And hence D is treated as the approver.
    If you transfer the ownership, then C is out of the picture. The notification goes to D and when he/she approves, D's limits kick in and he will be seen as approver.
    Hope this helps,
    Sandeep Gandhi

  • Deactivation date is not updating in Asset Master after retirement (ABAON)

    Dear Experts,
    Asset Capitalized on: 28.02.2009 and depreciation key used as: LINK-Str.-line from acq.value to zero without interest. Asset Retirement done with revenue (210) on 31.05.2009. We do have depreciation like (01 book depreciation, 15 Tax depreciation, 30 Local GAAP book depreciation).  Below is the asset and class:
    Asset name:  Maruti Baleno
    Asset Class: Vehicles
    Here my question is after retirement done with the transaction code: ABAON u201CDeactivation onu201D date is not updating automatically in the system, however when am trying to update manually the system showing error like u201CDeactivation not possible. Dep.area 15 has acquisition values.
    When am trying to do same transaction with T code: u201CABAVNu201D, the system updating the deactivation date.
    Can anybody explain me why the above error happening and why the deactivation date is not updating with t code: ABAON.
    Thanks,
    Francis.J

    Dear Atif Farooq,
    In the AO74 the transaction types (Deactivate fixed asset check box also ticked)
    200     Retirement without revenue
    210     Retirement with revenue
    When am trying to update manually below error appearing in AS02
    Deactivation not possible. Dep.area 15 has acquisition values
    Message no. AA296
    Diagnosis
    You cannot deactivate, since acquisition values are still present in depreciation area 15.
    Procedure
    Deactivation can only be posted by a complete retirement/transfer. The deactivation date is then set automatically.
    The above asset procured in the year of 2009 and same has been retired 2009.
    Thanks,
    Francis J

  • System status NTUP (Dates are not updated)

    Hi Guys,
    WBS Element has the system status NTUP (Dates are not updated) the option to untick this is greyed out and it is preventing the posting of a journal.
    Could you please let me know how to remove this system status.
    Regards,
    Abdul Rehman

    Hi Amit,
    Thanks for your reply,
    WBS is released and there is no user status as well but besides NTUP another system status is there i.e ACPT(Order accepted) is this is causing any problem for genral postings?
    Could you please also let me know how status NTUP got activated when i am checking in the change log it is not showing any name.
    WBS is very much an account assignment element.
    Regards,
    Abdul Rehman.

Maybe you are looking for

  • Closing Terminal window tabs shrinks Terminal window height

    Open a Terminal window, press Command-T to create a tab, and then Ctrl-D to close that new tab, the Terminal window height decreases by one row. This most certainly appears to be a bug. How do I report this to Apple?

  • Why is the app not available for my device?

    I've no problem using BT wifi on my device (Nook BNTV400) so why is the app not available for that device? It's not like the nook is proprietory, everything else I've tried to find in the play store works fine. Is the apk available for download direc

  • Regarding IDOC Monitoring

    Hello Gurus, IDOC is sent from Third party tool to sap, it was working fine, but once they changed the third party  tool , IDOC are not receiving  from SAP side. Is there any separate tool setting which should be checked ?? How to go ahead in this ca

  • [IDCS2-JS] Excluding Master Pages from Search

    Hi, Is there a way to exclude text in the master page in search? I'm running a script that will search a list of words that will search a book then insert page references for an index. But using app.search includes the master page, how can I limit th

  • JButtons

    What's the simplest way to add text followed by an image to a JButton? The JButton constructor seems to place the image on the left, which is backwards from what I need. Also, JButtons seem to require a lot of border space around their text/icons, if