09-20-2007 3:29 PM
I have a table control with 3 columns to modify but when I save just 1 of the columns can still be modified and the others must be blocked...
The question is How can I block just one cell in a table control instead of the entire column???
Thanks for your answers and your help.
Dimas Salazar
Caracas - Venezuela
09-20-2007 10:29 PM
In your PBO, you can adjust the field properties using the usual "loop at screen." style logic - but with a table control, you just need to do this inside the table control loop e.g. along the lines of this (not syntax checked):
*" screen flow PBO
loop at gt_data1 into gs_data1 with control gtc_9999.
module d9999_modify_screen_tc.
endloop.
* PBO module
module d9999_modify_screen_tc output.
check gs_data1-XYZ = 'demo'. "condition
loop at screen. "for current row of TC
if screen-name = 'XYZ'. "for one cell
screen-active = '0'.
screen-intensified = '1'. "or whatever
endif.
modify screen.
endloop.
endmodule.
Jonathan
09-20-2007 10:29 PM
In your PBO, you can adjust the field properties using the usual "loop at screen." style logic - but with a table control, you just need to do this inside the table control loop e.g. along the lines of this (not syntax checked):
*" screen flow PBO
loop at gt_data1 into gs_data1 with control gtc_9999.
module d9999_modify_screen_tc.
endloop.
* PBO module
module d9999_modify_screen_tc output.
check gs_data1-XYZ = 'demo'. "condition
loop at screen. "for current row of TC
if screen-name = 'XYZ'. "for one cell
screen-active = '0'.
screen-intensified = '1'. "or whatever
endif.
modify screen.
endloop.
endmodule.
Jonathan
12-26-2007 11:38 AM
Sir;
I tried one ALV Report Program.,Based on the input ,various storage location value will be displayed...
example : i will(statically) generate 30 output fields using field catalog .
based on input, in 30 fields
some of the fields the value will be displayed..
remains the fields the value will be un filled.
i want to generate the fields dynamically, only the fields having values....or
if the fields should be empty ,it should be hide.
thanks in advance,
high priority...
PLZ help me....
my mail id
k.s.kannan@numericups.com
Best regards
K.S.Kannan.i
09-21-2007 4:49 AM
Hi Dimas,
The basic idea to pinpoint a cell is the vertical and horizontal co-ordinates or the row number and the column number right?
we can have the row number based on the user selecting the 'SEL' button...so we have our row number
There is another table/structure COLS for the table control where we can get/set the column number which can give the column number...in COLS again we have a deep structure with properties as field name,visibilty,I/O...etc
then we can use the loop at screen and change the input/output properties...
pls check and revert,rewards if helpful
Regards
Byju