Sales Contract with Material Variant at Sales Order

We are producing fabric and using make to order in SAP. Our customer give us a commitment with qty and a fixed price for certain fabric in advance, then later they release order to us with specific qty per color. We want to use Sales Contract for the customer commitment and sales order when the customer release the order with color qty to us.  We are putting color in the sales order in the material variant. However we are facing the following problem:
1. Let say we have a contract 1 with 100,000 yds of material A. 
2. then we have a sales order 2 of 20,000 yds of material A with color Blue refering to contract1.
3. Somehow our factory over produced Material A color blue total 25,000 yds.
4. Then we have another sales order 3 of 5,000 yds of material A with color RED referring to contract 1.
5. MRP does not create plan order for RED material A because it is showing customer stock 25,000 with contract 1 and 20,000 consume by sales order 2 and 5,000 extra.  however these 5,000 extra is blue is not red and cannot fulfill sales order 3.
Any idea how to solve this problem?
Tks,
Calvin Ngan

Hi Calvin,
I think if you define your material as configurable, it can solve your problem.
A car, for example, has a large number of options that need to be described wheras the order is created only at a model and variant level. Then you define values for characteristics, to allow you to select specific options, such as 'black' for paint.
So in your case you need to define characteristics of colour(or texture or thickness) or whatever differentiates each output and add optins for each of them.
These are asked for and stored both in your reciepts(stocks, Prod. orders, POs etc) and in your requirements(SO etc). Also MRP will differentiate between each characteristics while planning.
Hope this helps.
Thanks & Regards
Santanu Dawn

