10-19-2005 5:47 AM
hi,
I would like to know how to download an alv tree structured data into a text file. The data in the text file should be in tree structure and should be displayed in a table format.
regards
Jags
10-19-2005 6:47 AM
hi Jagdeesh,
I know of no other way than do this manually.
1. Make a new button in the toolbar of your ALV-Tree:
See the ABAP BCALV_TREE_04.
2. Add download functionality to this button:
With this FM your internal table will open automatically in an Excel.
CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
EXPORTING
DATA_FILENAME = 'test.xls'
DATA_TABLE = lt_itab.
If you use CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD and set the importing parameters WRITE_FIELD_SEPERATOR to 'X' your will get a tab delimited txt file of your internal table.
I hope this helps.
Cheers
Daniel
10-19-2005 12:04 PM
HI DANIEL,
Thanx for giving your valuable suggestion. But I am unable to get the required output. Please let me know how can we get column aligned(with grids) output in notepad file when we downloading the data from output list. Really its urgent if you know it please let me know.
regards,
Jagadeesh