For a message, you can generate the record mapping and field mapping based on an external document and a recording of the applicable forms and fields in D365 F&SCM.
The form mapping recording also records the data structure of the mapped D365 F&SCM fields.
You can use this, for example, as a starting point for the message record mapping and field mapping.