Question: how to do idoc mapping?
Answer: Launch the SAP Metadata utility and specify the SAP connection properties to connect to the SAP system. Verify that you select the IDoc option and then connect to the SAP system. Enter the MATMAS as the message type and MATMAS03 as the IDoc type to fetch the IDoc segments and fields for MATMAS.