Similar Messages

  • How to create a Contract with reference to a Sales-Order(VA01) with a BAPI

    Hi,
    my name is Wadim and i need help.
    My problem:
    I am creating a sales-order(VA01) with the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
    After that i have to create a contract(VA41) with reference to this order. I found the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and it has the same interfaceparameters like the salesorder-bapi. but there are no parameters to get a connection to the sales-order.
    Is it even possible to get a connection to a sales-order with a bapi???
    thanks for help
    regards mark
    Edited by: Krapp Wadim on May 20, 2010 9:19 PM

    Hi Wadim,
    I have a similar requirement to create order lines in an existing contract with reference using  BAPI_CUSTOMERCONTRACT_CHANGE.  The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
    Did you come across any such issue ? If yes , could you suggest the solution ?
    Regards,
    Venkat.

  • Assign Source of supply is not working for contract with material group

    Dear Experts,
    I have searched all the threads and gone through before posting my query. So i would ask moderators to go through the thread properly before rejecting this.
    We have value contracts with respect to a particular material group without material and with item category W in the contract item, Please note that for the materials with this material group, the source determination is not set and source list is also not maintained.
    When we create PR for the material with this contract, and when we click on assign source of supply contracts used to get popped up, but recently from few days, when we click on assign source of supply we are getting an error " no source found for this item ".
    Can anybody help on this.
    Regards

    @ Biju,
    As mentioned earlier, we are not creating PR with reference to contract.
    first we are creating contract with item category W (material group), without material and plant details.
    we create PR with or without material with account assignment K and with the material group in the transaction ME51N, and after inputting all the fields, we click on assign source of supply, it was proposing the existing contracts with respect to material group earlier, but it is not happening for particular material group(it is working for all other material groups)
    Hope it is clear.
    @ Dev Patra,
    we are using DIEN-Service material types and we assign that particular material group to only service material type.
    we have not ticked, source list in the material master, we donot have any source list for the materials under that material group.( please check the note 457110- question number 14.)
    Regards

  • Updating Sales document with new sub sequent sales document

    Hello All,
    I am creating one sales contract from one sales document through some user exits and batch jobs.
    After creating this new sales contract i want to update this doc number in Old Referenced sales document flow.
    Is there any standard function module for this.. i tried some function modules containing FLOW..But no use..
    Thanks&Regards,
    Krishna.

    It is resolved..
    as I am using FM SD_SALESDOCUMENT_CREATE to create this contract i just updated the Reference document number in header structure...

  • SD Contract with Material Determination - error V1 118 - Material Not liste

    We have a contract that was created in Jan 2011.  We have a material on the contract that has now has a sub through material determination.  Since the original item has item linked to it out process is the add the new item to the bottom of the contract.  when we do this we are getting Error 118 - Material is not listed therefore not allowed.    
    I debugged it and it looks like if the vdatu (req del date) is populated that is used otherwise the create date of the contract is used.    The contract was created in Jan however the material determination is only valid from 4/25 going forward.  
    Has anyone experience this issue?   Is there a way around this?
    I have searched the forums and haven't found anything like this.
    thank you for you help.
    Michelle

    Thanks, it is listed, if you enter a new contract with the current date, the material works fine.  It is only when we are changing a material with determination on an older contract (created before the determination date) that we have an issue.    We are ECC 6.0 pack 15.  thanks.

  • BOM explosion in Sales order with material variants

    Dear all,
    we would like to work with Variant Matching in the Sales Order. Additionaly we would like to explode the BOM....according to the SAP help this is not possible....
    http://help.sap.com/erp2005_ehp_06/helpdata/en/bd/05a7d69d3211d190380000e8a49aad/frameset.htm
    Does anybody of you has any ideas how and where to make this happen?
    Thanks for your help and kind regards
    Jan

    Hi,
    I have gonethrough the SAP link referred by you but never come across with any problem in type matching during Sales order even if the BOM explosion is set for Multilevel in Configuration Profile provided the other pre requisite set up was perfect.
    Regards
    Brahmaji D

  • PO from sales contract can not copy to sales order

    Hi all,
    I would like to ask about copy control in sd.
    I set up copy control in sd and it is working, but the problem PO number can not be copied from contract to sales order.
    maybe some one can help me.
    Thanks
    wins

    Hi,
    Check the copy controls.
    Mohan

  • Payment Card Information with Material Groups and Work Orders

    When processing purchase transactions that were purchased using a payment card, standard functionality in SAP says the system automatically generates a parked document with authorized users allowed to post these documents. When these documents are being posted, does anyone know if the user can enter a material group and/or a work order number for reporting purposes?

    >
    Monique Stephens wrote:
    > Training is not the issue.  Material groups are a matter of personal preference.
    >
    > My main concern is if it would be a violation of SOX if the material group is changed from the original shopping cart on the PO itself.
    >
    >
    > Monique
    If your business is privately held then SOX does not apply to you. If your business has stock w/shareholders then it does.
    Correcting or making the material group more accurite is something that would be MORE SOX complient and not a violation.

  • Under /Over Delivery Tolerance with Sales Contract

    Hello All,
    Overview: In our current environment we are creating Sales Contracts, then a Subsequent order from the Sales contract. We change the Sales order quantity to desired amount for the time of delivery which the customer is requesting. Also in customer master (XD02) we have delivery tolerance setup for under and over.
    Question: Since we have tolerance setup for the customer.  At delivery time, we picked less from what the sales order originally had and complete the whole process to billing. Does the remaining quantity go back to the sales contract?  Sales order is still showing "Being Processed" Or is not possible to do that with delivery tolerance setup and Sales Contracts?
    Scenario 1: XD02 - Tol. Over/Under set as 5%. Unchecked box "Complete Delivery", "Partial del. Set to "Blank" and Max Partial to "9" for Customer
    Created Sales Contract for quantity 500 Tons--> Created Subsequent Sales order for 25 Tons.
    Delivery: Picked 22 Ton's. Recieved Message" Underdelivery tolerance of 5.0% has been exceeded".
    Completed shipment and billing.
    Sales order shows "being processed" and remaining qty did not go back to original Sales Contract.
    Scenario 2: XD02 - Tol. Over/Under set as 5%. Checked box "Complete Delivery", "Partial del. Set to "B" and Max Partial to "1".
    Created Sales Contract for quantity 500 Tons--> Created Subsequent Sales order for 25 Tons.
    Delivery: Picked 22 Ton's. Recieved Message" Underdelivery tolerance of 5.0% has been exceeded". Acc. To the partial dlv. Agreement, no subsequent delivery can take place
    Completed shipment and billing.
    Sales order shows "Completed", but the remaining quantity did not go back to the original Sales Contract.
    Is possible to have the remaining quantity to go back to the Sales Contract without going back to the Sales order and change the quantity to what was shipped.  Can this be done via configuration?
    Can anyone please shed some light on this.
    Thank you all,
    Nav

    Hi
    Can this be done via configuration?
    To my knowledge...definitely NO. It is not possible through configurations.
    Regarding the two scenarios...you are delivering quantity less than the lower tollerance. It should not happen and if your business process demands it....there is no meaning of maintaining the tollerance limits for the customer. Since the message is a warning message, you are ignoring it and proceeding with the delivery. This message should be an error message and delivery should not be allowed when the tollerance limits are crossed.
    Thanks,
    Ravi

  • Make to Order - Goods Receipt to Sales Contract

    Dear SD Gurus,
    In our scenario, sales order is created with reference to sales contract.
    In the requirement class 040, Account Assignment Cat is "E Ind. cust. w. KD-CO".
    So, when production order is complete, the stock is GR-ed into the sales CONTRACT number rather than the Sales Order number thus making it impossible to perform delivery.
    We need this to be GR-ed to sales order.
    Any advice is appreciated.
    Thanks,
    Soo

    Problem solved.
    Needed to change the requirement class in order to avoid PP parking the stock to the Sales Contract.

  • Sales Order Copying from reference of sales contract

    Hi all..,
    In my scenario sales order is created with reference to sales contract.
    all the fields except sales order item account assignment profit segment withing this WBS element is there in sales contract
    but it is not reflecting while referencing in sales order .
    Please help me out ...,
    Regards,
    Mohd.

    hi,
        i am working in sales module to extract sales contract data to bi.
       Please give me guidance to extract data from ecc to bi.
      I will very much thankful to you.
    Regards,
    Dharani

  • Adding item data in Product tab for sales contract (crm_order_maintain)

    Hi, can I use crm_order_maintain to add line items under the product tab for a sales contract while creating or modifying an order. Is there any sample code to add the line items, I could look at.  I tried calling this FM from my custom tab and then called CRM_ORDER_SAVE but that did not add the line item. I guess I need to call it from the order_save badi and then call the crm_order_save FM as well from within the BADI. If someone could send me some sample code then I can double check if I am missing something.Am I on the right track to be using this FM for adding a line item under the product tab for the sales contract? Please help. thanks

    Hi, I've encountered the same problem while I was creating a Sub-Contract from a Master Contract.
    In my case the solution was:
    first create the Sub-Contract,
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
          CHANGING
            ct_orderadm_h     = i_ctorderadm_h
            ct_input_fields   = i_ctinput_fields
            ct_doc_flow       = i_ctdoc_flow
          EXCEPTIONS
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        READ TABLE i_ctorderadm_h INTO wa_ctorderadm_h INDEX 1.
        APPEND wa_ctorderadm_h-guid TO i_objects_to_save.
    in wa_ctorderadm_h-guid now we have the guid of the newly created Sub-Contract.
    SELECT SINGLE it_type_to
                 INTO  v_it_type_to    " --> target item type
                 FROM  crmc_it_copy_ma
                 WHERE it_type_from = wa_out_orderadm_i-itm_type.
         Prepare tables
            wa_ctorderadm_i-header =
            wa_out_orderadm_i-header.   "Retrieved from CRM_ORDER_READ
            wa_ctorderadm_i-handle = '0000000001'.
            wa_ctorderadm_i-number_int = '0000000001'.
            wa_ctorderadm_i-product = wa_out_orderadm_i-product.
            wa_ctorderadm_i-ordered_prod =
            wa_out_orderadm_i-ordered_prod.
            wa_ctorderadm_i-description = wa_out_orderadm_i-description.
            wa_ctorderadm_i-itm_type = v_it_type_to.
            wa_ctorderadm_i-order_date   = sy-datum.
            wa_ctorderadm_i-itm_language = sy-langu.
            wa_ctorderadm_i-mode = c_a.   "c_a = 'A'
            wa_ctorderadm_i-header = wa_ctorderadm_h-guid.
            APPEND wa_ctorderadm_i TO i_ctorderadm_i.
            wa_input_fields-ref_handle = '0000000001'.
            wa_input_fields-objectname = 'ORDERADM_I'.
            REFRESH i_input_field_names.
            wa_input_field_names-fieldname = 'DESCRIPTION'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'HEADER'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'ITM_TYPE'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'MODE'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'NUMBER_INT'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'ORDERED_PROD'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'ORDER_DATE'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'PRODUCT'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_fields-field_names = i_input_field_names.
            APPEND wa_input_fields TO i_ctinput_fields.
    After that I've called function 'CRM_ORDER_MAINTAIN', to copy the Items from the Master Contract.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
            EXPORTING
              it_sales          = i_sales
              it_schedlin_i     = i_schedlin_i
            CHANGING
              ct_orderadm_i     = i_ctorderadm_i
              ct_input_fields   = i_ctinput_fields
            EXCEPTIONS
              error_occurred    = 1
              document_locked   = 2
              no_change_allowed = 3
              no_authority      = 4
              OTHERS            = 5.
    Maybe if you're not working with Contracts, the procedure is not properly correct.
    I suggest to put a break-point into crm_order_maintain and try to add the Item manually.
    If you reproduce exactly the standard, I'm shure it will work.
    Lorenzo

  • Sales Contract

    Hi Sirs,
    Our scenario is that we have sales contracts with some customers valid for a fixed period ( each contract consisting a list of materials) but when we created a sales contract and want to create a sales order reference to this contract we faced the below problems:
    1- When we want to create a sales order with reference to sales contract and input the contract number and click item selection all the materials in the contract come (about 2 thousand materials) and there is no search in this window ( we want to search in the window for the materials and select them and add them to the sales order, it is difficult to us to check the items one by one)
    2- When we selected the materials from the contract and copy them to sales order and want to add another one materials to the sales order, the new item canu2019t referenced to the contract.
    3- The Line number of the sales order imported from the contract so sales order line numbers shown same as contract line numbers which we didnu2019t want because we need the line numbers in the sales order to be started from  beginning 1,2, 3u2026u2026.
    Can anyone help me and advise how we can handle this.
    Thank you in advance.

    Hi Vani,
    In fact the Sales contracts could be created from CRM and not replicated to ECC, but it can also also envisaged to create them first in ECC with replication to CRM, this might not be needed in your process.
    Here the help link for Sales contracts:
    –http://help.sap.com/saphelp_crm700_ehp01/helpdata/en/49/916d594644200ce10000000a42189c/content.htm
    Best regards
    Christophe

  • Sales contracts could not coming into the KE24

    Hi,
    Only sales contracts(VA43) not coming ito the KE24
    But whenever we created the sales order with reference to the sales contracts then that time its appearing into the ke24
    why only sales contracts(do not having the Sales orders) not coming into the KE24
    Is it requires any config for this

    Hi
    Contaract is not standard charactor in co-pa thats y only contract it won be appear in the ke 24 report . if you are using contract with reference to sales order when you are doing the billing system it will take both sale order and coanaract fields it will update in co-pa .
    If you want to take contaract in to co-pa without sales order u have to create charactor strics dervation rule in KEDR transaction then it will update in copa .

  • Replication of Sales contract from CRM to R/3

    Hi Experts,
    I have a requirement of replicating the created sales contract in CRM to the R/3 system through Middleware in 2007. In the standard way replication of R/3 contract to CRM is only possible. Here the BDOC used in BUS_TRANSACTION_MESSAGE and there is no mapping modules present for CRM to R/3.
    Is it wise to create a custom adapter and use the fm CRM_BUS_MESSAGE_R3_UPLOAD_SRV as the mapping module and enhance the BADI CRM_BUS20001_R3A?
    Please throw me some light on how to proceed with the development.
    Yours answers are greately appreciated!!
    Regards,
    Suthagar.

    Hi Kai,
    Its the normal sales contract with the Pricing aggreements. In SAP help, I found a note saying Note that you cannot download CRM contracts to the SAP ECC system
    please find the link [http://help.sap.com/saphelp_crm60/helpdata/en/7a/e486398dcfd74fe10000000a11402f/frameset.htm], the note can be found in Data exchange for sales contract under the Sales contracts.
    Also on the transaction R3AC1 with the sales contract type, the mapping from CRM to R/3 is blank.
    If it is possbile to replicate from CRM to R/3, please let me know the steps to acheive it.
    Thanks for your help.
    Regards,
    Suthagar.

Maybe you are looking for