Restrict Duplicate entry of record before saving the form

Hi!!
I need to validate duplicate entry of ITEM CODE before saving the FORM. Which means, if I have entered an ITEM CODE in a row, the same ITEM CODE should not be allowed to be entered in any other rows. It should throw an error message and should ask to enter another ITEM CODE instead. I did not get the correct logic from the threads.
Regards
Mitto

hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
EMP(DETAIL)
the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
I have done' Kevin D Clarke’s calculated item ' both in master and detail block
its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
can anyone guide me why its not working

Similar Messages

  • Validation of Item Values before saving the form

    Hi,
    I have requirement in Oracle Forms, we give header information as per the requirement and the lines info of the specific header. In lines whe have two feild as type and amount. If the type is 'E' then we need to sum up the amount value as credit and if type is 'F' we need to sum up of those feild values as Debit and before saving the form we need to check the sum of Credit and Debit is equal or not if equal then we should allow to save the form else it should not. We can have multiple lines under single header..Can any body help on this..Its very emergency..
    Thanks,
    Maggi.

    Hi,
    In Customer-exit ILOM0001 read table IMPT_BUF[] from sap stack. It contains all enteries of measuring points.
    Use below mentioned code in above exits for your reference.
    FIELD-SYMBOLS : <fs_impt> type ANY TABLE.
    data : tab_impt type TABLE OF impt.
    ASSIGN ('(SAPLIMR0)IMPT_BUF[]') to <fs_impt>.
    if sy-subrc is INITIAL.
      tab_impt = <fs_impt>.
    endif.
    table TAB_IMPT is filled wilth all entries of measuring point while creating and changing functional location.
    Thanks,
    Vijay

  • Updating status of multiple records after saving the form

    Hi all
    I have a tabular form
    It has a column status (new,good ,very good ,excellent are the list options)
    The user goes and modifies a number of records on the detail block and saves the records
    what i want to do is that when the user clicks the save button after updating any number of records
    the status field should be updated with the value (new)
    the status field of those records should be updated with the new value which the user has modified not all the records
    Please let me know how to go about it
    thanks
    Edited by: bindok mulga on May 11, 2009 3:48 PM
    Edited by: bindok mulga on May 11, 2009 3:50 PM

    Hi
    actually my earlier post was incorrect
    i have edited my post
    Actually
    i want to update only those records that the user has modified
    eg
    col1 col2 status
    1 ABC good
    2 PQR good
    3 xyz good
    4 lmn excellent
    5 abcz excellent
    is the table before the user modifies
    the user goes and modifies multiple records as following
    col1 col2 status
    1 aaa good
    2 PQR good
    3 xxx good
    4 sss excellent
    5 abcz excellent
    and the user saves the form
    now i want the following output
    col1 col2 status
    1 aaa new
    2 PQR good
    3 xxx new
    4 sss new
    5 abcz excellent
    only the modified record's status should be updated
    sorry for the earlier lapse

  • Ho to Generate the Numeric Values Automatically before saving the records

    Hello to everybody,
    I have a data block naming “BILL” consisting of the following 3 field.
    1. Sr_No
    2. Bill_Amount
    3. Description
    This Data Block consist 10 records at a time.
    I want that whenever I insert records in the above data block.
    Serial No should automatically be generated.
    For this I have applied the following code in “WHEN-NEW-ITEM-INSTANCE” trigger.
    <CODE>
    SELECT NVL(MAX(Sr_No),0)+1 INTO :BILL.Sr_No FROM BILL;
    </CODE>
    Whenever I insert records in the BILL data block, the first row automatically generates the “Sr_No”, but when I move to the next record, (remember currently I have not saved the record), the same value which appeared in the previous record appears in the Sr_No field.
    For example, when I insert records for the first time in the BILL, the Sr_No field automatically generates value “1”, but when I move to the next record while not saving the first record the next row still generating value “1”, while it should be value “2” and so on.
    Note that I want that before saving the previous record when I move to the next row, the Sr_No should generate the next continuous value like in example.
    Please help me to solve out this problem.

    You have practically scratched you left ear with your right foot while jumping on the left foot :-)
    Seriously, you guys don't need to go to all this trouble.
    If you want a serial number incrementation, all you need to do is to either select the max value + 1 from the table or select the next value from a sequence in an PRE-INSERT trigger on block level, and that's it!!!!
    Tony

  • Restrict duplicate entry

    how to restrict duplicate entries to be entered in a table control...
    thanx,
    naveen vishal

    hi..
    after ur PAI table control loop, write another module.
    in tht u can declare one temporary int table and copy the original int table to the temp table.
    then sort this new internal table and delete adjacent duplicates comparing your key fields.
    if sy-subrc = 0.
    give some error msg.
    else.
    do nothing..
    endif.
    hope this helps...
    regards,
    naveen

  • Restricting duplicate entries in for Batch Characteristics

    Hi All,
    How can we restrict duplicate values for Batch characteristics. The characteristics is a user input field but we want to keep a check that user doesn't input duplicate entries as in previous batches.

    I think I misread your question.
    When you say user doesn't input duplicate entries as in previous batches. do you mean the values in some other batch should not be entered in the current batch? For example, if in batch A, the characteristics Gold value reads as 1000 $, when the user creates the batch B, the user should not be allowed to enter value 1000$ for characteristic Gold?
    If the assumption is correct, then I think standard configurations can't help. However take a look at the user exit EXIT_SAPLV01Z_014 in program SAPLV1ZN.I also recommend you posting this question in materials management forum after closing this thread, if you don't find suitable answer.
    Regards,

  • User Exits for transaction VF01 before saving the billing document

    Can any one say is there any user exit which exits before saving the billing document since i want to check the net value of the billing with the net value of sales order so that it should not go beyond the total amount specified in sales order.

    J_3RSINV
    SDVFX001  User exit header line in delivery to accounting
    SDVFX002  User exit for A/R line in transfer to accounting
    SDVFX003  User exit cash clearing in transfer to accounting
    SDVFX004  User exit G/L line in transfer to accounting
    SDVFX005  User exit reserves in transfer to accounting
    SDVFX006  User exit tax line in transfer to accounting
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference numbe
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedu
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lis
    V61A0001  Customer enhancement: Pricing
    These are the Exits Available in the Package
    Jus try finding which will suffice ur Requirement.
    Regards,
    Mithun

  • In VF01, before saving the billing document, can we use "issue output to"

    In VF01 transaction before saving the billing document, can we use "issue output to" under Billing Document in Menu.
    i.e., can we enable the option "Billing Document -> Issue output to -> Issue output to"

    Hi,
    No as a standard, unless the billing document is created and released to accounting, you can't use issue output to.
    Regards,

  • System assigning Contact Number before saving the contact

    Hi ,
    In CRM Dev client and CRM QA system is assigning Number for the
    contact (Business Partner) before saving the contact in webui.
    Because of this, system is updating the Contact created time in BUT000
    as the Number assignement time and not the actual contact saved
    time.
    (Whereas in CRM PROD client its not behaving as indicated above and
    its assigning Number after saving and its fine).
    Pl suggest the possibilities to avoid early number assignment and surprised its happening in only Dev and QA.
    Regards
    Babu

    Hi,
    Please take a look at this thread.
    CRM 7.0 Stop Early Number Assignment for  BP create
    Regards,
    Parul

  • How to validate plan data before saving the data

    I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.
    Regards,
    Tipo.

    Hi,
    I'm also facing the same problem in my development...I tried above all the ways,but we cannot stop saving the wrong data.In this case you have to write the java script for save button, before saving the data if it is correct then go for the next step to save other wise throw an error message or without save the data .
    You need to write the JAVA script for save button,in this code you need to read the data form the layout and check the total value, i am not sure if layout is dynamic how we can achieve this???.
    My development also stopped for this issue,In my case i  have two layouts ,one is for actual and another one is for Planing layout(Function - Distribution equally),using the fox code i succeed to read and throw an error message for incorrect data but i can not stop to saving for incorrect total data.
    Once you solved this problem please post the message in SDN.This type of requirements is very tough and we need to share to our friends.
    Thanks.

  • InCopy workflow in InDesign: Is there a way to find the document in which an ICML file has NOT been checked IN again before saving the doc?

    The situation:
    We are working with the InCopy feature (checking in and checking out ICML files).
    The problem:
    I might have saved a document with an ICML file still checked out.
    The question:
    Is there a way to find out which document was saved with the ICML file still checked out?
    or in other words:
    Is there a way to find the document in which an ICML file has NOT been checked IN again before saving the doc?
    Thanks for any help!

    Hello Sumit Singh,
    thank you for your answer and your reasonable recommendation. Unfortunately, this only works when the ICML content is used in one INDD file. In our case, we use ICML content in multiple docs (various manuals with the same safety instructions, warranties, adresses etc.).
    So, is there a way to trace back where an ICML has been used?
    Is it possible to find out in which document the ICML is still checked out?

  • Could you pls help on  use exits   before  saving  the contract .

    i want to check the limitatin  before  saving the contract  in sap banking.
    for  contract creation  tcode is  FN1V or FNV1.
    Could you pls tell me the   use exits  if knows  anybody
    advance thanks.

    Hi Diva,
    use this exit.
    EXIT_SAPLFVDA_002
    if this is not suitable for u r req then go to SMOD press f4 then click on Information systems give FVVD in package then press enter.there u will get no of enhancement. search for u r rlant.
    Thanks

  • HCM PnF - "Send" button missing while saving the form as Draft

    Hi All,
    We are facing an issue in HCM PnF.
    Issue is - Whenever we are saving the form as Draft and later on when we open it and try to send it, the "Send" button is missing.

    Hi Pooja,
    I think u are viewing the Display Form Records, When you select the Record in the Draft status then it just opens the form which just gives the option to view not to check and send.
    You have the select the Record from the Above tabel (UWL) which will open the appln which will be having the different buttons in different view of Process..
    Hope it helps.
    Thanks
    Dipu

  • Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Here is one solution:
    // mouse up action for submit button;
    function GetField(cName) {
    // get field object for cName field with error checking;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
    return oField;
    } // end GetField function;
    var oPhone = GetField("phone");
    oPhone.required = oPhone.value == oPhone.defaultValue;
    var oEmail = GetField("email");
    oEmail.required = oEmail.value == oEmail.defaultValue;
    if(oPhone.required && oEmail.required) {
    app.alert("Missing required fields.", 1, 0);
    } else {
    app.alert("Submitting form", 3, 0);
    // additional code for submission;

  • Adobe validations of field before submit the form

    Hi forum
    I have an Interactive Form, but i can validate the fields before submit the form and display a popup message, is this possible ??
    Thnks
    Josué Cruz

    Hi josue,
    Use the regular button and for that in the click event write all the validation scripting and at the end use the following code
    In JavaScript: xfa.connectionSet.MyWSDLDataConnection.execute(0);
    In FormCalc: $connectionSet.MyWSDLDataConnection.execute(0)
    Regards
    Pradeep Goli

Maybe you are looking for

  • PlzzHow can we check the version of Business Content in ECC 5.0 version??

    Hello Experts, Plz tell me.. How could we check the version of the business content installed for ECC 5.0?  I tried to search for the same in the forum but I couldnt.. plz let me know as I doubt that the business content is not properly installed for

  • What are the important points during a Linux upgrade with Oracle database?

    Is there a specific document or metalink note that I may follow similar to this one during a Linux os upgrade - http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/toc.htm Lets talk on an example; we may talk on upgrading details of a RHEL

  • Best way of accessing a runtime datastructure

    Hi all, Ive created program that reads in a file and creates a datastructure based on the information contained in the file. its based on how you create the constant pool for a java class file. The thing thats puzzling me is how do i gain access to t

  • Approval Policies OIM 11g

    Folks , Just wanted to understand , in what scenario we need to create operational level of approval policies . My requirement is develop approval workflow for roles assignement , it involves 3 levels of approval, starting with manger approval and bu

  • New Questions.. publish iMovie to iDVD

    SDMacuser & J Keller, Thanks for all your help, however as I work through things more questions arise I'll cut & paste entries and new questions under.. But before I do that just want ya'll to know that I cleaned up old versions of various DVD projec