SAP Knowledge Base Article - Public

3740285 - Supplier Invoice via API_SUPPLIERINVOICE_PROCESS_SRV shows error message when parking if FI or MM posting period is closed

Symptom

When sending an invoice payload via API_SUPPLIERINVOICE_PROCESS_SRV to park a supplier invoice, a hard error occurs if either the FI posting period or the MM posting period is closed. However, when using Create Supplier Invoice – Advanced(MIRO) app, a warning popup about the allowed posting period appears, and after selecting Continue the invoice can be parked.

Environment

SAP S/4HANA Cloud Public Edition

Cause

The difference in behavior between MIRO and the API is due to the processing type. The MIRO application is interactive and can display a warning popup, allowing the user to manually confirm and proceed despite the inconsistency in posting periods. In contrast, the API runs in a non-interactive (background) mode and cannot handle user confirmations or popups. For this reason, situations that would trigger a warning in the UI are treated as error messages in the API to ensure data consistency during automated processing.

Resolution

This means that the API cannot replicate the MIRO behavior of allowing continuation via a warning, and this is by design. It is also not possible to convert these errors into warnings or bypass the posting period checks for supplier invoices.

To resolve the issue, it is recommended to ensure that both FI and MM posting periods are open simultaneously before sending the invoice via the API, or alternatively to adjust the posting date in the payload so that it falls within a period that is open in both areas.

See Also

Keywords

SUPPLIERINVOICE_PROCESS_SRV, supplier invoice api, park invoice, hard error, posting period closed, fi period, ap period, mm period, miro warning, create supplier invoice advanced, period not open, background processing, non-interactive, posting date, parking not allowed , KBA , MM-FIO-IV-2CL , Fiori UI for Invoice Verification (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions