Message type: E = Error
Message class:  LCM_LEGALTRANSACTION - Message Class for LCM Legal Transaction 
Message number: 054
Message text: To create legal transaction use nested structure in oData
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message LCM_LEGALTRANSACTION054 indicates that there is an issue with the structure of the OData request when trying to create a legal transaction. This error typically arises when the OData service expects a nested structure for the legal transaction data, but the request does not conform to that expected structure.
Cause: Incorrect OData Structure: The OData request does not follow the required nested structure for the legal transaction. This can happen if the payload is flat or if the hierarchy of the data is not properly represented. Missing Required Fields: The request may be missing required fields that are necessary for creating a legal transaction. Version Mismatch: There may be a mismatch between the OData service version and the client application, leading to discrepancies in expected data formats.
Solution: Review OData Documentation: Check the OData service documentation to understand the expected structure for creating a legal transaction. Ensure that your request payload matches this
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
LCM_LEGALTRANSACTION053 Rows type &1/&2 ID &3 are set as 'Required' and cannot be modified
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
LCM_LEGALTRANSACTION052 Set rank to zero for new rows type &1/&2 ID &3
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
LCM_LEGALTRANSACTION055 Rows type &1/&2 are set as 'Required' and cannot be modified
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
LCM_LEGALTRANSACTION056 Technical error: Cannot read tasks
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.