Current Position:Home > BAPI: Create Sales order with reference to Quotation

BAPI: Create Sales order with reference to Quotation

Update:10-11Source: network consolidation
Advertisement
Hi ...
I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2  and
i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created .....
..Thanks..
..Ashish

The Best Answer

Advertisement
Hello,
nice to see that this has already been solved.
But it actually doesnt work in my scenario. Do you have an example coding which will explain your solution.
Mine looks like this:
* Update Flag
  ls_header_inx-updateflag = 'I'.
* Angebotskopf einlesen
  SELECT SINGLE * FROM vbak INTO ls_vbak
    WHERE vbeln = iv_vbeln
      AND vbtyp = lc_vbtyp.
  IF sy-subrc <> 0.
    EXIT.
  ENDIF.
* Auftragskopf setzen
  ls_header_in-doc_type      =  ls_vbak-auart.
  ls_header_in-sales_org     = ls_vbak-vkorg.
  ls_header_in-distr_chan    = ls_vbak-vtweg.
  ls_header_in-division         = ls_vbak-spart.
  ls_header_in-req_date_h   = ls_vbak-VDATU.
  ls_header_in-ref_doc        = ls_vbak-vbeln.
  ls_header_in-refdoc_cat   = 'B'.
* Angebots-Partner einlesen (Nur AG und WE)
* Auftrag anlegen
  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    EXPORTING
*   SALESDOCUMENTIN               =
      order_header_in               =  ls_header_in
*      order_header_inx              = ls_header_inx
*   SENDER                        =
*   BINARY_RELATIONSHIPTYPE       =
*   INT_NUMBER_ASSIGNMENT         =
*   BEHAVE_WHEN_ERROR             =
*   LOGIC_SWITCH                  =
*   testrun                       = 'X'
*   CONVERT                       = ' '
   IMPORTING
      salesdocument                 = ev_vbeln
    TABLES
      return                        = et_return
*      order_items_in                = lt_items_in
*      order_items_inx               = lt_items_inx
      order_partners                = lt_partners
*   ORDER_SCHEDULES_IN            =
*   ORDER_SCHEDULES_INX           =
*   ORDER_CONDITIONS_IN           =
*   ORDER_CONDITIONS_INX          =
*   ORDER_CFGS_REF                =
*   ORDER_CFGS_INST               =
*   ORDER_CFGS_PART_OF            =
*   ORDER_CFGS_VALUE              =
*   ORDER_CFGS_BLOB               =
*   ORDER_CFGS_VK                 =
*   ORDER_CFGS_REFINST            =
*   ORDER_CCARD                   =
*   ORDER_TEXT                    =
*   ORDER_KEYS                    =
*   EXTENSIONIN                   =
*   PARTNERADDRESSES              =  .
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.
Unfortunatly this just makes the reference to the quotation but does not takeover ALL data from header and pos level.
Thanks and regards
Markus Armbruster
  • BAPI: Create Sales order with reference to Quotation Update:10-11

    Hi ... I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2  and i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created ..... ..Tha

  • Creating Sales Order with reference to Quotation from different Sales Area Update:10-11

    Hi, I would like to inform you that our customer (GE ENERGY OC) from Europe have a requirement where they want to create sales orders with reference to quotation that is from different sales area. Standard SAP functionality doesn't allow this feature

  • Create Sales Order with Reference from Quotation Update:11-30

    Hi All, Is there any bapi or function to create sales order with reference from a quotation? I know BDC is possible but any other methods? Thanks DylYou can use - BAPI_SALESDOCUMENT_COPY. Prerequisite is Copy control should exist in customizaiton. -A

  • Bapi: create sales order with reference to Invoice. Update:11-30

    HI , i am trying to create sales order(credit memo request) with respect to invoice. What  BAPI to use. also, please provide with sample code. I have passed invoice to BAPI_SALESDOCU_CREATEFROMDATA1 at header level(ref_doc). and i am  passing other d

  • Inbound Files Create Sales Order With Reference To Quotation Update:10-11

    Dear All, I am working one Assignments For Sales Order Creation Through Inbound Files and Its working fine. But I have one Issue during creation of Sales Order through inbound files ( Which Contains Quotation Number Which Already Exist in SAP ) and Q

  • BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER Update:10-11

    Hi , I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order - Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change but couldn't find for create with reference

  • Create sales order with reference to 10 quotation Update:10-11

    Create sales order with reference to 10 quotation I want to put all quotation means take reference in one sales order how I can do it because when tried va01 and taken reference of question it allow to put only one question number how can I do it for

  • BAPI FOR CREATING SALES ORDER WITH REFFERENCE TO QUOTATION Update:10-11

    Hi All, I am creating sales order with refference to quotation by using bapi "BAPI_SALESORDER_CREATEFROMDATA".Able to create sales order but its not refferencing qutation.Is there any other bapi for this scenario.Please guide me. Regards, Suresh

  • Bapi To create sales order with reference of sales order. Update:10-11

    Hi all,       Having requerment To create sales order with reference of onother  open sales order. Example: there open sales order which having qty of 20 for that 10 qty as already billed , for remain  10 qty as to create the new sales order with ref

  • BAPI to create Sales Order with reference to contract Update:10-11

    Hi All, I am trying to create Sales Order with reference to Contract, but although the order gets created, it does not contain reference document information.  The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.  Would someone know which parameter