SAP Note 196973 - Error message "Company code is not defined"

Component : SD CO interface, costing -

Solution : https://service.sap.com/sap/support/notes/196973 (SAP Service marketplace login required)

Summary :
When modifying an item in an old sales order, SAP system error F5165 occurs, stating the company code is undefined. This issue arises post-upgrade to Release 4.x and affects only pre-upgrade sales orders. To remedy this, implement USEREXIT_READ_DOCUMENT to dynamically update the company code during runtime or run the ZBUKRS_VF report to identify and correct affected documents. Ensure the latest version of the report, updated as of July 5th, 2000, is used. Additionally, manual interventions in Transaction VA02 are supported by the changes in the ZBUKRS_VF report for batch updates. Reference further in SAP Note 385939 for related updates.

Key words :
system issues error message f5165, additional key words bukrs, run report zbukrs_vf, report 'zbukrs_vf' includes, execute report 'zbukrs_vf', single document change, user exit 'userexit_read_document', error occurs, document header, collective change

Related Notes :

385939SIS/BW: Changed data after correction reports in SD/LE
104678Results analysis by period