How to restrict the entry of same material twice on the order

HI,
How to restrict the entry of same material twice on the order before saving the Order ?
I do not want my users to enter the same material as two different line items in the order.
Any inputs wud b appreciated

Hi Vam,
For this you need to take the help of an ABAPer . Ask him to modify the user exit and add the logic.
For user exit please go through the below link it will help you to resolve your issue.
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
Regards,
Krishna O
Edited by: Krishna O on Jun 3, 2010 12:29 PM

Similar Messages

  • HT1657 I have rented a movie 8hours ago, and it will NOT play. The system also charged me twice, for the same movie! How can you help me please?

    I have rented a movie 8hours ago, and it will NOT play. The system also charged me twice, for the same movie! How can you help me please?

    For the film not playing, you can use the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that film and use the 'Report a Problem' link.
    Not sure whether you can request a refund for the double charge via the same link, if not then you can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • Does not do the sorting if I click twice to the same column.

    Hello
    I am new to winforms.
    I have a listview. I want it to toggle the sorting of the records of the listview when the columns are clicked
    Please guide me as to how to do the same.
    The code that I have attached does not do the sorting if I click twice to the same column. I have to click a different column ten the previous column 
    The code is attached below
    regards
    Manoj Gokhale
    private void SiteInChargeorSupervisor_Load(object sender, EventArgs e)
    this.listView1.ColumnClick += new ColumnClickEventHandler(listView1_ColumnClick);
    private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
    ListViewSorter Sorter = new ListViewSorter();
    listView1.ListViewItemSorter = Sorter;
    if (!(listView1.ListViewItemSorter is ListViewSorter))
    return;
    Sorter = (ListViewSorter)listView1.ListViewItemSorter;
    if (Sorter.LastSort == e.Column)
    if (listView1.Sorting == System.Windows.Forms.SortOrder.Ascending)
    listView1.Sorting = System.Windows.Forms.SortOrder.Descending;
    else
    listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
    else
    listView1.Sorting = System.Windows.Forms.SortOrder.Descending;
    Sorter.ByColumn = e.Column;
    listView1.Sort();
    public class ListViewSorter : System.Collections.IComparer
    public int Compare(object o1, object o2)
    if (!(o1 is ListViewItem))
    return (0);
    if (!(o2 is ListViewItem))
    return (0);
    ListViewItem lvi1 = (ListViewItem)o2;
    string str1 = lvi1.SubItems[ByColumn].Text;
    ListViewItem lvi2 = (ListViewItem)o1;
    string str2 = lvi2.SubItems[ByColumn].Text;
    int result;
    if (lvi1.ListView.Sorting == System.Windows.Forms.SortOrder.Ascending)
    result = String.Compare(str1, str2);
    else
    result = String.Compare(str2, str1);
    LastSort = ByColumn;
    return (result);
    public int ByColumn
    get { return Column; }
    set { Column = value; }
    int Column = 0;
    public int LastSort
    get { return LastColumn; }
    set { LastColumn = value; }
    int LastColumn = 0;

    Every time through the ColumnClick event handler, you are creating a new sorter. This means that any values set in the sorter from the previous click are not saved.
    Try this.
    private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
    // Only create a new sorter if we don't have one already.
    if(listView1.ListViewItemSorter == null)
    ListViewSorter Sorter = new ListViewSorter();
    listView1.ListViewItemSorter = Sorter;
    // And so on with the rest of your code.

  • I used to export cut clips to tape (version 9.0)  but recently I bought the 13.0 version of PREMIERE and - to keep having the exàct same video-quality as the (analog) source! - I export simply to external HDs (so, actually to the computer)... but whatever

    I used to export cut clips to tape (version 9.0)  but recently I bought the 13.0 version of PREMIERE and - to keep having the exàct same video-quality as the IMPORTED-CAPTURED (analog) source! - I export simply to external HDs (so, actually to the computer)... but whatever I am trying  I notice that when I check the export-material with the original clip the first is NOT ONLY SMALLER but ALSO DOES NOT SEEM TO HAVE THE SAME RESOLUTION, DETAILNESS, SHARPNESS (or whatever you may call it)... What am I  doing wrong? WHICH SETTINGS DO I HAVE TO MAKE IN ORDER TO KEEP THE SAME IMAGE-QUALITY (or even to enhance it) IN STORING ON THE COMPUTER ?!     Thanks, RVH

    Don't triple post, and especially not in the wrong form.

  • My iphone has a cracked screen but the problem is with the entry of aurriculares that move to the music I want to know if I would change?

    my iphone has a cracked screen but the problem is with the entry of aurriculares that move to the music I want to know if I would change?

    Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for the other 4Gs. They do not fix yours.
    Apple - iPod Repair price
    You can do it at an Apple store by making an appointment:
    Apple Retail Store - Genius Bar
    or send it in to Apple. See:     
    Service Answer Center - iPod
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens         
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit                  

  • Downloading the same app twice on the same iphone?

    hi.....thanks for the help. I was wondering if there is anyway to install the same app twice on the same iphone. The app happens to be loseit.com which essentially is a calorie counter and I wanted the app twice...one for me and one for my wife. When you go to the app store it says already installed and wondered if there is a way to get around this to get it twice on my iphone. Thanks again.

    As Tamra said, you can't have two of the same app on your iPhone. Perhaps LoseIt will allow you to use multiple accounts/users in the same app?

  • Can you download the same film twice with the same itunes account

    can you download the same film twice with the same itunes account

    It depends upon which region you are in and the current policy of the copyright holder. Sometimes individual items are exemept even though repeat downloads are generally supported. Any purchased item could be removed from the store in future so you should really maintain your own backup.
    See iTunes in the Cloud and iTunes Match Availability.
    tt2

  • User Exit For VA01 To Restrict From Entering The Same Material twice

    Hello All,
    I have a requirement that in sales order creation(VA01) i want to restrict From entering the same material
    more than once in a sales order  i.e more than one same material not allowed in sales order i have tried alot of user exists but of no use
    can u tell me the exact user exit
    Regard's,
    Mahesh Dasari

    Hi Mahesh Dasari,
    1.This user exit is used to add additional datat to VBAP struture like custom fields. And this user exit is called for every single line item when processed.Say you have 10 items then this user exit will be triggered before each entry is populated in the XVBAP.
    2.When the user enters item 10 with material 1 we allow him, then for the next line item say 20 we check if the material entered or processed ( this will be available in VBAP structure ) is available in XVBAP and  the line item 10 is not deleted.
    3. If the above check  true then it means that the material entered is already existing else its not so it will proceed to next line item
    e.g. in your question , item 10- Mat1 , item-20- Mat12, item-90-Mat1,
    Then as per the code I have given , item 90 will be deleted or removed.
    4. Now you can either delete the line item by clearing VBAP as I have done or give a error message  that will be as per your requirement.
    Use the logic I have provided in my earlier post , and see the behaviour.
    Hope you find this answer helpful and set this questions answerd
    Regards
    Arun Thiyagarajan

  • How to avoide entry of same material in  line item in same sales order?

    Dear SD Experts,
      In my project client has requirement related to Material in sales order. Client wants " while creating sales order (VA01) that time particular Material  should use one time in the sales order". If  same material used more than one time in item line in the existing sales order  that time system must  give the Error  Massage.
    Kindly suggest me how can I fulfill above requirement. 
    Regards,
    Manzoor Ahmad

    Hi Manzoor Ahmad,
    This is an interesting requirement  and this cannot be achieved through Standard SAP functionality. We can achive this through custom development in Userexit MV45AFZZ with the help of Developer . The logic has to be while creating sales order , you have created line no 10 with "matl no 1234 " and again trying to use the same material  in line no 30 , then the system has to check all the line items that are created before the line no 30 . This same logic need to be applied for Tcode VA02  also.
    Please post the  the solution once implemented.
    Thanks and regards
    Veera

  • Restricting data entry to a particular language in the form

    Hi,
    I created a multilingual form in which all the fields of the form are in a particular language . Now am trying to restrict data entry in the form to that language at the client side only . Say if it is a form in french, can we restrict the data entry to french only .  The approach i was trying to implement was adding a script against the change event of all data fields and see if the characters lie in the range of  the language unicode character set . But have not been successful in it yet . Can anybody help me find some way or provide any sample for it ?
    Thanks

    Hello, I'm German
    Probably you can restrict the characters used for text entry, so for example ü is allowed in the German form but not in French.
    But you will NEVER be able to restrict the users staying only writing French in French forms 100%.
    1) You sometimes, not often, do encounter letters that are not typical for the language. (Though it can appear in any kind of word, it's quite regular for names.)
    2) Let's say I fill the French form. I encounter a problem when I type in the word "Müller". This word wouldn't be French at all. The text will be delted and probably given an error message. Well... I learn out of this error message. Next time I'll type Mueller. ^^
    (I knew several pages were people were restricted to talk English by forbidding letters that were not used in English very often... That didn't stop us violating that rule. The only error that really bugged us wasn't the restriction in not using letters that don't exist in English but the "please don't swear or insult so." error that kept appearing for ex. when we used the German word for "that" (= "dass"). They just didn't like the last 3 letters.)
    3) Many countries have the same or include other countries unicodes. For example English could be written in the German form or in the French form.
    4) You can't get out the syslanguage as far as I know. This would be a great hint which language the person is using.
    5) I don't think you can use the spellcheck in any way... great violation against spellchecking could also be a hint for another language.
    I know a quite big internetcommunity which did try to accomplish the same as you do. After about 2 years and a lot of experiments they stopped their efforts and were content by popping up the random error-messages warning that you don't have to insult, just like those other communities mentioned above. ^^ (Though they tried to restrict the insulting parts to the language used that didn't work out. Too many people knew how to insult in other languages ;D or which words were similar to insults.)
    People just never do what they are supposed to do and are quite nasty finding workarounds...
    My advice to you would be:
    Don't make the effort.
    Sorry for not being able to provide you with a solution, but the opposite.
    Lisa

  • How to restrict a user typing a custom value in the dDocAccount field.

    I have dDocAccount field drop down pre-populated with 2 values - Dept1, Dept2. However, user can able to type any other values (say Dept3) in the account text box and checkin a doc from WCC UI. How to restrict user from entering custom values?
    As an alternate solution - for time being i have the above account field is set as hidden using rule. I am trying to derive the account value from another one field's value (say Departments field with values Dept1, Dept2). I tried below code and found working:
    Department is a custom field created as option list with values Dept1, Dept2
    Under the Rules, for the field dDocAccount, is derived field checked and added below code
    <$dprDerivedValue=#active.xDepartment, getValue("#local","dOption")$>

    Hi,
    If Department is a custom metadata then you should access it like xDepartment(as any other custom metadata), not dDepartment.
    I know it is also possible to change the HTML that is generated for the dDocAccount field, to add javascript validation and so on, maybe this approach plus some additional JS and HTML twists and you should get it working(via component development).
    Hope it helps,
    Vlad

  • Multiple info records for the same material record in the catalog

    Hi Guys,
    I have got sort of a puzzle I can not solve at the moment, maybe some one can help me to solve it. The situation in our system landscape  is as follows:
    Systems:
    SRM 5.0 (Classic implementation scenario)
    ECC 6.0
    SRM-MDM 2.0
    PI 2005
    Material master is maintained in R/3 and the materials are replicated to SRM. From SRM we replicate all materials to the catalog repository in  SRM-MDM.
    As the material master in R/3 is vendor independent, the materials replicated to SRM also have no vendor attached. For the first initial material replication from SRM to the catalog SRM-MDM this also means that the products in the main table of the repository, u2018catalog positionsu2019, will not have a vendor or vendor number attached (i.e. no reference to a source of supply).
    To assign a source of supply in the repository to a product (record) we will use info records which are replicated from R/3 to SRM-MDM.  The mapping for this in the Import Manager can only be based on the product number. As this is the only unique value available which can map a info record to a already existing (but vendor less) ptoduct item in the catalog.
    As long as every item in the repository has only one unique info record, meaning one source of supply with a specific price, there is no issue in the above scenario. Based on the product-id, the info record data will be matched with the material item in the catalog.
    The issue for me arises when multiple info records exists for the same material. The info records can heave different vendors and different prices. All possible vendors should be available in the catalog for the same material (at least this is the requirement ). 
    At this point the product-id will no longer be an unique value. Importing the info records will cause problems, as only one material record is available in the repository for the specific product-id (remember that when doing a initial replication of the material master to the catalog, no vendor data is replicated).
    Does anyone had this issue before, and knows a solution? Is it for example possible during the import of the info records in the Import manager, to duplicate material records in the destination data, based on the number of info records available in the source data for the same product-id. Or is there an other solution that I am missing?
    Your help would be appreciated!
    Regards,
    Skander

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • How to Restricting Buisness area in same company Code?

    Hi All,
    Can anybody tell me whether is it possible to restrict users from accessing diffrent buisness area within the same company code?
    regards,
    Amit

    Hi Amit,
    Use the following objects to restrict the access for Business area's:
    1. A_S_GSBER "Asset Master Data Maintenance: Company Code/Business Area"
    Object class is AM [Asset Accounting]
    2. J_3GABRLST "Call CEM Settlement List for Organizational Units" ---> Object class is "J3GD" [Industry Business Solutions - CEM]
    and there are other auth. objects for Bus.area's which might help you :
    1. F_BKPF_GSB
    2. F_FDES_GSB
    3. F_FDSB_GSB
    4. F_FDSR_GSB
    5. A_IMA_GSB
    6. A_IMPR_GSB
    Regards,
    Ashok
    "Award points if it is helpful"

  • Repeated entry of same material during costing of header

    Hi ,
    during costing run of a  header material, a component assigned only once in BOM is comming in multiple line items with different qty.
    what may be the reason?
    Regards

    Hi vivek/ jiaul,
    Thanks for reply,
    BOM component is not recursive.
    component is assgined only once in BOM . I checked CS12 also and its assigned only once in header.
    Let me tell the structure of assignment of this raw material which is coming multiple times.
    This Raw material is assigned to Phantom material and the phantom is assigned to header material and we are running the costing run of the header material.
    In costing run This raw material is coming multiple times with diffrent qtd. out of which only one lineitem is correct and other lineitems are coming of same material with diffrent qtd.(nowhere in BOM this diffrent qtd which is coming is maintained)
    what else to be checked, please advice.
    Regards,
    Edited by: pp savvy on Jul 3, 2010 3:18 PM

  • How to prevent consecutive entries of same condition type in a sales order

    Hi,
    My client is using manual condition type for the basic price "ZBPR". Now system allowing multiple entry against this condition type in the pricing screen during order creation i.e in the first line if we put Condition Type "ZBPR" and putting some value as amount, then again if I put "ZBPR" as condition type and give some other value as amount then system is allowing this and doing all the subsequent calculation.This is not acceptable by the client.
       The functional person regarding this is saying this can be done by using routine.Can some body tell me which routine should I take for this if that is possible by routine and the required code.Also say if there is other way to solve this.
    Thanks,
    Manas.

    Hi ,
    u can do it thru VOFM(tcode)--->Menu -> Formulas>condition value , but in this case u need to derive the value of this condition type by using ur own logic.
    Re: vofm-routine
    Regards
    prabhu

Maybe you are looking for

  • Why markupDocumentViewer.fullZoom doesn't work on Fennec 4

    Hi, I tried to use gBrowser.selectedBrowser.markupDocumentViewer.fullZoom to do page zoom on Fennec 4 accroding https://developer.mozilla.org/en/Full_page_zoom., but it doesn't work. Could you help me solve this problem or put some sample code? Thank

  • How do i reset an ipod touch if it is locked down?

    help please!!!!

  • Resource for learning OS X Server

    I am lookimg for a good resource (preferaly online) about the in's and out's of OS X Server. I am really curious about where the data resides in the case of contacts  and calendars. Is the master data on the server and copies on tne clients (other Ma

  • Geting Planned Order Object ID

    Hi, I'm trying to determine the configuration of a planned order from a remote system using function module BAPI_CFGINST_CHARCS_READ. One of the input parameters is the Object ID which I don't know how determine it. So far I've used BAPI_PLANNEDORDER

  • Multiple JTables for One TableModel

    i have 3 tabs, and 5 tables, they arent that big mind you...the biggest table is about 150rows, 10cols, and the rest are about 10-20rows, 15cols they update every 5 secs, so i create a new datavector and set the tables model to the new data vector, e