01-03-2006 9:33 AM
01-03-2006 2:31 PM
Hi,
Pls have a look, following example may helps u....
Example: Incoming invoice with G/L and material account posting.
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.
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.
Enter the following data:
Table HeaderData
INVOICE_IND (Post invoice/credit memo): X
DOC_DATE (Document date): 08.05.2000 PSTNG_DATE (Posting date):
PSTNG_DATE (Posting date): 08.08.2000
COMP_CODE (Company code): 1000
CURRENCY (Currency key): USD
GROSS_AMOUNT (Gross amount): 150.80 CALC_TAX_IND (Automatically
CALC_TAX_IND (Automatically calculate tax): X
PMNTTRMS (Terms of payment key): 0001
Table ItemData INVOICE_DOC_ITEM (Item in invoice document):
INVOICE_DOC_ITEM (Item in invoice document): 00001
PO_NUMBER (PO number): 4500006846
PO_ITEM (PO item): 00010
TAX_CODE (Tax code): VN
ITEM_AMOUNT (Item amount): 100
QUANTITY (Quantity): 100
PO_UNIT (Unit of measure): PC
Table GlAccountData
INVOICE_DOC_ITEM (Document item in invoice document): 00001
GL_ACCOUNT (G/L account): 400000
ITEM_AMOUNT (Item amount): 10.00
DB_CR_IND (Debit/credit indicator): S
COMP_CODE (Company code): 0001
TAX_CODE (Tax code): VN
COSTCENTER (Cost center): 1
Table MaterialData
INVOICE_DOC_ITEM (Document item in invoice document): 0001
MATERIAL (Material): MAT01
PLANT (Valuation area): 0001
DB_CR_INP (Debit/credit indicator): S
ITEM_AMOUNT (Item data): 10.00
QUANTITY (MENGE_D): 1
PO_UNIT (PO unit of measure): PC
TAX_CODE (Tax code): VN
---Sreedhar
01-03-2006 3:06 PM
Hi Arthi,
Please refer to the Function Module documentation. You will find the complete code with values to be filled in each of the tables.
Hope it helps....
Lokesh
Pls. reward appropriate points