cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the property's value of the UI elements "table column"

Former Member
0 Kudos

hi,experts..

i am a complete rookie in webdynpro for abap.can anyone show me how to get the property value of table column or give me useful web links.

thanks, plz forgive my ignorance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you are talking about ALV table check this

https://forums.sdn.sap.com/click.jspa?searchID=26037943&messageID=7121438

https://forums.sdn.sap.com/click.jspa?searchID=26037943&messageID=7127313

or if it is a standard table check these classes

cl_wd_table

cl_wd_table_column and check where they are used

Thanks

Bala Duvvuri

Answers (2)

Answers (2)

Former Member
0 Kudos

ok,i know the solution as follow:

data wd_input_obj type ref to cl_wd_table_column.

wd_input_obj ?= view->get_element( 'T_DOCUEMNT_OBJ_NOTE' ).

max_len = wd_input_obj->get_width( ).

former_member226203
Active Contributor
0 Kudos

after u create a view, in the layout u can create some ui elements. now if u create a table, u can bind the the table. jus chk the properties of this, and u will see a property called VALUE . u can bind it here.

jus check some basic tutorials at this link:

[original link is broken]

Former Member
0 Kudos

actually,i want to get the value of 'width' property of a table column in the program....how.??

Former Member
0 Kudos

Hi,

you can check this class:

CL_SALV_WD_COLUMN GET_WIDTH

GR