Function to Display All the Columns of any Table Work Area

Advantage :-
This function can be used as a quick write report with very less coding to any passed internal table.

use & enjoy.

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.

ABAP Tips by: R.Prammenthiran
Email : sap.prem@gmail.com

Fast Links:
Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

ABAP Programming Tips
ABAP Forum for Discussion and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.