Message type: E = Error
Message class:  OIJ_RU - Messages for TSW-ETRAN integration 
Message number: 504
Message text: Different company code in source document items
The program found different company codes in different items of the
source document from which you want to copy this data.
The program does not fill the company code data field in the customs
declaration header.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message OIJ_RU504, which states "Different company code in source document items," typically occurs in the context of SAP Oil and Gas (OIJ) when there is an inconsistency in the company codes associated with the source documents being processed. This error is often encountered during transactions that involve multiple documents or when trying to perform operations that require consistency in company codes.
Cause: The primary cause of this error is that the source documents (such as purchase orders, invoices, or other financial documents) being referenced in the transaction belong to different company codes. In SAP, each company code represents a separate legal entity, and transactions involving multiple company codes must be handled with care to maintain financial integrity.
Solution: To resolve the OIJ_RU504 error, you can take the following steps: Identify the Source Documents: Determine which source documents are causing the error. You may need to check the document numbers or references in
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
OIJ_RU503 Ticket & & & does not contain subitems
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OIJ_RU502 Ticket & & & does not contain items
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OIJ_RU505 Different sold-to party in source document items
What causes this issue?  The program found different sold-to party data in different items of the source document from which you want to copy this dat...
OIJ_RU506 Different ship-to party in source document items
What causes this issue?  The program found different ship-to party data in different items of the source document from which you want to copy this dat...
Click on this link to search all SAP messages.