To avoid Duplicate material entry while making sales order by VA01

Sir / Madam,
While making sales order by VA01 , duplicate material also accepted by system .There should be no duplicate material in sales order list.
please suggest solution.
Thanks.

Hi,
You should use userexit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ and not USEREXIT_SAVE_DOCUMENT,.The reason behind this is prepare userexit is activated just before saving the document,so at the time of saving if the logic which you will give is not satisfied then you can set warning or error in the code.
Rewards points if useful.
Regads,
Amrish Purohit
Message was edited by:
        AMRISH PUROHIT

Similar Messages

  • Avoid substitute material.., while creating sales order with BAPI?

    Hi experts.
    I use BAPI_SALESDOCU_CREATEFROMDATA1 function module to create a sales order.
    Material A has a substitute material B with substitute reason 0005.
    So if I use material A when creating sales order with above BAPI function, the order is created with material B.
    I don't want to substitute the material automatically. I want to create the sales order with material A.
    What should I do? Help me please.
    Thanks in Advance.

    Hi bvrn Reddy,
    I know, your message is almost two years old, but, did you find a solution? I'm facing the same problem. The material A has B as substitute, but in va01 a popup appears (its customizing inside the substitution reason, strategy = A). Of course, we have no popup inside the bapi, but there must be a way to decide which material the bapi should use. At the moment I only get the substitute, never the old mat (even there is something in stock).
    Maybe you've got a helpful hint for me, thanks!
    Ben

  • Run time error while creating sales order in VA01

    Dear all,
    In our develpment server(ecc 6.0),while creating sales order in VA01 for a sales area, when ever entering material number and quantity and press enter, it is giving error and taking to Runtime error long text showing syntax error in program RK2LSFOC
    application patch level for both production and development is same.
    can any one suggest the solution please
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Jan 7, 2010 10:03 AM

    ths

  • Runtime error while creating sales order in VA01

    Dear all,
    In our develpment server(ecc 6.0),while creating sales order in VA01 for a sales area, when ever entering material number and quantity and press enter, it is giving error and taking to Runtime error long text showing syntax error in program RK2LSFOC
    application patch level for both production and development is same.
    can any one suggest the solution please

    Please note the error details
    Runtime Errors         SYNTAX_ERROR
    Date and Time          07.01.2010 17:43:06
    Short text
    Syntax error in program "RK2LSFOC ".
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "SAPLKEAK" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "RK2LSFOC " in include "RK2LSFOC
    " in
    line 128:
    "No component exists with the name "KWBRUM". ."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP* "
    Error in the ABAP Application Program
    The current ABAP program "SAPLKEAK" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    What can you do?
    Please eliminate the error by performing a syntax check
    (or an extended program check) on the program "RK2LSFOC ".
    You can also perform the syntax check from the ABAP Editor.
    If the problem persists, proceed as follows:
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    The following syntax error was found in the program RK2LSFOC :
    "No component exists with the name "KWBRUM". ."
    |    " "

  • Error while Making Sales order Ref. to quaotion by increasing Qty.

    Hi,
      We are making quaotation for customer for qty 1 pcs,  and after that ref. to that quotaion we are making Sales order and in sales order we are increasing the qty. as per customer PO  means  if we amke Quatation for 1 qty we are making Sales order for 3 qty  but system is giving error that Quation qty. is less than sales orser qty. Difflict qty. 3 no  to 1 no.
    this error we are getting now previous we were working on same scenario and it was working fine  so where is the meaasge setting for this.
    regards,
      zafar

    Hi,
    The message for yours is V1494
    The message V1494 is hard-coded as Warning and Information message in the includes
    FV45PF0V_VBAP-ZMENG_PRUEFEN_VO  and FV45EF0V_VBEP-WMENG_PRUEFEN_VO. Therefore it is not possible to set them as Error message in Customizing. The only option you have is to MODIFY the standard Code to get an ERROR message.
    All the V1 Error Messages are Standard Messages and not able to change in Customizing.
    regards,
    santosh

  • While creating Sales order in Va01 runtime error

    Hi friends,
    While i am creating sales order in VA01 i am getting runtime error
    Thanks in advance
    venuprasad

    This could be due to some recent code changes in SAPMV45A...may be some user exits...
    The Dump which is obtained can be analysed by an ABAP person and could lead you tot he right issue.
    Hope this helps
    Regards
    Biju

  • How to Avoid Duplicate Pricing Condition Types In  Sales Order and Billing

    Hi SAP Gurus
    I have a requirement in Pricing (Sales and Distribution). We have  issue duplicated condition types in Sales order and it causes wrong posting in to accounts.
    I want make them inactive duplicated Condition type in Sales order and Billing Documents.
    Please advice me how to make inactive status to duplicated Condition types
    Thanks  in Advance.
    Ravikanth

    Hi
    You can use Exclusion Group
    You can define 2 Groups and include 1 condition type in each
    and define exlusion procedure
    A   Best condition between condition types                
    B   Best condition within the condition type              
    C   Best condition between the two exclusion groups       
    D   Exclusive                                             
    E   Least favorable within the condition type             
    F   Least favorable betweent the two exclusion groups     
    you can use Exclusive to set your condition type or as per your requirement
    Regards
    Jitesh

  • Wront entries while creating sales order sold and shipto accounts

    Hi Guru's,
    By mistake Client key user enter sold to party correctly but enter ship to party a different account number and created the sales order. Will anyone guide me how to overcome the problem. What is the procedure?

    hi
    then cancel the invoice if created and reverse PGI and delete the delivery document then change the sales order
    regards

  • Error "Item 000010 does not exist" while creating sales order in VA01

    Dear All,
    As per customer requirement we are trying to validate shipping data( item level) and unloading point( item level)  by customer enhancement.
    Enhancement:       V45A0003
    Function Module:    EXIT_SAPMV45A_003
    INCLUDE:                ZXVVAU05
    Inside include we have written validation code that if user enters any wrong value for shipping data or unloading data
    system will throw error message accordingly.
    It is working fine and we are getting error message if wrong shipping data or unloading data is entered.
    But after the error message is displayed if we try to save the sales order  again system throws a STOP message as a POPUP
    saying "Item 000010 does not exist".
    Now,if we enter proper shipping data or unloading data and try to save the salesorder it is throwing error "Item 000010 does not exist"..
    Please let me know your valuable input on this.
    Regards
    Arindam
    Edited by: Arindam Ganguly on Mar 11, 2010 1:55 PM

    It sounds like your error routine has prevented the insertion of the data in VBAP or XVBAP internal tables.  Therefore, upon return to the screen and SAVE, SAP is examining the VBAP or XVBAP table, comparing to the 'I' index table probably, and finding that there is supposed to be an item 10, but it's not in the necessary table(s).    This may be resulting because your internal tables are now inconsistent.
    Look at where your inserted error coding is occurring...you may want to move that to the SAVE_DOCUMENT_PREPARE routine in MV45AFZZ, so that everything will have been built, and a final check of the content will stop the sales order save until the data is corrected.
    Edited by: Breakpoint on Mar 11, 2010 3:29 PM

  • How to restrict the order reason in Tcode Va01 while creating sales order

    Hi Gurus,
    My requirement is
    while creating sales order in VA01
    if order type is Zvol
    than the list of order reasons has to be restricted.
    Now 15 are coming from OVAU  tcode
    I need only 5 from these.
    Thanks & Reagrds
    kals.

    Hi,
    By doing the user exit in IW32 we achieved the requirement of restriction of maintenance order TECO functionality if any Service Entry sheet pending with reference of maintneance order.
    regards
    JKM

  • End of Valid Logistic Calender error while creating Sales Order

    Hi,
    While creating Sales order in VA01 the following error message comes for particular material code for a particular site only:
    24.01.2202 date comes after end of valid logistics calendar. (Please
    correct)
         Message no. 61062
    Can anyone suggest on the same.
    Regards
    Nilofer

    Hi,
    The input value given in Sales order is " Req Delivery date: 31.03.2012", but the error comes with the below date such as
    "24.01.2202 date comes after end of valid logistics calendar.(Please correct)"
    We also face one more error such as
    " Incorrect index structure for table XMVERF_POS/0000224110/000040 ".
    From where system is taking 24.01.2202 date?

  • Hi   error while creating  sales order

    hi
    i am getting 'not able to save' message while i am creating sales order.
    how should i proceed to know where is the problem???
    i tried debugging but it is taking lots of time, is there any other way i can know the reason for this error in standard code.
    there is no wrong data entry while creating sales order.
    i just want to know what are the ways to know where is the problem in the standard code.
    thanx
    rocky

    hi ,
    try too create a sales order after that check transaction code ST22 U WILL FIND AN SHORT DUMP  then check in the source code extract an pointer will be visible where the error is coming and it will also show the program name , please read the dump analysis care fully
    srinivas

  • Duplicate material entry at the time of PO creation based order type

    How Restrict duplicate material entry at the time of PO creation based on define order type.
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 11, 2011 1:45 PM

    Hi Rahul,
    try with This Badi  ME_PROCESS_PO , Method Open or Process item,
    Implemente it and use a break-point to test it i.e it is triggred or nt , before processing it.
    Regards,
    Abhisek

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • How to change the status of material while creating sales order via BDC

    Hai.
    In BDC while creating sales order( va01 posting ) it is stucking up in middle saying material is new. I.e Sales order (va01) is not  getting created because  of material status is new . I want to create sales order  (va01) even  material status is new.
    pls give me out the solution. Points will be rewarded.
    thanks & regards,
    sami.

    Hi,
    If you drag the line item a little towards the right side, you will find a filed material entered. The one you see in the material filed on sales order over view screen is the one determined. You can as well double click and see the fields material entered and material determined.
    Is there anything else you are expecting to see as part of analysis ?
    Regards
    Sadhu Kishore

Maybe you are looking for