Avoid duplication of material number in Sales Order.

Hi all
I want to restrict the user for entering the duplicate Material number while creation of Sales Order . I have done the changes in Program MV45AFZZ IN FORM USEREXIT_SAVE_DOCUMENT_PREPARE, but was able give warning message for duplicate material no.
If I set these message to error , the user has to come out of the sales order ,as it doesnot even allow to save.
Can any body guide for proper steps to follow to avoid the duplication of the material while creating the Sales Order
AVS

If your ABAPer has written the User Exit, then he can as well do what you want. Ask him to do it, it should be a small code.
Happy SAPing.
Venkat - Hyd

Similar Messages

  • Material Number In Sales Order in Change Mode

    Hi All,
        Following is my scenario.
    During creation of sales order I am taking two line items in sales order that is in sales order there are two line items.
    One item is finished product and other item is the semi finished product. Whenever I am saving the sale order Finished product material number is in change mode but the semi finished material number become in display mode.
    My question is how to make the semi-finished material number in change mode?. Any configuration.
    I can use screen variant. But one material number is coming in change mode but other is coming in grey mode.
    Note : there is no subsequent document exists.
    Regards
    Sridhar

    hi
    pls check any variant configaration is been maintained for that semi finished product
    regards
    senya
    Edited by: senya_1111 on Jul 31, 2009 1:59 PM

  • Issue with Customer Material Number in sales order

    Hi All,
    I am facing one strange issue.
    Accoding to the flow of my client system the customer Material number is automaticlly populated while creating the line item in sales order. The Customer Material number come from the Configuration of the Item.
    This is working properly in the quality system but in the prodcution system for some cases this customer material number is not coming.
    The customer material is not coming in production only some times other wise it works properly.
    I am  not able to understand what may be the issue as it  is working properly in the quality and in the procudtion it is not coming only for some line item.
    Kindly help.

    That depends on either configuration used in your system or any enhamcement used.
    So check the cases for which they have configured it or used any enhancement.

  • Delivery schedule line number in sales order is not populated in production

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Will reward points.
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Delivery schedule line number in sales order is not populated  in productio

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Serial number in sales order creation

    HI all,
         please help to me........
    My requirement a add the serial number BAPI sales order.
    problem is their no serial number in bapi structure.
                How to add serial number crate a salesorder bapi.
    serial number is RIPW0-SERNR.
    Thanks & Regards,
    SReddy.

    hi,
    refer to this link
    http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/content.htm
    refer to this code...
    Also if you set the * CONVERT_PARVW_AUART = 'X' parameter to 'X' you can use sold to party as SP and ship to party as SH.
    REPORT ZEX_BAPISALESORDCRT .
    --Data Declaration--
    Data: st_BAPISDHEAD like BAPISDHEAD, " Sales Order Header Data
    ta_BAPIITEMIN like BAPIITEMIN occurs 0 with header line, " Ln item
    ta_BAPIPARTNR like BAPIPARTNR occurs 0 with header line, " Partner
    d_BAPIRETURN1 like BAPIRETURN1, " Bapi return msg
    d_vbeln like bapivbeln-VBELN. " Sales Order Number
    Move the data to create sales order in the repective parameters------*
    move: 'TA' to st_BAPISDHEAD-DOC_TYPE, " Sales document type
    '15493' to st_BAPISDHEAD-PURCH_NO_C,
    '00010' to ta_BAPIITEMIN-ITM_NUMBER,
    'Y-351' to ta_BAPIITEMIN-MATERIAL,
    '1100' to ta_BAPIITEMIN-PLANT,
    '1' to ta_BAPIITEMIN-REQ_QTY,
    'AG' to ta_BAPIPARTNR-PARTN_ROLE, " Sold to Party
    '0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
    Append the internal tables-------------------------------------------*
    append ta_BAPIPARTNR.
    clear ta_BAPIPARTNR.
    append ta_BAPIITEMIN.
    clear ta_BAPIITEMIN.
    Move ship to party---------------------------------------------------*
    move: 'RG' to ta_BAPIPARTNR-PARTN_ROLE, " Ship to party
    '0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
    Append the internal tables-------------------------------------------*
    append ta_BAPIPARTNR.
    clear ta_BAPIPARTNR.
    Call the Bapi to create the sales order
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
    EXPORTING
    ORDER_HEADER_IN = st_BAPISDHEAD
    WITHOUT_COMMIT = ' '
    CONVERT_PARVW_AUART = ' '
    IMPORTING
    SALESDOCUMENT = d_vbeln
    SOLD_TO_PARTY =
    SHIP_TO_PARTY =
    BILLING_PARTY =
    RETURN = d_BAPIRETURN1
    TABLES
    ORDER_ITEMS_IN = ta_BAPIITEMIN
    ORDER_PARTNERS = ta_BAPIPARTNR
    ORDER_ITEMS_OUT =
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CCARD =
    ORDER_CFGS_BLOB =
    ORDER_SCHEDULE_EX =
    if d_vbeln <> space.
    write: 'Sales order No. ', d_vbeln.
    endif.

  • How to block material issuing after sales order invoiced?

    As the subject mentioned,  could be a possible to block material issuing since sales order invoiced, or
    in the another words, after the sales order completed?
    Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
    forbidden?
    Thanks in advanced,
    Zhou Zhen

    Dear Friend
    A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
    That means the order 10000 is closed
    Case 1
    Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
    This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
    Case2
    But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
    Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
    But you can test it if it throws any warning message we can try to convert that error
    But in case 2 it is not happening(even warning is not there)
    Regards
    Raja

  • Number of sales orders in a copa report

    Hi All
    I am designing a revenue report from COPA.In the report,By changing the chrecteristics(sales org), the revenue in the report changes and underneath the revenue the number of sales orders will change. Now my question is, Is there any way to display number of orders that make up the $ amount in Copa report?

    Hi Williams,
    In order to regenerate this program call function module 'RKE_GENERATE_INTERFACE_ACT' in the test environment and start it for the respective operating concern.
    Example: if the name of the operating concern is 'S001', program 'RK2SS001' has to be regenerated.
    Proceed as follows to generate program 'RK2SS001':
    Call Transaction SE37 (Function Builder).
    Enter function module: 'RKE_GENERATE_INTERFACE_ACT'.
    Choose 'Single test' (F8).
    Enter import parameter ERKRS = 'S001'.
    Choose 'Execute' (F8).
    You would drive the steps for the generation of the program 'RK2SXXXX' for ALLE your operating concerns through.
    By the program changes described in this note it is avoided to call the CO-PA cross-company-code derivation type in the so-called 'overwrite mode'. Usually characteristic values of the derivation type which are already filled, that means directly copied from the sales order, are not overwritten anymore.
    If characteristic values during the processing of cross-company-code orders are supposed to be copied from the profitability segment of the supplying company code into the CO-PA line item of transaction type 'A', the possibility is provided with the attached correction. Technically the implementation of the desired transfer logic is not executed within the framework of a standard SAP enhancement, but rather by means of the help of a CO-PA-specific user exit of category 'RKE_EXIT'.
    In order to use the 'RKE_EXIT', proceed as follows:
    1. Call Transaction 'SE16' and create an entry in table 'TKEEXITS' with following field contents:
                        EXITID - 'KEI1_INTERC'
                        APPL - 'KE'
                        SEQNO - '001'
                        ISACTIVE - 'X'
                        REPORT - Name of a program in the customer namespace 'Z*'
                        MODEL - Name of a FORM routine in program REPORT.
    2. Then you can implement the 'RKE_EXIT' in FORM routine 'FORM' of program 'REPORT'. If you want to deactivate it, you have to set the flag 'ISACTIVE' to initial or remove the entry from table TKEEXITS.
    3. FORM routine 'FORM' must be declared with following chaning parameters:
                        I_EXIT_ACTIVE TYPE C
                        I_ERKRS LIKE TKEBB-ERKRS
                        IS_CE1 TYPE ANY
                        IS_CE1_INTERC TYPE ANY
    4. To activate the 'RKE_EXIT' in the program, first set flag 'I_EXIT_ACTIVE' to 'X', since otherwise you can not branch to the exit within the same transaction during the next access.
    5. In the parameter 'I_ERKRS' the operating concern 'XXXX' of the selling company code is passed. The parameter 'IS_CE1' contains that one current line items for the record type 'A'. The parameter 'IS_CE1' contains the current line item for the transaction type 'A'. The characteristic values of the profitability segment stored in the sales order from the supplying view are passed in parameter 'IS_CE1_INTERC'. Are the selling and assigned the supplying company code different operating concerns, values of characteristics only are available in the parameter 'IS_CE1_INTERC', that exist in both operating concerns with the same technical indicator.
    6. The parameters 'IS_CE1' and 'IS_CE1_INTERC' are passed in non-record structured form and must be assigned in the FORM routine to corresponding program variables which both of the type 'CE1XXXX' with which 'XXXX' designates the operating concern of the selling company code are. On these program variables the characteristic value transformations can be executed. Finally the program variable 'IS_CE1' must be assigned to the parameter again, so that the changed characteristic values are returned correctly.
    The source code of the 'RKE_EXIT', if the implementation is done in program 'ZZCOPA_CHANGES_INTERCOMPANY', FORM routine 'CHANGES_INTERCOMPANY' and operating concern 'S001' and from the profitability segment of the returning view characteristic 'WWXYZ' is supposed to be copied
    Regards,
    Srinivas Muthyala

  • Serial number on sales order

    dear all!
    i am looking for the way to enter a serial number on sales order. i can enter it, but only via incompletion check. there is no menu entry, or button where to enter serial numbers in VA01, VA02.
    does anyone know how to enter the serial numbers for sales order items?
    thank you!
    matthias
    solved it by my own - link is technical objects ...
    Message was edited by:
            Matthias Rumplmaier

    Hi
        Serial number has to enter in the material master record, and setting have to be done in IMG-SD-BASIC FUNCTIONS-SERIAL NUMBERS-DETERMINE SERIAL NUMBER PROFILES.
    Similarly we can do the same even logistics execution.
    pls try these let me know it worked out or not.
    thank you
    with regards
    chaitanya

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • Want to add number of sales orders in a COPA report or form

    Hi All
    I created a COPA report that has two columns: sales from sales orders & sales from billing documents. Now I want to add columns which shows number of sales orders that make up sales. Can any one explain me , how can we acheive this  With a user exit, .
    thanks in advance for looking into this

    Hi Steve,
    Walter is very right in saying so.
    In SD module itself you can get some reports like this.
    Even in COPA you will get these kind reports.  But if your company is a big company and have lots of sales orders,
    Then you will have serious problems with System performance issue. 
    When you define that sale order is a segment level character, then system will ear up the resources and take very long time in executing the reports.
    But for some reason this requirement is a must case, then it is very simple
    you define Sale order in either form or report,
    then give the variable parameters like Co.Code, Period etc. you will get all the sales orders details for the selected period
    But think about not going for it before you make up your mind
    Best Regards
    Surya

  • How to check the analysis of material determination in sales order

    hi,
    We are trying to create a sale order with material determination. Material determination analysis is on. After  switching this on  while adding a new line item, in an existing sales order, we are able to do analysis as the system itself takes us to analysis screen. But once  the document is saved, we need analysis to be done  at material determination for the determined materials  , something similar to  pricing or account determination analysis.Please help
    Regards,
    Aparna.

    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

  • How to restrict the Number of sales orders in theTCode:VL10A whil creation

    I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders
    Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200
    Please advise me how to do it and what changes I need to do it

    Hi,
    Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.
    ***INCLUDE LV50R_VIEWG03 .
    *&      Form  POSTAB_VEPVG_FILL_USER
    FORM POSTAB_VEPVG_FILL_USER
         USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
                  IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
                  IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
                  IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
                  IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
                  IS_VEPVG          TYPE      VEPVG
         CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
                  CF_SUBRC          TYPE      SYSUBRC.
    CF_SUBRC = 0.
    *  cs_postab-zzfield = ......              "add new field to List
    *  if xxxxxxx = yyyyyyy.
    *    cf_subrc = 1.                         "Exclude this index from List
    *  endif.
    ENDFORM.                    " POSTAB_VEPVG_FILL_USER
    I hope this helps you
    Regards
    Eduardo

  • 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

  • How to change material discription at sales order item level ?

    Dear Gurus,
            We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that  into change mode in sales order item level?
    Thanks in advance
    Regards
    Venkat

    Not possible in SAP Standard.
    Instead why not create a Customer Material Info Record in T-Code - VD51?
    Alternatively it the requirement to change the Description is only for few Sales Order then create a Text ID & Enter the Description in Text Feild. Then in Smartform program wrie a code which will check for Material Description in the Text first & if not found then take from normal material Description in Sales Order.
    But Customer Material info Record seems to be the best solution.
    Hope this helps,
    Thanks,
    Jignesh Mehta

Maybe you are looking for