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

Similar Messages

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

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

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

  • 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

  • EDI: creating a sales order with reference to contract

    Dear gurus,
    we would like to create a sales order with reference to a SD contract from an ORDERS IDoc.
    OSS say we have to populate the E1EDx02 segments with the contract number to do this.
    We tested this in our system by manually editing the incoming IDoc and this is what we found:
    - qualifier u201C005  : Customer Contract Numberu201D set and BELNR = u201Cthe customeru2019s outline agreement number in his MMu201D (= normal MM behaviour) -> reference is not processed at all, sales order is created without reference
    - qualifier u201C043: Vendor Contract Numberu201D set and BELNR = our contract number in SD -> Sales order successfully created. BUT where can I store an external outline agreement number in MM so that the BELNR in the IDoc is populated with it?
    - qualifier u201C058: Customer Contract Numberu201D set and BELNR = the customeru2019s outline agreement number in his MM -> Error:
    The system could not determine a contract number
    Message no. VG226
    Diagnosis
    The system could not determine a contract number for the selection criteria: external contract number 5100000020 and customer number 0044000004.
    This error appears although we maintained the external number 5100000020 in the PO number field (VBKD-BSTKD) in our SD contract.
    Could anyone please explain what we do wrong?
    Cheers
    Alicia

    Hi again,
    @Lakshmipathi: Thank you, but it is VG226, like I wrote. But still, the OSS note is interesting: "You create a sales order with reference to an MM contract using EDI." Where's the sense in that? Why would I ever want to create a sales order with reference to an outline agreement in MM???
    @Rags: Sure we could do that, but I find it hard to believe that there is no standard way to do this. Especially given there are plenty of OSS notes stating that this is possible, e.g. note 562710.
    Any other ideas?
    Cheers
    Alicia

  • Error while creating the sales order with billing reference

    hi alll
    i am getting error while creating the sales order with billing reference.The line items are coming in grey.I am not able to change the items as well as the quantity field.Can u guide me
    cheers
    shalsa007........

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • Doubt in creating a sales order with reference to contract

    Hi all,
    when I create the sales order with reference to contract, in the table VBFA, the field PLMIN is set to zero some times and set to '+' some times. May I know whats the functionality behind this. Any pointers on this will be helpful.
    Regards,
    A.Rathinaprakash

    Hello A.Rathinaprakash,
    This is an Indicator which indicates the quantity or value in the target document(means Sales order) has a negative effect, positive effect, or no effect at all on the quantity still to be completed in the source document(means contract).
    Example from the Help file..
    In sales documents, for example, you can expect the following results:
    Quotation   -> Sales order: positive effect
    Contract    -> Return: negative effect
    Sales order -> Sales order: no effect
    In billing documents, for example, you can expect the following results:
    Delivery    -> Invoice: positive effect
    Delivery    -> Cancellation: negative effect
    Delivery    -> Pro-forma invoice: no effect
    Hope it helps..
    Regards,
    HP

  • Issues in creating the sales order with oe_order_pub.process_order api

    Hi All,
    I am trying to create a sales order with BOOKED status using oe_order_pub.process_order api, and I am getting response as
    <X_RETURN_STATUS>E</X_RETURN_STATUS>
              <X_MSG_COUNT>1</X_MSG_COUNT>
              <X_MSG_DATA>ONTOE_LOCK_ROW_DELETED</X_MSG_DATA>
    Can any one help me in fixing this issue ..!
    Thanks,
    Vamsi…
    Edited by: user11147471 on Jul 9, 2009 2:02 AM

    When using the API, are you trying to create the order as booked using the booked flag or the book action?  I would recommend using the action if you are not. To troubleshoot, I would try the API without booking and then use the following article to determine the issue:
    Unable To Setup A Credit Card Bank Account For The Customer. CC Information On The Order Is Not Valid (Doc ID 1450936.1)

  • Do not change the payment term created a Sales Order with reference

    Hi Gurus,
    Do not change the payment term created a Sales Order with reference to a contract where the payer of the change in Sales Order.

    Hello ,
    As per my understanding , you do not want the payment terms to be changed even if the payer partner function is changed ,
    as standard sap redetermines the payment terms with change in partner function, you may use the exit
    USEREXIT_MOVE_FIELD_TO_VBAK- header level
    USEREXIT_MOVE_FIELD_TO_VBAP- Item level
    in this you could write a small code which will not change the payment terms when payer is redetermined
    hope this helps
    Thanks
    akasha

  • How can I create a sales order with reference to a purchase order?

    How can I create a sales order with reference to a purchase order?
    Thanks in advance...

    Hello,
    you can't create a sales order with reference to a purchase order. You can input customer PO nuber in the sales order Purchase Order number filed.
    Prase.

Maybe you are looking for

  • Sales Order -- Purchase Req -- Purchase Order ..... Sales Document flow??

    Hi Guys, We have a process where we proccure few parts externally. When a sales order is created in our system based on the item category config we are able to create a purchase requition automatically. This Preq is further used to create a PO based

  • Getting the binary from an Offline PDF in output mapping of a Human Task

    Dear Experts, in my project I have a human activity with Adobe Offline Forms. It expires directly (expiration time: +0  minutes) after the PDF is sent out as task assigment. After the task is completed/expired, I want to store the same PDF file in SA

  • Access data of one class from another class

    Hi, I am creating one class say ClassA with some data members,the same class has main() method on execution of which the data members will b assigned a value. now i have another class say ClassB with main() method and i want to use the data in ClassA

  • FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2

    HI, I am using the below Function Module gv_ap = '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox' CALL FUNCTION 'SXPG_COMMAND_EXECUTE'                        EXPORTING                                                   commandname                   = 'Z_L

  • Accessing managed-beans property from simple java class

    I have managed bean that is registered in faces-config.xml: <managed-bean> <managed-bean-name>documentReportsBean</managed-bean-name> <managed-bean-class>[myApp].beans.DocumentReportsBean</managed-bean-class> <managed-bean-scope>session</managed-bean