Can not delete record from the master block ,frm-40202 field must be entere

hi ,
i have built a form which contain master and details blocks
the problem is
when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
>frm-40202 field must be entered
where this field is required and i cant save it
although in another form when i delete from the master it gives me the previous record and it works properly
if any one has any ideas pls help me
thank u
------- the master block has a trigger when-create-recoder
Declare>v_dummy number;
Begin
Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
>:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
END;
IF :PARAMETER.RNT_NO IS NOT NULL THEN
     :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
          :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
     :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PM

If this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
Forms

Similar Messages

  • Can not delete the  last record ,  frm-40202 field must be entered

    hi ,
    i have built a form which contain master and details blocks
    the problem is
    when i look for a record by executing query on on transaction serial and try to delete this record from the master block it gives me new serial for the transaction and when i try to save it, it says
    >frm-40202 field must be entered
    where this field is required and i cant save it
    although in another form when i delete from the master it gives me the previous record and it works properly
    the question is :
    why it gives a new serial when i delete the record ??if any one has any ideas pls help me
    thank u
    ------- the master block has a trigger when-create-record
    Declare>v_dummy number;
    Begin
    Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
    From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
    And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
    >:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
    END;
    IF :PARAMETER.RNT_NO IS NOT NULL THEN
         :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
              :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
         :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
    END IF;

    Hi ayadsufyan,
    As it looks Andreas assumption of internal status change was correct. So taking into account this fact I would assume you are doing some data manipulation on the row you are unable to delete.
    What I would suggest to do is to put the following code in your KEY-DELREC trigger :
    clear_message;
    message(:system.record_status);pause;Now when you delete the record you should get the INSERT status of the record. If so it definitely means you are doing some manipulation on the record you are trying to delete. From this point on you will have to pinpoint the offending code.
    Best regards.
    Edited by: GregorM on May 11, 2013 10:41 AM

  • Error when deleting a record:  "FRM-40202 Field must be entered"

    Dear all, please I need your help in this little problem.
    I am using Forms 10g , and I am having an issue when deleting a record at runtime. It is giving "FRM-40202 Field must be entered".
    I have reviewed the code but still cannot guess what could be the reason.
    Any idea please. Thanks
    Edited by: user562674 on 02/05/2011 12:35 ص

    Hi
    This error is caused due to the NOT NULL constraint u have in ur db for that item...
    u have 2 options to use ...
    1.Either u set the Required property of that item to > no
    2.Or u give it an intial value...
    To get ride of this error message...
    Hope this helps...
    Regards,
    Ammatu Allah.

  • I can not delete bookmarks from the bar as I am spammed with many bookmarks.

    On my bookmark bar I have multiple instances of "Webmail Notifier" and they are in my bookmark list in many places. I am unable to delete them at all. How can I fix this issue?
    I have many bookmarked items that I do not want to lose as well.

    I did that and the links disappeared. The problem that I have now is:
    I now have 7 empty folders that I am unable to remove on my bookmark bar.
    I have many empty folders in my bookmarks that I am unable to remove as well.
    I can not move them, I can not delete them.
    I am attempting to include a snapshot so you can see.

  • I've uploaded my pics to my PC but now I can't delete them from the iPad, the little trash can does NOT appear, PLEASE HELP I have over 6000 photos I need to delete

    I've uploaded my pics to my PC but now I can't delete them from the iPad, PLEASE HELP the little trash can does NOT appear

    That's because you can't delete it directly from the phone.
    Since you synced not imported those pictures to your iphone using iTunes, you will need to do the opposite and unsync the pictures, in order to remove it from your phone.

  • I would like to know how can I delete emails from my email block have more than 8000? Thank you.

    I would like to know how can I delete emails from my email block have more than 8000? Thank you.

    I want to say, delete the 8000 not one by one, or 50 in 50... Minimum of 200 by
    200

  • We can not delete record by procedure

    Hi All,
    We can not delete record by procedure, please suggest us, our program is following:
    create or replace procedure pro_del (p_id IN employee.id%type)
    IS
    begin
    delete from employee
    where id = p_id;
    end;
    execute pro_del(01)
    your suggestion would be greatly appreciated.

    user13842301 wrote:
    Hi All,
    We can not delete record by procedure, please suggest us, our program is following:
    create or replace procedure pro_del (p_id IN employee.id%type)
    IS
    begin
    delete from employee
    where id = p_id;
    end;
    execute pro_del(01)
    your suggestion would be greatly appreciated.As you have not provided the sample data, I have created a sample dataset to demonstrate.
    SQL> select * from test;
            ID        SAL
             1       1000
             2       2000
             3       3000
             4       1000
    SQL> create or replace procedure pro_del (p_id IN test.id%TYPE)
      2  IS
      3  begin
      4  delete from test
      5  where id=p_id;
      6  COMMIT;
      7  END;
      8  .
    SQL> /
    Procedure created.
    SQL> exec pro_del(1);
    PL/SQL procedure successfully completed.
    SQL> select * from test;
            ID        SAL
             2       2000
             3       3000
             4       1000As you have not handled any exceptions in your pro_del procedure,probably you might be passing invalid id in procedure call
    Hope this helps
    Regards,
    Achyut

  • Delete record from the form and from the database

    hi,
    i want delete record from the form and the database ,but the record is only delete from the from !!!
    this is my code :
    if //condition then
    delete_record;
    commit;
    end if ;
    Any solutions ??
    thnx

    You have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
    When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
    As oracle is not able to insert your commit fails and stops your deletion of record from table

  • I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not  delete them from the phone when deleted from the library.

    I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not delete them from the phone when deleted from the library. I have replayed the podcasts over and over and they still won't delete. Podcasts are WSJ Tech briefings.

    This happens to several of my podcasts whenever an updated iOS comes out. You can delete the episode directly from the phone by swiping it from left to right. That seems to fix the issue (they drop off the phone and dont reappear on iTunes). It's as if iTunes stops tracking the play count for some shows.
    Hope this helps!

  • HT201302 i can not delete photos from photo library from my iPhone 4

    i can not delete photos from photo library and onother folder contain same photo in the photo library from my iPhone 4
    thnx

    Delete them the same way you put them there.  The sync process.  Deselectg the album in itunes and sync.
    Photo Album contains ALL synced photos and you can also view those exact same photos, not duplicates, from the albums.

  • I have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!

    i have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!
    What else can I do ?

    Snow Leopard = OS X 10.6.x
    It is Not available as a download... It is a Paid Upgrade.
    Do this first...
    Check that your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Tech Specs
    http://support.apple.com/kb/SP575
    If so... Purchase a Snow Leopard Install Disc...
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Other countries...
    http://support.apple.com/kb/HE57
    After the Successful Install, run Software Update to get the latest updates for Snow Leopard.
    Be sure to make a Backup of your Current System Before Upgrading...

  • I have photos from my computer saved on my Iphone and I can't delete them from the app photos. How can I delete them?

    I have photos from my computer saved on my Iphone and I can't delete them from the app photos. How can I delete them?

    You'll have to deselect the photos in the photo pane in iTunes on your computer and then sync the phone again, this will delete photos that have not been taken with the phone but synced from the computer.

  • 've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    iPhones require a SIM for activation.
    Put the device in DFU mode (google it) and restore via iTunes.

  • I can not synchronize data from the prelude livelog

    I can not synchronize data from the prelude livelog apparently seems to be all right, more aprasenta the following message: The Open Clip does not support XMP.
    The Prelude can not apply metadata in it.
    please can someone help me

    Hi -
    When it comes to AVCHD footage, Prelude wants to leverage the complex folder structure in order to save metadata. If the file is just the *.MTS file and is not part of the original folder structure, Prelude will report it cannot write metadata to the file. You can transcode the *.MTS to another format and then add metadata.
    We are looking at future solution for what we call "naked MTS file", but unfortunately that is not part of the currently released product version.
    Michael

  • Can not delete files from Adobe reader

    can not delete files from adobe reader.

    Can you let us know a little more about what you are trying to do? Adobe Reader opens pdf files but does not store them so, there's nothing to delete.

Maybe you are looking for

  • Two Port DVI Switch ?

    I would like to hook up my 20' ACD with my Mini and my Compaq Desktop with a DVI graphics card. Is their a DVI switch of some sort avaliable in the market ? I know about the regular KVM switches (VGA/PS2) but need some guidance in the DVI arena... Th

  • Problems trying to restore catalog from PSE 7 windows to PSE 12 MAC, what to do? NO PC with windows available any longer

    I have recently changed my damaged PC windows to a MAC. Adobe kindly changed my PSE platform, it means PSE 12 is installed in my MAC but when I tried to restore my last catalog which was made with PSE 7 in windows I receive a message saying there is

  • User migration Utility

    Hello will there be a user migration utility in Windows 10? If so I would like to test it. Will the User State Migration Tool work in windows 10?

  • Column name- desc

    hi gems.. cant i use DESC as a column name??? when i was trying to create a table having one of the column name DESC VARCHAR2(250) , then it got failed with invalid identifier error..

  • Uninstal/Remove MP is not possible after a few steps

    Hello all, My issue is a combination of errors. 1) I created and imported a MP to extend user class - after that - i create a few views to show the new fields that was added in the class. The first problem is that, after imported, ETL jobs warnings w