Question: how to do idoc extension in sap?
Answer: Enter transaction code WE31.
From the Segment type list, enter a segment type and then click the Create icon. ... 
In the Short Description field, enter a description for the segment. ... 
Click the Save icon. ... 
In the Package field, enter a name for the package and then click the Save icon.