To create bapi?(function module for bapi i.e. checks and update table)

Hi all,
  I want to know how to create BAPI?. means in function module how i hv to put checks and how i will update database table.
thanks and regards
sg

BAPI STEP BY STEP PROCEDURE: -
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
BAPI Programming guide: -
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
BAPI user guide: -
http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
Example:-
http://www.erpgenie.com/abap/bapi/example.htm
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm

Similar Messages

  • BAPI Function Module for SCM APO Tcode /SAPAPO/AC42

    Hi,
      I want to know the BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
       This BAPI FM should return the column values "Remaining Prod Alloc"  and "Incoming Order Quantity" when we give
       below details as inputs for the Tcode /SAPAPO/AC42
            Product Allocation Group
            Product
            Allocation Procedure
            prod Alloc step
            Product Alloc Object (Characteristics of Product Alloc Group)
            Plant (Characteristics of Product Alloc Group)
            Customer Group 5 (Characteristics of Product Alloc Group)
        Reward points if helpful.
    Thanks,
    Mich

    Hi,
    You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
    ProductAllocationAPO.DataInsert
    Interface to Import Product Allocation Data  Functionality
    This method is used to adopt data from OLTP systems for product allocation in the global availability check.
    You can do the following using the method:
    Adopt new data
    You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
    Change existing data
    You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
    The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
    Prerequisite
    To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
    Regards
    Vinod

  • BAPI Function Module for SCM APO Trans code /SAPAPO/AC42

    Hi,
       Is there any BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
       This BAPI FM should return the column values "Remaining Prod Alloc"  and "Incoming Order Quantity" when we give
       below details as inputs for the Tcode /SAPAPO/AC42
            Product Allocation Group
            Product
            Allocation Procedure
            prod Alloc step
            Product Alloc Object (Characteristics of Product Alloc Group)
            Plant (Characteristics of Product Alloc Group)
            Customer Group 5 (Characteristics of Product Alloc Group)
        Reward points if helpful.
    Thanks,
    Mich

    Hi,
    You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
    ProductAllocationAPO.DataInsert
    Interface to Import Product Allocation Data  Functionality
    This method is used to adopt data from OLTP systems for product allocation in the global availability check.
    You can do the following using the method:
    Adopt new data
    You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
    Change existing data
    You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
    The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
    Prerequisite
    To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
    Regards
    Vinod

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • Bapi function module for ME32k Transaction

    Hi all,
            Can any one tell me what is the BAPI function module for ME32K transaction . I am trying to create service agreements in this transaction.
    Even you can tell me if any other alternative procedure is there to create the service agreements in ME32K.
    Bye
    Srinivas

    Hi srinivas p ,
    Do you find some solution for this?! I have the same problem...
    Can you help-me?
    Patrícia.

  • BAPI/Function Module for approve Appropriation Request?

    Hi Friends,
    Please guide me for
    BAPI/Function Module for approve Appropriation Request?
    Regards
    Ricky

    Hello
    Check these BAPI
    BAPI_APPREQUEST_ADDVARIANT     Add a Variant to an Appropriation Request
    BAPI_APPREQUEST_CHANGE         Change an Appropriation Request
    BAPI_APPREQUEST_CHANGEVARIANT  Change Appropriation Request Variant
    BAPI_APPREQUEST_CREATE         Create Appropriation Request
    BAPI_APPREQUEST_DELETE         Deletion of an Appropriation Request
    BAPI_APPREQUEST_GETDETAIL      Display of an Appropriation Request
    BAPI_APPREQUEST_GETSTATUS      Display Status of an Appropriation Request
    BAPI_APPREQUEST_REMOVEVARIANT  Delete an Appropriation Request Variant
    BAPI_APPREQUEST_SETSTATUS      Setting System and User Status of Appropriation Request
    BAPI_APPREQUEST_SETSTATUSVARNT Setting of User and System Status on Variants

  • BAPI Function module for transaction ME32K for change

    Please let me know the name of the BAPI Function module for transaction ME32K for change the contract.

    Hi Krishan,
    I have checked but their is no BAPI called
    BAPI_CONTRACT_CHANGE.
    If I am wrong plz correct me with the procedure to view the above BAPI in SAP System.
    Regards,
    Nitin

  • BAPI/Function Module for transaction PR05

    Hi All,
    I am searching for BAPI/Function Module for tx PR05(Travel Expense Manager).
    Thanks.

    Check thread Transferring data into travel manager  for Carlos David Moreno Lozano answer in message Re: Transferring data into travel manager
    Regards,
    Raymond

  • BAPI/Function Module for tx PR05(Travel Expense Manager)

    Hi All,
    I am searching for BAPI/Function Module for tx PR05(Travel Expense Manager).
    Thanks.

    Hi All
    Thanks for your input.
    I choose BDC option for PR05 maintain. As the BAPIs are calling PR01.
    -RP

  • BAPI FUNCTIONAL MODULES FOR T codes FB50,FB60,KB31n,KP46

    Hi friends
    Can u suggest me BAPI function modules for T codes FB50,FB60,KB31n,KP46
    Thanks in advance

    Use BAPI_INCOMINGINVOICE_PARK
    Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
    Also tables ITEMDATA and RETURN are mandatory.
    Check the following sample code
    LOOP AT i_ekbe INTO wa_ekbe.
    CLEAR: wa_invoice_header,
    i_invoice_item,
    i_return,
    v_inv_doc_no,
    v_fisc_year,
    wa_return.
    REFRESH: i_invoice_item,
    i_return.
    Appending Invoice header Work Area
    wa_invoice_header-invoice_ind = c_x.
    wa_invoice_header-doc_date = sy-datum.
    wa_invoice_header-pstng_date = wa_ekbe-budat.
    wa_invoice_header-comp_code = c_100.
    wa_invoice_header-gross_amount =
    wa_invoice_header-currency = c_usd.
    wa_invoice_header-calc_tax_ind = c_x.
    Appending Invoice item data
    i_invoice_item-invoice_doc_item = '0001'.
    i_invoice_item-po_number = wa_ekbe-ebeln.
    i_invoice_item-po_item = wa_ekbe-ebelp.
    i_invoice_item-tax_code = ' '.
    i_invoice_item-item_amount = '20.00'.
    i_invoice_item-quantity = '10.000'.
    i_invoice_item-ref_doc = '5600000634'.
    i_invoice_item-ref_doc_year = '2006'.
    i_invoice_item-ref_doc_it = '10'.
    i_invoice_item-po_unit = 'EA'.
    i_invoice_item-COND_TYPE = 'VPRS'.
    APPEND i_invoice_item.
    Calling module BAPI_INCOMINGINVOICE_PARK
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
    EXPORTING
    headerdata = wa_invoice_header
    ADDRESSDATA =
    IMPORTING
    invoicedocnumber = v_inv_doc_no
    fiscalyear = v_fisc_year
    TABLES
    itemdata = i_invoice_item
    NFMETALLITMS =
    ACCOUNTINGDATA =
    GLACCOUNTDATA = i_gla
    MATERIALDATA = i_mat
    TAXDATA =
    WITHTAXDATA =
    VENDORITEMSPLITDATA =
    return = i_return.
    READ TABLE i_return INTO wa_return
    WITH KEY type = c_e.
    IF sy-subrc EQ 0.
    ENDIF.
    ENDLOOP.
    Reward if useful.

  • BAPI function module for FUNDS Update

    Hi All,
    Anybody can help us on BAPI function module for FUNDS Update in FI funds management module please.
    Thanks & Regards
    Srini

    Hi,
    We are writing a program to change / update the existing funds in table FMFINCODE funds master. Here we are using a function module called FM_FUND_CHANGE but we are not able to capture the return messages. So please suggest me any BAPI function module availble for the same. Tcode : FM5U
    Regards
    Srini

  • Function module for detailes description of Order and long text in task

    Hello gurus,
                       please help me with Function module for detaile description of Order and long text in task list(operation Tab)?
    regards,
    YK

    Hi, 
    You should be able to read the Order short text directly from table AUFK. The Order long text or task list long text can be read by using FM "Read_text". Use Goto> Header on every long text screen to identify the parameters that need to be passed hen using this FM.
    Regards
    Narasimhan

  • BAPI/ Function Modules for creating Settlement rules for Project in CJ01 .

    Hi Experts ,
    I need to create Settlement rules for WBS elements in Projects . Please let me know if there are any BAPI or Function Modules for the same . The Function Modules "k_settlement_rules_update" , "IBAPI_ALM_ORDERSRULE_CREATE" & 'K_SRULE_CREATE'
    are in "Not Released" status . so our practices does not allow us to use them .. please suggest any other BAPI or FM for creating Settlement rules .
    Thanks in advance ...
    Anil

    Hi ,
    Thanx for ur prompt reply , This function module is used for creating WBS elements . I didnot find any parameters or process to create settlement rule .. Please let me know how to use this or if there are any other BAPI available .
    Thanks
    Anil

  • BAPI/FUNCTION  module for the configure varient data(MRP3 -MM02)

    Hi all,
    I have  a requirenent to send the configure varient data(MRP3 -MM02) to another system.Please guide me how it can be created in receving system.ie please provide a function module or BAPI for the same.
    Thanks.
    Edited by: sanu debu on May 11, 2009 11:01 AM

    I am also looking for the same requirment . could you please let me know if you find any BAPI.

  • BAPI/Function module for BATCH SPLIT

    Hi,
    is there a BAPI/Function module to enter BATCH SPLIT data in an outbound delivery. I used tcode VL02N to create an Outbound delivery(FOR an STO). I can use 'BAPI_DELIVERYPROCESSING_EXEC' to creat an Outbound delivery, but need to know what to use to add BATCH SPLIT data.
    Thanks
    Raj

    Hi Raj,
    Check this thread..
    Re: Inserting Batch Split Items in Delivery
    Cheers
    VJ

  • Bapi function module  for the transaction VBO2 in 4.6 version

    can u please tell me the how to proceed for the uploading rebate agreement data into transaction VBO2(change rebate agreement) USING the which bapi function module in 4.6c version.

    I am also looking for the same requirment . could you please let me know if you find any BAPI.

Maybe you are looking for