Form wont delete the last record

Hi All
I have the follwoing Form
e.g
First_name || Last_name || Emp_id
The Forms works ok when populating the form and saves,you can delete all the records except for the last record if you delete the last record it's save.
Does anyone whan what could be the problem.
please help i'm new to Forms.

you can delete all the records except for the last record if you delete the last record it's saveSo, can or cannot you delete the last record?
What do you mean with "it´s save"?

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

  • Only put the last record retreived into the item form

    Hi All,
    I am trying to show all the retreived records of a query in a multi-line formTEXT item. However, it seems to me that only the last record shows rather than all records. The code is below where DM_AR is a package and OPEN_R_TYPE, Fetch_data are two procedures which uses a cursor variable. The below code runs perfectly in SQLPLus if we replace the :RESULT_TEXT := .., with a DBMS_output.put_line build-in procedure.
    Any suggestion Plz......
    F
    DECLARE
    -- declare a cursor variable
    RES DM_AR.ruleitem_type;
    TEMP_row TEMP_TBL%ROWTYPE;
    BEGIN
    -- open the cursor using a variable
    DM_AR.OPEN_R_TYPE(RES, :MODEL_NAME);
    -- fetch the data and display it
    LOOP
    DM_AR.Fetch_data(RES, TEMP_ROW);
    EXIT WHEN RES%NOTFOUND;
    :RESULT_TEXT := 'RuleNo: ' || TEMP_ROW.RULE_ID || ' Conf: '|| TEMP_ROW.R_CONF || 'Supp: ' || TEMP_ROW.R_SUPP || ' IF: ' || TEMP_ROW.ANTECEDENT || ' THEN: ' || TEMP_ROW.CONSEQUENT;
    END LOOP;
    END;

    You are overwriting your item :RESULT_TEXT everytime in the loop. So, you only see the final result. You probably want this:
    :RESULT_TEXT := :RESULT_TEXT || ' RuleNo: ' || ...
    ...

  • Delete the parent records and child table records at a time

    hi all;
    I am facing the pbm like to delete the all records in child table and corresponding records in parent table at a time. so I want to delete the all the records in child table and corresponding parent records in parent table by using single SQL query. plz help me
    Thanks in advance

    You want to use one single SQL statement to delete the child records in a table and the corresponding master records in the master table??
    That's not quite possible with a single SQL, of course unless you are talking about Oracle Forms, where you have a relation and set the delete behavior to Cascading, like said in the above posts.
    Tony

  • How can I delete the last row of a Matrix

    Hi All,
    Does anyone know whether deleting the last row of a matrix controlled by a UDO child table gives problems? I have the strange effect that I cannot delete the very last existing row in the matrix, i.e. after updating the delete the last to-be deleted row comes back into my matrix !!
    I give you a snippet of my code (function getSelectedRow gives the selected row in the matrix):
    ==
    if (evnt.ItemUID.Equals(ViewConstants.Items.DELETEBUTTON))
      if (evnt.EventType == BoEventTypes.et_ITEM_PRESSED)
        if (evnt.BeforeAction)
          form = BusinessOne.Application.Forms.Item(formUID);
          mtx = (Matrix)form.Items.Item(ViewConstants.Items.MATRIX).Specific;
         int numRow = getSelectedRow(mtx);
         if (numRow != -1)
                                            mtx.DeleteRow(numRow);
                                            form.Mode = BoFormMode.fm_UPDATE_MODE;
                                       Item btn = (Item)form.Items.Item(ViewConstants.Items.ADDBUTTON);
                                       btn.Enabled = true;
    ==
    Cheers,
    Marcel Peek
    Alpha One
    Message was edited by: Marcel Peek
    Message was edited by: Marcel Peek

    Yes, there is a problem to delete the last row.
    It is fixed in version 2005.

  • How to get to the last record of an APEX report automatically?

    In Oracle Forms there is a "lastrec" command which can be placed after a call to a multi-row form.  The records called have the last record at the bottom of the page.  For example, if there are 100 records and there are 10 rows on the form, record numbers 91 through 100 would be showing.  Can this be done in APEX?  I have a user who wants it this way.  I set the report page up to be ordered descending, which gives her last record at the top of the page, but this is not acceptable to her.  She wants to see the last record, but she wants it at the bottom of the page. 

    Hi,
    Try this query, it should order your data as you want and the report pagination is not broken!
    The number of row displayed must be the same as the divide by value (ie. 10)
    select your_id
    from your_table
    order by trunc ((DENSE_RANK() OVER (  ORDER BY your_id desc) -1) /10)
        , DENSE_RANK() OVER (  ORDER BY your_id desc) desc;
    Page 1 displays 91 to 100
    Page 2 displays 81 to 90
    Also if your data set have 87 rows, Page 1 will display 78 to 87 (ie. the 10 last rows).
    If you want more details regarding the sorting you can have a look on this query:
    select your_id
         , trunc ((DENSE_RANK() OVER (  ORDER BY your_id desc) -1) /10)
         , DENSE_RANK() OVER (  ORDER BY your_id desc)
    from your_table
    order by 2, 3 desc;

  • Bapi/FM to delete the status record from Business location(O402)

    Hi,
    Is there any BAPI/FM to delete the status from Business location?
    My requirement is  as follows:-
    1. I have to delete the last status from business location.
    2. I can find out the number of status maintained for a business location,
        a.  so if the status which i have to delete is visible in table contorl,
             i can decide the cursor position very easily in bdc.
         b. But if i have to scroll down to get the status record,
             in that the cursor position is not known.
    Please help.

    Hi,
    Any idea?
    Even if i write a bdc, i didn't know how to find the last record. The page down and page up will also not work as there may be chances that mutiple status can be removed.

  • Moving the last record to 1st position

    Hi,
    I have 200 records in my internal table.I want to move the last record(200 position) to 1st position(i.e Index1). How to do it?

    Hi
    U can try something like this
    DATA: BEGIN OF ITAB OCCURS 0,
            FIELD(1) TYPE C,
          END   OF ITAB.
    DO 9 TIMES.
      MOVE SY-INDEX TO ITAB-FIELD.
      APPEND ITAB.
    ENDDO.
    * Check table
    DESCRIBE TABLE ITAB LINES SY-TABIX.
    * Read last record
    READ TABLE ITAB INDEX SY-TABIX.
    * Delete last record
    DELETE ITAB     INDEX SY-TABIX.
    * Append the last record to the top
    INSERT ITAB     INTO ITAB INDEX 1.
    LOOP AT ITAB.
      WRITE: / ITAB.
    ENDLOOP.
    Max

  • I want to delete the last 2 sheets in a Pages document.  I select them in the thumbnails. But I can't delete them.  The 1st pages, the ones I want to keep, are the ones that are deleted.  What do I do?

    I want to delete the last 2 sheets in a Pages document.  I select them in the thumbnails, but can't delete them.
    When I choose delete, the 1st five pages are deleted.
    What do I do?

    "2) The last page, p 6,  is not in a Section.  When I delete p 6 ....pages 2 - 6 are deleted.
    Only page 1 remains."
    Every page in a Pages word processing document is "in a section". It may be the only page in its section, or it may be in the same section as several other pages. From the behaviour you are describing, I'd suspect your document has two sections: section 1 contains only Page 1, section 2 contains pages 2 to 6.
    When you click on the Page 6 icon in the sidebar to the left of the page, you'll see a yellow border around all or part of that page icon.
    If the yellow border contains only page 6, then Page 6 is in a section by itself, and pressing delete will delete only page 6.
    If the yellow border contains page 6 AND any other pages, then all of the pages within that yellow border are in the same section, and pressing delete (while the icons are selected) will delete all of the pages in that section.
    To delete only page 6 (the last page in the document) you need to either:
    Delete any text content (including invisible characters, and preferably including any other objects) on that page, following the suggestions by Peter above,
    OR
    Click immediately after the last text character on Page 5, then go Insert > Section Break to place Page 6 into a section of its own. Then click on the Page 6 icon in the sidebar, check that the yellow border encloses only page 6, and press delete.
    Regards,
    Barry
    PS: It's pretty easy to add extra pages to a document without seeing the invisible characters that cause the page to appear. Not as easy as it was in Appleworks, fortunately where the personal record for one of my Grade 5 students was a 3 page document with over 1000 extra blank pages sent to a printer. AppleWorks read the enter key as a column break (which acts like a page break on a single column document). On a keyboard with a number pad, enter is in a very convenient location to rest a book (or an arm) while thinking about your writing (or chatting with your neighbor).

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer.

    Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer. The version installed on my ipod is 7.1.2(11D257).

    Hi donfrommars,
    Welcome to the Apple Support Communities!
    Please use the following article for information and instruction on deleting the U2 album from your devices and account.
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases
    Have a great day,
    Joe

  • HT4847 I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do.

    I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do                             

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • How to get the last record??

    Hi, I now have to get only the last record from one table
    from MS Access.
    I was looking for the useful method from API, however,
    I cannot get it.
    How to get only the last record from one table ???
    Please help, thanks.

    In RDBMS, row order is really not relavent by iteself. Meaning there is no such thing as 'last record' unless it's in the context of a column (e.g. timeStamp).
    Of course, rows are inserted and stored in some natural order, but you cannot assume they'll come back the same way in a 'Select *' as they were entered.
    So, if you mean last row as in last inserted row, I would add a timestamp field that's set at insert, or use a autonumber column. Either way, have a column that will always contain the highest number or newest timestamp, and then you can build your where clause from that.
    For instance, in Access, I have an autonumbered field called 'fred', with other columns. If I want the last record, I simply use the following:
    select * from atable where fred in (SELECT max(fred) AS Max FROM atable);
    the 'where in' clause will filter to only those records in the subsequent select statment, which of course is only one, the max of the column fred.
    bRi

  • How to get the last record from the database

    I am using MS Access database and Swings as GUI. I want to get the last record of a particular column from the table and store it as a varaible.

    Hi
    To get Last record of resultset, you have pass some parameter in constructor of CreateStatement.In such case Resultset should be scrollable and Readonly
    Example
    objStatement=objCon.createStatement ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    mwwResultSet=cwwStatement.executeQuery(mwwSqlQuery);
    while(mwwResultSet.next())
    if(mwwResultSet.isLast())
    //Fetch the required column record.
    String abc=mwwResultSet.getString(1);
    I think this will work. Try it.
    bye

  • How to get the last record of an internall table ....

    Hi All..
    i want to get the last record of an internal table itab, and i want the the value of the last record.

    Hi,
         Use describe statment.
    data: lv_line type i.
        Describe table itab lines lv_line.
        read table itab into wa_itab index lv_line.
    regards,
    Santosh Thorat

Maybe you are looking for

  • How to give Path for a properties file

    Hi, I am using a SQL.properties file to load all my SQL statements to my EJB JDBC prepared Statement. I have placed the SQL.properties file in com.company.sql package. I have another SQL class in the same package which is loading the SQL.properties f

  • Mobile Broadband Activation - my country is not featured in the list

    Hi my unknown friends. I assembled a modem to my W530 and during instalation of the "Mobile Broadband Activation" application I was asked to "select the country where I was located". Unfortunate I currently live in Iceland but Lenovo does not seem to

  • Predictive text on standard English keyboard disabled

    When I install third-party keyboards, the predictive-text option for the standard English keyboard is disabled and not able to be re-enabled - it looks fine under settings, but on the globe pop-up, the switch is off and incapable of being enabled.

  • Black spots on printouts.

    We have a Cannon MFC multi color laser printer, we changed the black print cartridge and when we print black/White , the printouts have black spots and other letters in the background. Can anyone please let us know if they had the same issye and what

  • JNI Crashes at the Runtime

    Hello everybody, I'm newbie at community, but I'm not so noob in Java programming. At first, I tried a lot of solutions for this problem, but nothing did work. Now, I hope we can work together to solve that. Ok, here we go. I'll explain the problem: