SAP Message VL227 - Delivery type & has an incorrect sales document category

Diagnosis
You attempted to create a document with a sales document category thatis not suitable for the current action.
In release 4.0A, rough goods receipts has its own sales documentcategory, for which the following assignments are valid:
Rough goods receipt --> sales document category 'g'
inbound delivery --> sales document category '7'

Procedure
Change the sales document category inCustomizing.
If you had worked with outputs in connection with inbound deliveries orrough GR even before release 4.0A, please note that there are nowseparate applications for each process. Assignment of the valid outputdetermination procedure can also be maintained in Customizing:
Inbound Delivery - Output Determination Procedure
Rough GR - Output Determination Procedure