Vendor Invoices/Customer -BAPI

Hi all
Equivalnt bapis to postVendor Invoices/Customer Invoices through f-02 transaction.
we need to post with and without special GL Indicator. Can anyone let me knw which is the suitable bapi with SAMPLE DATA and MANDATORY FIELDS.
Thanks
sha

Hi,
Pls try these BAPI's...
<b>BAPI_ACC_GL_POSTING_POST
BAPI_ACC_DOCUMENT_POST
BAPI_ACC_GL_POSTING_CHECK
FI_GET_POSTING_KEY</b>
BAPI_ACC_GL_POSTING_POST
More Information about this:
Text
Accounting: General G/L Account Posting Functionality
You can use this method to update business transactions in Accounting which mainly affect the general ledger and are definitely not updated in subledgers which are relevant to the balance sheet.
An example of this is a provision posting for an expected guarantee service.
This can be produce debit or credit entries to balances which are not managed in one of the subledgers relevant to the balance sheet. This is especially applicable if the balances cannot be represented as assets, customers/vendors, materials, loans, etc.
An example of this is a provision posting for an expected guarantee. However, this can also involve depreciation or write-ups in which values have a higher level of summarization than in the corresponding subledger relevant to the balance sheet in which they are managed.
An example of this is foreign currency revaluation for receivables/ payables caused by considerable exchange rate fluctuations which is not updated in accounts payable or accounts receivable.
A similar transaction may come about when revaluating balances for raw materials if the revaluation takes place at a corresponding level of summarization.
The third cateogry is the reclassification of items to balance sheet accounts or income statement accounts, which is only undertaken in the general ledger in order to balance accounts (values are then finally reassigned to financial statement items).
Example: Reclassifying balances of receivables with different return times for the balance sheet.
Restrictions:
This object cannot be used to update business transactions which are normally posted to one of the subledgers which affects the balance sheet (such as a billing document; for this see the business object AcctngBilling).
This is especially applicable if the reason the relevant subledger cannot be updated is because it is an external system or is not in use.
Notes
If the currency fields have been entered in the CurrencyAmount parameter, the system runs a complete check for the document. Otherwise only the account assignment objects are validated.
Messages are displayed in the Return parameter. You will find the return values and their meanings in the documentation for this parameter.
Further Information
For further information, see the documentation on "Interfaces to Accounting" in the R/3 Library (under "Cross-Application Functions -> Interfaces to External Systems").
Parameters
DOCUMENTHEADER
OBJ_TYPE
OBJ_KEY
OBJ_SYS
ACCOUNTGL
CURRENCYAMOUNT
RETURN
EXTENSION1
Exceptions
Function Group
ACC4
<b>http://www.planetsap.com/LIST_ALL_BAPIs.htm
Re: BAPI FOR POSTING FBS1 TRANSACTION</b>
<b>***Reward Points if Useful</b>
Regards
Gokul

