我需要与SRM系统运维项目组同行沟通,对字段,即是告诉SRM同事这2个场景里需要传递哪些参数到SAP系统里来。笔者参与的项目里很少使用预制发票功能,几年前的一个跨国企业运维项目里有用到,但是我们只是运维,并没有参与功能实现。所以这个东东对于我,还是比较新的一个东东。为了应付工作需要,并且是迫切的需求,笔者上网查资料,得到了如下的一片文字,对于笔者很有帮助,大大的减少了笔者研究与学习的时间。
如下英文部分文字来自于互联网
SAP MM BAPI_INCOMINGINVOICE_PARK - Invoice Verification: Park Incoming Invoice
Functionality
You can use this method to park incoming invoices.
When header data is transferred, you use the field INVOICE_IND to determine whether the system generates a credit memo or an invoice. If you leave the field initial, the system generates a credit memo. If you enter X, the system generates an invoice.
You use this method if information on posting an invoice document is missing in the invoice document. The balance can be a value other than zero. As in the online transaction, the following updates take place: for example, informative PO history, advance tax return, index for checks re duplicate invoices, open creditor items from parked documents, log of document changes.
You can use this method to:
- Park invoices with multiple account assignment
- Change and park invoice account assignments
- Park invoices for blanket purchase orders (see also the documentation for the function module BAPI_INCOMINGINVOICE_CREATE)
- Park invoices for purchase orders with planned delivery costs
- Park invoices with unplanned delivery costs
- Park subsequent credits and debits
- Use document types with external number ranges
- Park invoices with withholding tax
- Park invoices with several creditor lines and different methods and terms of payment
- Park invoices for purchase orders for external services
- Park invoices with G/L account postings
- Park invoices with material account postings
- Park invoices for a one-time supplier
- Park invoices with a different payee
- Create and post provisional/differential invoices and final invoices in the context of differential invoicing
(See also documentation for function module BAPI_INCOMINGINVOICE_CREATE (Invoice Verification: Post Incoming Invoice))
Constraints
You cannot post invoices for returns orders
The following fields in Financial Accounting are not passed on:
- ISR subscriber number (ISR = inpayment slip with reference number)
- Bank details
- Payment reference
- Short key for house bank
- Service indicator
Notes
The following authorization object is checked with activity 77:
- M_RECH_WRKPlant authorization for entering incoming invoices
Input parameters
You transfer the header data of the incoming invoice using the structure HeaderData.
The tables ItemData and AccountingData contain the item data of the incoming invoice. The TaxData table contains the tax information for the incoming invoice.
The GlAccountData table contains data for posting to G/L accounts, and the MaterialData table contains data for posting to material accounts.
You can use the WithTaxData table to pass on withholding tax information.
You can use the VendorItemSplitData table to distribute the gross amount among several vendor line items with different methods and terms of payment.
Output parameters
The document number of the invoice document and the fiscal year are returned as key fields of the incoming invoice.
Return messages
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further information
Example: Incoming Invoice
This example shows which header data you can park in the table HeaderData and which item data you can park in the table ItemData.
Purchase Order: 10 pc of material A @ 10 USD
Goods receipt: 10 pc of material A
For this purchase order, you receive an incoming invoice referencing PO number 4500007491, PO item 10, for a quantity of 10 pc of material A and an amount of 116 USD incl. 16% VAT. You enter the following data:
HeaderData table
- INVOICE_IND (invoice/credit memo): X
- DOC_DATE (document date): 20.05.2000
- PSTNG_DATE (Posting date): 23.05.2000
- COMP_CODE (company code): 1000
- GROSS_AMOUNT (Gross amount): 116,00
- CURRENCY (currency key): USD
- CALC_TAX_IND (calculate tax): X
ItemData table
- INVOICE_DOC_ITEM (Invoice document item): 00001
- PO_NUMBER (purchase order number): 4500007491
- PO_ITEM (Purchase order item): 00010 <