SD Quotation Creation BAPI

Hi Everyone,
I'm creating Quotation thru a "Z" program by calling the BAPI "BAPI_QUOTATION_CREATEBOS".
All paramteras are passed thru the flat file table and successfully got created.
When I look into the Costing Model values, they are still empty.
Kindly Help.
Gokul.N

Hi,
Check what costing values you mentioning manually that should be in FLAT FILE.
If your costing values are in flat file and not populated after creation of quotation through BAPI then it means problem in either file reading or in file uploading through BAPI.
Check BAPI u are using.
kapil

Similar Messages

  • Prblm in Extnsn of VBAK : Quotation creation BAPI_QUOTATION_CREATEFROMDATA2

    Hi ALL,
    Problem in Extension of VBAK during Quotation creation Using BAPI BAPI_QUOTATION_CREATEFROMDATA2.
    I have some Custom field of VBAK in Addional data tab B of transaction VA22.
    I am populating these fields using BAPI_QUOTATION_CREATEFROMDATA2.
    Passing table parameter EXTENSIONIN as shown below.
    some of the fields are getting updated with these BAPI but some are not.
    Say for example I added two custom field ZRORD and ZEON in table VBAK and Addional data tab B screen as well.
    To get these field updated by BAPI I appended these two fields  in structure VBAKKOZ ,VBAKKOZX and BAPE_VBAK.
    Field ZRORD is getting updated but facing problem with ZEON.Please help.
    For ur info,If I run transaction VA22 and enter some value in ZEON and click on SAVE then its getting updated.
    w_bapiparex-structure   = 'BAPE_VBAK'.
    w_bape_vbak-zrord = 'xxX'.
    w_bape_vbak-zeon = 'x'.
    w_bapiparex-valuepart1  = w_bape_vbak.
    APPEND w_bapiparex TO t_bapiparex.
    Roshan

    Hi singh,
    Try with this code.
    data: w_bapi_vbak_in type bape_vbakx.
       w_bapi_vbak_in-zrord  = 'X'.
       w_bapi_vbak_in-zeon = 'X'.
    w_bapiparex-structure = 'BAPE_VBAKX'.
    w_bapiparex-valuepart1 = w_bapi_vbak_in.
    append  w_bapiparex to t_bapiparex.
    Regards,
    Raji.

  • Quotation creation through DP81 Error related to Material maintain Inquiry

    Dear All,
    This is related to Quotation creation through DP81.I have maintain A DIP profile and as per my Easy Cost Planning (ECP) in Project System it is capturing in sales price in DP81.Please note that I have maintain three (3) line item in the sales Inquiry.Based on that 3 line item we have maintain three different WBS element in ECP and it is attached to corresponding material no in VA12.
    Now in DP81 system showing the three line item but if we go for Quotation creation one material no is coming for the three line item with different price value.
    I have also maintain these three material in DIP profile in ODP1.Please note that the first material no maintained in DIP profile that is coming not the other material no.
    Please through some light as in our case there are several line item is maintained in quotation.So is it possible to make Quotation with different item and where I have to maintain these material no.
    Thanks
    Suman Sardar

    i checked the characteristic for cost element & Material for CR, MD & Str, i created sets for cost element & the material & i determined the material which i required in the quotation. I am getting an error "no expenditure item found" , can you suggest me now.

  • Quotation Creation and Billing for Service Orders--node details needed

    Hi ,
    I need to work on node "Quotation Creation and Billing for Service Orders" ....I see lot of integration with SD and FICO . Can any one give details about integrations required and what is done in this node ....
    Regards
    NPB

    There are different steps to be done for that.
    1. Create DIP Profile in ODP1 & check the consistency in ODP2 - DIP will be used to bill the customer based on resource (labor & material) usage. Creation of DIP profile has been discussed many times in this forum. Please check.
    2. Assign the Quotation document type & Billing type used in DIP profile to your sales area - Your document type should be assigned to your sales organisation, distribution channel & division combination.

  • Quotation Using BAPI .. Status is open in Document flow

    Hi..
    I created Inquiry .. quotation using BAPI (inquiry/quotation)Create_from_Data2 .... ie
    BAPI_QUOTATION_CREATEFROMDATA2 & BAPI_INQUIRY_CREATEFROMDATA2
    ..  But in Document flow created  inquiry and quotation status is open... Why this is happening?
    Thanks..
    ..Ashish

    yes... Actually if we go to change inquiry/quotation ... if i check whether document is complete .... then it shows document is complete ....
    ..Ashish

  • Screen Exit for Quotation Creation

    Hi All,
    We are on ECC 6 and have the following requirement. on the quotation creation (VA21/VA22), i have to grey out field Payment term (hearder-->billing doc tab). Program name is SAPMV45A and screen number is 4303.
    Once the payment term is entered, it has to be greyed out. Can someone please help me on how to achieve this.
    Regards,
    Jayant

    Hello,
    Please refer this
    after keeping the breakpoint u the the transaction.
    Get all the Exits and BADI in following ways:
    1: SE24
    2: CL_EXITHANDLER
    3: Method- GET_INSTANCE.
    4: Put a break-point at CALL METHOD cl_exithandler=>get_class_name_by_interface.
    5: now run your Tcode and you will get all the BADI listing and Exits

  • Quotation using BAPI

    Hi,
    I am working on program to create quotation using bapi function module
    BAPI_QUOTATION_CREATEFROMDATA.
    I am getting following error:
    Requirements are not fulfilled for condition EDI1
    I have filled up this three structure with following flelds
    header data
      t_order_header-doc_type =
      t_order_header-sales_org =
      t_order_header-distr_chan =
      t_order_header-division =
      t_order_header-sales_off =
      t_order_header-sales_grp =
      t_order_header-qt_valid_f =
      t_order_header-qt_valid_t =
      t_order_header-ord_reason =
      t_order_header-zz_sdcat_id =
      t_order_header-zz_sdflyer_id =
      append t_order_header.
    Fill up Order partner structure
      t_order_partner-partn_role =
      t_order_partner-partn_numb =
      if not p_i_rep is initial.
        t_order_partner-partn_role =
        t_order_partner-partn_numb =
      endif.
      if not p_e_rep is initial.
        t_order_partner-partn_role =
        t_order_partner-partn_numb =
    endif.
    item data
        t_order_item-zzmatwa = t_record-matwa.
    t_order_item-req_qty = t_record-kwmeng.
      t_order_item-cd_type3 = 'EDI1'.
      t_order_item-cd_value3 = t_record-price.
      t_order_item-cd_p_unt3 = 1.
      t_order_item-cd_curr3 = 'USD'.
        CALL FUNCTION 'BAPI_QUOTATION_CREATEFROMDATA'
          EXPORTING
            ORDER_HEADER_IN           = t_order_header
         WITHOUT_COMMIT            = ' '
           CONVERT_PARVW_AUART       = 'X'
         IMPORTING
          SALESDOCUMENT             = g_salesdocument
          SOLD_TO_PARTY             = g_sold_to_party
          SHIP_TO_PARTY             = g_ship_to_party
           BILLING_PARTY             = g_billing_party
          RETURN                    = g_return
          TABLES
            ORDER_ITEMS_IN            = t_order_item
            ORDER_PARTNERS            = t_order_partner
            ORDER_ITEMS_OUT           = t_order_items_out
            ORDER_CFGS_REF            = t_order_cfgs_ref
            ORDER_CFGS_INST           = t_order_cfginst
            ORDER_CFGS_PART_OF        = t_order_cfgspart
            ORDER_CFGS_VALUE          = t_order_cfgsvalue.
    I have just defind  t_order_items_out,t_order_cfgs_ref,t_order_cfginst,t_order_cfgspart
    t_order_cfgsvalue .
    but i don't have any data to fill up this following table  t_order_items_out,t_order_cfgs_ref,t_order_cfginst,t_order_cfgspart
    t_order_cfgsvalue .

    You incorrectly filling item information with condition value. All quotation related pricing need to pass QUOTATION_CONDITIONS_IN table paramete of BAPI.
    Try it and the problem get solved.
    Cheers
    Nilesh Shete

  • By pass quotation creation

    Dear Experts,
    Is there anyway i can bypass the quotation creation and straight away create sales order?
    Currently i am using DP80 to create quotation and it is link with service order. Let's say if i want to by pass the creation of quotation, can i still link the service order with sales order without quotation?
    Appreciate your advice.
    Thank you.

    Hi,
    It is not mandatory to create service quotation from Service order (DP80). You just release the Order and execute the service (Issue material and Confirm time).
    Then create Sales order (DMR) W.r.t Service order and create billing...
    Do not do DP80 transaction.... Byepass...
    Babu

  • Creation of sales order with reference to Quotation using BAPI

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

  • Help in Quotation creation using BAPI

    I want to create Quotation with reference to Inquiry. I am using std BAPI 'BAPI_QUOTATION_CREATEFROMDATA2' but I am not able to crate with reference to Inquiry. If you see the std tcode VA21 there is option to create with reference; there you can put the inquiry number. This functionality, I want to implement using BAPI.
    Can anybody tell me how to achieve this.
    Thanks in stack

    Nilesh,
    There is a problem if you use the BAPI 'BAPI_QUOTATION_CREATEFROMDATA2', the table flow will not be maintained (i.e) it will not maintain the document flow which you can view using
    VA13(Inquiry)->Document flow(F5). It will allow you to create any number of quotations for the same inquiry. This will be the case even if you use the BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.
    The alternative you can use is use a BDC program for just creating the Quotation(VA21). Then use the BAPI 'BAPI_CUSTOMERQUOTATION_CHANGE' to change the quotation. I have done this before and it is working perfectly fine. Hope this solves your issue.
    Note: Reward points if found helpful.

  • Referencing Sales Order to a Quotation via BAPI

    Dear all,
    I encouter problems to reference a Sales Order to a Quotation when I try to use the SAP BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'. Even though later when I managed to create the referencing on both the Sales Order Header and Sales Order Line to the Quotation, the system still doesn't closed the Quotation status as Completed. This has caused the Quotation remains active and open for other Sales Order for referencing. Any ideas?
    Thank you and regards;
    -ah tiang-

    Hi!
    According to OSS note 370988 it seems you can't create sales order properly with reference to quotation using BAPI_SALESORDER_CREATEFROMDAT2 in straight-forward way:
    Symptom
    This note describes the problems of the 'Create with reference' function when using BAPIs to create sales documents.
    If you are working online, you can use this function module to create a sales document with reference to an existing sales document or a billing document (for example, a debit or credit memo request) according to fixed rules. The rules for transferring information from the source document to the target document are defined in the copying control on header and item level. The creation with reference permits an item selection.
    When you use BAPIs in SD, a function of this type is not fully available. A reference is only possible for a quantity contract, so that the target quantity of the contract can be reduced by the order quantity of the sales document. Furthermore, the document flow is also updated.
    As an alternative to 'Create with reference' in Transaction VA01, two variants are provided for solving the 'Create with reference' problem in the BAPI.
    1. Create a '1:1 ' - that is, a document copy of a sales document (customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this point, you cannot create the 1:1 copy of either a billing document or a delivery.
    2. Create a sales document that refers to an existing document with 'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.
    Reason and Prerequisites
    As of yet, no method exists for creating a sales document that refers to an existing document.
    Solution
    For solution No. 1
    1. Create the documents using the BAPI_SALESDOCUMENT_COPY function module. However, this only permits a 1:1 copy without factoring out individual items.
    2. After you have created the document copy, you can use a change BAPI to edit this copy.
    For solution No. 2
    1. Collect the data for the reference document (for example a customer quotation) with the 'BAPISDORDER_GETDETAILEDLIST' function module. In the example code, focus exclusively on the partners, items, schedule lines and conditions.
    2. Prepare the Data. Execute the 'copying control' manually. This way, you decide which values are to be transferred.
    3. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
    4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
    An example of solution 2 is attached as a text file. You are allowed to select items and quantities for example, if you use input parameters. If there are no entries, then transfer 1:1 from the reference document. When you enter the 'condition type' parameter, you can determine whether conditions are copied or recalculated ('G' for transferring from the preceding document; 'B' or ' ' for re-determining, and 'C' for re-determining with transfer of the manual elements).
    Hope it helps.
    And welcome here on SDN!
    Regards,
    Maxim.

  • ECC quotation creation through CRM 2007

    Hi Gurus,
    I am trying to created ECC quotation in CRM 2007. The RFC integration between ECC and CRM has been done.
    Once the opportunity is created, then follow up document is created (ECC quotation).At the time of creation of ECC quotation through CRM, i am not able to fill the GROSS WEIGHT and NET WEIGHT in shipping tab of quotation. I am getting getting incompletion log for the same.
    Please let me the approve for the above query.
    Thanks,
    Bhushan

    Hi Jeevan,
    Can you please let me know if you found a  standard web service to create a quotation with refrence to a Opportunity. If so can you please share the info.
    If not can you please let me know what FM or BAPI did you use to create the web service to meet the requirement.
    Thanks

  • Requirement on quotation creation -Adobe forms

    Hi Experts,
    I have created an Adobe form which works online and offline.This is adobe form for creation of quotation making.
    But the problem is -its wrks perfect as offline meaning data is saved in pdf format.
    Now in online case -it accepts all data to fields but doesnt create a quotation-gives an error of sold -to -party needed.
    Bapi used is-BAPI_QUOTATION_CREATEFROMDATA
    if the field PARTN_ROLE is already used then -???
    Fields used are-
    DOC_TYPE -AUART
    SALES_ORG- VKORG
    DISTR_CHAN- VTWEG
    DIVISION- SPART
    PURCH_NO- BSTNK
    PURCH_DATE- BSTDK
    QT_VALID_F- ANGDT_V
    QT_VALID_T- BNDDT
    SHIP_COND- VSBED
    2]ORDER_ITEMS_IN(CHANGING)
    ITM_NUMBER- POSNR_VA
    MATERIAL- MATNR
    PLANT- WERKS_D
    TARGET_QTY - DZMENGC
    REQ_QTY- WMENGC
    SALES_UNIT - VRKME
    COND_TYPE- KSCHA
    COND_VALUE- KBETR
    CURRENCY- WAERS
    3]ORDER_PARTNERS(CHANGING))
    PARTN_ROLE - PARVW
    PARTN_NUMB- KUNNR
    can you please guide me as to why quotation is not getting created?Is it that some more field is needed ?

    someone had similar issue....i don exactly rrm the solution but it is something to do with subforms....
    currently it is disabled because your subforms are of type that doesn allow it.
    so you may play with subform types by changing them n then adding a table in it. IT will definitely fix the problem but you need to work on subform type.

  • Creating contract reference with Quotation - using bapi or fm

    Hi Friends
    Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    how to create contract referenced with particular line item in the quotation.
    where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    thanks
    Gowrishankar

    gowrishankar p wrote:
    Hi Friends
    >
    > Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    >
    > Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    >
    > how to create contract referenced with particular line item in the quotation.
    >
    > where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    >
    > thanks
    > Gowrishankar
    is it really SD_SALEORDER_CREATE? if yes, which version are you in?
    Have you thought about 'BAPI_CONTRACT_CREATEFROMDATA'. Documentation available for this bapi.
    If not, just an FYI, REF_DOC field in (BAPISDHD1) -Contract_header_in structure can be used to pass the ref document and check for the type. You will also need to pass the type for this ref_doc.
    Assuming you have the configuration in place already.
    Search forum for this BAPI to get the sample code.

  • Resource Related Billing & Quotation creation

    HI,
    I created a service order (SM02 -service order type)
    I am trying to create a Quotation in DP80 and Billing Request in DP90.
    In both Tcode i am getting the error "No expenditure item found"
    What is this expenditure item ?
    When i checked the cost tab  planned costs are appearing
    What should i do to get the expenditure item ?
    Thanks
    Alagesan M

    Quotation creation and sales pricing usage
    DIP Profile - 00000001
    In Characteristics, the following are ticked
    - Activity type
    -Cost center
    -Cost element
    - Plant
    -Object no
    -Transaction currency
    -Unit of measure
    Planned costs
    Internal labour -  2000  ( Calculated based on operation -work)