Similar Messages

  • Vendor invoice stimulation bapi

    hi all,
        Any suggestions as to which bapi can be used for determining stimulation for Vendor Invoice Stimulation process using BAPI.
          thanks,
            chetan.

    hi sanjeev/srimanta,
      Thanks for your responses.  
       I am following your inputs and will update you soon.
      regards,
      chetan

  • BAPI required for incoming vendor invoice (without PO)

    Hi,
    Which BAPI can be used to post a "vendor invoice" ie.like a utility bill where there is no PO or GR ?
    The few BAPI's that I have searched and obtained is:
    1. BAPI_INCOMINGINVOICE_CREATE
    2. BAPI_ACC_INVOICE_RECEIPT_POST
    Our exact requirement is to have a BAPI which can take the following fields as input:
    GL Account
    Cost Center
    WBS element
    Material No
    Customer
    Tax Code
    Trade Partner
    Customer group
    And give the following data as response
    Verification number in SAP
    Payment status
    Vendor master data
    Kindly help me to find the correct BAPI.
    Greatly appreciate your help.
    Thanks,
    John

    Hi,
    When we use BAPI_ACC_INVOICE_RECEIPT_POST for posting an invoice without a PO, we are facing major issues.
    We have to input vendor account number and the amount. This should be entered in 'ACCOUNTPAYABLE'.
    Even though there is the field 'VENDOR_NO' for entering the vendor number, there is no field for entering the amount !!.
    Kindly help me to identify where I should input vendor amount as input (either in 'ACCOUNTPAYABLE' or elsewhere).
    Also, I am entering GL account number in field 'GL_ACCOUNT' in the segment 'ACCOUNTGL'. But there is not field to enter the amount.
    Kindly help me to identify where I should input GL account amount as input (either in 'ACCOUNTGL' or elsewhere).
    Thanks,
    John

  • To create a customer invoice from vendor invoice

    Hi i have a requirement to create customer invoices from vendor invoice. i would like to know if it is feasible??
    if it is possible is there any bapi or function module to transfer data from the vendor invoices to the customer invoice.
    regards
    prasannakumar

    hi,
    refer to this below link
    http://help.sap.com/saphelp_47x200/helpdata/en/5f/e411bb044411d2bf5d0000e8a7386f/frameset.htm
    -Reward If helpful
    -chaitanya

  • Customer & vendor invoices

    Hi gurus & experts,Here i got an issue regarding customer & vendor invoices.
    I tried to post an entry using t-code f-22(customer invoice)/f-43vendor invoice, able to post but unable to view the document no. and then system shows the following error message. Express Document' updates terminated' by author.
    Here i found that  when we post the document directly its shows error message and the document is going directly to business workplace (t-code SBWP). Just see in that inbox, And see in t-code(ST22) ,userid : jyothin, SYNTAX_ERROR there you find some run time error problem. 
    Regards,
    I will Assign Max points.

    Hi,
    Check whether any workflow is attached.
    Thanks,
    Sridevi
    <i>* Pls. assign points if useful</i>

  • Customer Invoice  in CRM to Vendor invoice in ECC.

    HI ,
    I have question we have in our business scenario,  customer performs service activity say repairing a Lap top, customer uses his own service person (labor)  to perform that  repair work for that  Lap top  and raises invoice on company .
    Here customer acts as Business partner to company in CRM .(Sold to Party)
    Here my question is how this customer invoice replicates in ECC as Vendor invoice.
    Is it possible to replicate Customer invoice in CRM to vendor invoice in ECC ?
    We need this as vendor invoice in ECC , so that finance person can pay him as Account payable in ECC.
    Is there any customization required for this to post as vendor invoice in ECC.
    I request you to help me in this regard. Many thanks in advance.
    Kind Regards,
    Sankar Reddy

    Hi Ritesh,
    this funbctionality is standard behaviour of ERP.
    You can only see the relevant upper nodes in the sales order.
    To see more, you've to start another transaction VDH2N; here you see the whole hierarchy.
    Kind regards
    Werner

  • How can i clear the vendor and customer open line items at a time same vendor as a customer of the company (same vendor same customer and equal invoices )

    my vendor and customer are same . purchase invoice due100000 and sales invoice amount is also 100000 at a time with any manual action , have any setting for cleared both vendor and customer line items at a time ...........

    X Ltd. will be Vendor & Customer.
    Purchase Invoice is booked under Vendor SAP number & Sales Invoice is booked under Customer SAP number. Then you can transfer amount from Vendor to Customer or vice versa with T-code F-04.
    Then if you have transferred amount from customer to Vendor (F-04), Vendor account will have two entries Debit & Credit. Then go for clearance with T-code F-44 clear Vendor.

  • Clearing between customer and vendor invoice with F110 transaction

    Hello,
    I have an issue related to the functionalities of the transaction F110.
    I'd like to clear the vendor invoice with the custome invoice.
    Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
    Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
    I entered in both the invoice the same payment method (outgoing payment method).
    The error that I can see in the proposal log is related to the customer invoice and is:
    Payment method selection for items due now to the amount of USD          500,00
    Due items with currency USD, pmnt method  - items total is > 0
    ..none of the payment methods defined can be used for these items
    information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
    .. payment not possible because of reported error
    According to the log of the proposal the vendor invoice can be paid.
    If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
    No pymt possible because items with a debit
    Following the settings of the payment method used:
    Payment method in the country
    - Payment method for outgoing payment selected
    - Bank transf. selected
    - allowed for personal payment flagged
    - Bank details flagged
    - Document type for payment XX
    - clearing document type XX
    - Use classic payment medium program selected
    Currency allowed: This table is empty (will mean that all currencies are permitted)
    Payment method in company code
    Minimum amount: 0,01
    Maximum amount: 9.999.999.999,99
    Distribution amnt: 0,00
    Single paymentfor marked item selected
    Foreign business partner allowed selected
    foreign currency allowed selected
    Cust/vend bank abroad allowed? selected
    Bank selection control "No optimization" selected
    Can you please help me to understand the error?
    I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
    Thank you very much in advance
    Kind R

    Hello,
    I have an issue related to the functionalities of the transaction F110.
    I'd like to clear the vendor invoice with the custome invoice.
    Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
    Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
    I entered in both the invoices the same payment method (outgoing payment method).
    The error that I can see in the proposal log is related to the customer invoice and is:
    Payment method selection for items due now to the amount of USD          500,00
    Due items with currency USD, pmnt method  - items total is > 0
    ..none of the payment methods defined can be used for these items
    information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
    .. payment not possible because of reported error
    According to the log of the proposal the vendor invoice can be paid.
    If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
    No pymt possible because items with a debit bal.still exist; see job log
    Following the settings of the payment method used:
    Payment method in the country
    - Payment method for outgoing payment selected
    - Bank transf. selected
    - allowed for personal payment flagged
    - Bank details flagged
    - Document type for payment XX
    - clearing document type XX
    - Use classic payment medium program selected
    Currency allowed: This table is empty (will mean that all currencies are permitted)
    Payment method in company codeMinimum amount: 0,01
    Maximum amount: 9.999.999.999,99
    Distribution amnt: 0,00
    Single paymentfor marked item selected
    Foreign business partner allowed selected
    foreign currency allowed selected
    Cust/vend bank abroad allowed? selected
    Bank selection control "No optimization" selected
    Can you please help me to understand the error?
    I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
    Thank you very much in advance
    Kind Regards
    Emanuela

  • BAPI Error for Vendor Invoice

    Hi Experts
             I am developing a BAPI to post the Vendor Invoice, I am not clear the parameters to be passed. Anyhow i have filled some parameters and am getting the following error, Can anyone suggest me about the error.
    Error :
    Enter a reference to a valid goods receipt (line 000010)
    Coding :
    data:it_head like bapi_incinv_create_header,
    it_item like bapi_incinv_create_item occurs 0 with header line,
    it_acct like bapi_incinv_create_account occurs 0 with header line,
    it_gl like bapi_incinv_create_gl_account occurs 0 with header line,
    it_mat like bapi_incinv_create_material occurs 0 with header line,
    it_ven like bapi_incinv_create_vendorsplit occurs 0 with header line,
    it_ret like bapiret2 occurs 0 with header line.
    data: inv_doc like bapi_incinv_fld-inv_doc_no,
    fisc_yr like bapi_incinv_fld-fisc_year.
    data: zinvdoc(50) type c, zfiscyr(30) type c.
    clear it_head.
    move 'x' to it_head-invoice_ind.
    move '1000' to it_head-comp_code.
    move sy-datum to it_head-doc_date .
    move sy-datum to it_head-pstng_date .
    move '27-61725' to it_head-ref_doc_no .
    move '200' to it_head-gross_amount .
    move 'inr' to it_head-currency .
    move '27-61725' to it_head-item_text .
    move '1WEAVIN20' to it_head-diff_inv .
    move 're' to it_head-doc_type .
    move sy-datum to it_head-bline_date.
    move '2' to it_head-pmtmthsupl.
    move 'a' to it_head-pmnt_block.
    move 'z' to it_head-pymt_meth.
    move '0001' to it_head-pmnttrms.
    clear it_item.
    it_item-ref_doc = '123'.
    it_item-REF_DOC_YEAR = '2008'.
    it_item-REF_DOC_IT = '10'.
    it_item-po_number = '4511007408'.
    it_item-po_item = '10'.
    it_item-invoice_doc_item = '00010'. " ( i don't know what this is for so i gave this no.)
    it_item-item_amount
    it_item-po_unit
    it_item-freight_ve
    append it_item.
    break pp01.
    call function 'BAPI_INCOMINGINVOICE_CREATE'
    exporting
    headerdata = it_head
    addressdata
    importing
    invoicedocnumber = inv_doc
    fiscalyear = fisc_yr
    tables
    itemdata = it_item
    accountingdata
    glaccountdata
    materialdata
    taxdata
    withtaxdata
    vendoritemsplitdata
    return = it_ret.
    Thanks in advance.
    Regards
    Rajaram

    Hi,
    You have to fill the header and item check out 1,2 point in your code...
    Fill in the item details
          CNT = CNT + 1.
    1.      ITEMDATA-INVOICE_DOC_ITEM = CNT.
          ITEMDATA-PO_NUMBER = WA_EKPO-EBELN.
          ITEMDATA-PO_ITEM = WA_EKPO-EBELP.
          ITEMDATA-TAX_CODE = <XX>.
          ITEMDATA-ITEM_AMOUNT = WA_EKPO-NETWR.
          ITEMDATA-QUANTITY = WA_EKPO-MENGE.
          ITEMDATA-PO_UNIT = WA_EKPO-MEINS.
          APPEND ITEMDATA.
          CLEAR ITEMDATA.
    Header Info
    2.    HEADERDATA-INVOICE_IND = 'X'.
        HEADERDATA-DOC_DATE = EKKO-BEDAT.
        HEADERDATA-BLINE_DATE = EKKO-BEDAT.
        HEADERDATA-PSTNG_DATE = SY-DATUM.
        HEADERDATA-COMP_CODE = EKKO-BUKRS.
        HEADERDATA-CURRENCY = EKKO-WAERS.
       HEADERDATA-GROSS_AMOUNT
        HEADERDATA-CALC_TAX_IND = ' '.
        HEADERDATA-PMNTTRMS = EKKO-ZTERM.
    Regadrs,
    Prabhu Rajesh

  • Invoice image in vendor and customer document

    Hello,
    We have got following requirement.
    Currently we are storing pysical invoice copies of vendor and customer in a pysical file. But now we want to see the image of invoices in vendor and customer document respectively.
    It means, if it is possible to have an attachment button or some icon available when we see vendor and customer document.
    Please advise how can we link the pysical invoice with SAP document. And is this something related to DMS or Archivieng Link.
    Please suggest.
    Best Regards,
    Tapan

    Hi Tapan,
    At my company we are currently doing just this.
    We have a server outside of SAP that stores our images.  We did not want to store the images within SAP.
    We use the SAP document number to link the image to the SAP document.
    We do all our AP input from images. After an invoice is entered, and the document number is generated, we forward the image to a
    e mail address for the server using the document number in the subject line. The image gets attached to the document. Then the image can be viewed by clicking on the Services for object icon.
    I am sure there is some more techical stuff that goes this, like an RFC connection. I am sorry I am not technical. I am the functionala AP person. We also have a program that takes the image and attaches it to the cross company document if there is one.
    Hope this gives you some ideas.
    Alicia

  • Customer invoice in CRM as Vendor invoice in ECC

    HI
    It is continuation of my question , can we post Customer invoice in CRM to be replicated as vendor invoice in ECC ?
    How can we pay the payment  as Account Payable.
    I request you to answer my question , it is on proiority .
    Thanks once again if you can give the answer.
    Kind Regards,
    Sankara Reddy
    HI ,
    I have question we have in our business scenario, customer performs service activity say repairing a Lap top, customer uses his own service person (labor) to perform that repair work for that Lap top and raises invoice on company .
    Here customer acts as Business partner to company in CRM .(Sold to Party)
    We have created him (Sold to Party) as Vendor in ECC.
    Here my question is how this customer invoice replicates in ECC as Vendor
    invoice.
    Is it possible to replicate Customer invoice in CRM to vendor invoice in ECC ?
    We need this as vendor invoice in ECC , so that finance person can pay him as Account payable in ECC.
    Is there any customization required for this to post as vendor invoice in ECC.
    I request you to help me in this regard. Many thanks in advance.
    Kind Regards,
    Sankar Reddy

    Hi Ritesh,
    this funbctionality is standard behaviour of ERP.
    You can only see the relevant upper nodes in the sales order.
    To see more, you've to start another transaction VDH2N; here you see the whole hierarchy.
    Kind regards
    Werner

  • Problem in  vendor invoice creation through BAPI

    I am trying to create vendor invoice using bapi_acc_document_post but what value have be passed to obj_key and obj_typ fields of header is not clear to me.
    regards,
    anu

    Hi,
    Don't pass any values to OBJ_TYPE,OBJ_KEY.  Many threads are available in SDN regarding this BAPI.
    Search SDN to get more details.
    Regards
    Vinod

  • How to link Vendor Invoice to Customer Invoice in Third Party Sales Custom Report

    I have a requirement wherein I want the Invoice to have as many line items as MIRO have if partial delivery happens... invoices (one for each MIRO)..
    We are currently using the Third Party with Shhipping notification...
    I have tried using VF04 for billing but only one line item is coming for Billing in Invoice...
    I mean how to link the RSEG - partial vendor Invoice line items to Invoice...
    Ex: Third Party Order 20 qty
    Partial delivery 12 & 8... I can see 2 MIRO line item values in the table RSEG...
      If i do invoice in VF04..i can only see 1 line item for total billing....
      Can anybody help me how to solve this??? How can i link
      Vendor Invoice to the Customer Invoice....
      I have to solve this for a Third Party report???
      Thanks in Advance...

    Hi Senthil,
    I have seen the table VBRP..but it is showing only 1 line item 20 against 2 invoices 12 & 8...
    My requirement is that VBRP should show 2 line items of Vendor invoices 12 & 8...

  • Requirement to bill customer before vendor invoice in third party processing

    We have a requirement to bill a customer before the vendor invoice in third party processing. The reason behind this is because the vendor send invoices only once in a month and the customer cannot wait for so long to to receive their invoice from the business.
    I saw some discussions that the third party processing with shipment notification can be used however when I check the business flow in that case I see the following.
    A Third-Party Sales Order is created and a purchase requisition is generated automatically 
    A list of purchase requisitions to be assigned is displayed 
    The assigned purchase requisitions are converted into purchase orders 
    The purchase orders are approved 
    A statistical goods receipt is posted 
    The vendor invoice is verified and posted 
    The billing is created
    It clearly says that the customer billing document is only possible after entering the invoice from the vendor. Which would be the best way to fullfill this requirement?

    Do you mean the goods issue done by the vendor to the customer in the vendor system? And this quantity will be copied into our ( where the third party order is created) system?
    No, MIGO done by in our company system only. May be you might have misunderstood because of  my sentence.instead of company i mentioned as Vendor.
    For Vendor this process will become as standard sales and he will do PGI. However in our system we do MIGO .
    Suppose the customer ordered 10 Qty. Vendor delivered 2 Qty wouldn't the above equation Order qty- MIGO qty= Invoice qty be 10-2= 8? but we should be really billing the customer only for 2 right?
    No you have mistaken my idea, it was not a formula just i was giving example.
    Billing qty is nothing but it is qty copies from source document to target document.
    E
    Goods receipt quantity less invoiced quantity
    for example order qty is =10 and vendor delivered first time 2 qty to the customer and he billed our company for 2qty and we billed the customer for 2 qty.
    And next time let us assume again Vendor delivered 4 more qty and billed us 4qty.And this time when you are billing the customer in VF01 system will propose the 4qty only( total goods receipt qty 6 - already invoiced qty 2).
    Hope now you understood the meaning of E(goods receipt qty less invoices qty).
    And did you try your requirement as mentioned in my first reply?
    thanks,
    Srinu.

  • In F110 -Customer as a Vendor  invoice clear and make payment

    Dear all ,
    Can we make payment through in F110.
    WE maintain Customer as a vendor and Vendor as customer,While running automatic program system
    showing error massage"No pymt possible because items with a debit bal"
    But over all amount is credit ,But only customer invoice showing like this.
    Could you tel me that ,Is there any setting    ,Wt setting we have to configured .How to solve this issue
    Thanks in advance
    Regards
    Girish.

    Dear all,
    Kindly suggest me how to do this.
    we have maintained customer as a vendor in different company code
    one company code xxxx here we maintained as a customer ,In this
    customer master data we maintained vendor no and clearing with vendor we have selected.
    In next company code yyyy here we maintained vendor as customer ,here we maintained customer no and selected clearing with vendor.and payment method .
    In xxxx company code customer as a vendor balance is 1000.
    In another company code yyyy here vendor as customer balance is 15000,
    paying company code is yyyy.
    while running F110 system asking paying company code and sending companycode,we are entering two times.first time yyyy and second time xxxx.
    that time showing error"No pymt possible because items with a debit balance"
    Then we edit proposal its working fine ,But its not clear against vendor
    invoice
    system taking full vendor invoice amount(15000) as a out going payment
    and 1000 is incoming payment.
    But we want pay only difference amount of the invoice.
    For this what we need to do in the system please guide
    thanks in advance
    Thanks and Regards
    Girish

Maybe you are looking for