Creation of sales order with Variant configuration info

Hi friends,
   I am creating sales order along with Variant configuration data. We have 3 level BOM structure.
I am using BAPI_SALESORDER_CREATEFROMDAT2 and filling in ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF ORDER_CFGS_VALUE, ORDER_CFGS_REFINST
tables exactly the same way BAPISDORDER_GETDETAILEDLIST FM returns.
Sales order is being created with no variant configuration information.(Not in the header level atleast)
  Can any one help me on this.
Thanks
Seshagiri

Updating Variant Configuration data for SO item became little tricky for us in an ongoing implementation. After spending some hours investigating the correct combination of data to pass, we were able to post the document correctly. As no detailed documentation is available online for this scenario, I hope this post will help community for similar requirements. J
For updating Variant configuration (VC) data for Sales order item, we need to populate below tables of standard FM or BAPI (e.g. SD_SALESDOCUMENT_CREATE).
Normally the standard FM or BAPI does not return any error messages in case configuration data is not updated successfully.
·         SALES_SCHEDULES_IN: The required date field should be populated with appropriate value (REQ_DATE).
·         SALES_ITEMS_IN: Field PO_ITM_NO should be populated with appropriate value.
·         SALES_CFGS_REF Table:
1.       This table should have 1 record per item.
2.       Combination of CONFIG_ID and ROOT_ID should be unique across line items.
POSEX
000010
CONFIG_ID
000001
ROOT_ID
00000001
SCE
1
COMPLETE
T
CONSISTENT
T
CBASE_ID_TYPE
G
·         SALES_CFGS_INST:
1.       This table should have 1 record per item.
2.       Combination of CONFIG_ID and INST_ID should be unique across line items.
CONFIG_ID
000001
INST_ID
00000001
OBJ_TYPE
MARA
CLASS_TYPE
300
OBJ_KEY
MATNR value
QUANTITY
Quantity value
QUANTITY_UNIT
Quantity Unit
COMPLETE
T
CONSISTENT
T
OBJECT_GUID
MATNR value
PERSIST_ID_TYPE
G
·         SALES_CFGS_VALUE:
1.       Combination of CONFIG_ID and INST_ID should be unique across line items.
2.       We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
3.       The characteristic value should be in SAP internal format.
CONFIG_ID
000001
INST_ID
00000001
CHARC
Material characteristics
VALUE
Material characteristics value
·         SALES_CFGS_VK:
1.       Combination of CONFIG_ID and INST_ID should be unique across line items.
2.       We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
CONFIG_ID
000001
INST_ID
00000001
VKEY
Material characteristics

