Symptom
When posting through API Journal Entry - Post (Synchronous) via postman, error “415 Unsupported Media type” occurred.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP S/4HANA Cloud Public Edition
Cause
In Headers tab, only one Content-Type “application/xml” is maintained. Content-Type “text/xml; charset=utf-8” is missing.
Resolution
1. In below screenshot, click on “Key”, choose “Content-Type”. Click “value”, input below:
text/xml; charset=utf-8
2. Make sure the newly added line is selected with a tick on the left.
3. Retest, and the error should not occur.
Keywords
415 Unsupported Media type, api, Journal Entry - Post (Synchronous), postman , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem
SAP Knowledge Base Article - Public