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.

Similar Messages

  • 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

  • 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.

  • 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

  • Error while Creating a Sales Order for a Configurable Material

    Dear Members,
                            When I am creating a Sales Order for a Material. After Entering the Sold to Party and Material(Variant Configuration) I am getting an error in popup that Derivatiion Rule not defined for the Country IN. Please can you help me out regarding the settings for this.
    Thanks,
    Farhan.

    It seems your issue relates to some non assignment in COPA settings.  Hence,  check this help link and I hope this will be helpful to you
    [Source and Target Fields |http://help.sap.com/saphelp_erp2004/helpdata/en/59/65a2b8dd1711d2a6110060087a7a87/frameset.htm]
    thanks
    G. Lakshmipathi

  • 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

  • Sales order for a configurable material

    Hi all,
    While creating a sales order for a configurable material i'm encountering an incompletion log saying enter gross weight & net weight. Even after i enter some value in the respective fields, i'm still thrown with the same incompletion & i'm unable to complete the order. In the material i find that the gross weight, netweight, volume are maintained as "zero". How do i resolve the problem??should the material master be changed??
    Thanks and regards,
    Deepak Prasanna S

    hi,
    If ur not having access to change teh master data in client system, Then u have to feed data manually in the sale order
    VA02/VA01->go to item details->in shipping view u can feed the details.
    1.But in ur earlier posting u told even after filling the details, the system pops up the message.Revert waht is error r u getting.
    2. But is advisable to  change in material master since each time while creating sale order u can't feed the input
    regards,
    Arun prasad

  • Sales order costing for Configured Material (Material Variant Not KMAT Mat)

    Hi All
    For a Configured Material (Variant) (Not KMAT Material), which is having Std price costed.
    But if we create a Sales Order for the Configured Material, what options are availale to Execute Sales order costing and take the sales order value to COGS during Delivery.
    The reason being Client wants to Cost BOM items are price which is different from the Price used in Std cost estimate due to Price Volatility.
    I can understand we can do this in KMAT, but not sure how to do in Conifgured material. We can execute sales order costing and get Statistical cost value in EK02/EK01, but how to get this value posted during PGI..?
    Thanks
    Aravind

    Hi Ajay
    Even if i maintain M in Valuation filed, my Material Variant HALB material is already having standard cost in its material master and it is picking the std cost during PGI Delivery and hitting COGS A/c.
    Now how to get my sales order costing to real and post my sales order costing value to GI..this is the client requirement.
    Due some complication KMAT is not used and logistics go with Material Variant

  • Create a Sales order with reference to another sales order  using BAPI

    Dear All,
    Can any one tell me what are all the parameters required to create a Sales order with reference to another sales order using BAPI_SALESORDER_CREATEFROMDAT2....
    Thanks in advance

    Hi Madhan
    Thanks a lot for your reply.
    However, I would like to know which parameters need to passed in this BAPI in case of SO creation with reference. I beleive there are only a few parameters that need to passed in ORDER_HEADER_IN, ORDER_ITEMS_IN, etc.
    Need to know exactly which are these parameters.
    Regards
    Mihir Shah.

  • Bapi or function module to create a sales order in CRM 5.1 system

    Hi experts,
    Anyone knows any Bapi or function module to create a Sales order in CRM 5.1 system directly.
    Thanks.
    regards.
    Ruchi.

    hi ruchi,
    sory for the late respond, got a lot works to be done.
    based on my experience, you need several more information such as currency, uom for quantity, sales organization, etc.
    and honestly, i have never tried to create an order by just using 3 information ( sold to party, item, and quantity ),
    but i think it is possible because some of the information can be determined using configuration, but still some information is missing and the order that you create will have an error and you can't do next process of the order unless somebody fix / fill the information needed.
    just an idea, perhaps you need some z-tables to put your certain information needed for order creation and the information is maintained for each sold to party ( sold to party is a key of z-tables ) and each time order is created, all information will be query in this tables.
    and for this tables may be you can create an offline maintainance scenario using an adobe document. by this way, the sold to party can maintained all his/her/their information by them self.
    and by using this scenario, you can still maintain / create the order by programming ( perhaps using function module CRM_ORDER_MAINTAIN or else ).
    actually i want to implement in my company but don't have a chance becuase all has been set up and the management will think twice for implementing this scenario.
    hopes it hels
    cheers

  • 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 create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • Creating a sales order with reference/BAPI_SALESDOCUMENT_COPY

    Hi,
    I have to create a sales order with a reference to another order and have to change some fields in the new document.
    According to SAP note 370988 the function BAPI_SALESDOCUMENT_COPY should allow to create a sales order with reference to another order.
    Unfortunately it doesn't work for me.
    The BAPI doesn't return an error and creates a new order but that one is incomplete.
    The reason seems to be that VKORG, VTWEG and SPART aren't provided and because of that the new order can't be created completely.
    I can find no way to provide these fields to the BAPI.
    Has anyone used the BAPI successfully or has found another way to achieve the desired result?
    I already checked
    batch input: problematic because I have to change partners which are displayed in an table control which can't be controlled reliably from batch input
    the second way described in the SAP note: high effort and high risk, as each data field has to be copied explicitly from one represantation to another.
    Any help is appreciated.
    Kai

    That approach would effectively duplicate the implementation of BAPI_SALESDOCUMENT_COPY, wouldn't it?
    As there is a lot more data involved than just VBAK/VBAP (e.g texts, partners, conditions, schedules) this is not only a lot more effort it's also harder to get it right, especially since there might also be copy control customization which has to be take into account.
    Nevertheless I tried it and it isn't working in my case.
    I' have to create a debit memo request (BUS2096) out of a sales order (BUS2032), and BAPIs SALES_ORDER_CREATE* only handle BUS2032.

  • Create a Sales Order with Reference to Contract using IDoc / LSMW  ( AFS )

    Hi Gurus,
    I need to crate a Sales Order with reference to a Contract. I need to upload Sales Orders with reference to contract via LSMW.
    So far, I've been able to create the Sales Order with ref to contract. But, the Sales Order Quantity is not getting deducted from the Original Qty in Referred Contract ( When try to create another Sales Order referring to the same Contract.) When a Sales Order is created manually, this is working fine.
    Please tell me if I've missed some parameter which stopping it create the link to exact schedule line ( Sizes level )
    The Details of the IDoc which is been created via LSMW are as follows;
    Message Type: ORDERS
    Basic Type     : /AFS/ORDERS05
    Process Code : ORDE / DELO
    ( Tried with both process codes.  But the Identification is the same for both: IDOC_INPUT_ORDERS )
    *_In Header;_
    Segment : E1EDK02  - IDoc: Document header reference data *
    Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
    Contract Order is mapped for field BELNR
    *_In Item;_
    Segment : E1EDP02  - IDoc: Document Item Reference Data *
    Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
    Contract Order is mapped to field BELNR
    Line Item of the Contract is mapped to field ZEILE
    I also tried passing the Schedule line of Contract in Segment :  E1J3P01 AFS IDoc: Doc.item general data
    to following fields;
    J_3AETENV
    J_3AVGETE
    /AFS/UETENR
    Still its not getting updated in the VBEP also..
    Please help me with regard to this. Points will be awarded for your valuable contribution.
    Thanks.

    Hi,
    This issue is been resolved.
    One of my friend helped me with resolving this issue..
    Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
    u2022     SPRO --> SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Define Sales Document Types  --> Field : Outline agreement message; from blank to u201CBu201D.
    u2022     SPRO  -->SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Maintain Sales Document Types for AFS  --> Field : Outline agreement message; from blank to u201CAu201D

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

Maybe you are looking for