Check for Duplication

Hi,
I'm using forms6i.
I have a database block say 'Teacher' with columns 'Tid' and 'Tname'.
I have created a Layout for this block.
My requirement is to prevent duplication of the records.
Say if teacher has a record
1 , Divya
And if again the user tries to enter same record 1,Divya, I should stop the user.
I dont want to check this from the database, because in real scenario this may not be a database block.
Instead i want to check at form level.
Any help is appreciated.
Thanks

Hi,
Thanks for the responses, Since i'm not permitted to do in the way that francois's link shows,
I thought of doiing using pl/sql tables.
Now what i'm doing is, in post query, i'm appending the columns in a record and storing in the pl/sql table.
and in when validate item , i will check whether the entered values(combination of column values) already exist in the pl/sql table. If exists an alert is shown , otherwise it is again added to pl/sql table.
Based on the :system.record_status i'm checking whether user is trying to add a new record or modifying the existing value.
So far so good.
But what problem i'm facing now is, if user try to modify the newly created record, then the status again shows as 'insert', and the modified record is again added to pl/sql as new record.
Hope what i explained is clear.
Please help me a way to find whether the user is modifying or creating a records.
For this purpose only i thought of taking the count of the number of records displayed in the form, and compare it with number of records in the pl/sql table. So if count is same, then the user is trying to modify, if the count doent match then the user is creating a new record.
Thanks

