BAPI por ME31K

Hi
Does somebody knows wich BAPI can i use for create contracts like ME31K,  i was searching but i see there are mentioned several BAPIS like  BAPI_CONTRACT_CREATE , BAPI_AGREEMENT_MAINTAIN , BAPI_PO_CREATE, etc.
Even  BAPI_CONTRACT_CREATEFROMDATA  was mentioned but i know this one is for VA41 not for ME31K.
Does some body can help me please.
Regards
Frank

Thanks
Because my SAP version i must use AGREEMENT bapi   instead CONTRACT because this last does not exists.
I'm gonna try to make it work.
Thanks a lot.
Regards
Frank

Similar Messages

  • BAPI por return delivery

    Hi experts.
       I need a BAPi or FM to make a return delivery of goods receipt ( i nedd to return some lines of the initial good movement ) . Do you know some BAPI or FM??
       Thanks.

    Hi Jorge,
    You need to use FM  BAPI_PO_CREATE to create the return delivery. The sample code is as attached.
    CALL FUNCTION 'BAPI_PO_CREATE'
        EXPORTING
          po_header                = g_po_head
          po_header_add_data       = g_po_head_add_data
          header_add_data_relevant = header_add_data_relevant
          skip_items_with_error    = 'X'
        IMPORTING
          purchaseorder            = g_exp_ebeln
        TABLES
          po_items                 = g_po_item
          po_item_schedules        = g_po_sched
          return                   = g_return
          po_business_partner      = g_po_business_partner.
    Thanks.

  • How to update  Service Contract using BAPI/FM for ME31K

    Hi ,
    I am using BAPI BAPI_CONTRACT_CREATE to create contracts.
    It works fine, the only problem i am facing is while updating line item with item category "D' its simply skips the item category and create a item. The item category is blank when i see in transaction ME33K.
    When i create it using ME31K transaction with line item item category type  "D' its ask me to fill the services also for that line item.
    My question is is there any BAPI which i can use to update the Services for item line with item category  D.
    Thanks
    Amar

    Hi Amar,
    Not sure if this would help you but you can consider writing different logic (probably a BDC) for item category 'D', and use BAPI for all other cases (if 'D' is the only exception).
    BAPI documentaion says:
    *External services (planned and unplanned services) are not supported.
    Creation of configurations is not supported*
    Regards,
    Shyam

  • LSMW - Upload purchase contracts (ME31K) with BAPI

    I'm trying to upload some contracts from the legacy to SAP ECC 6.0 using LSMW.
    I've already worked with Direct Input and Batch Input record with LSMW but never with BAPI.
    I found business object BUS2014 / Message Type - PURCONTRACT_CREATE but I don't know how to continue the process. Could you give me some suggestions?
    Thanks in advance,
    Guiza

    Hi,
    I saw some examples but I'm still with the same problem. At step 4 Maintain Structure Relations I have this error: "No target structures could be found - Message no. /SAPDMC/LSMW_OBJ_030001".
    What could be?
    Step 1 - Business Object Method -
    BUS2014
    Method: Create
    Step 2 - I've create 2 structures
    Header and Item
    Step 3 - I associate the fields that I want to upload.
    I don't know but could the error be because the Idoc Inbound Processing?
    Thanks,
    Guiza

  • Net Price not Updating Using BAPI : BAPI_CONTRACT_CREATE

    Dear Experts,
    I am facing an issue while creating CONTRACT using the bapi: BAPI_CONTRACT_CREATE. I am creating the Contract based on data from my excel sheet. And we are maintaining the INFO RECORDS for the same materials.
    In the excel sheet we are providing the NetPrice (NETPR) and creating the Contract. My issue is " instead of taking the Net Price from the excel it is taking the Net Price from Info Records". For Example, if for a Particular material the Net Price in our excel file is 125, after bapi execution, the net price is updating as 100 instead of 125 in Contract Creation( ME31k-ME33K). In the Info Records we are maintaining this net price(100) for that material.
    Thanks in Advance for your response.
    Regards,
    Prasad

    you can use BAPI_CONTRACT_CREATEFROMDATA
    * Create Contract Order Number [BAPI_CONTRACT_CREATEFROMDATA]
      CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
           EXPORTING
             contract_header_in      = header
             convert                 = 'X'
           IMPORTING
             salesdocument           = v_order
           TABLES
             return                  = t_return
             contract_items_in       = itab_item
             contract_items_inx      = itemx
             contract_partners       = t_partners
             contract_conditions_in  = t_conds
             contract_conditions_inx = t_condsx
             contract_data_in        = t_contract
             contract_text           = t_texts.

  • How to create Item Services (ME31K) with  BAPI_AGREEMENT_MAINTAIN

    Hi
    I need to create Contracts (Agreements) like ME31K with some BAPI . I know i can use BAPI_AGREEMENT_MAINTAIN .
    But , also to cteate the Items ; i need to create Services for each Item .
    (Actually i need even to create several conditions , that is Differents Prices for Date ranges, for each Service.)
    But i just see the BAPI  table IMT_AGREEMENT_ITEMS  for create the Agreement Items , but there is not any table for create the Services for each Item.
    Does somebody knows if It is possible to create the Services for each Item with this or other BAPI ?     Please help.
    NOTE. I can not use BAPI_CONTRACT_CREATE because my SAP version.
    Regards
    Frank

    Do it by ABAP programming.
    Regards

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • BAPI for T.Code F-02

    Hi Dear Friends,
    Thanks in Advance.
    Is there any BAPI for the Transaction F-02.
    Regards;
    Sridhar.J

    Hi.
    Business Add-in
    050S008                                FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger
    BAS_CIN_LTAX1F02                       Tax interface
    BAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN
    ISPLIT                                 Online Split: Cash Discount, Exchange Rate Differences
    I_AUTHORITY_ITEM                       Extended Authorization Check for Document Display (FB03)
    I_DOC_DISP_LI                          Diversion to Document Items (FB03)
    I_FB08_SUBST_BUDAT                     FB08: Check Posting Date for Reversal of FI Doc. with FB08
    I_GET_INV_PYMT_AMT                     BAdI for determining the payment amount for an invoice
    I_HEADER_SUB_1300                      Screen Enhancement for Document Header SAPMF05A
    I_PAYREF_BADI_010                      BAdI: Payment Reference Number
    I_RES_ITEM_CURRENCY                    Document of Residual Item with Invoice Currency
    I_TRANS_DATE_DERIVE                    Derive BKPF-WWERT from Other Document Header Data
    NVOIC_FI_INBOUND                       BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)
    FESR000_BADI_001                       BAdI for Own Processing of POR Item
    VFZ                                    Replacement for Function Modules of Function Group FVFZ
    C_QUANTITY_GET                         Transfer of Quantities to Accounting - Customer Exit
    DJUST_NET_DAYS                         Change to Net Due Date
    ADI_ENJ_ALT_ADR                        Go to alternative vendor/customer data
    ADI_F040_SCREEN_600                    Screen Enhancement on F040 0600 Document Header
    ADI_FDCB_SUBBAS01                      Screen Enhancement 1 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS02                      Screen Enhancement 2 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS03                      Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS04                      Screen Enhancement 4 on FDCB Basic Data Screen (010, 510)
    ADI_FDCB_SUBBAS05                      Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)
    ADI_PRKNG_NO_UPDATE                    BAdI for Deactivating Update of Parked Documents
    Enhancement/ Business Add-in            Description
    Enhancement
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data
    F180A001                                Balance Sheet Adjustment
    F050S007                                FIDCCH Outbound: Influence on IDoc for Document Change
    F050S006                                FI Outgoing IDoc: Reset Clearing in FI Document
    F050S005                                FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S004                                FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S003                                FIDCC2: Change IDoc/do not send
    RFAVIS01                                Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00                                Line item display: Checking of selection conditions
    RFKORIEX                                Automatic correspondence
    SAPLF051                                Workflow for FI (pre-capture, release for payment)
    F050S001                                FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002                                FIDCC1: Change IDoc/do not send
    Regards.
    Jay

  • BAPI BAPI_ACC_EMPLOYEE_EXP_POST

    Hi masters.
    Does anybody can send me any example about using BAPI BAPI_ACC_EMPLOYEE_EXP_POST. I am trying to use that BAPI to post travel expenses, by filling in DOCUMENTHEADER, with the following data:
    DOCUMENTHEADER                                                                               
    OBJ_TYPE                       HRPAY                       
           OBJ_KEY                        000354160010000261          
           OBJ_SYS                        DR3CLNT110                  
           USERNAME                       KJDH935                     
           HEADER_TXT                     TESTE WF                    
           OBJ_KEY_R                                                  
           BUS_ACT                                                    
           COMP_CODE                      AZB                         
           AC_DOC_NO                                                  
           FISC_YEAR                      2011                        
           DOC_DATE                       07.01.2011                  
           PSTNG_DATE                     07.01.2011                  
           FIS_PERIOD                     01                          
           DOC_TYPE                       BT                          
           REF_DOC_NO                     0010000261                  
           COMPO_ACC                                                  
           TAX_COMP_CODE                                              
           REASON_REV                                                 
           REF_DOC_NO_LONG                                            
           NEG_POSTNG                                                 
    and ,also, two lines in ACCOUNTGL table:
    ITEMNO_ACC GL_ACCOUNT COMP PSTNG_DATE DO AC_DOC_NO  FISC FI STLMNT_ REF_KEY_1    REF_KEY_2    REF_KEY_3            ITEM_TEXT                                                                               
    0000000001 26101025   AZB  07.01.2011 BT            2011 01 201101                                                 TESTE CONTABILIZAÇÃO POR BAPI                   
    0000000002 56700101   AZB  07.01.2011 BT            2011 01 201101                                                 TESTE CONTABILIZAÇÃO POR BAPI                   
    and two mor lines in CURRENCYAMOUNT table:
    ITEMNO_ACC CU CURRE AMT_DOCCUR                     EXCH_RATE    AMT_BASE                       EXCH_RATE_V CUR
                                                                                    0000000001    BRL                        300,0000                                      0,0000     0,00000    
    0000000002    BRL                        300,0000                                      0,0000     0,00000    
    When a test the BAPI, I get the following messages:
    E RW                   609 Error in document: HRPAY 000354160010000261 DR3CLNT110          
    E F5                   354 Account 26101025 in company code AZB cannot be directly posted to
    E F5                   354 Account 26101025 in company code AZB cannot be directly posted to
    W KI                   281 Do not assign any objects in cost accounting to account 26101025

    These are functional errors - talk to your functional analyst.
    Rob

  • Bapi for miro  document creation

    Hi,
    can any one help me on how to use bapi " BAPI_INCOMINGINVOICE_CREATE" FOR UPLOADING TRANSACTION OF MIRO . IF POSSIBLE SAMPLE CODE
    THANKS

    Hi,
    You can see the documentation, See below
    Please give me point if you find it is useful
    Thanks
    Ramesh
    FU BAPI_INCOMINGINVOICE_CREATE
    Short text
    Invoice Verification: Post Invoice
    Functionality
    You can use this method to create and post invoices.
    When passing on the header data, you use the field INVOIC_IND to determine whether the system posts a credit memo or an invoice. If the field is blank, the system posts a credit memo. If you enter an X, the system posts an invoice.
    If you want to enter an incoming invoice for a returns order, you should leave the INVOICE_IND field blank.
    As in the online transaction, the system updates the purchase order history and stock valuation data in Materials Management. The system creates accounting documents in Accounting.
    Using this method, you can:
    Enter and post invoices with multiple account assignment
    Change the account assignment of invoices, add account assignments, and post the invoices
    Enter invoices for blanket purchase orders
    Enter and post invoices for purchase orders containing planned delivery costs
    Enter and post invoices containing unplanned delivery costs
    Enter and post subsequent debits/credits
    Use document types with external number assignment
    Enter and post invoices with withholding tax
    Enter and post invoice with more than one vendor line and different payment methods and terms of payment
    Enter and post invoices for returns orders
    Enter and post invoices for transportation service providers
    Enter and post invoices for external service purchase orders
    Post to G/L accounts
    Post to material accounts
    Enter and post invoices for a one-time vendor
    Enter and post invoices with a different payee
    Restrictions
    The following fields in Financial Accounting are not passed on:
    POR subscriber number
    Bank details
    Payment reference
    House bank ID
    Nota Fiscal
    Notes
    The following authorization object is checked using activity 01:
    M_RECH_WRK Authorization to create invoices in certain plants
    Transfer
    You use the structure HeaderData to transfer the invoice header data.
    You use the structure AddressData to transfer the address data of a one-time vendor or a different payee of the incoming invoice.
    Tables ItemData and AccountingData contain the invoice item data. The table TaxData contains the tax information for theinvoice.
    Tables ItemData and AccountingData contain the item data and the incoming invoice.
    The table TaxData contains the tax information on the incoming invoice.
    The table GlAccountData contains data on posting to a G/L account and the table MaterialData contains data on posting to a materialaccount.
    Using table WithTaxData you can transfer withholding tax information.
    Using table VendorItemSplitData you can distribute the gross amount to several vendor line items with different methods of payment and terms of payment.
    Return
    The invoice document number and the fiscal year are returned as key fields for the invoice.
    Return messages
    Messages are returned in the parameter return. The parameter documentation shows the return codes and their meanings.
    Further Information
    The method can only carry out your function if no error messages were generated in the "Return" table. This is the case if the header data and all the items were processed successfully.
    Transaction control is not implemented. The calling program therefore has to execute the 'Commit Work' itself after this method has been successfully invoked (i.e. if no errors were reported in the Return parameter).
    Example: Incoming Invoice
    This example shows the header data that you need to enter in table Headerdata and the item data that you need to enter in table Itemdata to post an invoice.
    Purchase order: 10 pieces of material A at 10 USD/piece
    Goods receipt: 10 pieces of material A
    You receive an invoice against this purchase order, with reference to purchase order number 4500007491, order item 10, for a quantity of 10 pieces of material A and an amount of 116 USD including 16% sales tax. Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): 1000
    GROSS_AMOUNT (Gross amount): 116.00
    CURRENCY (Currency key): USD
    CALC_TAX_IND (Calculate tax): X
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500007491
    PO_ITEM (Purchase order item): 00010
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 10
    PO_UNIT (Unit of measure): PC
    For more information, see the parameter documentation for tables HeaderData and Itemdata.
    Example: Incoming Invoice in Foreign Currency, Goods-Receipt-Based
    Invoice Verification and Tax Information
    This example specifies the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata and the tax information that you need to enter in table TaxData to post an invoice in a foreign currency.
    Purchase order: 10 pieces of material A at 10 USD/piece
    First goods receipt: 4 pieces of material A
    Second goods receipt: 6 pieces of material A
    You receive an invoice against this purchase order, with reference to purchase order number 4500007505, order item 10, goods receipt document 50010095, 2000, item 1. The invoice is for a quantity of 4 pieces of material A, a gross amount of 46.60 USD and 16% sales tax (6.60 USD). Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 46.60
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500007505
    PO_ITEM (Purchase order item): 00010
    REF_DOC (Goods receipt document): 50010095
    REF_DOC_YEAR (Fiscal year of current period): 2000
    REF_DOC_ITEM (Goods receipt document item): 1
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 40.00
    QUANTITY (Quantity): 4
    PO_UNIT (Unit of measure): PC
    Table TaxData
    TAX_CODE (Sales tax code): VN
    TAX_AMOUNT (Tax amount in document currency): USD 6.60
    For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData.
    Example: Incoming invoice for blanket purchase order
    This invoice shows which header data you need to enter in table HeaderData, which item data you need to enter in table ItemData, and which account assignment data you need to enter in table AccountingData in order to post an incoming invoice for a blanket purchase order.
    You receive an invoice for the blanket PO 4500015172, PO item 10 for an amount 110 USD incl. sales tax at 10%. You want to distribute the invoice amount to the cost centers 1200 and 1500. Enter, for example, the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 02.19.2001
    PSTING_DATE (Posting date): 02.21.2001
    COMP_CODE (Company code): 1000
    GROSS_AMOUNT (Gross amount): 110
    CURRENCY (Currency): USD
    CALC_TAX_IND (Calculate tax): X
    Table ItemData
    INVOICE_DOC_ITEM (Item in the invoice document): 00001
    PO_NUMBER (PO number): 4500015172
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 100
    Table AccountingData
    1st line: Change account assignment data
    INVOICE_DOC_ITEM (Document item in invoice document): 0001
    SERIAL_NO (Serial number for the acc. assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 30
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1200
    2nd line: Add unplanned account assignment
    INVOICE_DOC_ITEM (Document item in invoice document): 0001
    XUNPL (Unplanned acct. assignment from IV): X
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 70
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1500
    In the case of a blanket purchase order, the following fields for quantities and units of measurement must not be filled in the tables ItemData and AccountingData:
    Quantity (QUANTITY)
    PO_UNIT (PO unit of measure)
    PO_UNIT_ISO (PO unit of measure in ISO code)
    PO_PR_QNT (Quantity in PO price unit of measure)
    PO_PR_UOM (PO price unit of measure)
    PO_PR_UOM_ISO (PO price unit of measure in ISO code)
    For more information, see the parameter documentation for tables HeaderData, ItemData, and AccountingData, or in the SAP Library under Logistics Invoice Verification.
    Example: Change account assignments and add unplanned assignments
    This example shows the header data that you need to enter in table Headerdata, the item data that you need to enter in table Itemdata, and the account assignment information that you need to enter in table AccountingData to change, add, and post account assignments for an invoice. If you want to change or add account assignments, there must be a non-valuated goods receipt or no goods receipt in the system. Goods-receipt-based invoice verification is specified.
    Purchase order: 300 pieces of material A at 1 USD/piece
    Goods receipt: 300 pieces of material A
    This purchase order is subject to account assignment. You receive an invoice for it, refering to purchase order number 4500006846, order item 10, goods receipt document 50008849, 2000, item 1. The invoice is for a quantity of 100 pieces of material A, with a gross invoice amount of USD 116.00, including 16% sales tax. You want to change the planned account assignment for the second account assignment item and add an unplanned account assignment. Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 08.05.2000
    PSTNG_DATE (Posting date): 08.08.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 17.40
    CALC_TAX_IND (Calculate tax automatically): X
    PMNTTRMS (Terms of payment key): 0001
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500006846
    PO_ITEM (Purchase order item): 00010
    REF_DOC (Goods receipt document): 500008849
    REF_DOC_YEAR (Fiscal year of current period): 2000
    REF_DOC_ITEM (Goods receipt document item): 1
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    Table AccountingData
    Row 1: Change second account assignment item
    INVOICE_DOC_ITEM (Invoice document item): 0001
    SERIAL_NO (Account assignment serial number): 02
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Amount in document currency): 10.00
    QUANTITY (Quantity): 10
    PO_UNIT (Order unit): PC
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1200
    Row 2: Add unplanned account assignment
    INVOICE_DOC_ITEM (Invoice document item): 0001
    XUNPL (Unplanned account assignment in Invoice Verification): X
    TAX_CODE (Tax code): VN
    ITEM_AMOUNT (Amount in document currency): 5.00
    QUANTITY (Quantity): 5
    PO_UNIT (Order unit): PC
    GL_ACCOUNT (G/L account number): 890000
    COSTCENTER (Cost center): 1200
    For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData, or Logistics Invoice Verification in the SAP Library.
    Example: Invoice with Planned Delivery Costs
    This examples shows the header data that you need to enter in table HeaderData, the item data that you need to enter in table ItemData, and the tax information that you need to enter in table TaxData to post an invoice containing planned delivery costs.
    Purchase order: 100 pieces of material A at 1 USD/piece
    Goods receipt: 100 pieces of material A
    You receive an invoice for this purchase order refering to purchase order number 4500006986, order item 10, for a quantity of 100 pieces of material A and 136 USD, including 16% sales tax and 20 USD planned delivery costs. Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_DATE (Document date): 08.10.2000
    PSTNG_DATE (Posting date): 08.12.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 136,00
    Table ItemData
    Row 1: Posting the purchase order item
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500006986
    PO_ITEM (Order item): 00010
    TAX_CODE (Sales tax code): VN
    ITEM_AMOUNT (Item amount): 100.00
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    Row 2: Posting the planned delivery costs
    INVOICE_DOC_ITEM (Invoice document item): 00002
    PO_NUMBER (Order number): 4500006986
    PO_ITEM (Order item): 00010
    ITEM_AMOUNT (Item amount): 20.00
    QUANTITY (Quantity): 100
    PO_UNIT (Unit of measure): PC
    COND_TYPE (Condition type): FRB1
    Table TaxData
    TAX_CODE (Sales tax code): VN
    TAX_AMOUNT (Tax amount in document currency): 16.00
    For more information, see the parameter documentation for tables HeaderData, ItemData, and TaxData.
    Example: Incoming invoice with withholding tax.
    This example shows you what header data you can enter in table HeaderData, and what item data and withholding tax information you can enter in table TaxData in order to park an incoming invoice with withholding tax.
    Purchase order: 10 pieces of material A at $10
    Goods receipt: 10 pieces of material A
    You receive an invoice for this delivery with reference to purchase order number 4500007505, PO item 10, GR document 50010095 2000, Item 1. The invoice is for a quantity of 10 pieces and a gross amount of 100 USD. You have to pay 10% withholding tax for the gross amount. Enter the following data:
    Table HeaderData
    INVOICE_IND (Invoice/Credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): WT01
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 100 USD
    Table ItemData
    INVOICE_DOC_ITEM (Item from invoice document): 00001
    PO_NUMBER (PO number): 4500007505
    PO_ITEM (PO item): 00010
    REF_DOC (GR document): 50010095
    REF_DOC_YEAR (Fiscal year of the current period): 2000
    REF_DOC_ITEM (Item in a GR document): 1
    TAX_CODE (Tax code): V0
    ITEM_AMOUNT (Item amount): $100
    QUANTITY (Quantity): 10
    PO_UNIT (Unit of measure): PC
    Table WithTaxData
    SPLIT_KEY (Grouping key for withholding tax split): 0001
    WI_TAX_TYPE (Code for withholding tax type): R1
    WI_TAX_CODE (Withholding tax code): 01
    WI_TAX_BASE (Withholding tax base amount): 100
    WI_TAX_AMT (Withholding tax amount in doc. currency): 10.00
    For more information, see the parameter documentation for tables HeaderData, ItemData, and WithTaxData.
    Example: Incoming invoice with amount split.
    This example shows you what header data you need to enter in table HeaderData, what item data you enter in table ItemData, and what information you can enter in table VendorSplitData in order to create an invoice with an amount split.
    Purchase order: 10 pieces of material A at 10 USD
    Goods receipt: 10 pieces of material A
    You receive an invoice for this purchase order with reference to PO number 4500007505, PO item 10, GR document 50010095, item 1. The invoice is for a quantity of 10 pieces and a gross amount of 100 USD. You want to distribute the gross amount to two vendor lines. 40% of the gross amount should be paid immediately by check, and 60% of the gross amount should be paid within 14 days, taking into account a 3% cash discount. Enter the following data:
    Table HeaderData
    INVOICE_IND (Invoice/Credit memo): X
    DOC_DATE (Document date): 05.20.2000
    PSTNG_DATE (Posting date): 05.23.2000
    COMP_CODE (Company code): 0001
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 100.00
    Table ItemData
    INVOICE_DOC_ITEM (Item from the invoice document): 00001
    PO_NUMBER (PO number): 4500007505
    PO_ITEM (PO item): 00010
    REF_DOC (GR document): 50010095
    REF_DOC_YEAR (Fiscal year for the current period): 2000
    REF_DOC_ITEM (Item from a GR document): 1
    TAX_CODE (Tax code): V0
    ITEM_AMOUNT (Item amount): 100
    QUANTITY (Quantity): 10.00
    PO_UNIT (Unit of measure): PC
    Table VendorItemSplitData
    1st vendor line
    SPLIT_KEY (Grouping key for split in the vendor line): 0001
    SPLIT_AMOUNT (Gross invoice partial amount in doc. currency): 40.00
    PYMT_METH (Payment method): S
    TAX_CODE (Tax code): V0
    PMNTTRMS (Payment terms key): 0001
    2nd vendor line
    SPLIT_KEY (Grouping key for split in the vendor line): 0002
    SPLIT_AMOUNT (Gross invoice partial amount in doc. currency): 60.00
    PYMT_METH (Payment method): U
    TAX_CODE (Tax code): V0
    PMNTTRMS (Payment terms key): 0003
    For more information, see the parameter documentation for tables HeaderData, ItemData, and VendorItemSplitData.
    You recieve an invoice with reference to the order number 4500006846, order item 10. The invoice is for a 100 pieces of material A, with a gross amount of 150.80 USD, including 16% value-added tax. The invoice includes a G/L account posting of 10 USD to account 400000 in company code 1 and a material account posting of material MAT01 for 20 USD.
    Enter the following data:
    Table HeaderData
    INVOICE_IND (post invoice/credit memo): X
    DOC_DATE (Document date): 05.08.2000
    PSTNG_DATE (Posting date): 08.08.2000
    COMP_CODE (Company code): 1000
    CURRENCY (Currency): USD
    GROSS_AMOUNT (Gross amount): 150,80
    CALC_TAX_IND (Calculate tax): X
    PMNTTRMS (Terms of payment): 0001
    Table ItemData
    INVOICE_DOC_ITEM (Invoice document item): 00001
    PO_NUMBER (Purchase order number): 4500006846
    PO_ITEM (PO item): 00010
    TAX_CODE (tax code): VN
    ITEM_AMOUNT (Amount in document currency): 100
    QUANTITY: 100
    PO_UNIT (Unit of measure): ST
    Table GlAccountData
    INVOICE_DOC_ITEM (Document item in invoice document): 00001
    GL_ACCOUNT (G/L account): 400000
    ITEM_AMOUNT (Amount in document currency): 10,00
    DB_CR_IND (Debit/credit indicator): S
    COMP_CODE (Company code): 0001
    TAX_CODE (Tax code): VN
    COSTCENTER (Cost center): 1
    Table MaterialData
    INVOICE_DOC_ITEM (Document item in invoice document): 0001
    MATERIAL (MATERIAL): MAT01
    PLANT (Valuation area): 0001
    DB_CR_INP (Debit/credit indicator): S
    ITEM_AMOUNT (Amount in document currency): 10,00
    QUANTITY (Quantity): 1
    PO_UNIT (PO unit of measure): ST
    You can find further information in the parameter documentation for tables HeaderData, ItemData, GlAccountData and MaterialData or in the SAP Library under Logistics - Invoice Verification
    Example: Invoice for a purchase order for external services and service-based invoice verification.
    This example shows you which header data to enter in table HeaderData, which item data to enter in table ItemData, and which account assignment data to enter in table AccountingData in order to enter and post an incoming invoice.
    You receive an invoice with reference to the PO number 4500000191, PO item 10. Two services A and B are invoiced, each with a quantity of six service units. Service A has a gross amount of 580 USD incl. 16% tax. Service B has 812 USD incl. 16% tax. Service A has an account assignment of 50% to both cost centers 1000 and 2000. Service B also has an account assignment to cost centers 1000 and 3000. The service acceptance was made for both services jointly with the service entry sheet number 1000000022.
    Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_TYPE (Document type): RE
    DOC_DATE (Document date): 01.10.2002
    PSTNG_DATE (Posting date): 01.10.2002
    COMP_CODE (Company code): 0001
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 1392.00
    CALC_TAX_IND (Calculate tax automatically): X
    PMNTTRMS (Payment terms key): 0002
    Table ItemData
    First Entry for Service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000001
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.00
    QUANTITY (Quantity): 1
    PO_UNIT (Unit of measure): LE
    SHEET_NO (Service entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    Second Entry for Service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000002
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250,00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): LE
    SHEET_NO (Service entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    First Entry for Service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000002
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350.00
    QUANTITY (Quantity): 1
    PO_UNIT (Unit of measure): LE
    SHEET_NO (Service entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Second Entry for Service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000004
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350,00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): LE
    SHEET_NO (Service entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Table AccountingData
    First account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000001
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): LE
    GL_ACCOUNT (G/L account number): 400000
    COSTCENTER (Cost center): 1000
    Second account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000002
    SERIAL_NO (Sequential number of the account assignment): 02
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): LE
    GL_ACCOUNT (G/L account number): 400000
    COSTCENTER (Cost center): 2000
    First account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000003
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): LE
    GL_ACCOUNT (G/L account number): 400000
    COSTCENTER (Cost center): 1000
    Second account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000004
    SERIAL_NO (Sequential number of the account assignment): 03
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): LE
    GL_ACCOUNT (G/L account number): 400000
    COSTCENTER (Cost center): 3000
    For more information, see the parameter documentation for the tables HeaderData, ItemData, and AccountingData, or see the SAP Library under Logistics Invoice Verification.
    Example: Incoming invoice for a one-time vendor
    This example demonstrates the procedure for entering and posting an incoming invoice for a one-time vendor.
    You do not need to provide table AddressData with data to do this. If you do not enter any data in the table AddressData, the address data for the one-time vendor is transfered exactly from the purchase order to the invoice.
    If you use table AddressData to transfer the data, the system copies the address data for the one-time vendor from the purchase order to the invoice and then overwrites or adds to the data with the fields from table AddressData.
    The name 'SAP AG', postal code '60000', and street and house number 'Neurottstraße 16' are stored in the purchase order for the one-time vendor. You receive an invoice with the one-time vendor address 'SAP AG', postal code '69190' and city 'Wallorf'.
    You enter the following data:
    Table AddressData
    ACC_1_TIME (Indicator: One-time vendor): X
    NAME (Name): SAP AG
    POSTL_CODE (Postal code): 69190
    CITY (city): Walldorf
    The invoice is posted with the following one-time vendor address data: Name 'SAP AG', street and house number 'Neurottstraße 16', postal code '69190', city 'Walldorf'.
    For more information, see the parameter documentation for table AddressData
    Example: Incoming invoice for a different payee
    This example demonstrates which data you must enter in table AddressData in order to enter and post an invoice for a different payee.
    You receive an invoice for a different payee with name 'SAP AG', postal code '69190', city 'Walldorf', bank number '38070724' and account number '4711'.
    Enter the following data:
    Table AddressData
    ACC_1_TIME (Indicator: One-time vendor): ' '
    NAME (Name): SAP AG
    POSTL_CODE (Postal code): 69190
    CITY (City): Walldorf
    BANK_NO (Bank number): 38070724
    BANK_ACCT (Bank account number): 4711
    For additional information, see the parameter documentation for table AddressData
    Parameter
    HEADERDATA
    ADDRESSDATA
    INVOICEDOCNUMBER
    FISCALYEAR
    ITEMDATA
    ACCOUNTINGDATA
    GLACCOUNTDATA
    MATERIALDATA
    TAXDATA
    WITHTAXDATA
    VENDORITEMSPLITDATA
    RETURN
    Exceptions
    Function group
    MRM_BAPI

  • ME31K BADI for checking Data in Commitment Plan/ Acct assignment

    I am trying to find a BADI or User Exit to check Account Assignment / Commitment Plan Data, to work in TCodes ME31k or ME32K.
    I tried using ME_PROCESS_OUT_CUST , But its only for BAPI.
    Any Similar BADI to check in ME31K or ME32K.
    Appricate any help

    alex ice wrote:
    Hi.
    > 'Can we do any derivation or check to get the account assignment populated automatically in the Commitment Plan ?
    >  Account assignments screens are avaliable in the commitment plan so i think we dont want to apply this note.'-i don't think so, because as said in this note it's coding error.
    Thank you. I will impliment the Corrections
    >
    > 'We have alaready activated the Fields to be transferred. I dont have a clue where we will set the account assignemnt specifically for contracts (in the case of PR and PO it comes automatically as per the derivation rule mainted)'-it derives not from contract,but from  Earmarked fund,which generates from Com. plan.
    Ok.Then i think some issue in the Earmarked fund.. How we can check this. Please guide.
    >
    > 'One more error : While running transaction FM_MRP_PR if the budget exceed the PR not pupulating the account assignment filed (if it is in the budget it is populating) and we are getting error message "Instance 10000120 of object type Purchase Requisition could not be changed ,Message no. BAPI003" Please advice how we can overcome this error.' when you get this error(also put it's number), if while changing, then check PR item number,if it's=0 then customize in OMI5
    Message is  PR No  "10000120     10     Annual budget exceeded by 560,400.00 QAR (FM PB Availability Control) for document item 00010 ,
    "Instance 10000120 of object type Purchase Requisition could not be changed ,Message no. BAPI003"
    I have checked transaction OMI5 and Plant with Item PR 10 and Item no stock trans Res is 100. and hope this is correct.
    Please Guide.
    Regards
    Hari

  • LSMW - BAPI (HRMASTER - SAVEREPLICAMULTIPLE)

    Estimados todos,
    Que tal!!!, tengo una super duda espero que halguien me pueda ayudar... tengo un error al procesar "Start IDoc Processing", esto sucede por lo siguiente, estoy realizando una grabacion con infotipos 0000, 0001 y 0002..
    El error es "No entry in HR_INFOTYPE_HEADER for infotype 0000 for object ,P ,00320030" y "No entry in HR_INFOTYPE_HEADER for infotype 0001 for object ,P ,00320030", esto sucede por que en "Maintain Field Mapping and Conversion Rules" solo me permite poner un solo campo en "E1BPHRINF HR: Transported Infotypes and Subtypes for an Object", campo "Infotype".
    Saben como puedo usar varios infotipos en esta BAPI...
    Gracias

    try to run this program RHALEBAPIPROOF
    when you are  importing Cluster Data if Errors Occur in BAPI.
    try this,
    for the above program you need to pass the index.
    regards
    vijay

  • Is there any BAPI for creating Debit memo request

    Hi all,
    I used BAPI_ACC_BILLING_POST ,but it does not seems to help me.Is there any other BAPI for creating Debit memo request which takes.
    Thanks and regards,
    Meena.

    hi,
    I could find the following
    Exit Name           Description
    J_3RSINV
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    Regards,
    Manish

  • ME31k     BAPI_CONTRACT_CREATE

    Hello gurus,
          Can any one help me how to creat contract by using BAPI_CONTRACT_CREATE. I am able to creat the contract by using me31k transaction.
           I am passing the same data that i have given in me31k to BAPI_CONTRACT_CREATE. even through the contract is not been created.
          Can any one help me out in this issue....
    Thanks,
    Feroz.

    Hi,
    It is impossible to know what the cause would be without more information.
    There MUST be an error log of some sort, with an error message that gives some idea of what the problem is?
    But firstly check the authorisation of the user id being used to run the BAPI. It could be that they don't have the authorisation to create contracts.
    But without more info we cannot tell.
    Steve B

  • Issue with BAPI CONTRACT CREATE while uploading pricing conditions

    Hi Experts
                        I am using BAPI CONTRACT CREATE to create Purchase Contract ME31K
    I am facing the issue while passing pricing conditions  Could you please help me regarding this
    Could you please help me along with this what are the values has to pass
    Thanks
    Vijay Kumar Reddy

    Hi Experts
                        I am using BAPI CONTRACT CREATE to create Purchase Contract ME31K
    I am facing the issue while passing pricing conditions  Could you please help me regarding this
          gs_oucondition-item_no = w_data-evrtp.  
          gs_oucondition-serial_id = '1'.     
          gs_oucondition-cond_count = '01'.     
          gs_oucondition-cond_type = w_data-cond1.     
          MOVE w_data-amnt1 TO gs_oucondition-cond_value.     
          gs_oucondition-currency  = w_data-curr1.     
          gs_oucondition-numerator   = '1'.     
          gs_oucondition-denominator = '1'.     
          gs_oucondition-change_id   = 'I'.     
          APPEND gs_oucondition TO gt_oucondition.     
          CLEAR gs_oucondition.
          gs_ouconditionx-item_no = w_data-evrtp.     
          gs_ouconditionx-serial_id = '1'.
          gs_ouconditionx-cond_count = '01'.     
          gs_ouconditionx-item_nox = c_x.     
          gs_ouconditionx-serial_idx = c_x.     
          gs_ouconditionx-cond_countx = c_x.     
          gs_ouconditionx-cond_type = c_x.     
          gs_ouconditionx-cond_value = c_x.     
          gs_ouconditionx-currency  = c_x.     
          gs_ouconditionx-numerator   = c_x.     
          gs_ouconditionx-denominator = c_x.     
          APPEND gs_ouconditionx TO gt_ouconditionx.     
          CLEAR gs_ouconditionx.
    Could you please help me along with this what are the values has to pass.
    these are the parameters passing to the condition structure while executing bapi i am getting error like enter quantity conversion.
    but with the same data i am able to create contract using SE37 by directly executing the Function module.
    and if i have net price in my excel sheet also i am able to create contract using my program.
    the only problem with pricing conditions alternatively there will be no net price..
    Please really it will be a challenging question....
    Thanks
    Vijay Kumar Reddy

Maybe you are looking for

  • Moving iPhone App Project from one Mac to Another...HELP!!

    Hey guys, Im new to programming. I made a simple app and I want to most it from one mac to another. I copied the folder and tried running it but it gave me a whole bunch of errors along the lines of: - directory not writable - permission failed - err

  • IPod Touch 2nd gen. audio dropouts

    I just received my 2nd gen 8GB touch. Transferred one album to it for testing. The sound every now and then drops out for a split second. Never in the same spot in music though- so it's not a bad rip or faulty transfer. The dropouts also occur when l

  • Cannot set File Association in Vista to Acrobat Reader 9.0

    After installing Acrobat Reader 9.0 on Vista Ultimate SP1, I am no longer able to associate the pdf extension with Reader. When attempting to change the pdf file association, Reader is not offered as an option. When clicking the Browse button and poi

  • Using FTP to publish an iWEb site

    I have my own personal domain name and hosting space so using the FTP feature in iWeb. I can fill out all the info, and 'Test the Connection' which it passes, but the 'Publish' button has dimmed as is the the menu option. Any ideas? I've tried making

  • Heart rate sensor

    hello There, i bought the  xperia Z1because off its ipx features and to use it as a heartrate monitor during sports. as I used to do with my samsung galaxy S2. however the bluetooth heartrate sensor doesn't function on the xperia Z1. does anyone know