cancel
Showing results for 
Search instead for 
Did you mean: 

Properties of Context Attributes for InputField or DropDownByKey

Former Member
0 Kudos

Hi,

I found the link

[http://help.sap.com/saphelp_nw2004s/helpdata/en/45/d44e0cdff073b1e10000000a11466f/content.htm]

CALL METHOD lr_elem->set_attribute_property
      EXPORTING
        attribute_name = 'ARRTIME'
        property       = lr_elem->e_property-read_only
        value          = l_restrict.

This works fine for a table, does it also work for InputField or DropDownByKey

Thanks

Marcus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi marcus...

this works for input field too.....

no need for exporting keyword..

---regards,

alex b justin

Former Member
0 Kudos

what do you mean with no exporting keyword?

Former Member
0 Kudos

hi marcus......

its like this:


lo_el_input_mara->set_attribute(
         name =  `ERNAM`
         value = lv_ernam ).

.

---regards,

alex b justin

Former Member
0 Kudos

yes but i want to set the property readonly

Former Member
0 Kudos

hi marcus....

if you want to make your input field... read only...

then it has a property called read only. just check it.

or if you want to do it dynamically....

bind the checkbox to an attribute of type wdy_boolean.

pass the values true or false to make it read only or enabled.

---regards,

alex b justin

Former Member
0 Kudos

That's the way I know.

But I tought the other way is also possible, because this works fpr a table.