Current Position:Home > Creation of sales order with reference to Quotation using BAPI

Creation of sales order with reference to Quotation using BAPI

Update:10-11Source: network consolidation
Advertisement
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.

The Best Answer

Advertisement
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 to Quotation using BAPI Update:10-11

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

  • Creation of sales order with reference to inquiry no. Update:10-11

    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,

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO? Update:10-11

    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 orde

  • G/L Account is missing in item data in sales order with reference to quotation Update:10-11

    Dear SAP Guru, I have a problem in accordance with G/L Account missing sales order. Initially, please find the below lines. 1. If I do the sales order without reference to quotation there is no error in G/L Account missing. 2. If I do the sales order

  • 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

  • Sales order with reference to quotation Update:10-11

    How to use BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order with reference to quotation? what parameters I need to fill in?Hi, I've also had this problem. In the past when faces with this requirement I have used BAPI_READ_SALES_DOCUMENT (Note: 

  • Sales Order in reference to Quotation Update:11-30

    Hi expert, I must to create a sales order in reference to a quatation. When I select the item, the system give me the open quantity. My problem is that I have a difference between the "Open quantity" and the real quantity of quotation. The offer

  • 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

  • COPY CONTROL: SALES ORDER WITH REFERENCE TO QUOTATION Update:10-11

    Hi. We are creating a sales orders with reference to a quotation. When copying, we'd like to be able to include another new position type in the sales orders. For example: QUOTATION: POSITION 10: TYPE ZTAB SALES ORDERS: POSITION 10: TYPE ZTAB POSITIO

  • Sales order with reference to quotations. Update:10-11

    Hello Experts , I want to know how can a sales order be created with reference to more than one quotation?? Is there a transaction to do this ?? or else its a process?? Please guide. points will be rewarded to the answers. Thanks, ArathiHi Arathi Raj