SAP Knowledge Base Article - Public

3377659 - When creating supplier invoice using API_SUPPLIERINVOICE_PROCESS_SRV, profit center and functional area fields are not populated

Symptom

When creating supplier invoice in app Create Supplier Invoice or Create Supplier Invoice - Advanced, the profit center and functional area fields in G/L account items are derived from cost center and populated automatically. But when creating supplier invoice using API_SUPPLIERINVOICE_PROCESS_SRV, the profit center and functional area fields are not populated if they are not maintained in payload.

Environment

S/4HANA Cloud system all version

Cause

This is standard design.

When using API API_SUPPLIERINVOICE_PROCESS_SRV it calls BAPI BAPI_INCOMINGINVOICE_CREATE.

BAPI and the frontend app both are meant to create invoices, but the main difference is that frontend app has user activity during the invoice preparation. BAPI is automatic and it takes the information given in the moment. No chance for user action so no retrieval of information automatically either in many situations.

Therefore when creating supplier invoice using API API_SUPPLIERINVOICE_PROCESS_SRV, it cannot retrieve values from cost center but use the profit center and functional area maintained in the payload. If the profit center and functional area are not maintained in the payload, the profit center and functional area in supplier invoice will be blank.

Resolution

In case you would like profit center and functional area to be updated in the MM invoice, you may have to maintain the values in the API payload.

Keywords

API_SUPPLIERINVOICE_PROCESS_SRV, profit center, functional area, cost center, API_SUPPLIERINVOICE_PROCESS_SRV_0001, SAP_COM_0057 , KBA , MM-FIO-IV , Fiori UI for Invoice Verification , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions