Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic Table Columns


in my application there are two views. On the frist view there are two inputfields "from date"

and "to date". Depending on these two dates i want to build a table on the second view wich

contains one column for every day in the selected period. How could I create these columns

dynamically with the corresponding date in the header of the column?



Former Member

You can dynamically create table columns with an InputField UI-Element as cell editor.

Use method CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD. The context path is set via the import parameter BIND_VALUE.

The context path is a concatenation of the node names in the context hierarchy, separated by a dot, e.g. 'NODEMAIN.NODE'.

Regards, Silke

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question