BAPI To create RFQ in table EKKO

Hi ,
Is there any BAPI to create RFQ which updates entry in EKKO/EKPO table.( SAP Release 4.7)
Please do not suggest BAPI_QUOTATION_CREATEFROMDATA2 , I think this updates table VBAK.

No BAPI Function module or Normal Function module.
just use BDC

Similar Messages

  • Using BAPI to create RFQ in MM-Purchase ?

    Dear friends,
    Do you have any idea to create the RFQ via BAPI or Function module? If you have, please tell me. Thanks a lot!
    Best regards,
    Brian Liu

    I guess there is no BAPI For MM RFQ ,You have to use BDC to update or create.
    Thank you
    Seshu

  • FM needed to create an allocation table (WA01)

    I'm trying to find a FM or BAPI to create an allocation table (transaction WA01).
    I just find the FM W_FRM_ASSIGN_CREATE_ALLOCATION, but this FM is flag for update task, and it does not return the allocation table number created, also we can't pass parameters for the allocation table header (table auko)
    Alex
    thanks

    thanks, but these FM are not good! One is for update, I check the create one and you have yourself to pass the allocation table number and also it does not provide any error logging if the posting failed,
    Alex

  • BAPI to create an RFQ

    Hi everyone,
    Could anyone tell me if there is a BAPI for creating a Request For Quotation, please?
    I found several BAPIs that create a Quotation, such as BAPI_QUOTATION_CREATEFROMDATA, or BAPI_QUOTATION_CREATEFROMDATA2.
    If there are no BAPIs for RFQ, would it be possibile to use one of these 2, and modify the document in some way to get an RFQ? Has anyone tried something like this before?
    Thanks, and best regards
    Srdj

    Hi,
    You can use two BAPIs:
    BAPI_QUOTATION_CREATEFROMDATA
    BAPI_QUOTATION_CREATEFROMDATA2
    (1) BAPI_QUOTATION_CREATEFROMDATA ,this BAPI is released in 4.0A version .
    (2) BAPI_QUOTATION_CREATEFROMDATA2 this BAPI is released in latest version ,the kernal level patches provides more security when this BAPI is called from an external application across variuos networks.
    If ever using the BAPI internally with in sap or calling it from the application within the same network the only diff using the old BAPI wud be in the next future upgrades SAP wud not support the BAPI_QUOTATION_CREATEFROMDATA but the usage wise and functionality wise there is no diff.
    CODE
    Data: loc_bp type BAPIBUS1006_HEAD-BPARTNER.
    data: re_return like BAPIRET2 occurs 0.
    data: wa_return type BAPIRET2.
    data: re_order_header_in like BAPISDHD1.
    data: wa_BAPISDH1X type BAPISDH1X.
    data: order_partners like BAPIPARNR occurs 0 with header line.
    data: order_items_in like BAPISDITM occurs 0 with header line.
    data: order_items_sched LIKE bapischdl OCCURS 0 WITH HEADER LINE.
    data: g_vbeln like smovbak-vbeln,
    l_vbeln like smovbak-vbeln.
    move BUSINESSPARTNER to loc_bp.
    *delete line if middleware active.
    *loc_bp = '0030000309'.
    re_order_header_in-DOC_TYPE = 'TA'.
    re_order_header_in-SALES_ORG = 'NL01'.
    re_order_header_in-DISTR_CHAN = '02'.
    re_order_header_in-DIVISION = '01'.
    order_partners-partn_role = 'AG'.
    order_partners-partn_numb = loc_bp.
    append order_partners.
    order_partners-partn_role = 'WE'.
    order_partners-partn_numb = loc_bp.
    append order_partners.
    order_items_in-itm_number = '000010'.
    order_items_in-MATERIAL = MATERIAL.
    order_items_sched-itm_number = '00010'.
    order_items_sched-req_qty = '1'.
    append order_items_sched.
    append order_items_in.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    DESTINATION 'zorder'
    EXPORTING
    ORDER_HEADER_IN = re_order_header_in
    TESTRUN = ' '
    importing
    salesdocument = g_vbeln
    TABLES
    RETURN = re_return
    ORDER_ITEMS_IN = order_items_in
    ORDER_PARTNERS = order_partners
    order_schedules_in = order_items_sched.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    DESTINATION 'zorder'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = wa_return.
    Regards,
    Shiva Kumar

  • BAPI to create OBJK object list table

    Hello All,
    I'm using MPLAN_CREATE BAPI. It is a successfull BAPI to create mplan. Unfortunately i can not find a way to create OBJK list. In MPLAN_READ i can read object list. Unfortunately I can not create OBJK.
    Is there any BAPI for OBJK table?
    Thanks
    Volkan

    Volkan,
    I've not tried this myself, but try using the following FM in sequence:
    IWOL_SET_BRIWOL to set the new values
    IWOL_POST_WP_OBJECT_LIST to save the values
    PeteA

  • ME41 create - create RFQ - BAPI - Userexit

    Hello experts,
    I'm was trying to find a BAPI to create a request for quotation (RFQ).
    I read the thread [Re: BAPI to create Purchase Requisition;, so there seams to be no BAPI.
    For that reason I tried to solve the problem with batch input. It created a RFQ. But in further steps the transaction normally loops throught a amount of suppliers, the RFQ is directed to.
    CLEAR ls_bdc_data.
    ls_bdc_data-fnam = 'BDC_OKCODE'.
    ls_bdc_data-fval = '/00'.
    APPEND ls_bdc_data TO lt_bdc_data.
    ls_ctu_params-racommit = ''.
    ls_ctu_params-nobinpt = 'X'.
    ls_ctu_params-dismode = 'E'.
    * ls_ctu_params-updmode = 'S'.
    ls_ctu_params-nobiend = 'X'.
    CALL TRANSACTION 'ME41' USING lt_bdc_data OPTIONS FROM ls_ctu_params.
    Does anybody have an idea.
    Best regards,
    Andi

    Hi,
    I found the problem. The ME41 uses a COMMIT WORK in MM06EF0B_BUCHEN.
    * docu: process COMMIT WORK
    * function module, ME41 and ME59 sometimes using COMMIT AND WAIT
      IF no_commit IS INITIAL.             "for FM w/o COMMIT possible
        IF commit_wait IS INITIAL AND sy-tcode NE 'ME41'
          AND NOT ( ( fc_vorga EQ cva_ab OR NOT gf_me59n IS INITIAL )
                                       AND gf_atp_indicator EQ 'X' ).
          COMMIT WORK.
        ELSE.
          COMMIT WORK AND WAIT.
        ENDIF.
    For that reason I had to change the options:
      ls_ctu_params-racommit = 'X'.
      ls_ctu_params-nobinpt = 'X'.
      ls_ctu_params-dismode = 'E'.
      " ls_ctu_params-updmode = 'L'.
      ls_ctu_params-nobiend = 'X'.
      CALL TRANSACTION 'ME41' USING lt_bdc_data OPTIONS FROM ls_ctu_params.
    It works.
    Best regard,
    Andi

  • BAPI for creating variant table

    Hi,
    Cu61 and Cu60 are two transactions in SAP (comes under Variant Configuration) to create a variant table and fill its contents respectively.
         Now, I am trying to create a transaction in SAP such that on the screen it takes the name of the variant table to be created and an excel file as input from the user and thus create a variant table and fill its contents in the background. Now, ofcourse I have to do this through ABAP coding. I know how to upload the excel file into the internal table but I am not able to figure out that how should i create the variant table and transfer the contents of that internal table to the variant table? That is, how should i transfer the contents to the variant table?
    I have been able to find out the tables involved in the process viz, CUVTAB, CUVTAB_FLD, CUVTAB_VALC.
    Does there exist any BAPI for doing the same?
    Please Help.

    Hi Reema,
       Thanks for replying but this is not what I am looking for. I do not want to create a cluster table rather I want to create a variant table (it is a table used in variant configuration to store the combinations of a material whose characteristics can take varying values at the time of configuration). A table that we create through the transaction Cu61 and populate its contents through the transaction Cu60.
    However, I still tried your suggestion but it did not result in what I want.
    My problem still exists.

  • Finding BAPI/RFC/FM For ME41(Create RFQ)

    Hi,
       Plz help me for finding Bapi/Rfc/Fm for t-code ME41(Create RFQ).
    Thanks,
    Sunil Sahoo

    hi
    we have BAPI'S for many requirements like
    BAPI_VENDOR_CREATE
    BAPI_REQUISITION_CREATE.
    BAPI_QUOTATION_CREATEFROMDATA
    you try this BAPI
    ME_CREATE_REQUISITION_EXT
    hope this helps
    regards
    Aakash

  • BAPI for COSS and COSP Table to Create and Update

    Hi,
    Is there a BAPI for COSS and COSP for creating and/or updating these tables?
    Thanks

    hi ,
    u dont have any bapis for updatign specific tables
    bapis are generally used for updating a transaction i mean number of tables
    where is the use of the tables u can search bapis in transaction bapi
    and where are the tables used i guess in fi/co so u can search under them
    regards
    afzal

  • Unable to create RFQ in ME41 transaction

    Hi,
    I have been trying to create RFQ in ME41 transaction after providing the requisite entries. After click on Save button, I get a message mentioning "Document Created <RFQNum> and immediately I get a popup "Express document Update was terminated recieved from author <username>. And the RFQ number is not available in Table EKKO.
    Kindly suggest what should be the issue causing the RFQ created to be terminated.
    Thanks in advance.
    Thanks,
    Guru

    Hi,
    That's the message you get from the workflow. I think the workflow of RFQ must be implemented in ur company. Sometimes it gives this message bcoz of some functional related issues. Ask the MM consultant for furthur clarifications.
    Regards,
    Jeet K Bhatt

  • Unable to Create RFQ

    Hi,
    I have been trying to create RFQ in ME41 transaction after providing the requisite entries. After click on Save button, I get a message mentioning "Document Created <RFQNum> and immediately I get a popup "Express document Update was terminated recieved from author <username>. And the RFQ number is not available in Table EKKO.
    Kindly suggest what should be the issue causing the RFQ created to be terminated.
    Thanks in advance.
    Thanks,
    Guru

    hi
    I also have the same problem
    but i solve it.
    you should clean your spool from RSPO0041.
    after u execute this program from se38 also u should click
    - All request with min age
    - complete request with min age
    and just run it.
    take care
    Baki...
    Edited by: Baki Ozeke on May 4, 2010 11:15 AM

  • Need a Bapi to Create a purchase order

    Hi experts,
    Is there a Bapi, to create a 'Purchase Order' from an existing Purchasing document no. marked for deletion.
    Thanks in advance ,
    Hrashit Rungta

    Hi Experts,
    I have used BAPI_PO_CREATE1 to create a purchase order .
    I have successfully created a purchase order when i use this BAPI directly through SE37 ,
    supplying the required inputs.
    But now i am calling  this BAPI inside a program,
    Supplying the same inputs as earlier.
    Buit i am not able to generate a PO.
    I am getting the messages in the Return Table as :|Please enter items first
                                                                                    No instance of object type PurchaseOrder has been created. External referen
                                                                                    Document contains no items
    Can someone suggest What input am i missing ?
    Thanks in advance,
    Harshit Rungta

  • Bapi to  create customer Master

    Dear all,
    As far i know there is no standard bapi to create a customer.  There i s standard fm used her is SD_CUSTOMER_MAINTAIN_ALL. I tried to create customer master using this and making the function module as remote enabled. i tried to created a  zbapi and use this fm inside of this. Please tell me if any idea on this.If any body knows   please help me in this.
    Regards,
    Madhu.

    Dear Alain
    Once again thanks for your reply. I passed customer no to extract data of a customer . But it is not extracting any data .
    I am thinking to fill all the fields of the table by seeing hoe it is extracting the data . can you give me some idea on this .
    DATA: ls_i_main   TYPE cmds_ei_main,
            ls_e_main   TYPE cmds_ei_main,
            lt_custs    TYPE cmds_ei_extern_t,
            ls_cust     TYPE cmds_ei_extern,
            ls_head     TYPE cmds_ei_header,
            ls_instance TYPE cmds_ei_instance.
      CONSTANTS: lc_obj_task TYPE cmd_ei_object_task VALUE 'M'.
      ls_instance-kunnr = '0000100001'.
      ls_head-object_instance = ls_instance.
      ls_head-object_task = lc_obj_task.
      ls_cust-header = ls_head.
      APPEND ls_cust TO lt_custs.
      ls_e_main-customers = lt_custs.
      CALL METHOD cmd_ei_api_extract=>get_data
        EXPORTING
          is_master_data = ls_e_main
        IMPORTING
          es_master_data = ls_i_main.
          "es_error       = pe_error.
    Regards,
    madhu.
    Edited by: madhurao123 on Mar 31, 2010 1:17 PM

  • How to call a BAPI when there are structure tables as Input.

    Environment: Data Services 3.1  SAP ECC 6.
    I can run simple BAPI's where I just populate the Input Parameters.
    My question is around more complex BAPI's.
    I created a data flow that looks like:
    Row Generation > Query > Unnest Query > Template table.
    Inside of the query I created a new Function and called the BAPI_PROJECT_MAINTAIN.
    This BAPI requires adding data as part of the Structure Tables in the BAPI.  I see these tables in the SAP Data Store and I also see a single input field in the Data Services Function Wizard that desribes the Structure.
    My question is - how do I populate the fields when it comes from a Structure Table in the BAPI?

    A table parameter is a schema, so you need an upfront query where you create that schema with the nested data. The schema is then mapped to the table parameter, the columns of the schema have to match by name.
    https://wiki.sdn.sap.com:443/wiki/display/BOBJ/Calling+RFCs-BAPIs

  • Need to fill a new field in table EKKO

    Hi all,
    i created a new field (ZZCODE) in the table EKKO. Well, now i would like to fill this field when the user save his purchase order. Which user-exit or BADI can i use ?
    I tried a lot but either i can't change the parameters values either the FM is not raise.
    Thanks for help.

    HI CECG,
    Yesterday itself i tried this example,
    i will forward u the document to ur mail id,
    plz provide me the mail id so that i will forward u the doc..
    STEP-BY-STEP PROCEDURE FOR SCREEN EXIT IN ME21n TRANSACTION
    Introduction:
                        SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.
                        To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.
    Requirement:
                         You have to add the custom field in SAP standard table EKKO. Then we have to place the field in ME21N screen. When user enters any input into the field it should get updated in the database.
    Note:
                         EKKO table is meant for Purchasing document header, you should add the field in the header level for ME21n screen. There you are provided with customer sub screens where you can add the field in the screen.
    In EKKO table
    include : cl_ekkodb
    in that u can add the field u want
    Procedure:
    1.     You have to create a field in the Custom Include of standard table, after creating activate it.
    2.     Double click on the include then you can add your custom field here.
    Find out the Required Enhancements:
    1.     Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘Information system’.
    MM06E005 : CUSTOMER FIELDS IN PURCHASING DOCUMENT
    2.     Then mention the particular package name of the transaction you need to      enhance. Then you will be shown the list of Enhancement components for that particular package.
    3.     Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.
    MM06E005 is the Enhancement component we are using here.
    Development
    Creating a Project to include the enhancement:
    1.     Go to transaction CMOD and create a project.
    2.     Enter a description for the project.
    3.     Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar.
    4.     Click on the components in Application Toolbar.
    5.     Here you will be shown the function module exits, screen exits and Include tables.
    6.     Click on the custom screen SAPLXMO6 – 0101 in which it suits the requirement of adding the custom field to the layout.
    7.     Click on layout and go to get from dictionary and select the field you need to add and click ok.
    8.     Place the field in the layout and activate it.
    9.     After that you come back and check the respective function module in which you need to implement the code. So, we need to import the data from sub screen for purchasing document header. Therefore we have chosen  the  EXIT_SAPMM06E_008.
    10. Write code in the Function Exits to synchronize the programs:
                           Now, code has to be written in the function modules EXIT_SAPMM06E_008 so that data flows to and fro between the main SAP program and custom sub screen program. Double clicking on the exit we get the following screen.
    11. Double click on the include and write the required code inside it. Then activate it.
    12. Now come back and activate the entire project.
    13. Now go to ME21n transaction and create a purchase order by giving all the mandatory fields including custom field we have created. Go to SE16n, check whether the field got updated in the database or not.
    Finally it gets updated in the database.
    IF U PROVIDE ME UR MAILID I CAN SEND U THE DOCUMENT WHICH IS VERY CLEAR FOR PURCHASE ORDER
    PLZ REWARDS POINTS IF HELPFUL,
    Ganesh.

Maybe you are looking for

  • How to fix problem with installed and working add-ons disappearing after update to 20.0.1?

    I updated to version 20.0.1 of Firefox the other day. I had the theme Qute 3++ 1.19 installed and it took 3 restarts of the browser before it kicked in and worked again, for some reason. Then I noticed that my MillBar Community toolbar 3.18.0.7 had d

  • Is there a way to automatically hide used clips??

    is there a way to hide the used clips?? iMovie 10.0.4

  • Error occurred while packaging application

    I make a ANE,and want run app with ios simulator. but I always get the error, anyone can help me ? think you 我做了个ANE的包,但我想用模拟器运行时,老提示下面的错误,ane中有使用到的framework有: MessageUI.framework,CoreText.framework等 谁能帮我,谢谢! Error occurred while packaging the applic

  • Burn error... ugh!

    I have 8.4GB of content that I am attempting to author for dvd-9. My test burn keeps failing with the following error: "A suitable marker could not be found in the required layer break range" I have my layer break set to "automatic" but it fails. I t

  • How to convert a number in to a time string?

    I have calculated a time in minutes: 3.75. But I will show it as a time string: 3:45 or 00:03:45 or anything like this. Yes, I can convert it manually, but then I can not use it in a diagram. I have a formula that calculates times for a given diamete