Hi Yogi,
You can use Z_SAP_HIERARCHY_DOWNLOAD, it works fine. Infact we are using the same. But after the down load an excel sheet will be generated. You have to go for fixed width option do the changes as per requirement (Project specific) and save as text.