Material number getting changed in Sales order

Hi friends,
while creating sales order, When I enter some material number,
at line item it is getting changed into some other number.
Do you have any idea why this is happening?.
Eg: I entered material number as 3660 and it is getting changed to  50231960 .
Thanks.
Regards,
Bharat.

there are several reasons that will make this change.
one possibility could be Customer Material Info Record.
Go to VD53 and enter your customer number that you used to create a sales order and also the sales org and disribution channel of that customer and the material number 3660. then check whether it has assigned to the material 50231960
Other possibility could be automatic material determination is active which automatically replaces the material if not available.
reward points if helpful
Sree.

Similar Messages

  • Purchase Requisition number not changing when sales order item is rejected

    Hi all,
    I have a requirement to change the sales order status to 'TECO' when ever some reason for rejection is selected in the status tab at the item level.The status should change from 'TECO' when i remove the reason for rejection.
    The status change is happening correctly.I have achieved it using user exit.
    CASE 1 : Initially, when a new item is added in the Sales order the purchase requisition number appears in the schedule lines tab of the item level. This is as expected.
    CASE 2 :When the same item is blocked (by entering a reason for rejection in status tab of VA02 ) then the purchase requisition number is not present in the schedule lines tab.This is as expected.
    But i face the following issue.
    CASE3 : Again if the blocked item is unblocked (By removing the reason for rejection in status tab of VA02 ) then the purchase requisition number does not appear again in the schedule lines tab.The purchase requisition number is expected to appear again.
    This happens in case of DROP SHIPMENT scenario. I understand that in case of dropshipment scenario the purchase requisition number is triggered by item category and schedule lines only.
    I tried to make the changes(to change the status ) in user exits 'MV45AFZZ' and also 'MV45AFZB'.But i face the issue in both the exits.Please let me know if there are any means to solve this issue(as mentioned in case 3).
    Regards,
    S.Suba

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • SD : Ship to party and bill to party address getting changed in sales order

    Dear All ,
    We are facing a problem in production client regarding Ship to party and bill to party address getting changed at the sales order level. First of all , i would like to discuss the sales business process in which the problem is getting faced.
    Step 1 : The sales order is created for machine with all relevant details and the ship to party and bill to party address is changed as per the business requirement.
    Step 2 : The outbound delivery is created with reference to sales order.
    Step 3 : The commercial invoice, intercompany invoice and excise invoice is created.
    Step 4 : The Credit memo request is created with reference to commercial invoice no.
    Step 5 : The Credit memo is created.
    Step 6 : The FOC value contract is created with reference to credit memo.
    Step 7 : The FOC release order is created with reference to value contract, where ship to party and bill to party address is changed as per requirement.
    Step 8 : Outbound delivery is created for realse order.
    Step 9 : The FOC invoice is created.
    The problem is the moment we change the address in step 1 , the system gets in manual mode. Hence, whenever Bill to party and ship to party address is changed at Step 7, the same gets replicated at the machine invoice level which is incorrect.
    Please comment / reply ASAP.
    Regards.

    During the manual change if you  want to assign a new address number (which
    prevents the changing of the address in the preceding document),
    you can use Note 97832 (modification).

  • Quantity is not getting conformed in sales order

    HI SD Gurus,
    i have one issue we are not able to solve i need your help, it is very urgent,
    My issue:we created sales order but quantity was not getting conformed is sales order even though we have enough stock
    but it was consumed the stock in MD04,
    we ran the SDRQCR21 program but issue is still exist,
    1. we checked all the ATP configuration  every thing is fine,
    2.we replicated the scenario in  quality it is working fine
    3.we try simulated in production but not conformed the stock
    4. total stock is in unrestricted only
    5. no block in sales order
    6. same material working fine with different plant
    7. in same plant different materials working fine
    available stock level in MMBE and MD04 is 330 qty unrestricted
    sales order created for 165
    then stock reduced in MD04 to 165,and sales order displayed in MD04 with quantity 165
    but it was not conforming the schedules in sales order(with any dates)
    I am requesting you to reply ASAP if any one faced the same scenario
    BR,
    CS

    Hi CS,
    Please check the stock availability in CO09. If CO09 shows available quantity as zero then the sales order quantity cannot be confirmed.
    Please review SAP Note Number 89362 - No confirmation despite available quantity/stock for further information on this transaction.
    You will also find further information in this document:
    http://scn.sap.com/docs/DOC-58040
    I hope this helps.
    Kind regards,
    Catherine

  • Find the user exit while creation and change of sales order

    Hi Team
    Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
    u2022     The logic for the user exit to explode should consider the following assumptions and validations
    o     Customer master to have the entry at KNVV-KVGR1
    o     Material master to have the entry at MVKE
    o     UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
    o     Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
    for example :-->
    Product A with Scales mentioned below
    Product A     Quantity / Scale     UoM     Price(£)
         0-10     PAL/TES     20
         11- 20     PAL/TES     10
         21- 30     PAL/TES     5
         31-40     PAL/TES     2.5
         >41     PAL/TES     
    Product B with Scales mentioned below
    Product B     Quantity / Scale     UoM     Price(£)
         0-15     PAL/TES     25
         16-20     PAL/TES     20
         21- 30     PAL/TES     15
         31-40     PAL/TES     10
         > 41     PAL/TES     5
    u2022     Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
    u2022     The expected results should be
    o     Product A qty 10 + B qty 15 added = 25Pal
    o     The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
    Thanks in Advance.
    Puneet.

    Hi Team
    Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
    u2022 The logic for the user exit to explode should consider the following assumptions and validations
    o Customer master to have the entry at KNVV-KVGR1
    o Material master to have the entry at MVKE
    o UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
    o Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
    for example :-->
    Product A with Scales mentioned below
    Product A Quantity / Scale UoM Price(£)
    0-10 PAL/TES 20
    11- 20 PAL/TES 10
    21- 30 PAL/TES 5
    31-40 PAL/TES 2.5
    >41 PAL/TES
    Product B with Scales mentioned below
    Product B Quantity / Scale UoM Price(£)
    0-15 PAL/TES 25
    16-20 PAL/TES 20
    21- 30 PAL/TES 15
    31-40 PAL/TES 10
    41 PAL/TES 5
    u2022 Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
    u2022 The expected results should be
    o Product A qty 10 + B qty 15 added = 25Pal
    o The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
    Thanks in Advance.
    Puneet.

  • Capture Change in Sales Order Status

    Dear All,
    I have an issue in which i need to capture all the sales order in which change has taken place in a given day.
    I have checked CDHDR & CDPOS but they arent helpful as they are not updated when there is change in status of sales order.
    Could you please suggest a method by which i can track change in sales order status as well for a given date
    Best Regards,
    Ronak

    Hi ronak,
    Hi,
    For Overall Header status and administrative data you can check in VBUK table.
    For overall Item status and administrative data you can check in "VBUP" table.
    In both these cases you have to pass the order number number only in SE11/SE16 T.Code.
    For object status you have to check in "JCDS" table.
    In this initially you have to pass the order number in "VBAK" table and then fetch the "OBJNR" for that order.
    Pass this OBJNR into "JCDS" to get the header object status in SE11/SE16 T.Code.
    Regards,
    Sachin

  • Material,PONumber and SP for sales order

    Hi Every one,
    Please help me in explaining in details how to create(assign) material, Purchase number and sold to party and ship to party to create sales order.
    You guys have been very helpful to me .
    Thanks in advance.
    VM

    Dear,
    You can create material master - MM01, change material - MM02 and display material - MM03.
    You can create Customer master(Sold to parth, Ship to party) - XD01, change cusotmer - XD02, and display customer - XD03.
    You can create sales order with VA01, change - Va02 and display - Va03.
    Sequence is.
    First create material,
    than customer,
    quatation,
    inquiery,
    sales order.
    Regards,
    Mahesh Wagh.

  • RBA GATP check is not getting invoked for Sales Order

    Hi Everyone,
    RBA GATP check is not getting invoked for Sales order.
    I maintained the configuration settings for 'Rules-Based Availability Check', APO general settings (check mode, check instruction), carried out integrated rule maintenance, Rule determination for the combination of order type & product, associated the check mode to product master. Also maintained all the settings in ECC towards Req class, Req type, checking control etc.
    However, sales order is not invoking RBA Check though it is showing up the 'Rule' icon in the screen. Also, in the APO Availability check in Sales order when I click onto 'check instruction', I get the checking mode that pertains to RBA for business event 'A' (Sales order). Though I have not maintained any stock for the main material for which I have the sales order, yet system is confirming any quantity that I put in.
    I would expect that system would propose the same material in an alternate location where we have stock through RBA.
    Request you to share ideas on this.
    Regards,
    Avijit Dutta

    Hi Avijit,
    You should used No Checking Horizon in Checking instructions and also Check your rule control settings.
    What you have defined in 1st and 2nd steps. Check whether product substitution is carried out or Location Substitution.
    Thanks,
    Bala.

  • Number Range issues with sales orders in CRM and R/3

    Hi,
    We are currently using CRM4.0. I have sales orders created in R/3 and they are replicated into CRM.  These sales orders can only be created in R/3.  I have given them a number range of 0000000001 and 0005899999, however we have reached the number 0005899999 so we increased the internal number range for the sales orders in R/3 to 0009499999, however we forgot to update the number range for the corresponding sales transaction type in CRM so we are getting the following error in CRM:
    +Enter a business transaction number between 0000000001 and 0005899999
    Message no. CRM_ORDERADM_H532
    Diagnosis
    You have attempted to enter a transaction number which is not allowed for the transaction type.
    Procedure
    Enter a number between  &1 and &2. Make sure that you issue a number which has not already been issued.+
    We have now updated the CRM number range to match that in R/3 to 0000000001 and 0009499999 but we are still getting the error above on our existing sales orders in CRM.  I thought that increasing this number range it will remove the error but when I open sales orders in CRM the error is still there. 
    Is there any way to remove this error message?  Any tips or advice would be much appreciated.
    Please note we've already checked the post Re: Number Range Problem and note 427289.
    Kind Regards
    JoJo

    Hi Sirisha,
    The solution depends on the exact issue you are facing.
    The CRM Sales Order is created OK, but you only see the error when you open the Sales Order?
    If this is the case, then you can follow the steps below:
    1. Find the Message ID and Message No for the error message
    2. Use Program - CRM_MESSAGES_DELETE to delete error messages from the error producing Sales Orders.
    Let me know if this is not the issue you are facing.
    Regards,
    Nelson

  • Report on changes to sales orders

    Hi Experts,
    I am looking for a way to report on changes to sales orders, specifically the row shipping date and quantity.
    I can see that the data is apparently in tables ADOC and ADO1 but am having trouble getting useful results. What I need is a report that, for sales orders only and for a date range, shows all changes to row quantities or row shipping dates. The type of output that would be useful is:
    Change date  - document # - row# - Item code - old shipping date - new shipping date - old qty - new qty
    filtered on change date for sales orders only. This seems beyond my preferred option of XL-Reporter and I'm getting lost in the history tables in creating a query.
    Best Regards
    Matthew

    Hi,
    Without doing the query for you, history tables are linked as the "normal" table but with the addition of the LogInstance column. Then the UpdateDate column (from base table ie. ADOC) will tell you when it was changed.
    Your query isn't an easy one... SInce you have to link an instance (ie. LogInstance = 1, which will be the original created object) to all the modified ones.
    Regards,
    Eric

  • How to trigger workflow from changes in Sales Order in CRM?

    Hi Experts,
    I want to trigger event at the time of saving the changes in sales order (TCODE- CRMD_ORDER).
    I have found one BO - BUS2000115 but it is getting triggered only after new creation of sales order.And there is no BO available when we change the sales order.For this reason I have created one customize event in BO(BUS2000115).
    Now my question is How should I link this customize event so that it will trigger after saving the changes ?
    I have seen SWEC transaction but was not able to find anything to link this customize event.
    Please help ....!!!
    Good response will be rewarded.
    Thanks
    Snehasish Das
    Edited by: Snehasish Das on Feb 14, 2008 2:31 PM

    In SWEC, actually you link the change document object to a Business object and its corresponding event , to which workflow should react to.
    If yo udo not find the entry then, yo unedd to create one with finding out the respective chage documnet object.
    Hope that helps.
    Regds,
    Akshay

  • Different field mode(display/change) in sales order payment terms (VA02)

    Hello All,
    In the VA02 transaction, when we are changing the sales orders, in the billing document of that material shows different modes for different fields.
    VA02->DOUBLE CLICK ON THE MATERIAL->BILLING DOCUMENT->FIELD PAYMENT TERMS.
    For some orders, field is in display mode and for some orders, it is in changeable mode.
    Could anyone please let me know about this..?
    thanks and regards,
    MERVIN

    Dear Jignesh
    As you would be aware Payment Terms will flow in SO both at header level and at item level.
    So in order to control the item level changes, go to VOV7, select the item category and untick the box [Business Item]   By doing so, whatever header level datas flows into SO, that will be copied to item level also and you will be controlling the changes at item level and end users cannot make changes at item level.
    Now you have to control at header level for which you have to apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAK
    thanks
    G. Lakshmipathi

  • Copy PO Number from contract to sales order

    Hi,
    My clients requirement is that when i create sales order with reference to contract the PO Number should be copied from contract to sales order other wise we have to enter PO Number every time while creating the sales order.
    Please guide me.

    Hi
    Small change in the program will copy the PO number from Contract to sales order.In case need take help of ABAPer
    Data which is not copied
      LOCAL: VBKD-FKDAT.
      LOCAL: VBKD-FPLNR.
      LOCAL: VBKD-WKWAE.
      LOCAL: VBKD-WKKUR.
      LOCAL: VBKD-DELCO.
      LOCAL: VBKD-BSTKD.
      LOCAL: VBKD-ABSSC.
      LOCAL: VBKD-BSTDK.
    In your data declaration, you have
    LOCAL: VBKD-BSTDK
    Please comment out this line and your purchase order should be copied over. You might also have to comment out some of the other fields which are declared locally if you wish to copy them as well.
    Ramesh

  • BAPI/Function module TO block material which is mentioned in sales order

    Hi All
    Is there any BAPI to block material which is mationed in sales order....
    I am using BAPI_MATERIAL_AVAILABILITY to check material availibility
    how to block quantity if it is available whicl creating sales order via
    "BAPI_SALESORDER_CREATEFROMDATA2"
    ..Thanks

    The normal SAP ATP done in the sales orders use the figure ''committed qty'' meaning that if the ATP has been done and confirmed, that quantity will not appear in the next sales order as available.
    So if You're using the normal BAPI to create the sales order, the normal ATP function will be called in the processing.
    Nevertheless another solution to this issue is to have the MTO (Make-to-order) solution where the requirements are ''attached'' to one sales order/line only.....like this the problem of the stock being taken to another customer disappears.
    To do this you'll have to configure the following :
    - Go to SPRO and go to Sales and distribution -> Basic functions -> Availability check and transfer of requirements -> Determination of requirements using transaction - Here insert the entry with your sales order type - MRP type (from material master - you might want to consider create one only for this solution) and you should use one of the following:
      - KEL      Make-to-order, mat. variants
      - KELV     Make-to-ord.variant + consump
      - KP       Make-to-order with project 
    and choose the origin of your requirement - 1 - Item category + MRP Type
    - Than configure the association of the requirement type above to the requirement class (normally is the same code) transaction *OVZH*
    - Than configure the requirement class (this is what will tell the system the MTO) transaction *OVZG* - On the screen in the field Special stock - E - Sales order stock and please ask for help from an FI consultant because the area of *Account assignment is very important to be well configured*
    About the BAPI you're using - Its correct - That's the normal BAPI to be used, taking only into consideration the product allocation issue - MARA-KOSCH
    Explaining a little the BAPI you're using :
    The program should check if the selected material is allocated or non-allocated.
    This information is stored in a field MARA-KOSCH.
    We should check this field and if the field is not empty then material is allocated, otherwise is not:
           select kosch into l_kosch
            from mara
           where matnr = <VBAP-MATNR>. " Selected material
            if subrc = 0.
               if l_kosch is initial.
                  +" Perform calculation for non-allocated materials+
               else.
                  +" Perform calculation for allocated materials+
              endif.
           else.
         " Material not found, skip it ...
          endif.
    For allocated materials it will be checked allocation for the netting market of that Order.
    The calculation rules for allocated and non-allocated materials are different.
    For Non-allocated materials
    BAPI 'BAPI_MATERIAL_AVAILABILITY' should be used for getting the ATP quantity.
    Bapi should be called as follows --
    data: lfl_bapiwmdvs type bapiwmdvs,
    lit_bapiwmdvs type standard table of bapiwmdvs,
    lfl_bapiwmdve type bapiwmdve,
    lit_bapiwmdve type standard table of bapiwmdve,
    l_dialogflag type bapicm61v-diafl.
    call function 'BAPI_MATERIAL_AVAILABILITY'
    exporting
    plant = <VBAP-WERKS>
    material = <VBAP-MATNR>
    unit = <VBAP- VRKME>
    check_rule = 'A'
    +* STGE_LOC =+
    +* BATCH =+
    +* CUSTOMER =+
    importing
    +* ENDLEADTME =+
    +* av_qty_plt =+
    DIALOGFLAG = l_dialog
    +* RETURN =+
    tables
    wmdvsx = lit_bapiwmdvs
    wmdvex = lit_bapiwmdve.
    Please note that table lit_bapiwmdvs is the input table and to this following input should be passed -
    lfl_bapiwmdvs-req_date = sy-datum. "Current date
    lfl_bapiwmdvs- REQ_QTY = <Unconfirmed Quantity> in Sales Order Unit
    append lfl_bapiwmdvs to lit_bapiwmdvs.
    The return value l_dailog will be --
    ' ' --- Quantity can be Delivered -- Item to be displayed in the Report!
    'X' --- Complete quantity cannot be delivered -- ATP failed, Item not to be displayed.
    'N' --- Material not relevant for ATP --- Item not to be displayed in the Report.
    For Allocated materials
    For the allocated Materials, we have to first do the ATP check in same fashion as for Non-allocated Materials and then in addition to this ATP check, we have to also check for Allocation from SIS table S941.
    If ATP check fails, straight away the Item should be ignored from Output display.
    If ATP check passes, we further check allocation as follows --
    Valid entry should select from S941 as -
    data: l_period like s941-spbup,
    l_BUPER LIKE T009B-POPER,
    l_GJAHR LIKE T009B-BDATJ,
    lfl_s941 type t_s941.
    data: l_bukrs type tvko-bukrs,
    l_periv type t001-periv.
    * Select company code
    select single bukrs into l_bukrs
    from tvko
    where vkorg = <VBAK-VKORG>.
    * Select fiscal year variant
    select single periv into l_periv
    from t001
    where bukrs = l_bukrs.
    * Get Period
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    EXPORTING
    I_DATE = sy-datum
    I_PERIV = l_periv
    IMPORTING
    E_BUPER = l_buper
    E_GJAHR = l_gjahr
    EXCEPTIONS
    INPUT_FALSE = 1
    T009_NOTFOUND = 2
    T009B_NOTFOUND = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    * Ignore entry and skip further processing
    ENDIF.
    concatenate l_gjahr l_buper+1(2) into l_period.
    select single kcqty aemenge from s941
    into corresponding fields of lfl_s941
    where SPBUP = l_period
    and KONOB = 'OBJ_ALL_MATERIALS'
    AND MATNR = <VBAP-MATNR>
    and zzcnetmark = <VBAK-ZZCNETMARK>
    and VRSIO EQ '000'.
    IF SY-SUBRC <> 0.
    *Ignore entry and skip further processing
    ENDIF.
    Remaining Allocation = difference between product allocation quantity and incoming order quantity
    i.e. (S941-KCQTY - S941-AEMENGE). Now we have to compare this qty with the Unconfirmed qty.
    Ensure same Material UOM for quantity comparison as follows --
    IF <VBAP-VRKME> NE <S941-BASME>.
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
    EXPORTING
    i_matnr = <VBAP-MATNR>
    i_in_me = <VBAP-VRKME>
    i_out_me = <S941-BASME>
    i_menge = <Unconfirmed qty in Sales UOM>
    IMPORTING
    e_menge = l_menge
    EXCEPTIONS
    error_in_application = 1
    error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    * Ignore entry and skip further processing
    ENDIF.
    ELSE.
    *If both Units are same no need for conversion
    l_menge = <Unconfirmed qty in Sales UOM>
    ENDIF.
    Then, compare if Remaining Allocation > = l_menge i.e. Unconfirmed quantity converted to S941-BASME unit, then there is enough allocation for this Material for the Unconfirmed quantity and should be displayed in the report.
    Else, the Item should be ignored.

  • Changes in sales order

    Hello,
    Table VBUK is for order header status.
    I made changes to sales order.
    which field in table indicates sales order change Date & Time?
    thanks

    hi
    from CDHDR you will get the details as who made the change, when, using what tcode and the change type ie. update, delete.
    CDPOS will give u details of changed fields its old value and its new value.
    The change document object is VERKBELEG for sales documents.
    Check the link to have more
    http://www.sap-img.com/ab024.htm
    regards

