Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Doubt in table controll

former_member195383
Active Contributor
0 Likes
571

Hi all

I am using a table controll, in which i hav one input field.Can i vary the length of the field from one row to another, based on a perticular condition.

While defining attributes, we input def length and that defines the maximum no of characters that we can input.But that will define the allowable length for the entire coloumn.

I want to know wheather we can vary the defined length from row to row.Can it be done in PBO..

Regards

Rudra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

I had not done for length, but i think that should be possible.

I was having similar requirement in which i need to input disable field of table control row depending on some conditions, for that wat i had done is assign screen group say 'G1' to that field (column ) of table control, and in PBO , in the module written inside the loop of table control written fillowing code,

if it_vbak-vbeln eq '0000004969'.

loop at screen.

if screen-group1 = 'G1'.

screen-input = '0'.

screen-output = '1'.

modify screen.

endif.

endloop.

endif.

Kindly note, its sample code.

Reward if useful.

Hi all

I am using a table controll, in which i hav one input field.Can i vary the length of the field from one row to another, based on a perticular condition.

While defining attributes, we input def length and that defines the maximum no of characters that we can input.But that will define the allowable length for the entire coloumn.

I want to know wheather we can vary the defined length from row to row.Can it be done in PBO..

Regards

Rudra

3 REPLIES 3
Read only

Former Member
0 Likes
558

I had not done for length, but i think that should be possible.

I was having similar requirement in which i need to input disable field of table control row depending on some conditions, for that wat i had done is assign screen group say 'G1' to that field (column ) of table control, and in PBO , in the module written inside the loop of table control written fillowing code,

if it_vbak-vbeln eq '0000004969'.

loop at screen.

if screen-group1 = 'G1'.

screen-input = '0'.

screen-output = '1'.

modify screen.

endif.

endloop.

endif.

Kindly note, its sample code.

Reward if useful.

Read only

0 Likes
557

Hi...

Thanx 4 the reply..But i want to vary the length.And screen does not contain any atribute for length, so that we can change it dynamically...So if thr is ne other way pls suggest...

Read only

former_member195383
Active Contributor
0 Likes
557

Infact screen does have an attribute called length...through which we can modify the input length from one row to another....