04-05-2006 3:47 PM
hello all,
Can anyone please send a solution for this topic.
the scenario is
I WANT TO ADD TO RADIO BUTTONS IN A SCREEN.
1)SORT BY MATERIAL
2)SORT BY SALES QUANTITY.
NOW TO DO THIS I WENT TO THE SCREEN DRAGGED 2 RADIO BUTTONS FROM THE TOOL AND GAVE THE NAME IN ATTRIBUTES AS
R_MATNR AND R_MENGE.
NOW IN MODULE POOL PROGRAM.
IN INPUT, THE CODE I WROTE WAS
IF R_MATNR = 'X'.
SORT ITAB BY MATNR.
ELSEIF R_MENGE.
SORT ITAB BY MENGE
ENDIF.
NOW THIS IS NOT WORKING
CAN ANY MODULE POOL EXPERT DROP A SOLUTION FOR THIS AND OTHER PROB IS THAT TWO RADIO BUTTONS ARE ENABLED IN SCREEN,I JUST NEED THE RADIO BUTTON THAT THE USER SELECTS TO BE ACTIVATED, HOW DO I DO THIS?
KINDLY SEND ME AN ANSWER AT THE EARLIEST POSSIBILITY, WOULD BE REALLY KIND OF U IF ANYONE CAN SORT THIS OUT.
04-05-2006 3:50 PM
04-05-2006 3:51 PM
04-05-2006 4:00 PM
04-05-2006 4:00 PM
HI Naddem,
The system wil know that the radio-buttons belong to a smae group anly if you specify it in the element attributes.
Give a same name for the radio-button group.
It will work fine.
Regards,
Ravi
04-05-2006 4:06 PM
hi,
u need to first group the radiobuttons in the layout editor by selecting them together at once and then follow this
edit-grouping-radiobuttongroup-define.
then in abap editor the code written by u works.
04-05-2006 4:11 PM
hi,
u need to first group the radiobuttons in the layout editor by selecting them together at once and then follow this
edit-grouping-radiobuttongroup-define.
then in abap editor the code written by u works with a change.
IF R_MATNR = 'X'.
SORT ITAB BY MATNR.
<i><b>ELSEIF R_MENGE = 'X'</b></i>.
SORT ITAB BY MENGE
ENDIF.
04-05-2006 4:22 PM
04-05-2006 4:26 PM
In dinpro, select both radio buttons, left click on selection, then you have the option to define redio button group.