SAP Message 5E040 - The specified company (or center) does not exist in group &

Diagnosis
The company you have entered for the specified group has not beenassigned to that group and therefore cannot be the head office of thegroup.

System Response
Error message.

Procedure
Use the F4 help to view the companies assigned to the group and selectone of them.
If you want to assign specifically that company to the companygroup/grouping, execute the IMG activity 'Assignhead office and center to company group/grouping'.