Similar Messages

  • Check for Duplication of Incoming Invoice Entry - strict rule

    Hello,
    busines people require very stricly rules for duplication check of incoming invoice (MM). Standard customizing makes it possible to check according:
    Reference document number -customized
    Invoice date -customized
    Gross invoice amount -mandatory
    Currency -mandatory
    Vendor -mandatory
    Company code -customized
    But i need to compare only company code and vendor. This is more strict rule what i cannot customized. I think i must use user-exit (badi) for that?
    Do you have any idea?
    Thank, zd.

    MBCF0002
    this can be the user exit but u can check with the abap
    and ask him to code for u to check delivery number per vendor
    But if u put this condition in miog and check MKPF and MSEG table then ur system performance will go down in long run as this table are big sap tables
    so u can think of creating a ztable so that in user exit u can code so that vendor delivery number and year will be stored after saving the migo
    and in other user exit which will triger first than this will check in this ztable
    this will increase the performance
    Reward if useful

  • Checking for duplication

    How do I verify the value entered in a form which is already in NewScale database?   For example, if I have a dictionary with field A_Name.  During ordering, how do I check if Service.A_Name already entered?

    Sab, if it's giving you problems put the Row ID into the location field as a default value that way you you always get unique values and it will turn off the duplication.
    cheers
    Alex

  • Check for Duplication of Delivery Note in MIGO

    Hi Gurus,
    We are working on ECC 6.0. My client's requirement is that Delivery Note field in MIGO -> General tab should be mandetory, that we have done.
    Now they want system to check that the same Delivery Note No.  should not be accepted by system for same vendor and system should give a message as we get message in Excise Invoice Tab ( if we enter same excise invoice no twice for same vendor) .
    Is there vany user exit / badi or any other way to do this ?
    Your kind guidance is highly apprciated.
    Thanks in advance.
    Vikas

    MBCF0002
    this can be the user exit but u can check with the abap
    and ask him to code for u to check delivery number per vendor
    But if u put this condition in miog and check MKPF and MSEG table then ur system performance will go down in long run as this table are big sap tables
    so u can think of creating a ztable so that in user exit u can code so that vendor delivery number and year will be stored after saving the migo
    and in other user exit which will triger first than this will check in this ztable
    this will increase the performance
    Reward if useful

  • Duplication check for Lead and Contact

    Hi,
    Can i confirm that, there is no duplication check for Lead and Contact during the new reacord adding?
    I also realise that during the Lead convertion, CRMOD also never check for duplication even i have existing contact available?
    Is there anyway for us to activate the duplication check during the Lead convertion?
    Regards,
    SK

    SK,
    System can check duplicate if you add external id for record (Lead and Contact).
    For more information please refer topic 'About record duplicates and external ids' on page no.1303 of OnDemand help.
    Hope this helps.
    Santosh

  • Check for Duplicate Fields in Vendor Master

    Dear Gurus
    We have a requirement to configure checks for Duplication  in Vendor Master.
    regards
    MS

    Hi
    Pls check the path
    IMG > Financial Accounting> Accounts Receivable and Accounts Payable>Vendor Accounts> Master Data > Preprations for Creating Vendor Master Data > Change message control for Vendor Master Data
    Give message numbers 144 and 145
    How ever, I suggest that you do not put the message as "E". There could be a scenario, where in, the Business may have certain customers and vendors with the same name and other common fields.
    Thanks & Best Regards
    Sanil K Bhandari

  • Check for Duplicate files.

    I have multiple folders with duplicate files, i was wondering what is the best way to check for duplication based on file content even if the file name is slightly different.

    There are several commercial software options. I suggest that you use the ones that use SHA1 matching.
    Decloner is pretty good, and it comes with a 30-day trial that is FULL FEATURED.
    http://www.pixelespressoapps.com/decloner/
    Only works on snow leopard and up.
    Their website conviniently compares other duplicate file software packages.
    I purchased Twins, which is also great.
    http://www.rockysandstudio.com/apps/twins
    Only works on Lion and up.
    Remember, SHA1 is the way to go if you want to find duplicates with highest accuracy.

  • Duplication Check for Vendor Invoices

    Can we check for duplicate invoices in SAP
    Regards
    Satish

    Hi
    The configuration settings are made in
    IMG>Materials Management>Logistics Invoice Verification>Incoming Invoice>Set Check for Duplicate Invoice
    In vendor master you need to maintain the tick for Duplicate Invoice Check
    Thanks & Best Regards
    Sanil K Bhandari

  • Use of Mobile Number for Duplication check in CRM 7.0

    Dear All,
    We are using SAP CRM 7.0 (Marketing). While creating a Business Partner, currenlty we are able get a Warning message based on Address check via TREX 7.0. But we need to check for duplicate based on "Mobile / Phone Number".
    Request you to share the approach for achieving this.
    Thanks.
    Raj

    Hi,
    As Den said you need to write your own code.
    Please see the badi ADDRESS_SEARCH. This badi  controls the duplicates search procedure .
    You have to implement this badi in your own way to find out the duplicate checks.
    Mobile number can not be brought in via BAS index fields.
    So the importing parameters in this badi will bring in other address attributes but not mobile number.
    So you have to find a provision to bring the mobile number of the bp inside the badi so that you can check on database with that value.
    please see the thread [How BUPA_ADDR_CHECK triggered;. A way of bringing mobile number in, is mentioned in this thread.
    Thanks,
    Rajini

  • Check for double invoices

    Hi,
    1) Can someone explain me what is meant by "Check for double invoices " field in vendor master and its importance?
    2) I am also confused between  "Check for double invoices " filed in vendor master, and set check for Invoce duplication in "SPRO -> SAP Reference IMG -> Materials Management -> Logistics Invoice Verification -> Incoming Invoice -> Set check for duplicate invoices". Can some one exaplin that too?

    Hi,
    1) Can someone explain me what is meant by "Check for double invoices " field in vendor master and its importance?
    This field for vendor reference while doing MIRO
    2) I am also confused between "Check for double invoices " filed in vendor master, and set check for Invoce duplication in "SPRO -> SAP Reference IMG -> Materials Management -> Logistics Invoice Verification -> Incoming Invoice -> Set check for duplicate invoices". Can some one explain that too?
    here you can define criteria for duplicate invoice including reference field also
    In vendor master press F1 for duplicate invoice indicator ,you will get good info with Example.
    how it work
    check following link also
    [http://help.sap.com/saphelp_470/helpdata/en/ce/4f3e39ea3aee02e10000000a114084/content.htm]
    Regards
    kailas Ugale
    Edited by: kailasugale on Jan 16, 2012 2:43 PM

  • Check Invoice Duplication

    Dear all,
    In our SAP system, there are several companys.
    I would like to check the invoice duplication between companys with criteria Vendor and Reference Field.
    I have set the Check Duplication Invoices setting by the following path:
    SPRO-> Materials Management -> Logistics Invoice Verification -> Incoming Invoice -> Set Check Duplication Invoices
    As I would like to check the invoice duplication with same vendor and same reference field, I have only select the "Check Reference" box in the screen of all companies.
    I have created an invoice in company A with vendor 1 and reference #REF1. I then create another invoice in company A with vendor 1 and reference #REF1.
    I found that no duplication can be checked. Can I ask anything is missing in the setting?
    Thanks
    Sunny

    Hi
    During the Duplicate Invoice check, the system checks for the following:
    Vendor
    Currency
    Company code
    Gross invoice amount
    Reference document number
    Invoice document date
    If the same matches, you can set up an error/warning message. The  message set up is done in:
    OBA5
    Application Area WS
    Message No.121
    Online and Batch : E
    If you want to write your own checking logic using the Business Transaction Step 110. For activating BTE
    1. Create a Function module by copying SAMPLE_PROCESS_00001110 and adding your own Abap code for duplicate invoice checking.
    2. Go to T.code FIBF and in the menu go to Settings->Products -> Of a customer
    3. Create a new product and save
    4. Again go to T.code FIBF and in the menu go to Settings->Process modules-> of a Customer
    5. Create new entry as follows and save.
    Event: 00001110 Appl:FI-FI Function Module : (Name of the FM you have created) Product : (The one which you have created)
    Regards
    Sanil Bhandari
    <a href="http://www.vcq.biz/">ronaldo wallpapers</a>, <a href="http://www.utorrent.name/">utorrent</a>Hi
    <a href="http://freeebooks.name/">books online</a>, <a href="http://www.utorrent.name/">utorrent</a>

  • Checking the duplication of batch number

    hi expert
           I m using the Stored procedure (SP_TranscationNotification) for checking the duplication for Batch Number ie when a alreasy existing batch number is given an error message should be shown.
          declare @ItemCode nvarchar(64)
          declare @batchNumber nvarchar(64)
          if @transaction_type in ('U','A') and (@object_type='106')
             begin
                set @itemCode = LEFT(@list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1)-1)
                   set @batchNumber=substring(@list_of_cols_val_tab_del,charindex(char(9),@item)+1,len(@list_of_cols_val_tab_del))
                 if exists(select @itemcode,@batchnum from OIBT where BatchNum=@batchNumber and ItemCode=@Item)
                    begin
                        select  @error = 1, @error_message ='batch number already exists'
                    end
            end
         Here in the above SP , i cant able to get the batch number,Please anyone give me the solution of getting batch number or suggest a method to get the value between first and second tab of a row.

    Please check this answered link. Your level of batch would be defined on plant, thats why you are getting duplicate batches. Batch definition at Client level has unique batch numbers.
    Change the Batch Level
    Edited by: Afshad Irani on May 22, 2010 10:54 AM

  • Check for transaction interface failure from POS to POSDM

    Dear experts,
    Would like to see if in your experience, you have encountered any report or functions that allow users in POSDM to check if sales transaction from a particular store has failed to do the inbound interface from POS to POSDM?
    I am personally not aware of this, so if there is no such report based on your knowledge, would you have any workaround solution that you can suggest me?
    Thanks so much.
    Dominic

    Link for Duplication Check process: http://scn.sap.com/docs/DOC-47529
    Link for info on POS DM: http://help.sap.com/saphelp_posdm/helpdata/en/4e/9617be3aec6ea9e10000000a42189b/content.htm
    Hi Dominic,
    There are certain validation checks we have in POS DM to validate the transaction data when it comes to POS DM. These validations are like Master Data check, Duplication check, Sequence check for missing transactions and so on.
    You can find more about the same in the given link. I don't know my editor is behaving strangely so the link is on the top. I am not able to paste the links in editor links are coming on top. Might be my IE issue.
    Regarding implementing such validation in POSDM for incoming transaction you can refer my posted document for Duplication check in POSDM. From this document you will get an idea about how to implement the validation check.
    Let me know if you need any other information.
    Regards,
    Amit

  • Check for null and empty - Arraylist

    Hello all,
    Can anyone tell me the best procedure to check for null and empty for an arraylist in a jsp using JSTL. I'm trying something like this;
    <c:if test="${!empty sampleList}">
    </c:if>
    Help is greatly appreciated.
    Thanks,
    Greeshma...

    A null check might not be you best option.  If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
    In the C# method, first check if either is an empty string, if so return an empty string.
    If not, TryParse the data, if successful, return a valid data string for EventDate.  If not, error or return empty string, whichever satsifies the requirement.

  • Acmcneill1ug 14, 2014 7:16 AM I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great. When check how much memory I am using, with only Safar

    Acmcneill1ug 14, 2014 7:16 AM
    I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great.
    When check how much memory I am using, with only Safari open I am using 3.9 and more of her 4.0 memory. She is very. very slow in processing. I had 4000
    trash to clean out and it took her over an hour to expel. Also for some reason Safari will not allow me to click on a link, in my G-mail, and let it go to the page.
    It has a sign saying a pop-up blocker is on and will not let me do it. I must open the stamp to look at my e-mails and if I have redirected link now I can do it.
    I have not changed my preferences so where is this pop-up blocker?
    I have looked at preferences on Safari and Google, which I do not understand Google, and do not see where this blocker could be.
    Malware is something I want to make sure is not on my computer. Tech Tool Pro 6 is all I know of and it does not detect Malware.
    Help.
    Ceil

    Try Thomas Reed's Adware removal tool. He posts extensively in the communities.
    Malware Guide - Adware
    Malware Discussion

Maybe you are looking for

  • CS3 crashes when opening or placing a file with Mac Leopard

    I recently installed CS3 Design Premium to my iMac (OS = Leopard). I did the updates as well after installation. I can start up Photoshop (Extended), and open up files from Bridge application but not from Photoshop itself. When I try to open a file,

  • Unable to browse network shares after installing Time Capsule

    After installing my time capsule I am no longer able to browse the other computers on my network. I can ping them just fine but when I try to see them under "shared" or to brows to the ip address, it doesn't display the other computers. It sees the T

  • Extracting image from bufferedimage based on colors

    Hi everyone, i have a rather tricky problem: Is it possible to extract an image from a bufferedimage depending on colors. I have images with a black/dark gray item on a mostly white background and need to extract (sub)images of both ends of that item

  • Aperture Stuck 'Processing' a single image

    Have been having trouble all morning trying to get aperture to stop processing an image. it keeps locking up aperture, and forcing me to have to force quit in order to get out. the image is a roundtripped PSD file that was created from a RAW file in

  • Bean VS class

    Hi, I'm developping JSP applications on tomcat and I was wondering what's the difference between a Bean and a simple class. I mean the difference between using this: <jsp:useBean id="nvClient" scope="request" class="clients"></jsp:useBean> instead of