Symptom
The error message "Message no. MEPO038 Company code XXXX not defined for purchasing organization XXXX" occurs when creating purchase order.
Environment
SAP S/4HANA Cloud Public Edition
Cause
This is standard system checking.
Resolution
If there is no assignment between purchasing organization and company code, the system does not check the company code. If the company code is assigned to the Purchasing Org. in customizing. The system will check that and give error message "Message no. MEPO038 Company code XXXX not defined for purchasing organization XXXX".
See Also
Keywords
MEPO038, company code not defined, purchasing organization, cross company code, CBC, assignment, purchase order error, plant company code, PO creation, S/4HANA Cloud, procurement configuration , KBA , MM-FIO-PUR-PO-2CL , Fiori UI for Purchase Orders (Public Cloud) , Problem
SAP Knowledge Base Article - Public