Bapi BAPI_QUOTATION_CREATEFROMDATA2

Hello
I have the follow problem:
I want to create sales quotation with bapi BAPI_QUOTATION_CREATEFROMDATA2.
It works fine.
Now, I have to fill the partner address with the fields STR_SUPPL1, STR_SUPPL2, etc.
I use the structures BAPIPARNR and for the fields STR_SUPPL1, STR_SUPPL2 the structure BAPIADDR1.
But it doesnu2019t work
I tried with the field ADDR_LINK in the structure BAPIPARNR, but Iu2019m not successfull.
Can someone explain me, what I have to do
Thanks for any help
Daniel

Hi Daniel,
I am not sure on which release of SAP you are running, Have you looked at the OSS Note: 195768, if not this should be a good starting point.
Regards,
Chen

Similar Messages

  • In BAPI ' BAPI_QUOTATION_CREATEFROMDATA2'

    Hi all,
    In BAPI ' BAPI_QUOTATION_CREATEFROMDATA2', I given all manditory parameters ( QUOTATION_HEADER_IN -import parameter and QUOTATION_PARTNERS - tables ).
    But If I execute, its returning below messages.
    VP        112    Please enter sold-to party or ship-to party
    V4         219    Sales document  was not changed.
    Can u please tell me where to specify the sold-to and ship-to in this BAPI.
    Thanks,
    HP.

    Hi,
    We have also encountered the same problem while loading contract orders which is similar to quotation.
    We have done a recording for the Tcode VA42 with some document numberand written the same BDC program for the  (change the quotation) immediately after the BAPI function call.
    So the target quantity got loaded properly through BDC.
    Please revert if you need any help.
    Regards,
    Soumya.

  • Problem in creating configuration bapi  BAPI_QUOTATION_CREATEFROMDATA2

    Hi  Gurus,
    I am creating quotation for config material using bapi BAPI_QUOTATION_CREATEFROMDATA2.
    Quotation is getting created without configuration.
    I am passing data to following bapi  tables  for configuration.
    QUOTATION_CFGS_REF STRUCTURE  BAPICUCFG OPTIONAL
    QUOTATION_CFGS_INST STRUCTURE  BAPICUINS OPTIONAL
    QUOTATION_CFGS_PART_OF STRUCTURE  BAPICUPRT OPTIONAL
    QUOTATION_CFGS_VALUE STRUCTURE  BAPICUVAL OPTIONAL
    Please help.
    Thanks in advance

    Hi,
    I am not able to create Quotation with incomplete configuration using BAPI_QUOTATION_CREATEFROMDATA2. I am able to save quotation with incomplete configuration in system but not with above mentioned BAPI. Can you help me out?
    Thanks

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

  • Unable to Open the BAPI in SE37 Transaction

    Hi Friends,
    I have entered the bapi  BAPI_QUOTATION_CREATEFROMDATA2 in SE37 transaction and clicked on DISPLAY button.
    but I am not able to see the code (or) importing/exporting parameters of the BAPI,because I wanted to check what are mandatory parameters,but I am getting the Message as 'PROCCESSING CANCELLED'.
    Please help me in finding the issue?
    Regards,
    Xavier.P

    Hi Gemini,
    In se37 transaction in the input field, i have entered the 'BAPI_QUOTATION_CREATEFROMDATA2' and clicked on the button ' DISPLAY',but in the status bar i am getting the messsage as 'PROCESSING CANCELLED'.
    I think in some transaction something has to be done,so that this can be viewd in SE£7 tcode.
    Regards,
    Xavier.P

  • BAPI_QUOTATION_CREATEFROMDATA2 pricing condition question

    I am using XI to pass sales data from SQL Server into IDOC QUOTATION_CREATEFROMDATA201 to be processed by BAPI BAPI_QUOTATION_CREATEFROMDATA2 for the purpose of created new sales quotations.
    I am having a problem with pricing. I am populating a PR00 condition value within QuotationConditionsIn and the corresponding entries in QuotationConditionsInx. The data makes it into the new quotation, but there is a problem...there are 2 PR00 conditions. An existing one created by SAP automatically and the one from the IDOC, which has the proper value but is in state "inactive".
    Is there a way to tell SAP to use the incoming PR00 condition value and/or remove or deactivate the auto-generated PR00 condition record?
    Any help would be greatly appreciated.
    Thanks,
    Nathan

    Hi Thomas!
    Then we can go further in note 593246:
    you should
    1. Switch for activating the new condition item handling:
    Import parameter LOGIC_SWITCH-COND_HANDLE = 'X'.
    6. Addition of a condition with amount '0.00':
    ORDER_CONDITIONS_IN-ITM_MUMBER = '000010'
    ORDER_CONDITIONS_IN-COND_TYPE = 'PR00'
    ORDER_CONDITIONS_IN-COND_VALUE = '0,0000'
    ORDER_CONDITIONS_IN-CURRENCY = 'EUR'
    ORDER_CONDITIONS_INX-ITM_MUMBER = '000010'
    ORDER_CONDITIONS_INX-COND_TYPE = 'PR00'
    ORDER_CONDITIONS_INX-UPDATEFLAG = 'I'
    ORDER_CONDITIONS_INX-COND_VALUE = 'X'
    ORDER_CONDITIONS_INX-CURRENCY = 'X'
    Result: The condition is created with amount '0.00'.
    Regards,
    Christian

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

  • BAPI Error in creating quotation

    Hi all,
    In BAPI ' BAPI_QUOTATION_CREATEFROMDATA2', I given all manditory parameters ( QUOTATION_HEADER_IN -import parameter and QUOTATION_PARTNERS - tables ).
    But If I execute, its returning below messages.
    Please enter sold-to party or ship-to party
    Sales document was not changed.
    Can u please tell me where to specify the sold-to party and ship-to party in this BAPI.
    Thanks
    Murali.

    Hi Murali,
    I tried creating a quotation in my system using the same BAPI, and i was able to create one with the very basic info and without having to pass any ITEM details.
    QUOTATION_HEADER_IN-DOC_TYPE  
    QUOTATION_HEADER_IN-SALES_ORG 
    QUOTATION_HEADER_IN-DISTR_CHAN
    QUOTATION_HEADER_IN-DIVISION  
    QUOTATION_HEADER_INX-DOC_TYPE  
    QUOTATION_HEADER_INX-SALES_ORG 
    QUOTATION_HEADER_INX-DISTR_CHAN
    QUOTATION_HEADER_INX-DIVISION
    (* You dont need to set the update flag)
    QUOTATION_PARTNERS-PARTN_ROLE
    QUOTATION_PARTNERS-PARTN_NUMB
    Try passing just the above fields in SE37, and let me know.
    Regards,
    Chen

  • Are there any standard BAPIs to change/create/delete quote data on CRM side

    Hello Friends
    I am getting prepared for the XI integration of the data (quotes related) from our application to CRM. Are there any specific BAPIs that you guys are using to create, modify, delete a quote in CRM.
    Any feedback or advice will be highly appreciated.
    Tks
    Ram

    Hi Ram,
    Check these BAPIs:
    BAPI_QUOTATION_CREATEFROMDATA2
    BAPI_CONTRACT_CREATEFROMDATA
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • BAPI_QUOTATION_CREATEFROMDATA2 : Multiple line for same Characteristics

    Hi ALL,
    Hi Thomas,
    I am using BAPI "BAPI_QUOTATION_CREATEFROMDATA2" to create quotation.I have one question on Configuration part.
    I am able to update configuration but I need MULTIPLE line for the same CHARECTERISTICS.
    Below is the code.
    Please notice the record of table " i_quotation_cfgs_value". I want to show TWO record for Char 'Z_COIL_THICKNESS' with value 0.2 and 0.3.Do I need to increment Instance ID or Confid ID or do I need fill table QUOTATION_CFGS_PART_OF.Please help.
    CONSTANTS:
    conf_id TYPE char6 VALUE '000010',
          inst_id TYPE char8 VALUE '00000001'.
    w_quotation_schedules_in-req_qty = '5'.
    w_quotation_schedules_in-itm_number = '000010'.
    w_quotation_schedules_in-sched_line = 1.
    APPEND w_quotation_schedules_in TO i_quotation_schedules_in.
    CLEAR w_quotation_schedules_in.
    w_quotation_cfgs_ref-posex = '000010'.
    w_quotation_cfgs_ref-root_id = inst_id.
    w_quotation_cfgs_ref-config_id = conf_id.
    APPEND w_quotation_cfgs_ref TO i_quotation_cfgs_ref.
    w_quotation_cfgs_refinst-posex = '000010'.
    w_quotation_cfgs_refinst-config_id = conf_id.
    w_quotation_cfgs_refinst-inst_id = inst_id.
    APPEND w_quotation_cfgs_refinst TO i_quotation_cfgs_refinst.
    w_quotation_cfgs_value-config_id = conf_id .
    w_quotation_cfgs_value-inst_id = inst_id .
    w_quotation_cfgs_value-charc = 'Z_COIL_THICKNESS'.
    w_quotation_cfgs_value-value = '0.2'.
    APPEND w_quotation_cfgs_value TO i_quotation_cfgs_value.
    CLEAR w_quotation_cfgs_value.
    w_quotation_cfgs_value-config_id = conf_id .
    w_quotation_cfgs_value-inst_id = inst_id .
    w_quotation_cfgs_value-charc = 'Z_COIL_THICKNESS'.
    w_quotation_cfgs_value-value = '0.3'.
    APPEND w_quotation_cfgs_value TO i_quotation_cfgs_value.
    CLEAR w_quotation_cfgs_value.
    Code Formatted by: Alvaro Tejada Galindo on Jan 5, 2010 10:26 AM

    Hi Madhu,
    Pass below four table.
    i_quotation_cfgs_ref
    i_quotation_cfgs_refinst
    i_quotation_cfgs_inst
    i_quotation_cfgs_value
    "config_id" should be same as Item number.
    To define the connection between the sales order item and the configuration you must pass match this-->(ORDER_ITEMS_IN-PO_ITM_NO = ORDER_CFGS_REF-POSEX)
    Let me know if you need any other info
    Code :
    CONSTANTS:
    lc_conf_id TYPE char6 VALUE '000010',
    lc_inst_id TYPE char8 VALUE '00000001',
    lc_item_no TYPE cu_posex VALUE '000010',
    w_quotation_cfgs_ref-posex = lc_item_no. "'000010'.
    w_quotation_cfgs_ref-root_id = lc_inst_id.
    w_quotation_cfgs_ref-config_id = lc_conf_id.
    APPEND w_quotation_cfgs_ref TO i_quotation_cfgs_ref.
    CLEAR w_quotation_cfgs_ref.
    w_quotation_cfgs_refinst-posex = lc_item_no. "'000010'.
    w_quotation_cfgs_refinst-config_id = lc_conf_id.
    w_quotation_cfgs_refinst-inst_id = lc_inst_id.
    APPEND w_quotation_cfgs_refinst TO i_quotation_cfgs_refinst.
    w_quotation_cfgs_inst-inst_id = lc_inst_id.
    w_quotation_cfgs_inst-config_id = lc_conf_id.
    w_quotation_cfgs_inst-obj_type = 'MARA'. "wa_zrvs_mat_char_h-obtab
    w_quotation_cfgs_inst-class_type = 300. "wa_zrvs_mat_char_h-klart.
    w_quotation_cfgs_inst-obj_key = "Material number"
    w_quotation_cfgs_inst-quantity = 1.
    APPEND w_quotation_cfgs_inst TO i_quotation_cfgs_inst.
    CLEAR w_quotation_cfgs_inst.
    w_quotation_cfgs_value-config_id = lc_conf_id .
    w_quotation_cfgs_value-inst_id = lc_inst_id .
    w_quotation_cfgs_value-charc = wa_zrva_tdccodes-zzcharcteristics.
    w_quotation_cfgs_value-value = wa_zrva_tdccodes-zvalue.
    w_quotation_cfgs_value-valcode = 1.
    APPEND w_quotation_cfgs_value TO i_quotation_cfgs_value.
    CLEAR w_quotation_cfgs_value.
    w_quotation_items_in-po_itm_no = lc_item_no. "'000010'."Imp for config
    w_quotation_items_in-itm_number = lc_item_no. "'000010'.
    APPEND w_quotation_items_in TO i_quotation_items_in.
    CLEAR w_quotation_items_in.
    Roshan

  • 'BAPI_QUOTATION_CREATEFROMDATA2'  behaves different while called from SE38

    Dear Friends
    I am trying to run the bapi 'BAPI_QUOTATION_CREATEFROMDATA2' and 'BAPI_TRANSACTION_COMMIT' in proper sequence as recommended by SAP.
    I am entering the minimum data recommended by SAP help on this BAPI.
    When I run the above senario manually from transaction SE37 and selecting
    from the menu  Function Module -> Test -> Test Sequence,
    everything works fine and this also creates a quote and when I check, it
    is adding lots of extra related data.
    However, when I call the same two functions from another program (SE38),
    even though I am entering the same Data, I get different behaviour and
    also the quote is not getting created. When I check the ls_return value,
    it says that 'sold-to-party' is missing.  I don't know why this problem
    doesn't arise when I run the BAPI manually from SE37.
    I would appreciate if you can please give me any feedback or some expert comments.
    Please see the SE38 program that I am using to test these two BAPIs.
    ==========================================================
    *& Report  ZQUOTECREATE_TEST
    report  zquotecreate_test.
    data: ls_quotation_header_in        type  bapisdhd1,
          ls_behave_when_error          type  bapiflag-bapiflag,
          ls_quotation_partners         like  bapiparnr occurs 1 with header line,
          ls_return                     like  bapiret2  occurs 1 with header line.
    ls_quotation_header_in-distr_chan = '12'.
    ls_quotation_header_in-division = '00'.
    ls_quotation_header_in-sales_org = '1000'.
    ls_quotation_header_in-doc_type = 'AG'.
    ls_behave_when_error              = 'P'.
    ls_quotation_partners-partn_role = 'SP'.
    ls_quotation_partners-partn_numb = '1012'.
    call function 'BAPI_QUOTATION_CREATEFROMDATA2'
      exporting
        quotation_header_in            = ls_quotation_header_in
        BEHAVE_WHEN_ERROR              = ls_BEHAVE_WHEN_ERROR
    importing
      salesdocument                  =  ls_salesdocument
      tables
        return                         = ls_return
        quotation_partners             = ls_quotation_partners
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
       wait          = ' '
    IMPORTING
      RETURN        =

    Dear friends
    I figured out the conversion problem involving 'QT' and 'AG'.
    There is this flag 'CONVERT' which doesn't affect while running manually but while calling from SE38, I have to turn it on by putting a value 'X" and so the AG-QT issue is resolved
    So if you can please respond to the other problem with error 'Please enter sold-to-party or ship-to-party', I would appreciate.
    Again with the same test data, the above error message doesn't show up while running the BAPI manually from SE37 and QUOTE gets created successfully. However, when the same BAPI is called from SE38 program I get the above error message and QUOTE doesnt get created.

  • NUMCONVERT and DENOMINATO in bapi_quotation_createfromdata2.

    When we use the bapi 'bapi_quotation_createfromdata2' create quotaiton, and have added the value for these fields,it can create quotation sucessfully,but the these two fileds value have not changed,so wish somebody can tell me how to pass the value ?
    thks.
    Samuel Liu

    Hi,
    We have also encountered the same problem while loading contract orders which is similar to quotation.
    We have done a recording for the Tcode VA42 with some document numberand written the same BDC program for the  (change the quotation) immediately after the BAPI function call.
    So the target quantity got loaded properly through BDC.
    Please revert if you need any help.
    Regards,
    Soumya.

  • No quotation found even after message "Quotation 20000051 has been saved"

    Dear SAP friends
    I am trying to createa  quote using the bapi (BAPI_QUOTATION_CREATEFROMDATA2).
    It runs with the following message
    233 SALES_HEADER_IN has been processed successfully
    233 SALES_ITEM_IN has been processed succesfully
    555 The sales document is not yet complete: Edit data
    311 Quotation 20000051 has been saved.
    However when I goto transaction VA23, the field is automatically populated by '200000051'.
    When I click on Search, I get a message
    "SD document 20000051 is not in the database or has been archived"
    What am I doing wrong? Atleast if I can see this quote, I can go to Edit and look for incomplete log, but unfortunately I can't see the Quote at all.
    Any feedback will be highly appreciated
    Tks
    Ram

    Dear Ram Prasad,
    T. Code: SE11
    You may check the Tables: CDHDR (Header-Change Details) & CDPOS (Item-Change Details) for your Sales Doc. No.: 20000051
    A similar Problem for your reference, Might be Helpful:
    [SD Doc. not in DB or Archieved|BAPI_CUSTOMERRETURN_CREATE don't save number in vbak]
    Best Regards,
    Amit

  • Creation of quotation with custom fields

    Hai,
         We have created two custom fields in VA21(Quotation creation), how can we handle these custom fields while executing BAPI of quotation creation, could anybody suggest the procedure.
                                                                                    Thank you
                                                                                    Regards
                                                                                    Srinivas

    If you are using the BAPI :  BAPI_QUOTATION_CREATEFROMDATA2 , then it has the EXTENSIONIN table parameter which can be used for filling the cusomter fields.
    Search SDN ,If you need to understand how to populate this parameter, there are so many exmaples in the forum on how to build the extension parameter table.
    Mathews

  • Item check on creation of quotation

    Hi I am using bapi BAPI_QUOTATION_CREATEFROMDATA2  to create quotation. I am uploading item data using EXCEL via Portal(EP).problem is that if EXCEL contain incorrect entries then it is giving error message only for 1 line(first) items. I think it is standard when we create Quot. using VA21. My requirment is that when we upload form excel after when we try to create quotation using Enterprice Portal then it should display all line items error message with line number. like
    As standard  BAPI return message format.i.e. Material ABCD is incorrect. So please replay what logic should i Add.
    Thanks in advance

    Problem solved using loop into internal table of excel.

Maybe you are looking for

  • Increasing size of image?

    i sometimes need to add files to an image file ive made, the .dmg, and i was wondering if theres anyway to increase the size of the dmg as i need to add more to it or do i have to make a new bigger image file?

  • Windows 7 64bit should I upgrade?

    Hi, I am running PP CS3, Windows XP Pro 32 bit, on a Dell 490 with a dual core 3Ghz xeon CPU, 4 GB RAM, RAID 0 HDD (2 drives) for Capture files, NVidia Quarto 3500 graphics card. I am running Windows 7 32bit on a old Sony notebook for a little while

  • Flash CFForm to show cfinput fields in CFDIV

    I have a flash form with several fields that work properly. I need to add a submit button and not have the page refresh when clicked. The values from the cfinput fields should display in a CFDIV that is only visible after the "submit" button is press

  • Modification date of every field

    Hi gurus, I need to get the date of modification of every field in a specific table. I'm working under Oracle9, and the undo retention is too small to try select ... as of ... Restoring is not an option. I have been told that there is a way to find w

  • Drag & Drop Disabled?  Mar 20 upgrade, OS X 10.5.2

    I can select files and folders on my desktop, but I can't move them? They're frozen? I can open, get info, and etc. I can run app's and all, but can't drag and drop? That's in my user account. In the "root" account, I can drag and drop? What can it b