2008 Dec 13 9:03 AM
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
2008 Dec 13 9:26 AM
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
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
2008 Dec 13 9:12 AM
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.
2008 Dec 13 9:15 AM
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.
2008 Dec 13 9:26 AM
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
2008 Dec 15 3:54 AM
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
2008 Dec 15 4:34 AM
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.
2008 Dec 15 4:40 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |