2008 Feb 19 8:24 AM
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
2008 Feb 19 8:45 AM
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.
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.
2008 Feb 19 8:45 AM
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.
2008 Feb 19 9:44 AM
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...
2008 Feb 20 5:41 AM
Infact screen does have an attribute called length...through which we can modify the input length from one row to another....
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |