Creation with Reference using BAPIs

We're looking into creating an order with reference to a quotation or a return order with reference to an order or invoice.
According to OSS note 370988 you can only achieve this using a workaround. We're in the process of testing it, so we were wondering whether anybody else out there already has experience with it.
Specifically:
- are there any issues in the document flow (based on our testing so far no) ?
- are there issues with regards to pricing ?
- do the final documents look as if created using VA01 ?
Are there other approaches ? E.g. how does the SAP web shop do it ?
Thanks
Adrian

HI Adrian Zehnder,
1) If you want create order with reference to quotation like ex quotation document type is ymea then create quotation using standard bapi 2) By using bapi get the details of the quotation and pass that data to BAPI_SALESORDER_CREATEFROMDAT2 fill the fields ref_doc, ref_doc_it, and ref_doc_ca  3) There i s no issue with pricing everything will copy.4) It will like created in va01.Post if you need more help in this.
Regards,
Madhu.

Similar Messages

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • Create material with reference using BAPI

    Hi
    I need to create material using refrence to another material for all material Views. Can I use BAPI_MATERIAL_SAVEREPLICA.
    Which parameter I need to fill for reference materia
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 12, 2011 3:18 PM

    Hi Goutam,
    You can use the BAPI BAPI_MATERIAL_SAVEDATA, which will create/update the material. You can pass the reference material in the filed BAPI_MARA-PL_REF_MAT. And you can pass reference material for all view like this.

  • Create sales order with reference via BAPI

    Hi all,
    I would like to know if is it possible to create a sales order with reference using BAPI, that is, I want to create an order from a contract, for example, referencing one or more contract itens. If so, what variable or table should I use?
    I think that the most suitable function is
    'BAPI_SALESORDER_CREATEFROMDAT2' or should I use another to do this?
    I am using release SAP ECC 6.0.
    Thanks for any help.
    Paulo

    yes, you are using right BAPI i.e. BAPI_SALESORDER_CREATEFROMDAT2
    You will have to provide ORDER_HEADER_IN in that, Others are optional, even then if you have data for them, Provide it for better performance.
    For any confusion related to chosing BAPI :  You may go to BAPI  transaction and find out the correct BAPI according to ur need. for example sales order relatd BAPI's are
    BAPI_SALESORDER_CHANGE :Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2: Create Sales Order
    BAPI_SALESDOCU_CREATEWITHDIA: Create Data Container with Dialog
    BAPI_SALESORDER_GETLIST:List of all Orders for Customer
    and so on.
    Reward if helpful..

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • Po Creation With Reference to contract

    Dear Experts
                       We are creating the purchase order with reference to contract the contract quantity not copied to po. it is asking to enter the qty. but it should copy the contract quantity. the same contract price also not copied to po. it is copying from the info record price.
    my scenario is at the time of po creation with reference to contract it should copy the contract qty and price any copy control assignment is there or any other settings required.
    Please help
    Regards
    Anand

    Hi,
    If a contract with one of your principal vendors exists for a material, you can create purchase orders referencing this contract. Purchase orders created in this way are called contract release orders.
    The price, vendor data,  terms of payment, delivery costs, and any instructions to the vendor are adopted from the contract automatically.
    If  you have created the contract & info records is also exists  then system will give priority to contract to determine the conditions.
    Please check the source list ,whether contract is maintained over there or not.
    Thanks,
    AMIT

  • Purchase order creation with reference to Contract

    Dear All
                    Purchase order creation with reference to quantity contract the contract quantity is not copied in to po. any configuration copying rules required. please guide
    Regards
    Anand.

    Hi Buddy
    The correct business process is RV Preq created by a user from any department then buyer converts this Preq to a MK contract with some quantity keeping the duration as some months/year. Then as and when material mentioned in the contract is required during the validity period of the contract MRP creates Preq or buyer manually creates NB preqs , same are then converted to PO but these PO are released against MK contract. So qty in PO are different then mentioned in contract because contract is for  a large qty keeping in mind the duration (for example one year).
    Regrds
    Yogesh

  • Is it possible to retrieve data using RFC alone with out using BAPI ?

    Hi ,
    Is it possible to connect SAP to Non-SAP systems to retrieve data using RFC alone with out using BAPI ?
    thanks
    Rama

    Hello Nelson,
    Could you please explain how this can be done. Because my understanding is that only BAPI can be used to connect Non SAP and SAP system not RFC function module.
    Regards
    Farzan

  • Sales order creation with reference to quote using BAPI

    Hi All,
    I am trying to create a sales order with reference to quote using BAPI BAPI_SALESORDER_CREATEFROMDAT2.
    I am passing the Quote number and preceding doc.category (B) at the header level and
    at item level I am passing the quote number and the line item number in the quote for REF_DOC and REF_DOC_IT.
    The order is created but there seems to be some issue with the document flow.
    I do not see the Reference Doc number at the header level from the Sales order document flow whereas I can see the Reference Doc for each line item.
    In VBFA I can see the Ref.Doc number at the header level along with the Ref.Doc at the line item level.
    Why do you think it is not showing at the header level from Sales Document Document Flow?
    Is there any bug in the standard BAPI or is there any OSS note?
    Any answer would be greatly appreciated.
    Thanks
    Sandeep

    hi,
    Are you giving different quotation numbers in the different line items, if that is the case you will not get that in the header document flow, as it cann't point to all the quotations.
    Thanks,
    Mahesh.

  • BAPI for sales order creation with Reference

    Hello Experts,
    I have a order, with its reference I have to create a new sales order.
    Am looking for BAPi, with which I can create a sales order with a Reference order (which is in my hand), so I checked SE37 with wild cards, but I did not find any!!
    1) Pls. let me know a BAPI
    2) And just like that I do not want to create a new order with the reference(existing) order, I have to change the PO number & order Reason(2 fileds) in newley creationg order, pls. let me know How to do it
    Thank you

    Hi,
    First try to pass these two parameters to BAPI_SALESORDER_CREATEFROMDAT2
    ORDER_HEADER_IN-REFDOCTYPE = Your Sch. Agreement No. (Please Check) and
    ORDER_HEADER_IN-SD_DOC_CAT = 'E'.
    If the above doesnt work ,than try using BAPI "BAPI_SALESDOCUMENT_COPY"
    I hope you are working in SAP R/3 4.6C and above version because i am not sure whether this BAPI is available in lower version.
    Let us know if this helps you..
    Rgds,
    Mayank

  • Is there any BAPI available for sales order creation with reference?

    Hi Experts,
    My requirement is to create sales order with reference for order type.
    Now my billing document number already contains the two items
    one is correct and another is zero quantity.
    I want to create order with reference of billing document but not with zero quantity item.
    Which BAPI I should use and what to pass to ignore zero quantity item?
    Regards,
    RH

    Hi Ronny,
    Try using BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    Shraddha

  • Bapi for PO creation with reference to Purchase Requisition - PReq

    Can any one let me know if there is any BAPI to Create PO with reference to PReq. I know we can easily write a BDC for ME21 but... is there a similar functionality via BAPI's ?

    Try
    BAPI_PO_CREATE1
    check its documentation in SE37 for detail documentation..
    Enjoy SAP.
    Pankaj Singh

  • Create contract with Purchase Requisition reference using BAPI

    Hi friends! I need some help here to create a contract with reference to some purshase requisition. I found BAPI_CONTRACT_CREATE to do this, but I have no idea how to do to create with reference to pruchase requisition.
    Anyone can give me a sample code or an idea how I can do this?
    Thanks in advance for any help.

    Thanks friend. I filled Header, Headerx, item e itemx but I'm getting this error:
    No instance of object type PurchasingContract has been created. External reference: # 1
    Item category 9 not supported
    I need fill something else?

  • PO creation with reference to Purchase Requisition

    Hello,
    Is anyone aware of a control in SAP that allows for a warning message  when you create one or more PO's form the same requisition and the total quantity on the PO(s) is over the quantity on the original purchase requisition?
    Also can BAPI be used to check the same?
    For example if I am creating PO using BAPI_PO_CREATE1 with reference to Requisition created.
    Can I check for errors using BAPI for PO creation in TESTRUN mode for quantity exceeded, different REQ types mixed in one PO and delivery date in PO match REQ?
    Any thoughts here would be appreciated.
    Regards,
    Madhura

    Hi Madhura
    have u tried message  06 076  to warning or error  in
    SPRO>Materials Management>Purchasing>Environment Data>Define Attributes of System Messages-->System messages
    Vishal...

Maybe you are looking for

  • Lumia 520 setting is not opening.

    I purchased 3 months ago. All things was working but now setting is not opening to set up anythings like updates location...etc. I really suffering from phone, What should I do to solve the location bcz I need maps and roads.

  • Creating an animated flag (without a Plug-in !)

    Hi all , I previously animated a flag in motion 3 , but have deleted the project file. I know that Zaxwerks do a plug in but it it $120 which is quite pricey as I am only using it for one project. I have done it before but can not remember how I did

  • Msi gx60 destroyer problems

    hey just bought myself a new gaming  notebook from msi and ever every seemed to be working fine when i first got but now a couple of days later the dragon gaming center wont open and when i try to open it, it says "dragon gaming center is only for ms

  • MBP 2011 usb problems

    Hello guys! Not long ago I purchased MBP 15" i7 2.0Ghz model and I got problems with usb ports on that machine. Every USB device that is connected to machine keeps disconnecting.I cant transfer any large file from external devices. Patriot supersonic

  • Photoshop CS4 Layers →Matting

    I am using the trial version of CS4 and cannot access the Matting filters under the Layers menu. The Matting selection is grayed out. I have tried different image modes and nothing allows access to Matting. Fitz