Record entry date - using system date as default not working

Hi,
I have a form which allow users to enter the information... I want to have a field to save the date when they've updated the record...
in order to accomplish the above, here is what I did:
1) I created an item on the form (put the source as table_column that I am using to save the record entry date on the table)...
2) In the Default field I put "sysdate" to capture the current date...
3) I made the item "Display only" so that no one should be able to change it...
so far so good... when my users open the form they see current date populated in the form...
my challenge is that when user saves the form, everything that they enter saves except for the "record modification date"... Not sure if it's due to date format or something else causing it, the date format on my form is DD-MON-YY and seems like the format on my table is DD/MM/YYYY... if it's the date formatting issue then please advice how to fix it...
I've saved a sample on APEX.ORACLE.COM for your review and comments... Here are the log in details
Workspace: tparvaiz
Username: [email protected]
Password: tparvaiz
Application: 28899     Default Date and White Space
Appliaction Page No: 24
ID/PW: TEST/TEST
Thanks

Hi,
Default value only used when item value is null. So when you fetch the from it gets the value from database column and omit the default value. I use trigger to store audit information i.e. create date, username etc.
Here is an example if you want to use -
The following trigger will capture the date and username and store into the table.
CREATE OR REPLACE TRIGGER TRG_BI_TABLE_NAME
BEFORE INSERT
ON TABLE_NAME
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
BEGIN
/* change the column name as of your table */
  :new.create_date := SYSDATE;
  :new.created_by := v('APP_USER');
END;This trigger will store user information and date when record been updated -
CREATE OR REPLACE TRIGGER TRG_BU_TABLE_NAME
BEFORE UPDATE
ON TABLE_NAME
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
BEGIN
/* change the column name as of your table */
:new.update_date := SYSDATE;
:new.updated_by := v('APP_USER');
END;Hope this helps,
Regards,
Tajuddin
web: http://tajuddin.whitepagesbd.com

