Skip to Content
0
Former Member
Jan 12, 2011 at 10:11 AM

Set state in a table column (not ALV) dinamically

41 Views

Hi,

I have a table where the obligatory columns should appear with the red "*" that says it's obligatory.

Some columns are not obligatory always, it depends on some options the user have choosen in some other fields.

I'm trying to do it with the STATE attribute of the input field of the column. So I assign the value I have in the context to it.


  data ls_ui  type dpr_ts_fc_ui.

   ls_ui-state = '01'.

I send this information to the context to GSBER_UI and then I bind this context to the attribute in the view:

V_SENDER.BP_0002.GSBER_UI.STATE 

But it doesn't work, and I don't know why because I'm doing the same for the VISIBLE and READONLY attributes and it works.

And I'm able to set the STATE attribute to a normal (not in a table) input_field element.

Could anyone help me?

Thank you!