cancel
Showing results for 
Search instead for 
Did you mean: 

INVOIC01 balance issue

nickcazeaux
Discoverer
0 Kudos

Having an issue posting an invoice with the below:

I get error: Balance not zero: 2,40 debits: 0,00 credits: 2,40

Message No. M8534

However if I change the amount to 0.00 in E1EDS01 then it will post.

But header shows 0.00 as does amount on the Goods receipted PO Line of invoice.

Looking at the accounting document - it does seem to have added credit and debit against GL accounts ok

What am I missing?

<?xml version="1.0" encoding="utf-8"?>

<INVOIC>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<MANDT>700</MANDT>

<IDOCTYP>INVOIC01</IDOCTYP>

<MESTYP>INVOIC</MESTYP>

<SNDPOR>XMLFILE</SNDPOR>

<SNDPRN>ABACLNT100</SNDPRN>

<SNDPRT>LS</SNDPRT>

<RCVPRN>ABACLNT100</RCVPRN>

<RCVPRT>LS</RCVPRT>

<DOCNUM>9999</DOCNUM>

<MESCOD>MM</MESCOD>

</EDI_DC40>

<E1EDK01 SEGMENT="1">

<ACTION>001</ACTION>

<BELNR>840255</BELNR>

<BSART>INVO</BSART>

<CURCY>USD</CURCY>

</E1EDK01>

<E1EDKA1 SEGMENT="1">

<PARVW>LF</PARVW>

<PARTN>300011</PARTN>

<LIFNR>300011</LIFNR>

</E1EDKA1>

<E1EDKA1 SEGMENT="1">

<PARVW>RE</PARVW>

<PARTN>300011</PARTN>

</E1EDKA1>

<E1EDK02 SEGMENT="1">

<QUALF>009</QUALF>

<BELNR>840255</BELNR>

</E1EDK02>

<E1EDK03 SEGMENT="1">

<IDDAT>012</IDDAT>

<DATUM>20230710</DATUM>

</E1EDK03>

<E1EDK04 SEGMENT="1">

<MWSKZ>V0</MWSKZ>

<MSATZ>0.00</MSATZ>

<MWSBT>0.00</MWSBT>

</E1EDK04>

<E1EDK14 SEGMENT="1">

<QUALF>011</QUALF>

<ORGID>1000</ORGID>

</E1EDK14>

<E1EDP01 SEGMENT="1">

<POSEX>1</POSEX>

<MENGE>2.00000</MENGE>

<MENEE>PC</MENEE>

<PEINH>1.20</PEINH>

<CURCY>USD</CURCY>

<VPREI>2.40</VPREI>

<PREIS>2.40</PREIS>

<NETWR>2.40</NETWR>

<E1EDP02 SEGMENT="1">

<QUALF>001</QUALF>

<BELNR>4500000006</BELNR>

<ZEILE>00010</ZEILE>

<DATUM></DATUM>

</E1EDP02>

<E1EDP02 SEGMENT="1">

<QUALF>012</QUALF>

<BELNR>5000000008</BELNR>

<ZEILE>00001</ZEILE>

<DATUM></DATUM>

</E1EDP02>

<E1EDP03 SEGMENT="1">

<IDDAT>001</IDDAT>

<DATUM>20230710</DATUM>

</E1EDP03>

<E1EDP04 SEGMENT="1">

<MWSKZ>V0</MWSKZ>

<MSATZ>0.00</MSATZ>

<MWSBT>0.00</MWSBT>

</E1EDP04>

</E1EDP01>

<E1EDS01 SEGMENT="1">

<SUMID>011</SUMID>

<SUMME>2.40</SUMME>

<WAERQ>USD</WAERQ>

</E1EDS01>

</IDOC>

</INVOIC>

moshenaveh
Community Manager
Community Manager
0 Kudos

Welcome to the SAP Community! Thank you for visiting us to get answers to your questions.

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see https://community.sap.com/resources/questions-and-answers, as this resource page provides tips for preparing questions that draw responses from our members. Secondly, feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html as well, as that will help you when submitting questions to the community.

Finally, I recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

nickcazeaux
Discoverer
0 Kudos

I have now resolved this. I was missing the E1EDP26 part which should be before E1EDP04

Accepted Solutions (0)

Answers (0)