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

regarding radio button

Former Member
0 Likes
998

Hi its very urgent

I hav selction screen

select-options :

Storage location (LGORT) -

consignment destination (KUNNR)-

we hav two select multiple range of values.

we hav two fix the radio button when we select radion button1 storage location value should select suppose button 2 consignment destination value should take.

but select any one using the button but select-option we cant put the radiobutton na then?

how can write the query?

pl with high priority

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
972

Hi,

Your question is, if the First Radio button is selected then it will take the Storage Location if the Second radio button selects then it will take the consignment destination....

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF RADIO1 = 'X'.   " First Radio Button
 IF screen-name = 'LGORT-LOW' OR screen-name = 'LGORT-HIGH' .
screen-input = 1.
ENDIF.
IF RADIO2 = 'X'.   " Second Radio button
 IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH' .
screen-input = 1.
ENDIF.
ENDLOOP.

Regards

Sudheer

Hi its very urgent

I hav selction screen

select-options :

Storage location (LGORT) -

consignment destination (KUNNR)-

we hav two select multiple range of values.

we hav two fix the radio button when we select radion button1 storage location value should select suppose button 2 consignment destination value should take.

but select any one using the button but select-option we cant put the radiobutton na then?

how can write the query?

pl with high priority

7 REPLIES 7
Read only

Former Member
0 Likes
973

Hi,

Your question is, if the First Radio button is selected then it will take the Storage Location if the Second radio button selects then it will take the consignment destination....

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF RADIO1 = 'X'.   " First Radio Button
 IF screen-name = 'LGORT-LOW' OR screen-name = 'LGORT-HIGH' .
screen-input = 1.
ENDIF.
IF RADIO2 = 'X'.   " Second Radio button
 IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH' .
screen-input = 1.
ENDIF.
ENDLOOP.

Regards

Sudheer

Read only

Former Member
0 Likes
972

Create two radio botton and two select option. When first radiobuttion will be selected then the select option Storage location will be visable and the other select option will be invisable and when radio button will be selected select option corresponding to Storage location will be invisable and select option related to consignment destination will be visable.

Read only

Former Member
0 Likes
972

Hi Ramesh,

try this:

  • Selection/Parameters mit variablem INPUT-Möglichkeir

PARAMETERS: P1 DEFAULT 'X' RADIOBUTTON GROUP PR1 USER-COMMAND DUMMY.

PARAMETERS: P2 RADIOBUTTON GROUP PR1.

selection-screen: skip 2.

Select-options: s_lgort FOR vbap-lgort modif id DI1.

select-options: s_kunnr for vbak-kunnr modif id di2.

*

AT SELECTION-SCREEN OUTPUT.

*

IF P1 = 'X'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'DI1'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '1'.

MODIFY SCREEN.

CLEAR: S_LGORT.

REFRESH: s_LGORT.

ENDIF.

IF SCREEN-GROUP1 EQ 'DI2'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

*

IF P2 = 'X'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'DI1'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

CLEAR: S_KUNNR.

REFRESH: s_KUNNR.

ENDIF.

IF SCREEN-GROUP1 EQ 'DI2'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

check if you need SCREEN-ACTIVE = '1' or '0'. ??

Hope it helps.

Regard, Dieter

Read only

0 Likes
972

HI

THANKS A LOT MY PROBLEM SOLVED

Regards

Ramesh

Read only

0 Likes
972

HI

I hav 3 internal table i want to put it into final table. I hav the structure

only the thing is how can i move and read table let me know the syntax

Read only

Former Member
0 Likes
972

Hi.

You can use a dynamic where selection, depending on which button is pressed.

REPORT  RADIO_SELECT.

DATA: lgort TYPE lgort,
          kunnr TYPE kunnr,
          where_cond TYPE char40,
          t_table TYPE TABLE OF <your_table>.
SELECT-OPTIONS: so_lgort   FOR lgort,
                             so_kunnr   FOR kunnr.

PARAMETERS: r_lgort  TYPE flag RADIOBUTTON GROUP sel,
                        r_kunnr  TYPE flag RADIOBUTTON GROUP sel.

CASE 'X'.
  WHEN r_lgort.
    where_cond = 'lgort IN so_lgort'.
  WHEN r_kunnr.
    where_cond = 'kunnr IN so_kunnr'.
ENDCASE.

SELECT * FROM <your_table> INTO TABLE t_table
  WHERE (where_cond).

Regards,

Timo.

Read only

Former Member
0 Likes
972

hi

selection-screen begin of block bl1 with frame title text-100.

parameters: r1 radiobutton group radi ,

r2 radiobutton group radi ,

select-options kunnr for kna1-kunnr ,

select-options lgort for xxx-lgort,

selection-screen end of block bl1.

loop at screen.

if r1 = 'x'.

if screen-name =kunnr-low and screen-name = kunnr-high.

screen-input = 1.

endif.

if r2 = 'x'.

if screen-name =lgort-low and screen-name = lgort-high.

screen-input = 1.

endif

endloop.

reward if useful.