Maybe you are looking for

  • Pci1200 digital input output

    Hi,I'm a student using labview 6.1 for the first time. I use the digital input/output lines of a pci 1200 card. I use 8 digital input lines placed in one sequence, and 7 digital output lines placed in another sequence. The VI can read the input lines

  • Wage type amounts in cluster PCL4

    Hi all, I am trying to capture the wage type amount changes in infotype logging. enables infotype logging. Used function module 'HR_INFOTYPE_LOG_GET_LIST' and HR_INFOTYPE_LOG_GET_DETAIL to retrieve the change data. So far so fine. But the structuer r

  • Looking for experienced insight...

    My iPod has been working fine for months now...then 2 days ago I notice that there is a new upgrade for the iTunes store...I downloaded the 7.2 iTunes store upgrade...Now I can't get anything but this message "iTunes has encountered a problem and nee

  • FM to get dates of week

    hi, i required to find first and last date of the week, i have year(2008) and week(22) as input '200822' i know this function modules: DATE_GET_WEEK WEEK_GET_FIRST_DAY                        GET_WEEK_INFO_BASED_ON_DATE   LAST_WEEK                    

  • Question about BootCamp/Windows licenses

    I currently have a MBP that I'd like to install Windows 7 on via BootCamp.  In 1-2 years I'll be upgrading to a MBP Retina.  When I transfer my data over, will the Windows partition transfer too?  Or will I have to buy another Windows 7 license? Basi