Posting Vendor invoice details using  BAPI_ACC_DOCUMENT_POST

Hi Techies
M uploading f-02 data using bapi: BAPI_ACC_DOCUMENT_POST.. But m facing a problem while uploading vendor invoice details.. here goes the vendor line item data ..
doc type : KR
posting key :40
vendor account :410000
Amount :100
cost center: 1000
Text: text.
in  BAPIACAP09(bapi for vendor item) i cant find costcenter which i can see in GLdata... where should i pass this cost center value???
Thanks...

For vendor invoices GLaccount will have cost centre data.the first line is always of vendor when you create vendor invoice in which vendor number is passed.
In GLaccount apss your cost centre data.
Nabhheet

Similar Messages

  • Vendor invoice creation using BAPI BAPI_ACC_DOCUMENT_POST

    Hi,
    I am trying to create vendor invoice(FB60) using BAPI_ACC_DOCUMENT_POST.
    Could anyone please let me know what all mandatory fields we have to pass in vendor item and header to create this ?
    Regards,
    Anubhuti Pandey

    Hi,
    Please call the FM BAPI_ACC_DOCUMENT_POST and try with the following parameters:
    Function module to post the accounting document
          CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'           
    "      EXPORTING
              documentheader    = w_documentheader                                          
    "      TABLES
              accountgl               = i_accountgl
              accountreceivable = i_accountreceivable
              accountpayable     = i_accountpayable
              currencyamount    = i_currencyamount
              return                     = i_return
              contractitem           = i_contractitem.
    The required fields in the header document:
        w_documentheader-bus_act    
        w_documentheader-username    = sy-uname.                                             "Username
        w_documentheader-header_txt 
        w_documentheader-comp_code 
        w_documentheader-doc_date  
        w_documentheader-pstng_date  = sy-datum. 
        w_documentheader-trans_date                                 " Transaction date value as per document date
        w_documentheader-fisc_year   = sy-datum(4).      
        w_documentheader-doc_type      
    Pass the necessary information in the account GL and accounts payable.
    I hope this helps you in some way.

  • Error 'No tax code found for difference' in Posting Vendor Invoice IDOC

    Hi All,
    I am getting error message 'No tax code found for difference' while posting Vendor Invoice IDOC into SAP. IDOC type is INVOIC02. There is no difference in PO price, Invoice price and even Standard price. then why this  error message? Other Vendor EDI settings are done ( OBCA, OBCD, OBCE etc). Is there any thing specific to be done in the config for this error?
    IDOC has PO  as reference document.
    I looked into several threads in SDN forum but could not find proper solution
    Can any ine help me with this issue?
    Thanks in advance
    Hari

    Hi
    You might be  missing the tax code for uploding through IDOC
    so you can use the t.code we02 and give the doc and find the error
    go to the WE19 to edit the tax  code
    and USE the t.code  BD87  to select the doc and process it
    thanks
    Madhu

  • Error Message M8 534 when posting vendor invoice

    Hello Guru's!
    My client has a BSP application that the purchasers are using to approve and post vendor invoices.
    When the user is approving the invoice, we have a WF setup to automatically post the invoice to FI.
    We're using standard SAP functionality. BUS2081, method PreliminaryPost.
    First, this method is reading the preliminary invoice using method MRM_INVOIC_READ, then it goes on to try to post the invoice, using MRM_PARKED_INVOICE_POST.
    In about 50% of the approvals, the invoice is posted to FI but the other 50% kicks out with a message M8 534 - Balance not zero: &  debits: &  credits: &.
    Then the system is setup to generate a new WI in order to post the invoice manually.
    The issue, is that before the method PreliminaryPost is carried out, there is a check online to make sure the document ís OK.
    So, i know that there is no balance on the document, and it should be ok to post.
    This issue arised recently after my client went through an upgrade from ECC 5 to ECC 6.
    I have seearched OSS for notes, adn related notes are implemented.
    Any thoughts on this
    Thank you for sharing your wisdom.
    Lars

    The functions that i'm using are SAP developed functions and used by the bapi 'BAPI_INCOMING_INVOICE'
    However, i found out from SAP that these functions are only supported from SAP using 3 standard workflows.
    WS20000397 Release of invoice blocked due to price
    WS20001003 Parking: Complete invoice
    WS20001004 Parking: Release complete invoice documents
    They hinted that i should try the function MRM_DBTAB_REFRESH.
    Havent had time to try this yet, but will do, soon.
    Regards
    /lars

  • Post vendor Invoice without Purchase order.

    Hi all
    good afternoon
    how can i post vendor Invoice without Purchase order.
    And any option
    Regards
    Manju

    Hi,
    Use following transactions to do so;
    1. MIGO - Goods Receipt > Others
    Here use movement type as "501" and enter material, vendor, quantity, Plant, storage location, etc... manually and post the material document.
    Here following A/c entry will appear;
    (BSX) Stock Account - Dr
    (GBB-ZOB) Expense A/c - Cr
    2. FB60 - Post Vendor Invoice
    Here following A/c entry will appear;
    Vendor Account - Cr
    Expense A/c - Dr
    3. F-53 - Post Payment w.r.t. the Invoice posted in step2.
    Here following A/c entry will appear;
    Vendor Account - Dr
    Bank Account - Cr
    Note: - If you don't want to carry out inventory transactions then follow only steps 2 & 3.

  • Default profit center when posting vendor invoices thru MIRO, FB60 and FB65

    Hi,
    My requirement is to default profit center at item level while posting vendor invoices using transactions MIRO, FB60 and FB65.
    can anyone please provide some inputs on this.
    Thanks for your help.
    Lucky

    Hi,you need to customize doc splitting.
    1.You need to clasify all accounts from future document in  Document Splitting-Classify G/L Accounts for Document Splitting(e.g. all accounts 2000) 03000-VENDOR.
    2.in IMG: Classify Document Types for Document Splitting    check for Document type  transaction and Variant (e.g. Doc=KR, Trans.=1010, Variant= 0001)
    3.In IMG:  Activate Document Splitting   check  assigned method(e.g. 000012)
    4. in IMG- Document Splitting-Extended Document Splitting-Define Document Splitting Rule
    For find your method and transaction(e.g. Method=00012, trans.=1010) and double click on Item categories(on left of the top of screen)
    There'd be record with category from first step (e.g. Cat.=0300), select one and double click on Base item cat. - there'd be Category 0300 and with check box Automatically split.
    I hope it'd be helpful

  • Error while posting vendor invoice in F-43

    Hi experts,
    while posting vendor invoice with Tax code , i am getting the following error:
    Posting is only possible with a zero balance; correct document
    Message no. F5060
    Here tax line item is not yet all displaying in simulation.
    If I posted with tax code with ZERO percentage it is posting correctly.
    where as same transaction I am able to post through transaction code FB60.
    What could be the reason?
    regs,
    ramesh b

    Hi
    Please check and correct the respective line items , because your selecting incorrect GL account with respective posting keys
    Example : You have exp gl a/c at first line items against vendor invoice posting's, normaly this vendor will post in first line item with posting key is 31 with vendor a/c and second line item 40 with exp GL a/c and same you will check any required inputs have missed out from this transactions.
    Regards
    CHOWDARY

  • Problem with posting vendor invoice (MRHR) due to posting period

    Hello,
    Good day.
    Recently, due to the closing of posting period 12 2006, a new posting period was created for 2006 to reconcile some unproccessed posting for that year. This posting period 13 2006 was created in FI (OB52).
    Unfortunatley, even though posting period 13 2006 is available. When creating a vendor invoice (MRHR) with reference to PO, specifying the posting perio 13 2006 would create an error message
    <b>"Allowed posting periods: 01 2007 / 12 2006 / 12 2006"</b>
    I debuged the program and tracked down the source in the table MARV, which seesm to be maintained in the transaction code OMSY.
    However, when I tried to change the data for the company code a message would apperar
    <b>"The company code <ccode> can no longer be initialized"</b>
    I also tried tcode MMRV and allowed posting to previous period, but that didnt work.
    What actions do you guys suggest so that the Vendor Invoice/Invoice Verification can be posted in period 13? Thanks and good day.

    Thanks very much, i'll check it when my internet is stable. Unfortunatley the earthquake in Taiwan messed up our internet
    Award points once I see it!
    If there are any other tips that may prove useful please feel free to post them.

  • PO field not appearing while posting Vendor Invoice

    Hello,
    While posting an entry using FB01/ F-43, for posting key 31(Vendor Invoice), despite making Purchasing Document (Purchase Order) field optional in the field status group of both the posting key 31 as well as the Reconciliation (GL) Account, the Purchasing Document field is not appearing. Please provide the solution if it's possible to get this field while posting the entry.
    Thanks and Regards,
    Sumita

    If you try to book vendor invoice through F-43 or FB01 t codes, then, the system would always show PO open for invoice verification.
    In case of a PO, IV should always be done through MIRO t code.
    Thanks.
    VS

  • Post Vendor invoice with Down Payment via BAPI_INCOMINGINVOICE_CREATE

    Hi Experts,
    We have configured downpayment functionality for PO's. We have below process
    Create PO with down Payment request -> Create down payment request -> Run payment program for paying down payment -> Post GR -> Post invoice with BAPI (considering down payments against invoice)
    But unfortunately when I am trying to post PO invoice with downpayment details using BAPI_INCOMINGINVOICE_CREATE I do not see any fields related to down payment. Can some one confirm me if SAP has provided this functionality? if NO any workarounds?
    Rgds,
    Harish

    Hi experts,
    any suggestions?
    Regards,
    Elena

  • Upload vendor invoice details

    Hi all,
         I have a flat file which consists of vendor details (vendor no. address details) and Invoice details (like invoice no., pymt trm, due date, tax id, g/l acc.no. etc). I want to upload these details from spread sheet to SAP could u please help me to do this.
    what is the way to upload either BDC or BAPI
    if the t.code is FB60 or F-43 how i am going to upload can u please help me with proper code.
    u r help will be very important and it will be awarded.
    thanks.
    naveen.

    Hi,
    In FB60 there is no chance to upload vendor address details and one more thing is i want upload g/l acc. details also for this i may have to use BDC table control i think.
    So i have to upload vendor address details seperatly or is there any chance to upload along with the invoice details (i.e. BAPI name).
    if i have to use BDC could please help me in using the table control for this t.code.
    give me any sample program on BDC table control.
    thanks.
    Naveen

  • Correcting Cost Centers on a posted vendor invoice

    Hi,
      If I posted a vendor invoice with an expense account posted to wrong Cost Center, is it possible to correct it FROM FI and not within CO. I know we can allocate the costs within CO but I want the correction to be made within FI as well.
    A workaround I was thinking is re-posting the following in FB60:
    Debit Expense 1000  old Cost Cntr
      Cr Expense  1000    new Cost Cntr
    but this won't let me post an invoice with 0 in the "Amount" field in header.
    Any other options?

    If you can reverse the transaction i would suggest doing that using FB08 and re-key to the correct cost center. If you cannot do that, then you can post journal entry you mentioned using transaction FB50 or FB01 and NOT FB60. Since it is a transaction between two GL Accounts you cannot use FB60.
    Hope this helps.
    Shail

  • Posting Vendor Invoice

    Hi.
    This might be a silly question but i needs to understand.
    Why shouldn't I use F-02(Document Type SA) to post a vendor invoice ?
    I am still going to use the same posting keys , GL DR(40) & Vendor Credit(31) .
    Still my entries are correct and hitting the same accounts.

    Hi,
    It is to differentiate the document types and number ranges, other wise you can use F-02 as well.  There is no specific reason.  But to control vendor documents serially you need to follow one document type that has seperate number range.
    I hope it gives clear understanding.
    Assign points if useful.
    Sarma BH

  • Idoc in error while trying to post vendor invoice(higher items not allowed)

    Hi All,
    we have two SAP systems. SAP A and SAP B.
    SAP A is the vendor for SAP B system we have created a sales order/delivery/out bound invoice in SAP A system.The sales order has BOM material with main item and sub items. We have the same material master data and BOM master data in system A and system B since we are following split architecture.
    The outbound invoice(with main and sub item) in system A has generated  an outbound idoc and the idoc has gone to SAP
    system B. There are the usual segments like E1EDP01 for  main item and another E1EDp01 for the sub itmes in the outbound
    idoc.The message type is INVOIC and basic type INVOIC02 with no extension.
    In system B,  the inbound idoc (coming from system A) has failed giving the error message "higher level items not allowed". The
    segment E1EDP01 for sub item is highlighted in red ! basically the inbound idoc in sap system B is posting a vendor
    invoice since the inbound idoc in B is calling the FM  IDOC_INPUT_INVOIC_MRM... I think this is doing vendor invoice
    verification.
    I have checked in system A, all is ok and the outbound idoc is ok but the issue is in sap system B, the inbound idoc has failed
    with message  "higher level items not allowed". The segment E1EDP01 for sub item is highlighted in red in inbound idoc in
    system B. The segments are the same for inbound idoc in B and outbound idoc in A.
    Can someone pls tell what is wrong in system B.(config or data issue) as we are managing both systems.
    regds
    Edited by: sapsd73 on Jul 9, 2010 3:26 PM
    Edited by: sapsd73 on Jul 9, 2010 3:27 PM

    I do not see any reason why you would need to use COND_A04  if COND_A01 is working.
    What if you could get COND_A04 to post and you would face the same result as in COND_A01?
    If SAP does not check wrong values, then you have to do it yourself, or you report an incident at SAP (after you have searched for OSS notes that may have fixed this error already)
    For example OSS Note 1169998 - IDoc: KONP-LIFNR values not checked
    fixed a situation where the vendor number was not validated.

  • Tax error when posting vendor invoice

    Dear Friends ,
    I am posting this 3rd time, I am geting this error when poatin vendor invoice , I am geting this error in production system before GOLIVE ,when we are doing live data entry test . All the seting related to taxes has been testing more than 10times , But we are unable to find the problem . We had checked with all past messages and best possible solution in SDN ......but problem is not solved . Said error is as follows ....
    Tax code V0 country IN does not exist in procedure TAXINN
    Message no. FF713
    Diagnosis
    You entered a tax code which is not defined for the country of the company code to be posted to in the tax calculation procedure.
    System Response
    Procedure
    Check and, if necessary, correct the entry.
    Procedure for System Administration
    If it is not an input error, check and possibly change the system settings.
    To do this, choose Maintain entries (F5).
    Check whether the company code is assigned to the correct country and whether the correct tax calculation procedure has been entered for the company code country.
    Create a new tax code if necessary.
    Caution:
    Since it is possible that the tables in question are being updated at a different time on another computer, it can take a certain amount of time for the tax code to be on all local machines in client server architectures after saving the new code.
    Raghu

    hi
    go to ftxp choose tax code v0
    here in first input field give 00
    then select that field and click on gl acct tab
    here mention a gl or go to ob40 and mention gl for the acct key of that field
    try finding
    Tax code country IN does not exist in procedure TAXINN
    on SDN u will get many threads
    Tax code XX country IN does not exist in procedure TAXINN (MIRO Error)
    conclusion is u must get acct for at least one condition in the tax code
    regrads
    kunal
    award if helpful

Maybe you are looking for