Skip to Content
0
Former Member
Jun 17, 2006 at 07:00 PM

Problem with, BAPI_INCOMINGINVOICE_CREATE

254 Views

Hi,

I am running 4.7 in a service purchase order process. After doing the entry sheet creation, I try make the invoice by BAPI_INCOMINGINVOICE_CREATE but I get always the message M8 (534). Balance not zero: 157,38 debits: 0,00 credits: 157,38

I make a movement via de GLACCOUNT structure, changing the PEP element(WBS_ELEM).

If I try doing using MIRO I can finish without problems, but I don't know what I am filling out wrongly in the BAPI.

Does anybody know if I have left something in my BAPI Call??

Thanks in advance

BR

BAPI_INCOMINGINVOICE_CREATE

****HEADERDATA

INVOICE_IND X

DOC_TYPE RE

DOC_DATE 20060617

PSTNG_DATE 20060617

COMP_CODE 1000

CURRENCY EUR

GROSS_AMOUNT 157.3800

****ITEMDATA

INVOICE_DOC_ITEM 000001

PO_NUMBER 7000000439

PO_ITEM 00010

TAX_CODE S0

ITEM_AMOUNT 6.1000

QUANTITY 1.000

PO_UNIT ST

SHEET_NO 1000000445

SHEET_ITEM 0000000010

INVOICE_DOC_ITEM 000002

PO_NUMBER 7000000439

PO_ITEM 00010

TAX_CODE S0

ITEM_AMOUNT 11.5900

QUANTITY 1.000

PO_UNIT ST

SHEET_NO 1000000445

SHEET_ITEM 0000000020

....

**ACCOUNTINGDATA

INVOICE_DOC_ITEM 000001

SERIAL_NO 01

TAX_CODE S0

ITEM_AMOUNT 6.1000

QUANTITY 1.000

PO_UNIT ST

GL_ACCOUNT 0000960500

CO_AREA 1000

WBS_ELEM 00038877

INVOICE_DOC_ITEM 000002

SERIAL_NO 01

TAX_CODE S0

ITEM_AMOUNT 11.5900

QUANTITY 1.000

PO_UNIT ST

GL_ACCOUNT 0000960500

CO_AREA 1000

WBS_ELEM 00038877

....

***GLACCOUNTDATA

INVOICE_DOC_ITEM 000010

GL_ACCOUNT 0000960500

ITEM_AMOUNT 6.1000

DB_CR_IND H

NEG_POSTNG

COMP_CODE 1000

TAX_CODE S0

WBS_ELEM 00039829

.....

The structure GLACCOUNTDATA has the same positions but with the H flag and with the new wbs_elem