Maybe you are looking for

  • IPhone 5 connected but won't charge

    So i have a iPhone 5 that connects when I plug in the lighting cable but it won't charge sometimes. I already cleaned out the port on the phone with a dry toothbrush, please help. I've tried a lot of things and if there isn't a solution i'll just buy

  • Custom Metadata and the Filter Bar

    A couple of month ago this was posted by another member/LR user: I'm running Lightroom 2.3 on a WinXP system.  I'm trying to use the library filter mechanism to display a subset of images based upon the values of some custom metadata fields. All of t

  • Error while launching JDeveloper 10.1.3.5

    Hi, when I launch JDeveloper, it open the screen whith loadbar and close it immediatly. I have the following error : Product extension oracle.jdeveloper does not exist! Can someone help me? I have setup the zip install whith its own jdk Thanks, and s

  • HT204053 My Iphone is linked to my wifes Iphone. Want to seperate and establish my own Icloud acct. How can I do that ?

    My Iphone is linked to my wife's Iphone. Want to seperate and establish my own Icloud account. How can this be done.

  • WES610N Web-Based Setup

    The WES610N bridge seems to work fine, but I cannot get into the web-based setup.  I have tried using it directly through my laptop, as the instructions show, then through an Asus RT-53N as a router.  I did have the 610 connected to my laptop's ether