Skip to Content
0
Former Member
Jul 08, 2010 at 11:10 AM

Change length of an attribute dynamically

16 Views

Hello Everyone,

I am displaying data from a node in an ALV.

The node has an attribute whose length has been set to 30.

There are 3 cases.

In 2 of the cases, the length of one attribute in the node has to be restricted to 10, and the user would be allowed to enter in values in the ALVs.

Whereas in the third case, the length of the same attribute should be 30 and there also the user would be able to enter in values to that particular column.

Is there any way we can use the same node and change the length of the attribute dynamically based on the condition.

I believe I can bind a different node dynamically which has the respective length based on the case. But can this done by using just one node and changing the length of the attribute dynamically?

I hope I was able to explain my scenario clearly. Could someone give me valuable suggestions. 😊

Cheers,

Vishnu