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

Making Table control records Editable / Non-editable

Former Member
0 Likes
1,929

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.........

6 REPLIES 6
Read only

Former Member
0 Likes
1,023

Did you check this thread??

Note: Avoid posting duplicate [threads.|;

Read only

Former Member
0 Likes
1,023

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

Read only

Former Member
0 Likes
1,023

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

Read only

Former Member
0 Likes
1,023

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.

Read only

dev_parbutteea
Active Contributor
0 Likes
1,023

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.

Read only

Former Member
0 Likes
1,023

This message was moderated.