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

table control in display mode

Former Member
0 Likes
2,706

Hello Friends,

I have made one report program with 3 radio buttons display , create and change on the selection screen , if the user selects display option radiobutton this will call one screen.

i want all the the data displayed to the user should be in display mode on the screen.

Pls provide some soln.

Regards,

Sunny

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,564

Try this for making colums in a table control in display:

DATA wa LIKE LINE OF tab_con-COLS.

loop at tc-cols into wa.

wa-SCREEN-INPUT = 0 .

modify tc-cols from wa.

endloop.

where tc is ur table control and

Try this for making colums in a table control in display:

DATA wa LIKE LINE OF tab_con-COLS.

loop at tc-cols into wa.

wa-SCREEN-INPUT = 0 .

modify tc-cols from wa.

endloop.

where tc is ur table control and

6 REPLIES 6
Read only

Former Member
0 Likes
1,564

try below

at selection-screen output.

loop at screen.

if screen-name = s_matnr.

screen-input = '0'.----


>this makes the field to display mode...

modify screen.

endloop.

Read only

Former Member
0 Likes
1,564

hi..

in PBO you can check which radiobutton is clicked?

I mean for 1st r1 = 'X'. and so wise.

if radiodisplay = 'X'.

loop at screen.

screen-input = 0.

modify screen.

endloop.

else.

loop at screen.

screen-input = 1.

screen-output = 1.

modify screen.

endloop.

endif.

Read only

Former Member
0 Likes
1,565

Try this for making colums in a table control in display:

DATA wa LIKE LINE OF tab_con-COLS.

loop at tc-cols into wa.

wa-SCREEN-INPUT = 0 .

modify tc-cols from wa.

endloop.

where tc is ur table control and

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,564

Hi Sunny,

You have three radiobuttons:-

*display

*change

*create

In TOP Module.


DATA : display(1),
       change(1),
       create(1).

Take the group1 for the textboxes as 'ABC', which you want to enable/disable on selection of radiobutton.

Now in the PBO of screen, write:-


if ( display ='X' ).
  loop at screen.
    if ( screen-group1 = 'ABC' ).
      screen-input = ' '.
      screen-active = ' '.
    endif.
    modify screen.
  endloop.
elseif ( change = 'X' ).
  loop at screen.
    if ( screen-group1 = 'ABC' ).
      screen-input = 'X'.
      screen-active = 'X'.
    endif.
    modify screen.
  endloop.
endif.

This will enable/disable your textboxes based upon radiobutton selection.

Hope this solves your problem.

Thanks & Regards

Tarun Gambhir

Read only

Former Member
0 Likes
1,564

hi,

tabctl1-invisible = 'X'. Use this line for table control invisible

tabctl1-invisible = ' '. Use this line for table control visible

tabctl1 is table control name

try that........

bye..........

regards,

ARUN.

Read only

Former Member
1,564

Hi,

In module pool. In screen painter double click on that field and go to program tab. and set input value as not possible. It will make that field in display mode.

Thanks & Regards.