How to detect when new record is created?

How can I detect when new record is created in PA30? For example, a newly create record for infotype 6 (address).
Can I get the information in PCL4?

Hi Irene,
the field PAnnnn-AEDTM, nnnn is the infotype number, will give you the date when the record was last changed.
Not sure if you can precisely get the date when the infotype was created. I dont feel the need to read cluster form the same.
Regards,
Pulkit

Similar Messages

  • How to discover which field was clicked in when-new-record-instance

    Suppose: a multi-record block. The user is positioned on an existing record on field A
    Action: user clicks on empty (new) record on field B
    Question: how can I discoverer that the user clicked on field B in the when-new-record-instance? Already tried :system.current_item and :system.trigger_item. They both contain 'field A'.
    Edited by: user473811 on 26-aug-2010 4:56

    That should work. What version of forms are you running?
    I tested it out on Forms 9.0.4 just to make sure and :system.current_field, :system.current_item, :system.cursor_field, and :system.cursor_item all bring back field B when I run the form in debug mode. Is there logic in your when-new-record-instance trigger that is taking you back to field A before you look at the :system variables?
    I would run the form in debug mode if I was you and break on the first thing in the WNRI trigger and just step through it looking at those system variables so you can see what it happening, but it should work unless you have some bugged up version of forms or are doing a go_item in the trigger back to field A.

  • How to undo update of checkbox after triggering when-new-record-instance

    Hi,
    I am using eBusiness Forms Personalization in 11.5.10 to alter the Receipts form in Purchasing. I want to prevent users checking the rcv_transaction checkbox if the destination is "Multiple" and, instead, click the "+" sign to explode the multiple record into it's many component records.
    I can do this by invoking the when-new-record-instance trigger to make the "multiple" record fields unalterable and issue a warning message when the user selects such records. However, my problem is that - if the user clicks the checkbox as the first field in a "multiple" record, then this updates the checkbox to "Yes" BEFORE the trigger fires, which then locks the record for update.
    What I need is a solution that either sets the checkbox to unalterable for "multiple" records BEFORE the user clicks into such records, OR a method of undoing the update of the checkbox after the record has been selected (I cannot do this by simply setting it to "No" by the trigger as this is still technically an update and locks the record).
    Cheers
    Graham

    Hi Navnit,
    Yes you are right, but it can work even we not plase quotation mark in it. But Yes I forget to place semi colon so now it is
    IF :System.Cursor_Record = 1 THEN
       :Block.Col1 := '02:00';
    ElsIF :System.Cursor_Record = 2 THEN
       :Block.Col1 := '07:00';
       ------and so on
    END IF;Danish

  • Commit_form creating issue with When-New-Record-Instance trigger

    Hello friends,
    I am using Oracle forms 6i . I have a multi-data block. I have written commit_form in when-new-record-instance of the data block. When I launch the form on my instance the form does not open.
    But when I comment out this code, the form opens on the instance. What could be the exact problem?
    Also is there any condition that I can specify if the whole data block is null when I open the form?

    Hi...
    In When-New-Record-Instance, check if the block status is NEW. If Not, then just apply COMMIT_FORM;
    try this code in your trigger
    IF :SYSTEM.BLOCK_STATUS = 'CHANGED'
    THEN
    COMMIT_FORM;
    END IF;
    Should work for you.
    Thanks....

  • How to prevent a new record sequence number to be created for a period of 14 days

    ALTER proc [dbo].[spCreateSequenceContainerFill]
    (@containerID as nvarchar(64),
    @lotNum as bigint,
    @customerID as int = 1164,
    @productID as int,
    @fillDateTime as datetime
    as
    BEGIN
    declare @checkcontainerID as bigint
    DECLARE @ID int;
    set nocount on
    SELECT @checkcontainerID = CONVERT(bigint, SUBSTRING(@containerID, 1, 6)) FROM ContainerFillHistory WHERE containerID = @containerID
    IF (@checkcontainerID is null)
    SELECT @ID = COALESCE((SELECT MAX(ID) + 1 FROM ContainerFillHistory), 1)
    ELSE
    SELECT @ID = Max(ID) FROM ContainerFillHistory WHERE containerID = @containerID AND @fillDateTime >= DATEADD(DAY, 14, CAST(fillDateTime as DATETIME))
    IF (@ID is not null)
    SET @ID = @ID + 1
    INSERT INTO ContainerFillHistory(ID, containerID, lotID, customerID, productID, fillDateTime, purchorderNum)
    VALUES(@ID, @containerID, @lotNum, @customerID, @productID, @fillDateTime, null)
    END
    If there is a no record with an ID then a new record is created and inserted in the table.  After 14 days it is OK to add another record with that ID and bump up the sequence number of the total records in the table.  Handling the non existing
    case the first time is OK, but the restriction of 14 days if a new record is trying to be inserted has to be ignored.
    So far I have this TSQL code.

    Please try the following and tweak accordingly.
    ALTER proc [dbo].[spCreateSequenceContainerFill]
    (@containerID as nvarchar(64),
    @lotNum as bigint,
    @customerID as int = 1164,
    @productID as int,
    @fillDateTime as datetime
    AS
    BEGIN
    SET NOCOUNT ON;
    DECLARE @ID int;
    IF EXISTS (select * FROM ContainerFillHistory WHERE containerID = @containerID)
    BEGIN
    SELECT @fillDateTime = DATEADD(DAY, -14, @fillDateTime)
    IF EXISTS ( SELECT *
    FROM ContainerFillHistory
    WHERE containerID = @containerID
    AND CAST(fillDateTime as DATETIME) > @fillDateTime --AND @fillDateTime >= DATEADD(DAY, 14, CAST(fillDateTime as DATETIME))
    BEGIN
    RETURN; --//14 Days condition not met
    END
    ELSE
    BEGIN
    SELECT @ID = Max(ID) FROM ContainerFillHistory
    WHERE containerID = @containerID
    AND CAST(fillDateTime as DATETIME) <= @fillDateTime
    END
    END
    ELSE
    BEGIN
    SELECT @ID = MAX(ID) FROM ContainerFillHistory ;
    END
    IF @ID IS NULL
    BEGIN
    SET @ID = 1 ;
    END
    ELSE
    BEGIN
    SET @ID = @ID + 1 ;
    END
    INSERT INTO ContainerFillHistory(ID, containerID, lotID, customerID, productID, fillDateTime, purchorderNum)
    VALUES(@ID, @containerID, @lotNum, @customerID, @productID, @fillDateTime, null) ;
    END

  • How do you insert new records into multiple tables using the same unique primary key?

    I’ve created a PHP site and MySQL server using a free app called XAMPP.  I have successfully created a form in Dreamweaver that will write data to a (name) table in the SQL database.  Here’s my question: How do you write to two (or more) tables in the same database and pass the same primary key to both tables?  In the SQL database, I defined the first field as ID and set it as the primary key with auto update.  So, when you insert a new record, it creates a unique primary key for that record.  In my form, I’m capturing info that needs to be stored to two tables at the same time; a Name table and Address table. Since the Name and Address tables use the ID field as the primary key, I believe I will need to pass the ID value from the Name table to the insert of the Address table to insure they both have the same primary key, right?

    No. You probably need the primary key from one table to be a foreign key in the other tables. In any case, I believe you can use two methods to obtain the auto generated key. First with SQL:
    http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html
    And the other using a PHP function:
    http://us3.php.net/mysql_insert_id

  • When-new-record-instance

    Hi All !
    I have a form, where in
    *Trigger:when new form instance*
    enter_query;
    *Block level Trigger :when-new-record-instance*
    :empaply.employeeid:=:global.employeeid;
    select employee_id,firstname into :empaply.employeeid,:empaply.employeename
    from pim_emplpersonalinfo where employee_id =:global.employeeid;
    if :empaply.leavetype='Casual Leave' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' then
    :empaply.status1:='Pending Approval';
    :empaply.status2:='Pending Approval';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status='Rejected' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status1='Rejected' then
    :empaply.status2:='Not Applicable';
    end if;And for a push button
    *Trigger: when button pressed*
    execute_query;Now my issue is the initial value i have set in the new record instance is not working automatically, it works when i click any other text box in my form or when i scroll down..
    What can i down to overcome this?
    Pls help !
    Thanks and Regards
    user 10685325
    Edited by: user10685325 on Jun 22, 2009 1:19 AM

    Hai,
    The NEW-RECORD-INSTANCE Trigger will work only when the cursor moves to that record.
    write in the POST-QUERY Trigger of the block.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined Exception
    Thanks
    Joseph
    Edited by: 783717 on Sep 27, 2010 10:49 PM

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...What changes have been done recently?
    Please run AutoConfig and make sure it completes successfully.
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined ExceptionCan you find any errors in the database log file?
    Please compile CUSTOM.pll (and other files) as per these docs and try again (as you are on R12 use frmcmp_batch.sh instead of f60gen).
    APP-FND-01926, ORA-06508 [ID 797242.1]
    APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06508: PL/SQL: [ID 831159.1]
    APP-FND-01926 when logon changed ORA-06508 [ID 334295.1]
    Thanks,
    Hussein

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger

    Hi Guys,
    Can someone help me to find the root cause of my follwoing issue
    Issue
    My Sales Order was giving following error when trying to open the form
    'FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger '
    Bounced the instance the issue was resolved.
    Again today morning ,same issue started again after the daily bounce which is done bu a script.
    This time I bounced Form server and issue was resolved.
    Can someone help me in finding the root cause of this issue.
    This is issue is happening only on one form (Sales Order ) !!!!!
    Thanks

    Hi
    This is a Standard form using cusom.pll.
    This was working perfect for last 1 year.
    There where no changes made in the forms or in the environment.
    Only activity carried out was a rebooting of server.
    Surprising it is working fine after boucing!!!!
    any idea
    Thanks

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception

    I have a form that I migrated to 10g from 6i. I have no problems with it in 6i.
    When I launch this migrated form on the web in 10g, I get the following error:
    Error: FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-03127From oracle error code
    03127, 00000, "no new operations allowed until the active operation ends"
    // *Cause: An attempt was made to execute a new operation before the active
    //         non-blocking operation completed or a new operation was attempted
    //         before all the pieces of a column were inserted or fetched.
    // *Action: Execute the new operation after the non-blocking operation
    //          completes. If piecewise binds/defines were done, execute the new
    //          operation after all the pieces have been inserted or fetched.What does the above suggested action mean?
    Any suggestions.
    Thanks

    Run the debugger and see what line of code is failing.

  • When new record instance trigger at Fire Enter Query event is throwing erro

    HI
    I have the following code on when new record instance which is set to fire at Enter Query Mode
    IF :SYSTEM.BLOCK_STATUS <> 'QUERY' THEN
    rec_num:=Get_Block_Property( 'MASTER', CURRENT_RECORD);
    GO_ITEM('DETAIL.ITEM_NAME');
    CLEAR_BLOCK(NO_VALIDATE);
    GO_BLOCK('MASTER');
    GO_RECORD(rec_num);
    END IF;
    But this is throwing error when I am querying record on master block.
    It says 'Function not allowed.Please see a list of keys or functions'
    Thanks in advance.

    hi,
    GO_ITEM( ) procedure is resctricted procedure.It can not be used in Enter Query mode to navigate to an item in a different block.
    You can check wheter rest of the procedures are Enter Query Mode -Yes/No thourgh forms help window.
    Message was edited by:
    Manish.Sharma

  • How do I insert new record and get results on a landing page

    how do I insert new record and get results on a landing page

    It's not clear from your post what you are asking. In a SQL database, you use the INSERT statement to insert a row into a table. You use the SELECT statement to retrieve rows. Here's some basic info on how to do that within PHP
    PHP MySQL Insert Into
    PHP MySQL Select

  • How to add a new record(RowSet)  in another ViewObject in doDML method

    how to add a new record(RowSet) in another ViewObject in doDML method

    Re: An Entity/View Object attributes default values from other view object should help

  • How to populate automatically in a when-new-record-instance trigger?

    I have a form which displays around ten rows with about 5 columns. Whenever i will create a new record, i would like to place an initial value on the first column of every record. How do I do this? If I place the value in the properties of the item, it would be replicated on all the rows. What I want is to put a different value for each row created. But the problem is there is only one item property that i can put a value on (displayed 10 times). How do i put different initial values for each record created without creating new items for each record. is this possible? Thanks a lot

    Hi Navnit,
    Yes you are right, but it can work even we not plase quotation mark in it. But Yes I forget to place semi colon so now it is
    IF :System.Cursor_Record = 1 THEN
       :Block.Col1 := '02:00';
    ElsIF :System.Cursor_Record = 2 THEN
       :Block.Col1 := '07:00';
       ------and so on
    END IF;Danish

  • How do i get to know when Person record is created in SAP HR Master Data?

    Hi there,
      How do i know as and when a person is created/inserted into HR Master data from SAP R/3 SAPGUI? in relation to SAP .NET Connector(SDNC)... Must i use SDNC? or any SAP process? i am new to SAP R/3.
      I need that immediate information of the person created so that i can manually create the user in Exchange account using a .NET program. Please advise regarding the part within SAP to external signaling.
      Thanks.
    Cheers,
    Derek Tan

    Unfortunately I can't answer your question directly (you may ask in ABAP-forum if there are some BAPIs that allow you to poll for new users/employees or a user exit that would allow you to do a custom call to an NCo-based RFC server.
    However I would suggest you to search for information about the so-called "LDAP-connector" which is part of MySAP and NetWeaver products, and is intended exactly for your kind of scenarios.

Maybe you are looking for

  • Technical systems and Business systems in SAP XI

    can any one tell me ,breifly explain the  diff b/w <b>Technical Systems</b> & Business Systems? steps to create Techincal system and Business systems? and also Steps for creating Software Components? For Technical System we can create more than one B

  • Family Sharing not working

    I set up family sharing a few weeks ago with no issues.  Today I tried to locate a purchase that another family member made and am unable to see anyone's purchases but my own.  Also my kids are able to download new apps with ask to buy ON.  I don't g

  • Can't run Oracle Installer 8.1.7 on openSUSE 10.2

    Hi all! Trying to install Oracle 8.1.7 on openSUSE 10.2. I've already read tons of manuals and have tried different solutions but still cant run Oracle Universal Installer. when I run ./runInstaller nothing happens or I receive following response: In

  • When connecting ipod to PC USB, computer restarts

    When I connect my ipod to USB immediately following taking it off my AC adapter, it causes my computer (PC, XP) to restart. Today I updated to Itunes 5. What's up with that?

  • How to change IT2003 in batches?

    Hi Gurus, In PP61 we can check and modify IT2003 substitutions easily. But in PP61 we can only check and change mannually. How to change IT2003 in batches? Is there any function to finishe this job? Thanks in adv. Br,Kee Solved with CAT6 and BAPI met