Similar Messages

  • Automatic file generation using system date and time

    Hi guys,
    Iam trying to generate a path for file creation automatically using System date and time. I am running into errors with respect to special characters in filename. I am trying to parse the string to get date and time without the '/' and ':' but have not been successful. is there a better way to do it? Please help! I am trying to avoid a dialog box for user to enter a filename.
    Thanks!
    V
    I may not be perfect, but I'm all I got!
    Solved!
    Go to Solution.

    here is a little experiment .... building the path out of %m (month) %d (day) %(year) type stuff might help.
    Attachments:
    putting time in path.vi ‏7 KB

  • Defaulting the Document date to system date while GR cancelation via MIGO

    Hi All,
    While canceling a GR via MIGO transaction, i manually change the Document date to system date, but after posting still the document date is showing the original document date when is was posted.
    Is this is the standard behavior?
    I have a requirement to make this date default to system date. But it is not considering the date which we centered in the screen.
    Kindly help me to resolve this issue.
    Srinu Kaduri

    Hi,
    while doing GR cancellation,system will take only system date for example today will be in the document date.
    With Regards,
    Jaheer

  • Posting date and System date

    Hi SAP experts ,
    I am troubleshooting one system  and I am kind of getting lost ...
    Let me explain the scenario:
    Posting period set up
    Posting date : 01-14-09
    Sytem Date :01 -01-09
    After checking all the information , I ran my period end closing .. I ran a comparison report between 12/31/2008 and 01/01/2009 .
    My balance sheet matches with when I ran by posting date and my balance sheet is way off (especially retained earning )if ran by system date .
    I can get the differnce in amount but was unable to track the exact transaction .Some of the adjustment have been done in this system using system date .
    Any queries that will help me to track  ?  I have used this
    SELECT
    T0.TransId, T1.Account, T1.Taxdate, sum(T1.Debit-T1.Credit) Balance FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId WHERE T0.TransType = 30 GROUP BY T0.TransId, T1.Account,T1.Taxdate
    But not much of help to target easily ...
    Any advise on this ...Should I consider if balance sheet is correct by posting date , it is fine ..
    Thank you
    Bishal
    Edited by: BIshal Adhikari on Jul 28, 2009 3:52 PM

    Hi Bishal,
    I believe balance sheet by posting date is correct.  System date is only kept for system to show the audit trail when you actually added the document.
    Thanks,
    Gordon

  • Purchase Requistion release date as system date

    Dear Experts,
    Our Requirement is the top management want to know time taken to release a purchase requisition,means the duration
    between purchase requisition creation date to release date.
    here user are manually changing the release date to system date to know duration exact time duration between the creation date  and release date,so user requirement is the release date should be system date so he can easily understand when the requisition is released.
    we are thinking that,if we make the release date as system date,please suggest me.
    Thanks in Advance.
    Varun

    Dear Madhu,
    1.)     Whenever you are creating a new PR system will automatically take that PR creation date as system date.
    2.)     All the releases in SAP System will be recorded  as Item/Header change and system will maintain their history in Item/Header change details
    3.)     If your requirement is to track the duration between creation, release of levels it can be very much possible by creating a quary it self.
    Regardsu2026
    Srini Rao

  • Load Grid with data from System.Data.DataTable

    Hi all.
    A have a System.Data.DataTable e need load a grid with data from this DataTable.
    How Load a Grid with data from System.Data.DataTable?

    Hi Francisco,
    actually i don't think that you can use a .NET datatable to fill a business one grid.
    the business one has it's own datatable.
    in c# it would look like this:
    oForm.DataSources.DataTables.Add("MyDataTable");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).DataTable = oForm.DataSources.DataTables.Item("MyDataTable");
    oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Field FROM [dbname].dbo.TABLE");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).CollapseLevel = 1;
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).AutoResizeColumns();
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
    good night
    lg David

  • MIR7  changing posting date to system date when period is closed

    Dear Experts,
    For FI park document, there is a setting in customising to set the posting date to system date during posting when the posting period in FI is closed. Is there a way to do  this in LIV for MIR7 to set posting date to system date when the MM period is closed?
    Amit

    Hi,
    Please, have a try to use the following BAdi:
    MRM_HEADER_DEFAULT
    Transaction CODES: MIRO, MIR7 and MIRA.
    Detailed description of this BAdi can be found in IMG Help.
    (SPRO -> Materials Management -> Logistics Invoice Verification -> Maintain Customer Exits and Business Add-Ins -> Maintain Business Add-Ins for Invoice Verification)
    Hope it helps.
    Regards,
    w

  • Adobe form-Able to post  data using Adobe Reader 9 but not with Adobe Proff

    Hello Guru's
    I am facing one problem with adobe forms.
    We have develoed a adobe form using adobe reader 9.
    Now when user are posting the purchase requistion using the form,they are able to post the data using
    Adobe Reader 9 but not with Adobe Reader professional.
    Can anyone please advice me what can be the problem here.

    Adobe Reader 9 can't save the old FDA forms. FDA must update their forms.

  • Purchase Requistion Relase Date as System Date.

    Dear Experts,
    I need some information on purchase requisitions.
    1.our users are changing  release date manually  the date which they are releasing the Purchase requisition.
    can we make the release date as system date,what type of configuration i needed to do that..
    2.mass un release of purchase requisitions.
    3.mass deletion of purchase requisition and mass deletion of purchase requisition line items
    please suggest me
    Thanks in advance
    Regards,
    Varun

    1) In spro first check the Field selection group assigned with PR document type...in most of the cases it is NBB...now go to spro@mm@PR@Define screen layout at document level@double click on NBB@double click on Deadline monitoring@here make Release date as display so that user will not be able to change it in PR.
    2) Check if the same is possible in ME55 or BAPI for release with object type BUS2105
    3) Check of BAPI for pr with function module BAPI_REQUISITION_DELETE with your ABAP person.
    Regards,
    Indranil

  • Issue regarding condition pricing date as system date for some condition types in sales order

    Hi
    I have already created a sales order on 30.04.2014. Today I am adding new line item to sales order in VA02 transaction. in this order new line items condition pricing date for conditions JEX2,JECX should show as 12.06.2014. But currently it is showing as 30.04.2014. I need condition pricing date as system date for above conditions.
    Regards
    prashant

    Hi
    When I am changing pricing date VBKD-PRSDT in sales order header . It is changing the condition pricing date for all. Sales order is created on 04.06.2014. I have added line item 150 on 14.06.2014.
    After adding line item 150 , there I have changed the pricing date as 14.06.2014. in sales A tab of item 150. But still it is taking from Sales order header date as 04.06.2014 for all conditions. But my requirement is for line item it should take as system date for some conditions like JEX2,JECX& JA1Y but for other conditions it will take as Order creation date. Please suggest. I have also attached screen shot below. please go through it.
    Regards
    PK
    Sales order header change mode VA02
    Here pricing date VBKD-PRSDT = 04.06.2016
    Item change mode
    I have added new line item 150 on 14.06.2014
    Changed the condition pricing date to 14.06.2014 & saved
    After saving I have gone to Va02 screen of line item 150
    & there I have gone to condition pricing date field from item condition tab
    for JEX2 condition type but still here condition pricing date is showing as
    04.06.2014 as below.
    Condition pricing date
    My requirement is like this
    For some particular conditions like JEX2  condition pricing date will take as system
    date instead sales order creation date when I will add a new item 150 on
    14.06.2014.but for other conditions it will show as order creation date for the
    same line item 150 .

  • I lost my Iphone and I stored my photos on icloud, how to get those data back? My PC also not working.

    I lost my Iphone and I stored my photos on icloud, how to get those data back? My PC also not working.

    Welcome to the Apple Community Rahul.
    Photos in photo stream...
    You can log into your iCloud account on another computer or device and enable photo stream to see your photos. You should do this as soon as possible because photo stream in the cloud only keeps photos for 30 days and each day you delay, you will lose another days photos.
    Photos in the camera roll...
    If you kept a back up of your device you can use it to restore to a replacement device, this will restore all of the photos in your camera roll and isn't time limited.

  • [svn] 4226: Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.

    Revision: 4226<br />Author:   [email protected]<br />Date:     2008-12-03 15:25:17 -0800 (Wed, 03 Dec 2008)<br /><br />Log Message:<br />-----------<br />Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working. <br />QA: Yes<br />Doc: No<br />Checkintests Pass: Yes<br /><br />Details:<br />* Make sure the <reliable/> option is treated as a nested element rather than an attribute of its parent <network> element.<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/LCDS-517<br /><br />Modified Paths:<br />--------------<br />    blazeds/trunk/modules/core/src/flex/messaging/Destination.java

    Revision: 4226<br />Author:   [email protected]<br />Date:     2008-12-03 15:25:17 -0800 (Wed, 03 Dec 2008)<br /><br />Log Message:<br />-----------<br />Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working. <br />QA: Yes<br />Doc: No<br />Checkintests Pass: Yes<br /><br />Details:<br />* Make sure the <reliable/> option is treated as a nested element rather than an attribute of its parent <network> element.<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/LCDS-517<br /><br />Modified Paths:<br />--------------<br />    blazeds/trunk/modules/core/src/flex/messaging/Destination.java

  • [svn] 4195: Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.

    Revision: 4195
    Author: [email protected]
    Date: 2008-11-26 13:08:23 -0800 (Wed, 26 Nov 2008)
    Log Message:
    Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-517
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as

    Revision: 4195
    Author: [email protected]
    Date: 2008-11-26 13:08:23 -0800 (Wed, 26 Nov 2008)
    Log Message:
    Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-517
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as

  • [svn] 4193: Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.

    Revision: 4193
    Author: [email protected]
    Date: 2008-11-26 11:40:05 -0800 (Wed, 26 Nov 2008)
    Log Message:
    Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Details:
    * Foundational update to include destination config in what we collect for runtime config exchange with new clients for destinations with network/reliable=true (LCDS only).
    * Also typo in comment in AbstractConnectionAwareSession fixed.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-517
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/AbstractConnectionAwareSession.java
    blazeds/trunk/modules/core/src/flex/messaging/Destination.java
    blazeds/trunk/modules/core/src/flex/messaging/services/AbstractService.java

    Revision: 4193
    Author: [email protected]
    Date: 2008-11-26 11:40:05 -0800 (Wed, 26 Nov 2008)
    Log Message:
    Bug: LCDS-517 - Reliable messaging destinations created using runtime configuration (bootstrap service) not working.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Details:
    * Foundational update to include destination config in what we collect for runtime config exchange with new clients for destinations with network/reliable=true (LCDS only).
    * Also typo in comment in AbstractConnectionAwareSession fixed.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-517
    Modified Paths:
    blazeds/trunk/modules/core/src/flex/messaging/AbstractConnectionAwareSession.java
    blazeds/trunk/modules/core/src/flex/messaging/Destination.java
    blazeds/trunk/modules/core/src/flex/messaging/services/AbstractService.java

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

Maybe you are looking for

  • Interactive Report based on View

    Hello! I've just started to rewrite my Forms applications to Apex. Based on an existing view I want to create an Interactive Report, but there is only the choice between 'Table' and 'SQL statement'. Is there a way to use the view in a direct manner (

  • Quicktime Pro Mpeg

    Before I purchase an upgrade to Quicktime Pro, I would like to know if by using Quicktime Pro, I can convert MQV video files to Mpegs or not. Thankyou for your time.

  • Reduce BLOB size to 60k

    I have a .jpg saved in a table as a BLOB. I want to reduce the size of the BLOB so that when the .jpg is extracted, it has a 60k or less file size. Physical (x,y) size is irrelevant. Ideally, 1. Select the BLOB 2. Put it in a temporary table 3. Selec

  • Sales Order Item Attribute

    Hi, I need to add a few attributes to 0S_ORD_ITEM (Sales order item).  I have 2 sales order item status fields I want to add as attributes.  Has anyone done this? If so, what is used as the data source? Thanks for your help. Aaron

  • How to Pass fields value to detail page in report?

    Hi experts, I want to use report to create calls for my doctors(contact), in my report, the first column is contact, the 2nd is account, and there are some fileds from call's record type, the last column is a link called "create call", my requirement