Message type: E = Error
Message class:  MIGO - Inventory Management: Interface 
Message number: 031
Message text: To distribute the quantity, you have to choose an item first
You have chosen <LS>Distribute quantity</>. However, you did not choose
any items that quantity is to be distributed for.
Choose an item by:
Positioning the cursor on the relevant line.
Opening the datail data for the relevant item. The detail data can be
displayed when you click the pushbutton with the line number.
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 MIGO031 ("To distribute the quantity, you have to choose an item first") typically occurs in the MIGO (Goods Movement) transaction when you attempt to perform an action that requires you to select an item, but no item has been selected.
Cause:
This error usually arises in the following scenarios:
No Item Selected: You are trying to distribute quantities or perform an action without selecting any line item in the MIGO screen.
Incorrect Sequence of Actions: You may be trying to execute a function that requires an item to be selected before proceeding.
User Interface Issue: Sometimes, the user interface may not reflect the selected item due to a glitch or refresh issue.
Solution:
To resolve the MIGO031 error, follow these steps:
Select an Item: Ensure that you have selected at least one item in the MIGO transaction. Click on the checkbox next to the item you want to work with.
Check Item Status: Make sure Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
MIGO030 You cannot switch to a movement type without ref. to a PO
What causes this issue?  You have replaced the movement type suggested with another movement type that does not refer to a purchase order.System Respo...
MIGO029 The mvt type in the reference docmt cannot be converted
What causes this issue?  You want to post a goods movement but the movement type that you want to use for the posting has not been maintained complete...
LTR2_CM_CHECK_REPORT042 Time slot '&1' is invalid
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
LTR2_CM_CHECK_REPORT043 Execution mode '&1' is invalid
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.