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,

Similar Messages

  • 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

  • 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

    Hi
    I have used an inner join to get data from two tables KNA1 and KNVP. In the result some entries are getting duplicated. How do i restrict it to get unique records???

    Hi Mayur,
            After selecting the datas you can delete the Duplicate Values from your internal Table.
    For Internal tables use,
    DELETE ADJACENT DUPLICATES FROM itab.
    If u want to delete the duplicate entries depending on one or 2 columns then u can use
    DELETE ADJACENT DUPLICATES FROM itab COMPARING f1 f2.
    Thanks.
    Reward If Helpful.

  • Change Documents for batch characteristics

    Dear Guys,
    Badly in need of your help !
    In our project, we are required to report changes made on batches characteristics.
    My program fetches records from CDPOS table that has change doc. object as 'CLASSIFY'.
    The challenge is to find the new and old value. They are not directly stored in VALUE NEW and VALUE OLD. They are simply '1'.
    I'm sure that they are stored somewhere in the database because the vlaue before and after change can be seen in the transaction mch3n via menu-> Display Change Documents.
    I tried hard finding the table-field but looks like its not straight forward. This is really challenging.
    Regards,
    Ashok

    Gert,
    The change done in the project profile will only affect newly created projects.
    Have you checked if change documents are created for new projects?
    Hope this helps
    Rgds
    Martina

  • FOR ALL ENTRIES IN - For Batch Split & multiple items

    Hi,
    My Report is to find Production Order from Sale Order.
    Flow of tables -
    (VBAK- VBAP- LIPS - SER01 - OBJK - SER05 - CAUFV)
    Report is working accurate in normal scenario. But -
    Here, In Batch split with multiple items -->
    FOR ALL ENTRIES IN - is not taking values.
    one case for Ex-->
    sale order   so item        obdelivery           obd item           serial no
    39782            10             1234              900001                 12
    39782            10             1234              900002                 13
    39782            20             3456              10                     14
    Here,
    only one OBD 1234 (sr no 12 & 13 ) is get entered in ITAB and not 3456.
    (i.e. in gi_objkso all 3 entries are there, but in gi_objkpo only two entries are transferred)
    Where, Production order is there for all three Sr. No.
    My code is -->
    IF NOT gi_ser01 IS INITIAL.
              SELECT obknr equnr sernr matnr
                     FROM objk
                     INTO TABLE gi_objkso
                     FOR ALL ENTRIES IN gi_ser01
                     WHERE obknr EQ gi_ser01-obknr
                       AND equnr IN so_equnr
                       AND sernr IN so_sernr
                       AND matnr IN so_matnr
                       AND taser EQ 'SER01'.
              IF NOT gi_objkso IS INITIAL.
                           SELECT obknr equnr sernr matnr
                       FROM objk
                       INTO TABLE gi_objkpo
                       FOR ALL ENTRIES IN gi_objkso
                       WHERE sernr EQ gi_objkso-sernr
                         AND equnr EQ gi_objkso-equnr
                         AND matnr EQ gi_objkso-matnr
                         AND taser EQ 'SER05'.

    Hi,
    Do you create more than one production order per sales order line?  If not, you could change the match to look at table AFPO for fields KDAUF = sales order number) and KDPOS = salse item number.
    If you are going down to serial number level, after this select (fields are indexed in index AFPO~3, by default I think), then you could use your additional serial number field match after getting the list of production order numbers for the sales order/item.
    Regards,  Andy

  • Restrict service entry sheet for reversal

    Hi experts,
    How can we put a check that service entry sheet should be reversed by the user who has accepted the same even from the same Plant, Purchasing organisation etc.
    thanks in advance

    hi Rajat,
    Configure release strategy as below -
    Two release codes for X (Say 19) & Y (say 20)
    Give authorisation User X - Rel code 19 and User Y - Rel code 20
    Configure SES release strategy wherein SES can be either released by 19 or 20 (See Pic 1)
    Maintain classification
    Now create SES & release with User X having authorisation for rel code 19 only (See Pic 2).
    And then try to un-release with User Ywith release code 20, it will not allow & will give error "Not possible to cancel release with code 20" (See Pic 2)
    User Y can not un-release with release code 19 as he dont have authorisation for rel code 19.
    Try this out in TEST system, hope this will help you.
    Reg, Rakesh

  • Validating Duplicate Entries In itab

    Hi All
       How to approach for restricting duplicate entries in the Database?
    The scene is that I've to enter some data in a table control . and while saving, I've to check whether the same entry already exists in the database or not.
    How to approach for this? Awaiting your valuable response.
    Thanks in advance
    Pradipta

    Hai Mishra
    DELETE ADJACENT DUPLICATES FROM itab.
    Additions
    1. ... COMPARING f1 f2 ...
    2. ... COMPARING ALL FIELDS
    Effect
    Deletes neighboring, duplicate entries from the internal table itab . If there are n duplicate entries, the first entry is retained and the other n - 1 entries are deleted.
    Two lines are considered to be duplicated if their default keys match.
    The return code value is set as follows:
    SY-SUBRC = 0 At least one duplicate exists, at least one entry deleted.
    SY_SUBRC = 4 No duplicates exist, no entry deleted.
    Addition 1
    ... COMPARING f1 f2 ...
    Effect
    Two lines of the internal table itab are considered to be duplicates if the specified fields f1 , f2 , .... match.
    Addition 2
    ... COMPARING ALL FIELDS
    Effect
    Two lines are considered to be duplicates if all fields of the table entries match.
    Notes
    The DELETE ADJACENT DUPLICATES statement is especially useful if the internal table itab is sorted by fields (whether in ascending or descending order) which were compared during duplicate determination. In this case, the deletion of neighbouring duplicates is the same as the deletion of all duplicates.
    If a comparison criterion is only known at runtime, it can be specified dynamically as the content of a field name by using COMPARING ... (name) ... . If name is blank at runtime, the comparison criterion is ignored. If name contains an invalid component name, a runtime error occurs.
    Comparison criteria - statistically or dynamically specified - can be further restriced by specifying the offset and/or length.
    Note
    Performance
    Deleting a line from an internal table incurs index maintenance costs which depend on the index of the line to be deleted. The runtime depends on the line width of the table.
    For example, deleting a line in the middle of an internal table with 200 entries requires about 10 msn (standardized microseconds).
    Deleting a range of entries with " DELETE itab FROM idx1 TO idx2. " deleting a set of entries with " DELETE itab WHERE ... " only incur index maintenance costs once. Compared with a LOOP , which deletes line-by-line, this is much faster.
    To delete neighboring, duplicate entries from an internal table, use the variant " DELETE ADJACENT DUPLICATES FROM itab. " instead of LOOP constructions.
    Thanks & regards
    Sreeni

  • How to prevent duplicate entry in Details block

    Dear All
    I am using Forms 10g.
    I have a detail block.
    There is a column called Ip_Address.
    There i want to prevent duplicate entry .
    How can i do this ?

    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

  • Updated Batch Characteristics on Order Release is not available in MSC3N

    Hi All,
    I have maintained the Class (023) and characteristics for Finished Material. When I am releasing the production order, I am assigning the values for batch characteristics (Custom defined characteristic) after that, If I go and see the corresponding batch in display mode (MSC3N) the value for the characteristic is not updated (entered value not available its blank).
    u2022     Automatic batch creation for the production order during the order releasing is happening exactly as per the configuration but the entered value for the characteristic is not available for the corresponding batch in change as well as display mode (MSC2N/MSC3N)
    Please guide to solve out this issue
    Thanks in Advance

    Hi Sanil,
               Thanks for your speedy reply.
    For me characteristics and all available as per the expectations but the updated value for the characteristcs on release is not sticking with the batch.
    Please guide me to solve out this issue.
    Thanks in Advance

  • SD Document Flow - Duplicate entries

    SD Document flow, duplicate entries created for the same Delivery & shipment.
    In VT03N document flow same shipment no is shown twice for the sales order & delivery document.

    SD Document flow, duplicate entries created for the same Delivery & shipment.
    In VT03N document flow same shipment no is shown twice for the sales order & delivery document.

  • MySQL duplicate entry deletion in 5.5.9

    Hey all,
    I've noticed that in the newest MySQL, I can no longer do:
    ALTER TABLE test ADD UNIQUE INDEX unique_index (id);
    ALTER TABLE test DROP INDEX unique_index;
    to remove duplicates. I get the following error:
    ERROR 1062 (23000): Duplicate entry '3' for key 'unique_index']
    This worked fine before the major SQL upgrade. It also works fine on version 5.1.52 on my web host.  I searched through the 5.5.9 release notes and I didn't see anything that should have changed this, but I'm no MySQL guru! Is this a feature or a bug? Any alternate suggestions for deleting duplicates that will work on this version and older versions of MySQL?
    Thanks!
    Scott
    Edit: Just for clarity, the table I'm working on has a single primary key column (UNIQUE_KEY) (with 80+ other data columns) and I'm only detecting the duplicate row based on the value of the primary key column.
    Last edited by firecat53 (2011-02-25 03:33:30)

    Alright, since I was apparently sucked in by this particular method the first time I googled the answer, care to enlighten me on the 'more practical' non-joke methods, as there appears to be more than one option.
    Also, why is that a joke of a feature? Like I said, I'm no MySQL guru so I'm ready to learn!
    Thanks,
    Scott
    edit: is this a 'more practical' method? It's hard when you're learning on your own to sort out the good from the bad sometimes
    edit2: using the above method with this table:
    +------+------+-------+
    | id | data | data1 |
    +------+------+-------+
    | 1 | 10 | 100 |
    | 2 | 100 | 1000 |
    | 3 | 1000 | 500 |
    | 3 | 1000 | 500 |
    +------+------+-------+
    and this query:
    delete test from test left outer join (select min(id) as RowID, id from test group by id) as KeepRows on test.id=KeepRows.RowID where KeepRows.RowID is null;
    I can't quite get it to work...it doesn't delete any rows. What am I missing there?
    edit3: This method works -- is it a 'good' method or should I be looking at something different? Again, I'm just matching on duplicates in the primary key column (before the primary key is assigned):
    create table test1 like test;
    insert into test1 select * from test group by id;
    drop table test;
    rename table test1 to test;
    Last edited by firecat53 (2011-02-25 03:55:10)

  • To eliminate the duplicate entries while looping into final internal table

    Hi friends,
    IAam facing the follwoing problem.
    Get Shipment for the Delivery number
          SELECT tknum
                 vbeln
                 INTO TABLE lt_vttp
                 FROM vttp
                 FOR ALL ENTRIES IN lt_vbfa
                 WHERE vbeln = lt_vbfa-vbelv.
        IF sy-subrc EQ 0.
          SELECT vbeln kunnr
                 FROM likp
                 INTO TABLE lt_likp
                 FOR ALL ENTRIES IN lt_vttp
                 WHERE vbeln = lt_vttp-vbeln.
      endif.
    now iam my internal table lt_vttp i have following values
       shipment             delivery
          1000                  2000
          1000                 2001
    in my internal table lt_likp i have the follwoing values
          delivery              shipto
           2000                  ABC
           2001                  ABC
    now iam looping those values in a final internal table.
      LOOP AT lt_likp INTO ls_likp.
        CHECK sy-subrc EQ 0.
         READ TABLE lt_vttp INTO ls_vttp WITH KEY vbeln = ls_likp-vbeln BINARY SEARCH.
        CHECK sy-subrc EQ 0.
             SELECT SINGLE * FROM vttk INTO ls_vttk
                    WHERE tknum = ls_vttp-tknum.
                  CHECK sy-subrc EQ 0.
                APPEND ls_vttk TO lt_vttk.
       endloop.
    Now my problem is if the shipment is same and the shipto is same then need to eliminate the duplicate records.
            in internal table iam getting 2records with same shipment and shipto combination.
           but instead if both the shipment and shipto are same then i should elimate the duplicate entries.
    and for the same shipment if i have differnt shipto then i neeed those 2 value.
    can any body tell me how can i get that.
    Regards
    Priyanka.

    Hi Priyanka,
    In your code you are using seelct statement inside the loop which will affect the performance.
    So, declare a another internal table which contains your both shipment and shipto elements with other required fields, say the name is lt_new.
    sort lt_new by shipment shipto.
    delete adjacent duplicates from lt_new comparing shipment shipto.
    "then use for all entries to choose values from VTTK.
    Hope this helps you.
    Regards,
    Manoj Kumar P

  • BP Duplicate Entry Check - CRM UI

    Hi Experts,
    I am able to have duplicate entry check in CRM GUI but its not working in the Web UI. I want to do a similar check in CRM UI. I have to check whether its a corporate of individual BP. Then I have to display a warning message if a duplicate entry exists for the given fields.
    In CRM GUI, I am using a function module to throw the message. Its called at an event.
    Warm Regards,
    Abdullah

    Hello!
    Only some remarks about the Duplicate Check. This is based on the BAS Interface (BAS=Business Address Services) and Third-Party solutions are certified for this Intervace.
    http://service.sap.com/bas => Information about the Interface
    http://www.sap.com/ecosystem/customers/directories/searchpartner.epx
    Link to find certified Partners (Certification Category=Central Address Management)
    Best regards
    Arno

  • Duplicate entries missing using for all entries in select query.

    Hi Gurus,
    Is there any way to avoid missing duplicate entries in an internal table if you use for all entries in select statement?
    Note : i am selecting two tables using non key fields and i have to aggregate the data. I want only 2 data fields and one amount field in my final internal table. I can add all the primary key fields into my internal table and collect my required fields in another table, but  I just want to know is there any other way to avoid missing duplicate entries without adding all the key fields?
    Regards,
    Raghavendra

    Hi,
    Just check what are the other possible fields in the table which may be having
    duplicate entries and make use of them in the selection accordingly.
    You may not miss any entries unless there is any restriction on them.
    You can better judge that in debugging mode while selecting data from that table.

Maybe you are looking for

  • How do I remove my iWeb pages from the Home folder so I can publish to a new host?

    I have moved my MobileMe site to a new service (GoDaddy).  The basic transfer went very smoothly.  With one tiny hitch:  the new URL text. IWeb places web  pages in folders, each folder being a  "site." The name of the root folder automatically becom

  • DMA2200 Audio

    Hello Everyone, Please help! Poor audio quality only when playing music (mp3s from the music library).  Playing from the music library seems to be pumping out the music really loudly and it seems to be distorting the fidelity.  Turning down the volum

  • How can I block all "Toll Free" and other unwanted calls?

    Yes, I know all about the "Do Not Call" list, and the laws, blah, blah, blah.... these annoying calls from 800, 866, "Unlisted", "Anonymous" and "Toll Free" still happen.  And, there is no point in trying to save one number at a time in a "Don't Answ

  • Secure CFFTP

    I am trying to connect to an FTP server usinfg CFFTP. The server requires a secure connection. Does CFFTP support secure connections? Thanks.

  • Aero Snap, snapped

    Hi there. My problem is: I have something that I can't figure out what it is that makes all my windows behavior like Aero Snap. That is, if I drag any window to the top or both sides of the screen they resize according to Aero Snap-like behavior. Thi