<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Upload program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379772#M185625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check thread !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;FYI &lt;/P&gt;&lt;P&gt;FU BAPI_INCOMINGINVOICE_PARK&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Invoice Verification: Park Invoice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTIONALITY&amp;amp;&lt;/P&gt;&lt;P&gt;You can use this method to park incoming invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When header data is transferred, you use the field INVOICE_IND to determine whether the system generates a credit memo or an invoice. If the field remains blank, the system generates a credit memo. If you enter X, the system generates an invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 check on duplicate invoices, open vendor items from parked documents, log of document changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this method to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;park invoices with multiple account assignment&lt;/P&gt;&lt;P&gt;change and park account assignments for invoices&lt;/P&gt;&lt;P&gt;park invoices for blanket purchase orders (see also the documentation for the function module BAPI_INCOMINGINVOICE_CREATE)&lt;/P&gt;&lt;P&gt;park invoices for purchase orders with planned delivery costs&lt;/P&gt;&lt;P&gt;park invoices with unplanned delivery costs&lt;/P&gt;&lt;P&gt;park subsequent credits and debits&lt;/P&gt;&lt;P&gt;use document types with external number assignment&lt;/P&gt;&lt;P&gt;park invoices with withholding tax&lt;/P&gt;&lt;P&gt;park invoices with several vendor line items and different methods of payment and terms of payment&lt;/P&gt;&lt;P&gt;park invoices for purchase orders for external services&lt;/P&gt;&lt;P&gt;park invoices with G/L account postings&lt;/P&gt;&lt;P&gt;park invoices with material account postings&lt;/P&gt;&lt;P&gt;park invoices for a one-time vendor&lt;/P&gt;&lt;P&gt;park invoices with a different payee&lt;/P&gt;&lt;P&gt;Restrictions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post invoices for return POs&lt;/P&gt;&lt;P&gt;The following FI fields are not transferred:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POR subscriber number&lt;/P&gt;&lt;P&gt;Bank details&lt;/P&gt;&lt;P&gt;Payment reference&lt;/P&gt;&lt;P&gt;Short key for house bank account&lt;/P&gt;&lt;P&gt;Service indicator&lt;/P&gt;&lt;P&gt;Nota Fiscal&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The following authorization object is checked with activity 77:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_RECH_WRK Plant authorization for entering incoming invoices&lt;/P&gt;&lt;P&gt;Transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You transfer the header data of the incoming invoice using structure HeaderData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables ItemData and AccountingData contain the item data of the incoming invoice. Table TaxData contains the tax information for the incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table GlAccountData contains data for posting to G/L accounts, and the MaterialData contains data for posting to material accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use table WithTaxData to transfer withholding tax information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use table VendorItemSplitData to distribute the gross amount among several vendor line items with different payment methods and terms of payment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document number of the invoice document and the fiscal year are returned as key fields of the incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message returns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction control is not implemented. The calling program therefore has to execute the Commit Work itself after this method has been successfully called (in other words, if no errors were reported in the Return parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming Invoice&lt;/P&gt;&lt;P&gt;This example shows which header data you can park in table HeaderData and which item data you can park in table ItemData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10 USD&lt;/P&gt;&lt;P&gt;Goods receipt: 10 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007491, PO item 10, for a quantity of 10 pieces of material A and an amount of 116 USD incl. 16% tax. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 116.00&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (calculate tax): X&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of the invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007491&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData and ItemData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with foreign currency, GR-based invoice verification, and tax information&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which tax information you enter in table TaxData to be able to park an incoming invoice in a foreign currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10 USD&lt;/P&gt;&lt;P&gt;Goods receipt 1: 4 pieces of material A&lt;/P&gt;&lt;P&gt;Goods receipt 2: 6 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. A quantity of 4 pieces of material A and a gross amount of 46.60 USD and 16% tax (6.60 USD) is invoiced. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 46.60&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007505&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 50010095&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of GR document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 40.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 4&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;TaxData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): VN&lt;/P&gt;&lt;P&gt;TAX_AMOUNT (tax amount in document currency): 6.60&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and TaxData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Change existing account assignments and add new ones&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which account assignment data you enter in table AccountingData to be able to change account assignments for an incoming invoice. To be able to change account assignments, a non-valuated goods receipt or no goods receipt must exist. GR-based invoice verification takes place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 300 pieces of material A at 1.00 USD&lt;/P&gt;&lt;P&gt;Goods receipt: 300 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this PO with multiple account assignment, you receive an incoming invoice with reference to PO number 4500006846, PO item 10, goods receipt document 50008849, 2000, item. A quantity of 100 pieces of material A and a gross amount of 116.00 USD incl. 16% tax is invoiced. You want to change the planned account assignment for the second account assignment item and add an unplanned account assignment. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 05.08.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 08.08.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 17,40&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (calculate tax automatically): X&lt;/P&gt;&lt;P&gt;PMNTTRMS (terms of payment key): 0001&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (invoice document item): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006846&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 500008849&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of goods receipt document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;AccountingData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 1: Change second account assignment item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 0001&lt;/P&gt;&lt;P&gt;SERIAL_NO (sequence number for account assignment): 02&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (amount in document currency): 10.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10&lt;/P&gt;&lt;P&gt;PO_UNIT (order unit): PC&lt;/P&gt;&lt;P&gt;GL_ACCOUNT (number of G/L account): 890000&lt;/P&gt;&lt;P&gt;COSTCENTER (cost center): 1200&lt;/P&gt;&lt;P&gt;Line 2: Add unplanned account assignment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (document item in invoice document): 0001&lt;/P&gt;&lt;P&gt;XUNPL (unplanned account assignment from invoice verification): X&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (amount in document currency): 5.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 5&lt;/P&gt;&lt;P&gt;PO_UNIT (order unit): PC&lt;/P&gt;&lt;P&gt;GL_ACCOUNT (number of G/L account): 890000&lt;/P&gt;&lt;P&gt;COSTCENTER (cost center): 1200&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and AccountingData or the Logistics Invoice Verification section of the SAP Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with planned delivery costs&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which tax information you enter in table TaxData to be able to generate incoming invoices with planned delivery costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 100 pieces of material A at 1.00 USD&lt;/P&gt;&lt;P&gt;Goods receipt: 100 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500006986, PO item 10, for a quantity of 100 pieces of material A and an amount of 136.00 USD incl. 16% tax and 20.00 planned delivery costs. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 10.08.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 12.08.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 136.00&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 1: Enter PO item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006986&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;Line 2: Enter planned delivery costs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00002&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006986&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 20.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;COND_TYPE (condition type): FRB1&lt;/P&gt;&lt;P&gt;TaxData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): VN&lt;/P&gt;&lt;P&gt;TAX_AMOUNT (tax amount in document currency): 16.00&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and TaxData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with withholding tax&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table Itemdata and which withholding tax information you enter in table WithTaxData to be able to park an incoming invoice with withholding tax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10.00 USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goods receipt: 10 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. A quantity of 10 pieces and a gross amount of 100.00 USD is invoiced. For the gross amount, you must pay 10% withholding tax. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): WT01&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 100.00&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007505&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 50010095&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of the current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of a goods receipt document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): V0&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10.00&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;WithTaxData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT_KEY (grouping key for splitting withholding tax): 0001&lt;/P&gt;&lt;P&gt;WI_TAX_TYPE (indicator for withholding tax type): R1&lt;/P&gt;&lt;P&gt;WI_TAX_CODE (withholding tax code): 01&lt;/P&gt;&lt;P&gt;WI_TAX_BASE (withholding tax base amount): 100&lt;/P&gt;&lt;P&gt;WI_TAX_AMT (withholding tax amount in document currency): 10.00&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and WithTaxData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with amount split&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table Itemdata and which information you enter in VendorItemSplitData to generate an incoming invoice with amount split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10.00 USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goods receipt: 10 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. A quantity of 10 pieces and a gross amount of 100.00 USD is invoiced. You want to split the gross amount among two vendor line items. 40% of the gross amount is to be paid immediately by check, and 60% of the gross amount is to be paid within 14 days, taking advantage of a 3% discount. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 0001&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 100.00&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007505&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 50010095&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of a goods receipt document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): V0&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10.00&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;VendorItemSplitData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor line 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT_KEY (grouping key for splitting vendor line): 0001&lt;/P&gt;&lt;P&gt;SPLIT_AMOUNT(partial invoice amount in document currency): 40.00&lt;/P&gt;&lt;P&gt;PYMT_METH (payment method): S&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): V0&lt;/P&gt;&lt;P&gt;PMNTTRMS (terms of payment key): 0001&lt;/P&gt;&lt;P&gt;Vendor line 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT_KEY (grouping key for splitting vendor line): 0002&lt;/P&gt;&lt;P&gt;SPLIT_AMOUNT (partial invoice amount in document currency): 60.00&lt;/P&gt;&lt;P&gt;PYMT_METH (payment method): U&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): V0&lt;/P&gt;&lt;P&gt;PMNTTRMS (terms of payment key): 0003&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and VendorItemSplitData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with G/L and material account posting.&lt;/P&gt;&lt;P&gt;This example shows you, which header data you need to enter in the HeaderData table, which item data you enter in the ItemData table, which G/L account information you enter in the GlAccountData table, and which material account information you enter in the MateralData table in order to park an incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You receive an invoice with reference to PO number 4500006846, PO item 10. The invoice is for a quantity of 100 PC of material A, and a gross amount of 150.80 USD including 16% tax. This includes a G/L account posting of 10 USD to account 400000 in company code 1, and a material account posting to material MAT01n for 20 USD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table HeaderData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (Post invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (Document date): 08.05.2000 PSTNG_DATE (Posting date):&lt;/P&gt;&lt;P&gt;PSTNG_DATE (Posting date): 08.08.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (Company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (Currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (Gross amount): 150.80 CALC_TAX_IND (Automatically&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (Automatically calculate tax): X&lt;/P&gt;&lt;P&gt;PMNTTRMS (Terms of payment key): 0001&lt;/P&gt;&lt;P&gt;Table ItemData INVOICE_DOC_ITEM (Item in invoice document):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006846&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 100&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): PC&lt;/P&gt;&lt;P&gt;Table GlAccountData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 00001&lt;/P&gt;&lt;P&gt;GL_ACCOUNT (G/L account): 400000&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 10.00&lt;/P&gt;&lt;P&gt;DB_CR_IND (Debit/credit indicator): S&lt;/P&gt;&lt;P&gt;COMP_CODE (Company code): 0001&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): VN&lt;/P&gt;&lt;P&gt;COSTCENTER (Cost center): 1&lt;/P&gt;&lt;P&gt;Table MaterialData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 0001&lt;/P&gt;&lt;P&gt;MATERIAL (Material): MAT01&lt;/P&gt;&lt;P&gt;PLANT (Valuation area): 0001&lt;/P&gt;&lt;P&gt;DB_CR_INP (Debit/credit indicator): S&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item data): 10.00&lt;/P&gt;&lt;P&gt;QUANTITY (MENGE_D): 1&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): PC&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): VN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the tables HeaderData, ItemData, GlAccountData and MaterialData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice for a purchase order for external services and servie-based invoice verification&lt;/P&gt;&lt;P&gt;This example shows you which header data you need to enter in table HeaderData, which item data in table ItemData, and which accout assignment data you enter in table AccountingData in order to enter and post an incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You receive an invoice with reference to PO number 4500000191, PO item 10. The invoice is for two services A and B, each with a quantity of six service units. Service A has a gross amount of 580 USD including 16% tax. Service B has 812 USD including 16% tax. 50% of service A was assigned to each of the cost centers 1000 and 2000. 50% of service B was assigned to each of the cost centers 1000 and 3000. The service acceptance is performed jointly for both services with the service entry sheet number 1000000022. The account assignments cannot be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table HeaderData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (Post invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_TYPE (Document type): RE&lt;/P&gt;&lt;P&gt;DOC_DATE (Document date): 01.10.2002&lt;/P&gt;&lt;P&gt;PSTNG_DATE (Posting date): 01.10.2002&lt;/P&gt;&lt;P&gt;COMP_CODE (Company code): 0001&lt;/P&gt;&lt;P&gt;CURRENCY (Currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (Gross amount): 1392.00&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (Calculate tax automatically): X&lt;/P&gt;&lt;P&gt;PMNTTRMS (Terms of payment key): 0001&lt;/P&gt;&lt;P&gt;Table ItemData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First entry for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 250.0&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 10&lt;/P&gt;&lt;P&gt;Second entry for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000002&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 250.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 10&lt;/P&gt;&lt;P&gt;First entry for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000003&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 350.0&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 20&lt;/P&gt;&lt;P&gt;Second entry for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000004&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 350.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table AccountingData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First account assignment for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000001&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 01&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 250.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;Second account assignment for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000002&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 02&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 250.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;First account assignment for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000003&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 01&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 350.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;Second account assignment for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000004&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 03&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 350.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the tables HeaderData, ItemData, and AccountingData, or in the SAP Library under Logistics Invoice Verification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice for a one-time vendor&lt;/P&gt;&lt;P&gt;This example shows you how to proceed in order to enter and post an invoice for a one-time vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to enter data into the AddressData table. If you do not enter any data into table AddressData, the address data for the one-time vendor is copied 1:1 from the purchase order into the invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use table AddressData for the data transfer, the address data for the one-time vendor is read from the purchase order into the invoice, and is then overwritten or added to by the fields in the AddressData table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purchase order for the one-time vendor shows the name 'SAP AG', postal code '60000', and the street and building number 'Neurottstraße 16'. You receive an invoice with the one-time vendor address as follows: Name 'SAP AG', postal code '69190', and city 'Walldorf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table AddressData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACC_1_TIME (Indicator one-time vendor): X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME (Name): SAP AG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSTL_CODE (Postal code): 69190&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CITY (City): Walldorf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The invoice is posted with the following one-time vendor address data: Name 'SAP AG', street and building number 'Neurottstraße 16', postal code '69190', city 'Walldorf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the table AddressData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice for a different payee&lt;/P&gt;&lt;P&gt;This example shows you which address data you need to enter in table AddressData in order to enter and post an invoice for a different payee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You receive an invoice for the different payee with the name 'SAP AG', postal code '69190', city 'Walldorf', bank number '38070724', and account number '4711'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table AddressData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACC_1_TIME (Indicator one-time vendor): ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME (Name): SAP AG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSTL_CODE (Postal code): 69190&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CITY (City): Walldorf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BANK_NO (Bank number): 38070724&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BANK_ACCT (Bank account number): 4711&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the table AddressData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;HEADERDATA&lt;/P&gt;&lt;P&gt;ADDRESSDATA&lt;/P&gt;&lt;P&gt;INVOICEDOCNUMBER&lt;/P&gt;&lt;P&gt;FISCALYEAR&lt;/P&gt;&lt;P&gt;ITEMDATA&lt;/P&gt;&lt;P&gt;ACCOUNTINGDATA&lt;/P&gt;&lt;P&gt;GLACCOUNTDATA&lt;/P&gt;&lt;P&gt;MATERIALDATA&lt;/P&gt;&lt;P&gt;TAXDATA&lt;/P&gt;&lt;P&gt;WITHTAXDATA&lt;/P&gt;&lt;P&gt;VENDORITEMSPLITDATA&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;MRM_BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Saquib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2006 15:25:58 GMT</pubDate>
    <dc:creator>former_member181966</dc:creator>
    <dc:date>2006-07-17T15:25:58Z</dc:date>
    <item>
      <title>Upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379770#M185623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to write a upload program to park invoices from an excel file (.xls)  using MIR7. Is it possible to use BAPI_INCOMINGINVOICE_PARK? If so, can somebody provide some sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 15:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379770#M185623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379771#M185624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the documentation for that function module:&lt;/P&gt;&lt;P&gt; it has some examples &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 15:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379771#M185624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379772#M185625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check thread !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;FYI &lt;/P&gt;&lt;P&gt;FU BAPI_INCOMINGINVOICE_PARK&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Invoice Verification: Park Invoice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTIONALITY&amp;amp;&lt;/P&gt;&lt;P&gt;You can use this method to park incoming invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When header data is transferred, you use the field INVOICE_IND to determine whether the system generates a credit memo or an invoice. If the field remains blank, the system generates a credit memo. If you enter X, the system generates an invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 check on duplicate invoices, open vendor items from parked documents, log of document changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this method to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;park invoices with multiple account assignment&lt;/P&gt;&lt;P&gt;change and park account assignments for invoices&lt;/P&gt;&lt;P&gt;park invoices for blanket purchase orders (see also the documentation for the function module BAPI_INCOMINGINVOICE_CREATE)&lt;/P&gt;&lt;P&gt;park invoices for purchase orders with planned delivery costs&lt;/P&gt;&lt;P&gt;park invoices with unplanned delivery costs&lt;/P&gt;&lt;P&gt;park subsequent credits and debits&lt;/P&gt;&lt;P&gt;use document types with external number assignment&lt;/P&gt;&lt;P&gt;park invoices with withholding tax&lt;/P&gt;&lt;P&gt;park invoices with several vendor line items and different methods of payment and terms of payment&lt;/P&gt;&lt;P&gt;park invoices for purchase orders for external services&lt;/P&gt;&lt;P&gt;park invoices with G/L account postings&lt;/P&gt;&lt;P&gt;park invoices with material account postings&lt;/P&gt;&lt;P&gt;park invoices for a one-time vendor&lt;/P&gt;&lt;P&gt;park invoices with a different payee&lt;/P&gt;&lt;P&gt;Restrictions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post invoices for return POs&lt;/P&gt;&lt;P&gt;The following FI fields are not transferred:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POR subscriber number&lt;/P&gt;&lt;P&gt;Bank details&lt;/P&gt;&lt;P&gt;Payment reference&lt;/P&gt;&lt;P&gt;Short key for house bank account&lt;/P&gt;&lt;P&gt;Service indicator&lt;/P&gt;&lt;P&gt;Nota Fiscal&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;The following authorization object is checked with activity 77:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_RECH_WRK Plant authorization for entering incoming invoices&lt;/P&gt;&lt;P&gt;Transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You transfer the header data of the incoming invoice using structure HeaderData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables ItemData and AccountingData contain the item data of the incoming invoice. Table TaxData contains the tax information for the incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table GlAccountData contains data for posting to G/L accounts, and the MaterialData contains data for posting to material accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use table WithTaxData to transfer withholding tax information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use table VendorItemSplitData to distribute the gross amount among several vendor line items with different payment methods and terms of payment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document number of the invoice document and the fiscal year are returned as key fields of the incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message returns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction control is not implemented. The calling program therefore has to execute the Commit Work itself after this method has been successfully called (in other words, if no errors were reported in the Return parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming Invoice&lt;/P&gt;&lt;P&gt;This example shows which header data you can park in table HeaderData and which item data you can park in table ItemData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10 USD&lt;/P&gt;&lt;P&gt;Goods receipt: 10 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007491, PO item 10, for a quantity of 10 pieces of material A and an amount of 116 USD incl. 16% tax. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 116.00&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (calculate tax): X&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of the invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007491&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData and ItemData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with foreign currency, GR-based invoice verification, and tax information&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which tax information you enter in table TaxData to be able to park an incoming invoice in a foreign currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10 USD&lt;/P&gt;&lt;P&gt;Goods receipt 1: 4 pieces of material A&lt;/P&gt;&lt;P&gt;Goods receipt 2: 6 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. A quantity of 4 pieces of material A and a gross amount of 46.60 USD and 16% tax (6.60 USD) is invoiced. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 46.60&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007505&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 50010095&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of GR document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 40.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 4&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;TaxData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): VN&lt;/P&gt;&lt;P&gt;TAX_AMOUNT (tax amount in document currency): 6.60&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and TaxData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Change existing account assignments and add new ones&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which account assignment data you enter in table AccountingData to be able to change account assignments for an incoming invoice. To be able to change account assignments, a non-valuated goods receipt or no goods receipt must exist. GR-based invoice verification takes place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 300 pieces of material A at 1.00 USD&lt;/P&gt;&lt;P&gt;Goods receipt: 300 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this PO with multiple account assignment, you receive an incoming invoice with reference to PO number 4500006846, PO item 10, goods receipt document 50008849, 2000, item. A quantity of 100 pieces of material A and a gross amount of 116.00 USD incl. 16% tax is invoiced. You want to change the planned account assignment for the second account assignment item and add an unplanned account assignment. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 05.08.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 08.08.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 17,40&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (calculate tax automatically): X&lt;/P&gt;&lt;P&gt;PMNTTRMS (terms of payment key): 0001&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (invoice document item): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006846&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 500008849&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of goods receipt document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;AccountingData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 1: Change second account assignment item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 0001&lt;/P&gt;&lt;P&gt;SERIAL_NO (sequence number for account assignment): 02&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (amount in document currency): 10.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10&lt;/P&gt;&lt;P&gt;PO_UNIT (order unit): PC&lt;/P&gt;&lt;P&gt;GL_ACCOUNT (number of G/L account): 890000&lt;/P&gt;&lt;P&gt;COSTCENTER (cost center): 1200&lt;/P&gt;&lt;P&gt;Line 2: Add unplanned account assignment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (document item in invoice document): 0001&lt;/P&gt;&lt;P&gt;XUNPL (unplanned account assignment from invoice verification): X&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (amount in document currency): 5.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 5&lt;/P&gt;&lt;P&gt;PO_UNIT (order unit): PC&lt;/P&gt;&lt;P&gt;GL_ACCOUNT (number of G/L account): 890000&lt;/P&gt;&lt;P&gt;COSTCENTER (cost center): 1200&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and AccountingData or the Logistics Invoice Verification section of the SAP Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with planned delivery costs&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table ItemData and which tax information you enter in table TaxData to be able to generate incoming invoices with planned delivery costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 100 pieces of material A at 1.00 USD&lt;/P&gt;&lt;P&gt;Goods receipt: 100 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500006986, PO item 10, for a quantity of 100 pieces of material A and an amount of 136.00 USD incl. 16% tax and 20.00 planned delivery costs. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 10.08.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 12.08.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 136.00&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 1: Enter PO item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006986&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;Line 2: Enter planned delivery costs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00002&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006986&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 20.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;COND_TYPE (condition type): FRB1&lt;/P&gt;&lt;P&gt;TaxData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): VN&lt;/P&gt;&lt;P&gt;TAX_AMOUNT (tax amount in document currency): 16.00&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and TaxData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with withholding tax&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table Itemdata and which withholding tax information you enter in table WithTaxData to be able to park an incoming invoice with withholding tax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10.00 USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goods receipt: 10 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. A quantity of 10 pieces and a gross amount of 100.00 USD is invoiced. For the gross amount, you must pay 10% withholding tax. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): WT01&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 100.00&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007505&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 50010095&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of the current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of a goods receipt document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): V0&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10.00&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;WithTaxData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT_KEY (grouping key for splitting withholding tax): 0001&lt;/P&gt;&lt;P&gt;WI_TAX_TYPE (indicator for withholding tax type): R1&lt;/P&gt;&lt;P&gt;WI_TAX_CODE (withholding tax code): 01&lt;/P&gt;&lt;P&gt;WI_TAX_BASE (withholding tax base amount): 100&lt;/P&gt;&lt;P&gt;WI_TAX_AMT (withholding tax amount in document currency): 10.00&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and WithTaxData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with amount split&lt;/P&gt;&lt;P&gt;This example shows which header data you enter in table HeaderData, which item data you enter in table Itemdata and which information you enter in VendorItemSplitData to generate an incoming invoice with amount split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchase order: 10 pieces of material A at 10.00 USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goods receipt: 10 pieces of material A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purchase order, you receive an incoming invoice with reference to PO number 4500007505, PO item 10, goods receipt document 50010095, 2000, item 1. A quantity of 10 pieces and a gross amount of 100.00 USD is invoiced. You want to split the gross amount among two vendor line items. 40% of the gross amount is to be paid immediately by check, and 60% of the gross amount is to be paid within 14 days, taking advantage of a 3% discount. You enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HeaderData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (document date): 20.05.2000&lt;/P&gt;&lt;P&gt;PSTNG_DATE (posting date): 23.05.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (company code): 0001&lt;/P&gt;&lt;P&gt;CURRENCY (currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (gross amount): 100.00&lt;/P&gt;&lt;P&gt;ItemData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (item of invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500007505&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;REF_DOC (goods receipt document): 50010095&lt;/P&gt;&lt;P&gt;REF_DOC_YEAR (fiscal year of current period): 2000&lt;/P&gt;&lt;P&gt;REF_DOC_ITEM (item of a goods receipt document): 1&lt;/P&gt;&lt;P&gt;TAX_CODE (tax code): V0&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (item amount): 100.00&lt;/P&gt;&lt;P&gt;QUANTITY (quantity): 10.00&lt;/P&gt;&lt;P&gt;PO_UNIT (unit of measure): PC&lt;/P&gt;&lt;P&gt;VendorItemSplitData table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor line 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT_KEY (grouping key for splitting vendor line): 0001&lt;/P&gt;&lt;P&gt;SPLIT_AMOUNT(partial invoice amount in document currency): 40.00&lt;/P&gt;&lt;P&gt;PYMT_METH (payment method): S&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): V0&lt;/P&gt;&lt;P&gt;PMNTTRMS (terms of payment key): 0001&lt;/P&gt;&lt;P&gt;Vendor line 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT_KEY (grouping key for splitting vendor line): 0002&lt;/P&gt;&lt;P&gt;SPLIT_AMOUNT (partial invoice amount in document currency): 60.00&lt;/P&gt;&lt;P&gt;PYMT_METH (payment method): U&lt;/P&gt;&lt;P&gt;TAX_CODE (sales tax code): V0&lt;/P&gt;&lt;P&gt;PMNTTRMS (terms of payment key): 0003&lt;/P&gt;&lt;P&gt;For further information, see the parameter documentation for tables HeaderData, ItemData and VendorItemSplitData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice with G/L and material account posting.&lt;/P&gt;&lt;P&gt;This example shows you, which header data you need to enter in the HeaderData table, which item data you enter in the ItemData table, which G/L account information you enter in the GlAccountData table, and which material account information you enter in the MateralData table in order to park an incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You receive an invoice with reference to PO number 4500006846, PO item 10. The invoice is for a quantity of 100 PC of material A, and a gross amount of 150.80 USD including 16% tax. This includes a G/L account posting of 10 USD to account 400000 in company code 1, and a material account posting to material MAT01n for 20 USD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table HeaderData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (Post invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_DATE (Document date): 08.05.2000 PSTNG_DATE (Posting date):&lt;/P&gt;&lt;P&gt;PSTNG_DATE (Posting date): 08.08.2000&lt;/P&gt;&lt;P&gt;COMP_CODE (Company code): 1000&lt;/P&gt;&lt;P&gt;CURRENCY (Currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (Gross amount): 150.80 CALC_TAX_IND (Automatically&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (Automatically calculate tax): X&lt;/P&gt;&lt;P&gt;PMNTTRMS (Terms of payment key): 0001&lt;/P&gt;&lt;P&gt;Table ItemData INVOICE_DOC_ITEM (Item in invoice document):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 00001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500006846&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): VN&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 100&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 100&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): PC&lt;/P&gt;&lt;P&gt;Table GlAccountData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 00001&lt;/P&gt;&lt;P&gt;GL_ACCOUNT (G/L account): 400000&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 10.00&lt;/P&gt;&lt;P&gt;DB_CR_IND (Debit/credit indicator): S&lt;/P&gt;&lt;P&gt;COMP_CODE (Company code): 0001&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): VN&lt;/P&gt;&lt;P&gt;COSTCENTER (Cost center): 1&lt;/P&gt;&lt;P&gt;Table MaterialData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 0001&lt;/P&gt;&lt;P&gt;MATERIAL (Material): MAT01&lt;/P&gt;&lt;P&gt;PLANT (Valuation area): 0001&lt;/P&gt;&lt;P&gt;DB_CR_INP (Debit/credit indicator): S&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item data): 10.00&lt;/P&gt;&lt;P&gt;QUANTITY (MENGE_D): 1&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): PC&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): VN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the tables HeaderData, ItemData, GlAccountData and MaterialData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice for a purchase order for external services and servie-based invoice verification&lt;/P&gt;&lt;P&gt;This example shows you which header data you need to enter in table HeaderData, which item data in table ItemData, and which accout assignment data you enter in table AccountingData in order to enter and post an incoming invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You receive an invoice with reference to PO number 4500000191, PO item 10. The invoice is for two services A and B, each with a quantity of six service units. Service A has a gross amount of 580 USD including 16% tax. Service B has 812 USD including 16% tax. 50% of service A was assigned to each of the cost centers 1000 and 2000. 50% of service B was assigned to each of the cost centers 1000 and 3000. The service acceptance is performed jointly for both services with the service entry sheet number 1000000022. The account assignments cannot be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table HeaderData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_IND (Post invoice/credit memo): X&lt;/P&gt;&lt;P&gt;DOC_TYPE (Document type): RE&lt;/P&gt;&lt;P&gt;DOC_DATE (Document date): 01.10.2002&lt;/P&gt;&lt;P&gt;PSTNG_DATE (Posting date): 01.10.2002&lt;/P&gt;&lt;P&gt;COMP_CODE (Company code): 0001&lt;/P&gt;&lt;P&gt;CURRENCY (Currency key): USD&lt;/P&gt;&lt;P&gt;GROSS_AMOUNT (Gross amount): 1392.00&lt;/P&gt;&lt;P&gt;CALC_TAX_IND (Calculate tax automatically): X&lt;/P&gt;&lt;P&gt;PMNTTRMS (Terms of payment key): 0001&lt;/P&gt;&lt;P&gt;Table ItemData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First entry for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000001&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 250.0&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 10&lt;/P&gt;&lt;P&gt;Second entry for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000002&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 250.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 10&lt;/P&gt;&lt;P&gt;First entry for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000003&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 350.0&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 20&lt;/P&gt;&lt;P&gt;Second entry for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Item in invoice document): 000004&lt;/P&gt;&lt;P&gt;PO_NUMBER (PO number): 4500000191&lt;/P&gt;&lt;P&gt;PO_ITEM (PO item): 00010&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Item amount): 350.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (Unit of measure): SU&lt;/P&gt;&lt;P&gt;SHEET_NO (Entry sheet number): 1000000022&lt;/P&gt;&lt;P&gt;SHEET_ITEM (Line number) : 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table AccountingData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First account assignment for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000001&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 01&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 250.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;Second account assignment for service A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000002&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 02&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 250.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;First account assignment for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000003&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 01&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 350.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;Second account assignment for service B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_DOC_ITEM (Document item in invoice document): 000004&lt;/P&gt;&lt;P&gt;SERIAL_NO (Sequential number of the account assignment): 03&lt;/P&gt;&lt;P&gt;TAX_CODE (Tax code): V1&lt;/P&gt;&lt;P&gt;ITEM_AMOUNT (Amount in document currency): 350.00&lt;/P&gt;&lt;P&gt;QUANTITY (Quantity): 3&lt;/P&gt;&lt;P&gt;PO_UNIT (PO unit of measure): SU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the tables HeaderData, ItemData, and AccountingData, or in the SAP Library under Logistics Invoice Verification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice for a one-time vendor&lt;/P&gt;&lt;P&gt;This example shows you how to proceed in order to enter and post an invoice for a one-time vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need to enter data into the AddressData table. If you do not enter any data into table AddressData, the address data for the one-time vendor is copied 1:1 from the purchase order into the invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use table AddressData for the data transfer, the address data for the one-time vendor is read from the purchase order into the invoice, and is then overwritten or added to by the fields in the AddressData table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purchase order for the one-time vendor shows the name 'SAP AG', postal code '60000', and the street and building number 'Neurottstraße 16'. You receive an invoice with the one-time vendor address as follows: Name 'SAP AG', postal code '69190', and city 'Walldorf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table AddressData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACC_1_TIME (Indicator one-time vendor): X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME (Name): SAP AG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSTL_CODE (Postal code): 69190&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CITY (City): Walldorf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The invoice is posted with the following one-time vendor address data: Name 'SAP AG', street and building number 'Neurottstraße 16', postal code '69190', city 'Walldorf'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the table AddressData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Incoming invoice for a different payee&lt;/P&gt;&lt;P&gt;This example shows you which address data you need to enter in table AddressData in order to enter and post an invoice for a different payee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You receive an invoice for the different payee with the name 'SAP AG', postal code '69190', city 'Walldorf', bank number '38070724', and account number '4711'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table AddressData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACC_1_TIME (Indicator one-time vendor): ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME (Name): SAP AG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSTL_CODE (Postal code): 69190&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CITY (City): Walldorf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BANK_NO (Bank number): 38070724&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BANK_ACCT (Bank account number): 4711&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see the parameter documentation for the table AddressData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;HEADERDATA&lt;/P&gt;&lt;P&gt;ADDRESSDATA&lt;/P&gt;&lt;P&gt;INVOICEDOCNUMBER&lt;/P&gt;&lt;P&gt;FISCALYEAR&lt;/P&gt;&lt;P&gt;ITEMDATA&lt;/P&gt;&lt;P&gt;ACCOUNTINGDATA&lt;/P&gt;&lt;P&gt;GLACCOUNTDATA&lt;/P&gt;&lt;P&gt;MATERIALDATA&lt;/P&gt;&lt;P&gt;TAXDATA&lt;/P&gt;&lt;P&gt;WITHTAXDATA&lt;/P&gt;&lt;P&gt;VENDORITEMSPLITDATA&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;MRM_BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Saquib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 15:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379772#M185625</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-07-17T15:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379773#M185626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See code bellow:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztemp.
