Hello Gayatri,
Segment structure of the IDoc type definition is stored in the table IDOCSYN - so you can find parent/child segments for the given segment of the known IDoc type from there. As an alternative (and not to query the table directly), you can also utilize the standard function module IDOCTYPE_READ for this purpose.
Regards,
Vadim