Creating quotation through bapi

hi all,
I have created a Quotation using a bapi using 'BAPI_QUOTATION_CREATEFROMDATA2'.
It is giving me the quotation number but when i put that number in VA22 a message is displayed stating that there exits no that quotation number.
I am also getting a warning in the return that the quotation is not complete.
Please help me in this context.
Regards,
nandam

Hi Kiran,
There are certain BAPIs where the numbers are alloted even in without_commit mode.
Chk if the without_commit mode is set to false.
If yu get a warning that quotation is incomplete it is obvious that your quotation has not been created. a number  allotment isnt a guarantee that the quotation has been created.
Regards
MK

Similar Messages

  • IN Po quantity is getting round off - when we create PO through BAPI?

    Hi all,
    In PO quantity is getting round off instead of 5711.210 it is taking 5711 only. Here we are creating the PO's through BAPI automatically.
    and in excel sheet we have maintained 5711.210, Kindly let me know what may be the possible causes for this..
    regards,
    archana

    fyi
    change decimal places in PO quantity

  • How to create PO through BAPI from custom screen

    Hi SAP Technical Guru,
    i am new to module pool programming.
    i designed custom screen which is like TA me21n means it has one tabstrip and tablecontrol.
    for header details(fields) at tab strip, and item detials(fields) at table control i used.
    now i have to capture screen fields into FM bapi_po_create1 and update the database tables.
    please suggest me how to create Purchase Order through BAPI FM.
    regards,

    here is the sample code
    *tables for passing podata to bapi
    DATA : gt_header   TYPE STANDARD TABLE OF bapimepoheader,
           gt_headerx  TYPE STANDARD TABLE OF bapimepoheaderx,
           gt_item     TYPE STANDARD TABLE OF bapimepoitem,
           gt_itemx    TYPE STANDARD TABLE OF bapimepoitemx,
           gt_account  TYPE STANDARD TABLE OF bapimepoaccount,
           gt_accountx TYPE STANDARD TABLE OF bapimepoaccountx,
    *tables used for passing custom field data to bapi
           gt_custom   TYPE STANDARD TABLE OF bapiparex,
           gt_custdata_in TYPE STANDARD TABLE OF bapi_te_mepoaccounting,
           gt_custdata_ix TYPE STANDARD TABLE OF bapi_te_mepoaccountingx,
    *tables used for cathing messages returned by bapi
           gt_return   TYPE STANDARD TABLE OF bapiret2,
           gt_return1   TYPE STANDARD TABLE OF bapiret2,
    *Work area declaration for passing custom field data to bapi
           w_custom   LIKE LINE OF gt_custom,
           w_custdata_in LIKE LINE OF gt_custdata_in,
           w_custdata_ix LIKE LINE OF gt_custdata_ix,
    *Work area declaration for passing podata to bapi
           w_header   LIKE LINE OF gt_header,
           w_headerx  LIKE LINE OF gt_headerx,
           w_item     LIKE LINE OF gt_item,
           w_itemx    LIKE LINE OF gt_itemx,
           w_account  LIKE LINE OF gt_account,
           w_accountx LIKE LINE OF gt_accountx,
    *work area declaration for cathing messages returned by bapi
           w_return   LIKE LINE OF gt_return,
           w_return1  LIKE LINE OF gt_return1.
    *populating po dat into internal tables
    w_header-comp_code  = 'PH02'.
    w_header-doc_type   = 'TEST'.
    w_header-vendor     = '0000600019'.
    w_header-purch_org  = 'PH02'.
    w_header-pur_group  = '901'.
    w_headerx-comp_code  = 'X'.
    w_headerx-doc_type   = 'X'.
    w_headerx-vendor     = 'X'.
    w_headerx-purch_org  = 'X'.
    w_headerx-pur_group  = 'X'.
    w_item-po_item      = '00001'.
    w_item-short_text   = 'test po'.
    w_item-po_unit      = 'CM'.
    w_item-matl_group   = '01'.
    w_item-po_unit      = 'EA'.
    w_item-plant        = 'PH02'.
    w_item-quantity     = '1.000'.
    w_item-net_price    = '10.00'.
    w_item-item_cat     = '0'.
    w_item-acctasscat   = 'K'.
    APPEND w_item TO gt_item.
    w_itemx-po_item    = '00001'.
    w_itemx-short_text = 'X'.
    w_itemx-matl_group = 'X'.
    w_itemx-po_unit    = 'X'.
    w_itemx-plant      = 'X'.
    w_itemx-stge_loc   = 'X'.
    w_itemx-quantity   = 'X'.
    w_itemx-tax_code   = 'X'.
    w_itemx-net_price  = 'X'.
    w_itemx-item_cat   = 'X'.
    w_itemx-acctasscat = 'X'.
    APPEND w_itemx TO gt_itemx.
    w_account-po_item    = '00001'.
    w_account-serial_no  = '01'.
    w_account-quantity   = '1.000'.
    w_account-gl_account = '0000199999'.
    w_account-costcenter = '0000400011'.
    APPEND w_account TO gt_account.
    w_accountx-po_item    = '00001'.
    w_accountx-serial_no  = '01'.
    w_accountx-quantity   = 'X'.
    w_accountx-gl_account = 'X'.
    w_accountx-costcenter = 'X'.
    APPEND w_accountx TO gt_accountx.
    w_custdata_in-po_item   = '00001'.
    w_custdata_in-serial_no = '01'.
    w_custdata_in-zzttry    = '1000'.
    w_custom-structure = 'BAPI_TE_MEPOACCOUNTING'.
    MOVE w_custdata_in TO w_custom-valuepart1.
    APPEND w_custom TO gt_custom.
    w_custdata_ix-zzttry    = 'X'.
    w_custdata_ix-po_item   = '00001'.
    w_custdata_ix-serial_no = '01'.
    w_custom-structure = 'BAPI_TE_MEPOACCOUNTINGX'.
    MOVE w_custdata_ix TO w_custom-valuepart1.
    APPEND w_custom TO gt_custom.
    *bapi to create po oreders
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        poheader                     = w_header
        poheaderx                    = w_headerx
    TABLES
      return                       = gt_return
      poitem                       = gt_item
      poitemx                      = gt_itemx
      poaccount                    = gt_account
      poaccountx                   = gt_accountx
      extensionin                  = gt_custom.
    *bapi for po data commit
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = ' '
      IMPORTING
        return = w_return1.
    *clearing tables & work area
    REFRESH:gt_account,gt_item,gt_itemx,gt_accountx.
    CLEAR:w_header,w_headerx.
    *displaying message returned by bapi
    LOOP AT gt_return INTO w_return.
      WRITE: w_return-type , w_return-id , w_return-number , w_return-message .
    ENDLOOP.

  • Error while creating WBS through BAPI

    I am using BAPI_PROJECT_MAINTAIN to create WBS L2 & L3.
    There is only 1 WBS at both levels.
    For some cases it is running fine, but I am getting the following error in some cases:
    "WBS element 3UTWB_BSRHT_001 can no longer be shifted"
    What could be the reason?

    As you told you are creating WBS vai BAPI. This may not be  exact relevant Normally you cannot  change  hierarchy of WBS Elements after you have done some sort of execution / planning on it. If you are getting error than please share details of error message with no.
    With Regards
    Nitin P.

  • Fail when creating routing through bapi.

    what are the mandatrory steps to create routing using bapi fm ( bapi_routing_create )?
    when i create routing using bapi it is showing the routing is created succesfull  but it is not updating in the standard table plko .

    after bapi use commit
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Getting error message while creating Contract through BAPI

    Hi
    I am getting a 'Specify either address number or address handle' message while creating contract from BAPI BAPI_CONTRACT_CREATEFROMDATA. Can someone please tell me what can be the cause.

    Hello Bharati,
             you need to give the value of the constant by selecting from the source parameter.Hope this answer helps you.
    Assigning Points = Thanks in SDN
    Thanks & Regards
       Jai

  • Create quotation through cost of service activities in cj20n?

    Dear PS  Experts,
    Can anybody please guide how to use DP 81 for creating the quotation? We have service activities in cj20n.We have PR generated and planned cost through these activities.No matarials are there in Project. WBS has allredy been assigned to the Inquiry. Now my question is how to Link these services in DIP profile? In material Determination TAB of the DIP when i put this service no. it throws the message that it dosent find it in "MARA'  Table.
    Thanks in Advance,
    Ramakrishna

    Hi Sanjeev,
    Can you please elaborate meaning of service code.Is it the service no. what we have created in AC01 or something else. why because this no. is not accepting by the system in material determination TAB of the DIP.
    An  assistance in this regard is Highly appreciated.
    Thanks
    Ramakrishna

  • Unable to create Invoice through BAPI

    HI Experts!
    We are trying to create PO based (no GR and SES) invoice through "BAPI_INVOICECREATE". It is working perfectly for Material PO, but not for service PO. We are putting PO Quantity as '1' and UOM is "AU" for service. Getting error that "PO Quantity and UOM for iten 00001 is not in limit"
    Help!!!!

    I believe you can use UOM = EA as long as the rest of the P.O. is set correctly for the service and not GR of items.
    Please test in QA invirornment (if you have one) first. (not 100% sure it will work for your system but it does work for mine)

  • Creating invoice through bapi

    Hi experts,
    I am creating invoice by using BAPI_INCOMINGINVOICE_CREATE.
    this is for Invoice with Planned Delivery Costs.
    Here i am giving the following data.
    header data
    INVOICE_IND = x
    DOC_TYPE = kr
    doc_date
    post-date
    reff-doc-no = 3006828
    comp-code =
    diff-inv = 1110025
    curr = inr
    gr-amount = 50
    bline-date
    headertext
    del-costs
    del-costs-tax = v0
    po-ref-no = 3006828
    item data:
    invoice = 000001
    po-number =3006828
    po-it
    ref-doc
    ref-year
    ref-doc-it
    tax
    item-amount
    quantity
    po-unit
    po-pr-uom
    cond-type
    item-text
    Accounting data:
    invoice doc item = 000001
    serial no = 01
    tax = v0
    item amount = 50
    quantity = 5
    po unit =
    cmmt- item
    fund-cntr
    bus-area
    these are data I have given but it is not posted the invoice
    the following message is coming
    <b>account assignment 01 for purchasing document does not exist</b>
    Plz tell me what i have to do for this

    Hi nagaraj,
                  Can u tell me where can i find the purchase order is existed with
       Account group or not?
            thanks in advance
    regards,
    srinivas

  • BAPI create quotation - conditon record problem

    Dear experts,
    Plz help. Many thanks.
    Background:
    Due to special request, condtion type z replaces Z-table, i.e. for record value & used for calculation. Let's say condition record for Z is 0.12USD.
    When creating quotation via BAPI, the value of condtion type z will automatically pick 0.12USD once the output value of condtion type z is less than 0.01USD. Actually, the final value of condtion type z is 0.12 x ABC (one value). Let's say the final value is 0.003.
    Problem: In quoation, condition type z shows value 0.12USD but not 0.003USD.
    Request: How to make condition type z picks the final value, say 0.003USD via BAPI?

    Any advice?

  • 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

  • Hi i want to ceate customer through bapi with external no range not implici

    hi i want to create customer through bapi which facilitates to enter customer code(our own defined not the sequentially next no.)
    i have gone through F.M BAPI_CUSTOMER_CREATEFROMDATA1 BUT NOT ABLE TO UNDERSTAND HOW TO INPUT PARAMETER FOR CUSTOMER_CODE.
    PLEASE GUIDE ME IF ANY ONE AWARE ABOUT THAT.
    THANKS
    Moderator message: please don't use all caps from now on.
    Edited by: Thomas Zloch on Aug 4, 2010 6:12 PM

    If the iTunes database files are on that drive, launch iTunes with the Shift key(Windows) or Option key(Mac OS X) held down, select Choose Library, and navigate to it. The computer may need to be authorized to play protected content, and if the library contains rented movies, those won't play.
    If not, import the content to an iTunes library.
    (100371)

  • 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

  • How to create customer with bapi

    hi i want to create customer through bapi which facilitates to enter customer code(our own defined not the sequentially next no.)
    i have gone through F.M  BAPI_CUSTOMER_CREATEFROMDATA1 BUT NOT ABLE TO UNDERSTAND HOW TO INPUT PARAMETER FOR CUSTOMER_CODE.
    PLEASE GUIDE ME IF ANY ONE AWARE ABOUT THAT.
    THANKS

    Moderator message - Welcome to SCN.
    But please search the forum before asking a question. This has been discussed many times before. Also read the BAPI documentation - thread locked.
    Also, Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Rob

  • Problem in creating IR through BAPI_INCOMINGINVOICE_create BAPI

    Hi,
    Some problem in creating IR through the BAPI BAPI_INCOMINGINVOICE_create. I am able to see the IR number after executing the BAPI but unable to see the IR number in the table. The IR number is not getting updated in the database table even though we are doing the commit work after executing the BAPI. Could anyone help me out with this error.
    Regards,
    Ram

    First of all I am assuming that you did not get any error in the BAPI return structure (even though you see document number populated).
    Secondly,  I guess you tested the BAPI with SE37 and did not get any error (functionally there are a number of BAPIs available to post an invoice and it is important to figure out the correct BAPI - e.g. PO, non-PO invoice, invoice as a GL entry only, etc.).
    If that is not true (there is some error in posting), since during the BAPI call the next document number is obtained as a first step, you will see the document number but subsequently if for some reason it is not posted, you will see the result as you mentioned (no data in the database).
    If you are using correct BAPI and have no errors, then  in ABAP program make sure to call 'BAPI_TRANSACTION_COMMIT' after the BAPI call to post invoice.
    For non-SAP external system, you need not have to call the commit BAPI but just closing the connection to SAP will help.

Maybe you are looking for