I guess you might have this experience. While entering a goods receipt (MM-IM) through transaction MIGO, there is the error message: F5727 “Maximum number of items in FI reached”.
There is a limit of (999) line items which can be posted per FI document. This is because the line item number (BSEG-BUZEI) field length is defined as (3) numeric positions, i.e., (999) line items.
The most commonly used workarounds are as follows:
- Implement FI summarization (per note 36353).
- Split the MM document which needs to be posted. For example, in the Goods Movements or the invoice document, there are around 500 line items which will lead to more than 999 line items in the accounting document. Then split the 500 line items into different MM postings, so that each posting will only contain less line items which creates accounting document items less than 999.
Now with the new solution from note 1353827 (for MM-IM) and note 1353125 (for MM-IV), the FI documents would be automatically splitted. As a result you would have several FI documents assigned to one MM document. Thus you don’t have to worry about the error F5727 or splitting the MM documents.
For details you could check the notes above. But there are some points you need to pay attention:
- To let system executes an automatic document split in FI for MM postings with more than 999 line items in FI, summarization should not be activated.
- When system is doing FI document splitting, ACCIT_FI-LOGVO field which contains the mseg line information is used to assure, that the split is not done within one material item. I.e. the FI document line items for one same MM document item should not be splitted into different FI documents.
Let us take a look at an example where this automatic document split in FI happens:
This material document contains 533 line items:
Previously when posting such material document, there will be F5727 because the line items in the FI document will be more than 999 line items. But with automatic document split in FI, material document got posted and there are 2 FI documents were created: