2009 May 20 3:15 PM
is it possible to define a table control dynamicallllyyy ?
ie i need different no of colums acording to the no of employeess fetched
Thanks
Yes, you can create dynamically table structures for the ALV grid.
please refer to wiki "Creating Flat and Complex Internal Tables Dynamically using RTTI"
https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingFlatandComplexInternalTablesDynamicallyusingRTTI
2009 May 20 3:33 PM
2009 May 20 3:48 PM
Hi,
I think that is not posible because you have to assign a static table control structure directly in the dynpro. If you want a dynamic table structure you should use an ALV grid.
2009 May 20 3:54 PM
But can we create the internal table structure dynamically for the grid ?
2009 May 20 5:50 PM
Yes, you can create dynamically table structures for the ALV grid.
please refer to wiki "Creating Flat and Complex Internal Tables Dynamically using RTTI"
https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingFlatandComplexInternalTablesDynamicallyusingRTTI
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |