2009 Jan 06 6:21 AM
Dear all,
i have a specific requirement on screen painter - Table Control wherein I have 2 screens...
First screen is just like a Selection screen for resticting data retrieval ...based on this first screen the data will be shown in the table control in second screen.
Now I want some of the records (to be displayed in TABCON) to be editable and some to be Non-editable Based on selection
i.e if internal table has a specific value for a specific field then that record has to be Non-editable.. other wise it should be editable....
Should I try with structure SCREEN or any other way out ? How ? Pls share ur views......
Thanks in advance.........
Dear all,
i have a specific requirement on screen painter - Table Control wherein I have 2 screens...
First screen is just like a Selection screen for resticting data retrieval ...based on this first screen the data will be shown in the table control in second screen.
Now I want some of the records (to be displayed in TABCON) to be editable and some to be Non-editable Based on selection
i.e if internal table has a specific value for a specific field then that record has to be Non-editable.. other wise it should be editable....
Should I try with structure SCREEN or any other way out ? How ? Pls share ur views......
Thanks in advance.........
2009 Jan 06 6:26 AM
2009 Jan 06 6:31 AM
Hi Ubhaka ,
Based on the values of selection screen you must be having some data in your internal table
Make your table control in the next screeen to work on same internal table.
Now the question comes of visibility ...
then there is a nested structure in the structure of your table control kown as cols .
You can modify the various properties of cols to make it visible ans invisible etc .
Once you modify the value of cols you can see the changes in the screen .
Thanks
Sahil
2009 Jan 06 6:36 AM
Hi all,
Based on the internal table data, check the entries with the condition and check on the loop at screen
to make the fields editable and non editable.
Hopw this will solve your problem..
one more option if you are familiar with ABAP oops, instead Table controls you can use the GRIDs also
to display the data in Table control.
Regards,
Madhavi
2009 Jan 06 6:36 AM
in flow logic
with in the loop write a module to control the table control...
in PBO
loop at itab ....
module enable_disable
endloop.
in se38 program..
module enable_disable
modify screen
here u screen structure
endmodule.
2009 Jan 06 6:50 AM
Hi ,
in your pbo:
CONTROLS: TAB_IND TYPE TABLEVIEW USING SCREEN 9999. --> your screen number
loop at i_itab into wa
with control tab_ind cursor tab_ind-current_line.
module 9999_fill_in.
endloop.
in 9999_fill_in:
MODULE 9999_fill_in OUTPUT.
LOOP AT SCREEN.
if condition = true
screen-input = ' '.
endif.
modify screen.
ENDLOOP.
ENDMODULE.
Regards,
Dev.
2011 Feb 16 12:27 PM