DATA: x_in_header LIKE bapi_incinv_create_header,
      i_in_item LIKE bapi_incinv_create_item OCCURS 0 WITH HEADER LINE,
      lc_belnr LIKE bapi_incinv_fld-inv_doc_no,
      lc_gjahr LIKE bapi_incinv_fld-fisc_year,
      d_msg(110),
      i_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.

x_in_header-invoice_ind = 'X'.
x_in_header-pstng_date = '20060430'.
x_in_header-doc_date = '20060430'.
x_in_header-ref_doc_no = '0001A00015012'.
x_in_header-header_txt = 'TEXTO XXX'.
x_in_header-comp_code = '0001'.
x_in_header-currency = 'USD'.
x_in_header-gross_amount = 486.
x_in_header-calc_tax_ind = 'X'.

*-- Populate item data
i_in_item-invoice_doc_item = '000001'.
i_in_item-po_number = '4600000193'.
i_in_item-po_item = '00010'.
i_in_item-tax_code = 'C1'.
i_in_item-item_amount = 402.
i_in_item-sheet_no = '1000090650'.
i_in_item-sheet_item = '0000000010'.
APPEND i_in_item.
CLEAR i_in_item.

CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
     EXPORTING
          headerdata       = x_in_header
     IMPORTING
          invoicedocnumber = lc_belnr
          fiscalyear       = lc_gjahr
     TABLES
          itemdata         = i_in_item
          return           = i_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
     EXPORTING
          wait = 'X'.
