Application Development 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: 

table control display

Former Member
0 Kudos

Hi friends,

I need your help to solve this problem.

I am working on table control with wizard. In that i have four fields - fg flag userid and date. Of which userid and date will be in display mode always( ie the user cant edit this mode at any time). I have made them to be in display mode.

But the fg field should be in display mode when i normally execute the transaction. But when i try to insert a record it should change to edit mode (ie the user must be able to insert the value) for that particlar record which i am going to insert others should be in display mode only. The flag field must in edit mode always.

In short, how to change the input mode of my field for a particular record alone

Please try out with some logic.

Thanks in advance

Bhuvana

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Bhuvaneswari,

Try this code.

In the pbo of the screen, within the loop.. endloop, insert a module

in that module, check the value if the field required and sy-ucomm if necessary and modify the screen as given below.

process before output.

  loop at   <itab>
       into <wa>
       with control <tc>
       cursor <tc>-current_line.
  module modify_screen.
  endloop.

 module status_0100 .

module modify_screen output.

if sy-ucomm eq 'INS' and <wa>-field1 eq <required value>.

loop at screen.
screen-input = 1.
modify screen.
endloop.

endif.

endmodule.

Regards

Indu

3 REPLIES 3

Former Member
0 Kudos

Refere This demo program

RSDEMO02

Regards

Anbu B

Former Member
0 Kudos

Bhuvaneswari,

Try this code.

In the pbo of the screen, within the loop.. endloop, insert a module

in that module, check the value if the field required and sy-ucomm if necessary and modify the screen as given below.

process before output.

  loop at   <itab>
       into <wa>
       with control <tc>
       cursor <tc>-current_line.
  module modify_screen.
  endloop.

 module status_0100 .

module modify_screen output.

if sy-ucomm eq 'INS' and <wa>-field1 eq <required value>.

loop at screen.
screen-input = 1.
modify screen.
endloop.

endif.

endmodule.

Regards

Indu

Former Member
0 Kudos

Thanks for ur help