SAP Knowledge Base Article - Preview

3560029 - BAPI: Error M8366 - SAP ERP & SAP S/4 HANA

Symptom

Error "M8366 - Terms of payment are incorrect" occurs when posting an invoice using BAPI_INCOMINGINVOICE_CREATE if both the payment term (field name PMNTTRMS) and the detailed payment term information (file names: DSCT_DAYS1, DSCT_DAYS2, NETTERMS, DSCT_PCT1, DSCT_PCT2) are simultaneously entered in the header structure (HEADERDATA). 

DISCLAIMER: Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Environment

  • Materials Management (MM)
  • SAP ERP Central Component
  • SAP ERP
  • SAP enhancement package for SAP ERP
  • SAP enhancement package for SAP ERP, version for SAP HANA
  • SAP S/4 HANA

Product

SAP ERP Central Component all versions ; SAP ERP all versions ; SAP Fiori all versions ; SAP S/4HANA all versions ; SAP enhancement package for SAP ERP all versions ; SAP enhancement package for SAP ERP, version for SAP HANA all versions

Keywords

Terms of payment, Cash (Prompt Payment) Discount Days, Cash Discount Percentage 1, Cash Discount Percentage 2, Cash Discount Percentage, days1, days2 , KBA , MM-IV-LIV-BAPI , BAPI , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.