Similar Messages

  • Sales Order with Variant Configuration

    I´m trying to create a Sales Order with Variant Configuration.
    First, I tried to create the order with the BAPI SD_SALESDOCUMENT_CREATE but It would not let me update characteristics.
    Then I separated into two BAPI's:
    SD_SALESDOCUMENT_CREATE to create Sales Order and  BAPI_SALESORDER_CHANGE to modify the characteristics.
    I run the two SAP BAPI's from SAP and create the Sales Order and make the characteristics correctly, but when I try to invoke from The Middleware the message  V1 555 The sales document is not yeat complete  is displayed and does not update the characteristics.
    Both functions are such as Remote-enabled Module.
    The remote user profile is SAP ALL
    Reviewing where the message is used, I see that the message is in the include MV45AF0B_BELEG_BEARBEITEN_ENDE
    IF DA_LINES> 0 AND
    SY-NE SPACE AND BINPT
    CTU_AMODUS BI_INFO-NA 'A' AND
    CATTAKTIV IS INITIAL.
    MESSAGE I555.
    ENDIF.
    Do you have any idea why since Middleware is not working?.
    Best Regards.
    Blanca Segovia.

    Hi Diwakar
    I changed the creation of Sales Order using only SD_SALESDOCUMENT_CREATE and using Commit Work and it is the same, running the function from se37 create the Sales Order and make the characteristics correctly, but when I try to invoke from The Middleware the message V1 555 The sales document is not yeat complete is displayed and does not update the characteristics.
    I Open that Sales order in VA02 and check 'Incompletion Log'  the screen show 1 Configuration, I Open the tab of the characteristics without changing the characteristics and only save, then the status changes to Complete document.
    You give me another idea that could be happening?
    Thank you very much.
    Blanca Segovia.

  • BAPI/FM in ECC to create a sales order with variant configurable material

    Hi all,
    I need to create a function module that creates a sales order in ECC with a variant configurable material.
    can some one tell me if there is a in built function module or BAPI that i can make use of to create a sales order with variant configurable material in ECC.
    Regards,
    Jessica Sam

    Thanks MxG,
    I dont know how to use this BAPI. .Can you suggest me a sample code.
    My reqmnt is, i have
    Sold to party, ship to party, bill to party , VC config material and all char values that should be populated while creating a sales order.
    please help me with what values should i populate in i/p paramters and and how to use this BAPI with some sample code if posible.
    Regards,
    Jessica.

  • BAPI/ FM in CRM to create a sales order with variant configurble material

    Hi All,
    I need to create a sales order using variant configurable material in CRM not manually through GUI. I need to develop a function module that will create sales order using variant configurable material in CRM .
    Can some one tell me if there is an in-built BAPI/Function Module availabe in CRM to create sales order using variant configurable material in CRM .
    When i researched i found that there is a BAPI 
    BAPI_BUSPROCESSND_CREATEMULTI which can create a sales order in CRM.
    I dont know if this can create a sales order with varinat configurable material in CRM
    can some one guide be how i can build a function module in CRM which generates a sales order with variant configurable material.
    Regards,
    Jessica Sam

    Jessica
    I am not a CRM expert and am still learning. But you can try the BAPI CRMXIF_ORDER_SAVE and see if that helps.
    Good Luck
    Ram

  • Creation of sales order with reference to inquiry no.

    Hi gurus!
    Im having trouble in creation of sales order with reference to inquiry no. The scenario is like this one. In va11(creation of inquiry no.), in the field of <b>SERVICE LEVEL</b>, i indicated a value. after the creation of inquiry no, i want to create a sales order with reference to inquiry no. But the problem is, the <b>SERVICE LEVEL</b> field does not have any value. What is the main problem to this scenario? is it the VARIANT CONFIG or the program itself? please help its urgent
    Regards,
    Mackoy

    Dear Machoy,
    In IMG under
    Sales and Distribution -> Sales -> Sales Documents -> Maintain Copy Control for Sales Documents -> Copying Control: Sales Document to Sales Document
    or Transaction VTAA
    http://help.sap.com/erp2005_ehp_02/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    If you create a sales document with reference to a preceding document, the system copies nearly all the data from the preceding document. The data in the preceding document originally comes from the customer and material master records. Because the data is copied from the preceding documents into the sales document, any changes that have been made to the master data records since the preceding document was created are not included in the sales document. If, when you create with reference, you add another item to the document that was not in the preceding document, the system determines the data for it from the master records, such as the material master or info record.
    You have created an inquiry and a quotation with reference to this inquiry. Before you created the quotation, you changed some data in the material and customer master records.
    You have changed the material description in the material master record. This description is stored in the sales document at item level.
    You have changed the terms of payment in the customer master record from ZB01 to ZB03. These are stored in the sales document at header level.
    When you created the inquiry, the system copies the original material description to the item. If you enter another item in the quotation for the same material, the system displays the new material description for the new item.
    However, the system continues to propose the original term of payment, that is, ZB01, for all items including the new one. This is because it is copied from the header of the preceding document into the header of the quotation, and the change in the customer master record has no affect on the quotation.
    Regards,
    Naveen.

  • Regd : Error during saving the  sales order for Variant configuration

    Hi -
    When the item( config material) is saved in the sales order , system scheduled the production order and getting an error as " Posting Rule for Assembly order for item 000010 could not be generated".
    Any solutions regarding the error.

    Hi,
    This is the process of Assembly to order with variant configuration. In material master, you can maintain gen item category 0002 (configurable material) in basic data view, sales 2 view item category grp 0002 and strategy group 82 in MRP 3 view. After creating of material master, BOM & Routing, You can create sales order in VA01 transaction.
    In this VA01, When you create sales order, system will check material availability, capacity checking and system will show variants for each items. And also when you will save the sales order, system will create production order no immdiately.
    So you can maintain the above settings compulsory.
    please let me know any clarification.
    Regards,
    Mohan

  • Create a production order with variant configurator data

    Hello,
    Can anyone tell me the way to create a production order with variant configurator data. Is there a BAPI ? an IDOC ?
    Is there several steps ?
    I have to create an interface which creates automatically PP orders. The data input is a file.
    Thanks for your help

    Hi,
    There are fews BAPI's available for creation of Production Order. They are:
    BAPI_PRODORD_CREATE
    This bapi will suit to your requirement, as input will be provided from file.
    Others are
    BAPI_PRODORD_CREATE_FROM_PLORD " this converts planned order to production order
    BAPI_PRODORD_CREATE_FROM_REF      " this creats production order considering other production order as reference.
    Hope your query is answered.
    Regards,
    Brajvir

  • BAPI for Creating Sales Order For Variant Configuration Materials

    Dear Gurus,
    Before posting this thread, we have referred many SDN threads, OSS notes and other sites for any sort of help..but no success..All threads and other referrals are not much of help as they are kind of incomplete( Perhaps, we are unable to understand them..no offense).
    Few checked threads on this subjects are:
    http://scn.sap.com/thread/34590
    http://scn.sap.com/thread/851070
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/community/abap/blog/2014/07/15/creating-orders-with-variant-configured-items-using-bapisalesordercreatefromdat2
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/thread/120144
    OSS: 549563
    Well, we're using the BAPI (BAPI_SALESORDER_CREATEFROMDAT2) which creates the sales order successfully but without the characteristic values in line items.
    We're passing data to the following parameters - ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE to create the variant config but not able to see it getting created.
    Pls find attached BAPI coding document for your reference.
    If you could throw any light on this issue will be of great help for us.
    Thank You in Advance!!!
    Reg,
    Jagan-SD.

    Jagan nath
    Try below.
    you would need miimum of 3 segments to pass variant config data using this bapi
    ORDER_CFGS_REF for each configurable item
    POSEX = ITEM #
    CONFIG_id , root_id - Start with 1 and increment it for each configurable line item
    ORDER_CFGS_INST
    CONFIG_ID - from above
    INST_ID - Start with 1 and increment it for each configurable line item
    OBJ_TYPE = "MARA'
    CLASS_TYPE = '300'
    OBJ_KEY = material #
    ORDER_CFGS_VALUE
    CONFIG_ID for the item, INST_ID for the item
    charc for characteristic value
    VALUE for characteristic value
    Reference thread
    How to Fill Configuration Data in BAPI BAPI_SALESORDER_CREATEFROMDAT2
    Hope it will solve your issue.
    Thanks
    Ritesh

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • Process order with variant configuration material

    Hi,
    I create a process order for a material XX.
    This material has a BOM with a material that has variant configuration "class type 300" for price configuration.
    When I save the process order I get a message saying "There are still characteristics for components to evaluate". I dont want to evaluate this material in my process order.
    What can I do to not have this message?
    Regards.

    Hi all,
    Yes, I work with variant configuration. But sales orders are not involved.
    What I do is:
    1) I create a purchase order for material X (this material belongs to a BOM), this material has variant configuration. I give a value to the characteristics in the PO.
    2) I create a process for a material XXX that has a BOM (material X is in the BOM and cannot be removed).
    3) When I save the process order the system asks me to evaluate again the characteristics. This is what I dont want it to do.
    Any ideas?
    Regards.
    Eduardo

  • Sales Order with Product Configuration - Reporting in BW?

    Hello,
    Do you know how this works? is there an SAP BBlock on this matter?
    I'm involved in an CRM upgrade project, to Ehp1, and it was decided that the products would now have to be configurable.
    XCM was successfully setup, configuration process is working great,  and now we need that data visible in BW when reporting on Sales orders, quotations, and opportunities.
    Thank you in advance for any help,
    Best regards,
    D

    Hi Diwakar
    I changed the creation of Sales Order using only SD_SALESDOCUMENT_CREATE and using Commit Work and it is the same, running the function from se37 create the Sales Order and make the characteristics correctly, but when I try to invoke from The Middleware the message V1 555 The sales document is not yeat complete is displayed and does not update the characteristics.
    I Open that Sales order in VA02 and check 'Incompletion Log'  the screen show 1 Configuration, I Open the tab of the characteristics without changing the characteristics and only save, then the status changes to Complete document.
    You give me another idea that could be happening?
    Thank you very much.
    Blanca Segovia.

  • Creation of sales order with reference to Quotation using BAPI

    Hi All,
    I am using BAPI "BAPI_SALESORDER_CREATEFROMDAT2" for creating sales order. Can you please tell how can I create a sales order with reference to a Quotation.

    Vinit,
    In your header structure, set like this:
      hdr-REF_DOC = i_order-vbeln.  "assign quotation # to sales order
      hdr-REFDOC_CAT = 'B'.         "assign Quotation to VBTYP_N.
    For each line item, set as follows:
    Assigning ref doc to create line item entries in VBFA.
        itm-REF_DOC    = i_order-vbeln.  "quote number
        itm-REF_DOC_IT = i_vbap-posnr.   "quote line item #
        itm-REF_DOC_CA = 'B'.
      data: ret_text type BAPIRET2.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
          ORDER_HEADER_IN           = hdr
          convert                   = 'X'
        IMPORTING
          SALESDOCUMENT             = salesdoc
        TABLES
          return                    = ret_tbl
          ORDER_ITEMS_IN            = itm
          ORDER_PARTNERS            = prtnr
          ORDER_ITEMS_inx           = itmx
          ORDER_CONDITIONS_IN       = conds
          ORDER_CONDITIONS_INX      = condsx
          order_schedules_in        = schd_lin.
    Don't forget those points.

  • Creation of sales order with reference - Zfields in Add data B are not cop

    Hi all,
              Please help me in the issue . I am creating sales order with reference to returns order . All item fields are getting copied but the Zfields which are added in addtional data b of sales order are not getting copied. Can anyone please let me know the procedure to copy the custom fields.
    Thanks in advance,

    The setting of field when copy by reference is best done in the copy rules.
    If you go to transaction VTAA, and look to the order type you are copying to, you will find a data transfer rule number. 
    Then go to transaction VOFM, menu option DATA TRANSFER -> ORDERS and find the matching data transfer rule number.
    Select and press the "Source text"  button, here you will find the data from the copied order in structure CVBAK, and you can apply the code to set the VBAK structure fields appropriately.
    This should then populate the data on the copied order.

  • Problem with creation of Sales Order with reference to Contract

    Hi,
    I have a problem when creating Sales order with reference to Contract , shipping condition was not copied. Is there any existing copy routines suitable to accomodate this?
    Thanks!

    your functional team can help you in finding one.

  • Variant Matching  during Creation of Sales Order with reference to Contract

    Hi All,
    I have a following scenario. Sales Contract is created on a Configurable Material ' A' and its has a Material Variant "B" with following Charac Values X = X1, Y= Y1 & Z=Z1.
    The value of Z= Z1 is set using a Procedure when Sales Document Type = OR ( This is the Document type For sales Order). So, this means variant matching will finally happen at Sales Order creation level, coz all the three reqd. charc. are availabe  at that time.This is also our reqmt.
    But, now what is happening, a Sales Contract is created for Material A, with Charc values X = X1 & Y= Y1. When a sales order is created with reference to this Contract, immediately during Copying of selected item, Variant Matching gets triggered & Material A is replaced by Material Variant B. Even we dont get into the Configuration Window.
    Actually, during copying itself Object Depencies are called and thats leading to variant Matching.
    Our requirement is that, it should not get triggered at such early stage. It should happen when Config. window is clicked.
    Kindly help. Copy Control of Sales Doc has setting 'No Control' We are in ECC 6.0. Are there some other settigs too.
    regards,
    Stuti

    your functional team can help you in finding one.

Maybe you are looking for

  • What is the best ad on  in photoshop cc for free if in is for doing a logos

    can someone plz give me a link thanks.../??

  • NFL Mobile Data Plan Problem

    I have been unable to run NFL Mobile on my Incredible for the last couple of days.  It was working before (although I no longer have free access to Redzone).  Now when I try to load it, I get the error "Your current data plan is not supported. Nfl Mo

  • Prinatble page button help ??

    On my oaf view page I have Printable button but I get this error : ## Detail 0 ## java.sql.SQLException: Missing IN or OUT parameter at index:: 1 there are 2 View objects that get refreshed on view page and both require parameters in their query. Con

  • Silent Clusterware Installation Question

    Hello - I am attempting to run a silent installation of Clusterware. I am installing on Linux, and here is part of my script: /oracle_software/11g_clusterware/clusterware/runInstaller -silent -responseFile \ $ORA_SCRIPTS/RAC_installation_pckg/crs.rsp

  • [b]Oracle 8.1.7  corrpted file[/b]

    hi there, I have recently downloaded Oracle 8.1.7 Enterprise Edition and the installation stops as soon as it tries to unzip a file called : products.rar( or some name like this). Is there any othere site were I can download Oracle 8.1.7 And as I wil