LOOP AT i_return.
  PERFORM f_message_prepare USING sy-langu
                                  i_return-id
                                  i_return-number
                                  i_return-message_v1
                                  i_return-message_v2
                                  i_return-message_v3
                                  i_return-message_v4
                         CHANGING d_msg.
  WRITE: / d_msg.
ENDLOOP.
IF NOT lc_belnr IS INITIAL.
  WRITE: / 'Doc :', lc_belnr.
  WRITE: / 'Año :', lc_gjahr.
ENDIF.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F_MESSAGE_PREPARE
*&amp;amp;---------------------------------------------------------------------*
*       Arma mensaje
*----------------------------------------------------------------------*
FORM f_message_prepare USING    p_langu
                                p_msgid
                                p_msgno
                                p_msgv1
                                p_msgv2
                                p_msgv3
                                p_msgv4
                       CHANGING p_msg.

  DATA: lc_char(3).

  WRITE p_msgno TO lc_char.
  CLEAR p_msg.

  CALL FUNCTION 'MESSAGE_PREPARE'
       EXPORTING
            language               = p_langu
            msg_id                 = p_msgid
            msg_no                 = lc_char
            msg_var1               = p_msgv1(50)
            msg_var2               = p_msgv2(50)
            msg_var3               = p_msgv3(50)
            msg_var4               = p_msgv4(50)
       IMPORTING
            msg_text               = p_msg
       EXCEPTIONS
            function_not_completed = 1
            message_not_found      = 2
            OTHERS                 = 3.


ENDFORM.                    " F_MESSAGE_PREPARE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 15:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379773#M185626</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-07-17T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379774#M185627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u please tell me why the authorization object m_rech_wrk give the wrong plant no in athorization field werks plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Gaurav &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 06:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program/m-p/1379774#M185627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-11T06:02:07Z</dc:date>
    </item>
  </channel>
</rss>

