Question: how to do idoc extension?
Answer: Run transaction code WE30. Enter a name for the IDoc extension in the Obj name field, select the Extension option, and then click the Create icon. ...  Select the Create new option, enter HRMD_A06 in the Linked basic type field, and then enter a description in the Description field.