"Function to Display All the Columns of any Table Work
Area
Note:-
1. Created quick ALV function to display alv for any internal table passed.
2. Developed dynamic program generation ( we can execute program dynamically
without passing request to the production server)
3. Created a dynamic program to display any FOXPRO table into ABAP ALV.
Feel free to contact for your doubts.
Thanks
calling the function :-
CALL FUNCTION 'ZPREM_QLINE' TABLES zf = internal_table .
**********
create a function & define ZF in the tables parameter name without Type spec.
************source code
FUNCTION ZPREM_QLINE.
FIELD-SYMBOLS: <F>.
DO.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE ZF TO <F>.
IF SY-SUBRC <> 0. EXIT. ENDIF.
if sy-index = 1. write / ' '. endif.
if sy-index = 25. exit. endif.
WRITE : <F>, sy-vline.
ENDDO.
ENDFUNCTION.