| |||||||||
Some amounts displayed in the Invoice Summary section do not appear to be correct. This applies for Electronic Data Interchange (EDI) invoices.
Except for the Total Gross Amount, the other amounts (Subtotal, Total Net Amount, and Amount Due) are incorrect, as they have two extra zeros. For example, Total Gross Amount displays $2,390.19, which is correct. Subtotal and Amount Due should have the same value, but instead they display $239,019.00.

The value for the AMT02 segment is defined as a real number (R). It differs from the TDS01 segment, which is defined as N2, meaning integer with two (2) implied decimal points. Therefore, if the intention is to specify the amount $123.45 in the AMT02 segment, specify it as 123.45 instead of 12345.
The following shows the various amounts in the Invoice Summary section, in Commerce Extensible Markup Language (cXML) format, in the left-hand column. The right-hand column shows the corresponding EDI data.
| cXML | EDI |
| <SubtotalAmount><Money currency="USD">239019</Money></SubtotalAmount> | AMT*1*239019~ |
| <GrossAmount><Money currency="USD">2390.19</Money></GrossAmount> | TDS*239019*239019*-2390*2390~ |
| <NetAmount><Money currency="USD">236629</Money></NetAmount> | AMT*N*236629~ |
| <DueAmount><Money currency="USD">239019</Money></DueAmount> | AMT*BAP*239019~ |
Because the value in the AMT02 segment is defined as a real number, if the value is 239019, it is interpreted as 239019, not 2390.19.
Since the TDS01 segment is defined as N2, the same value (239019) is interpreted as 2390.19. This segment should, instead, contain 2390.19, if the intent is to have the value of 2390.19 for the SubtotalAmount or DueAmount.
Only the TDS02 segment is defined as N2 (integer with 2 implied decimal places).
Review the data definition, and include the appropriate value in each corresponding element in the EDI data.
The following excerpts from the EDI 810 Implementation Guide show the data type for TDS01 versus AMT02:


SAP Business Network for Procurement & Supply Chain > Transaction Documents > Transaction (Invoicing)