‎2013 Oct 14 6:22 AM
hi experts
I hav to display an ALV grid , of the selected fields at run time, i guess i will have to make a new structure dinamically everytime and pass it on to the field catalog, how to do it ???
‎2013 Oct 14 7:12 AM
‎2013 Oct 25 7:34 AM
‎2013 Oct 25 8:00 AM
Hi,
If the potential fields list is known have you consider using the field catalog ?
For example if you use CL_GUI_ALV_GRID You can use the "TECH" field in the field catalog .
Regards.
‎2013 Oct 26 5:19 AM
yes Mr. Eitan Rosenberg, all the potential field is known, but the requirment says select random fielfrom those at runtime and when you execute the progrem it sudcreate an ALV of those selected fields.
‎2013 Oct 26 6:25 AM
Hi,
This is good news !
It is very easy then at run time to simply hide from the user the fields he did not select.
How:
Lets assume that you are using CL_GUI_ALV_GRID.
Side note: please download PDF called "An Easy Reference for ALV Grid Control.pdf" goggle for it.
Or see here http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649a6f17411d2b486006094192fe3/content.htm
At some point you have to generate the field catalog. So either set the field "LVC_S_FCAT-TECH" or simply do not generate a line in the field catalog for the unselected fields. The grid structure stay fixed .
Regards .
‎2013 Oct 26 6:28 AM