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

how to get data into input output fields using radio buttons

Former Member
0 Likes
659

hi

i created two radio buttons with 5 i/o fields and 4 only o/p`s

if i select one radio button 5 i/o fields shd display...

if i select second radio button 4 i/p shd dispay and another 1 shd be only output.....

plz can anu 1 help me.....

thanx.......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
526

Hi

Refer the following code for dynamic screen

SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.

PARAMETERS : p_daily RADIOBUTTON GROUP rbg DEFAULT 'X' USER-COMMAND daily,

p_mothly RADIOBUTTON GROUP rbg.

SELECT-OPTIONS: s_date FOR jcds-udate OBLIGATORY NO-EXTENSION MODIF ID dt .

  • s_days FOR rfpdo3-allgtxtz NO-EXTENSION NO INTERVALS OBLIGATORY MODIF ID dt,

  • s_wbs FOR prps-posid NO INTERVALS.

PARAMETERS: p_mdays TYPE rfpdo3-allgtxtz DEFAULT '90' MODIF ID dt,

p_myears TYPE rfpdo3-allgtxtz DEFAULT '02' MODIF ID dt.

SELECT-OPTIONS: s_wbs FOR prps-posid NO INTERVALS.

SELECTION-SCREEN: END OF BLOCK block1.

By using AT SELECTION-SCREEN OUTPUT you can alternatively makes the fields visible or invisible based on radio button

selection.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_mothly = 'X'.

IF screen-name = 'S_DATE-LOW'.

IF screen-group1 = 'DT'.

screen-active = 0.

ENDIF.

ENDIF.

IF screen-name = 'S_DATE-HIGH'.

IF screen-group1 = 'DT'.

screen-active = 0.

ENDIF.

ENDIF.

IF screen-name = '%_S_DATE_%_APP_%-TEXT'.

IF screen-group1 = 'DT'.

screen-active = 0.

ENDIF.

ENDIF.

ENDIF.

hi

i created two radio buttons with 5 i/o fields and 4 only o/p`s

if i select one radio button 5 i/o fields shd display...

if i select second radio button 4 i/p shd dispay and another 1 shd be only output.....

plz can anu 1 help me.....

thanx.......

1 REPLY 1
Read only

Former Member
0 Likes
527

Hi

Refer the following code for dynamic screen

SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.

PARAMETERS : p_daily RADIOBUTTON GROUP rbg DEFAULT 'X' USER-COMMAND daily,

p_mothly RADIOBUTTON GROUP rbg.

SELECT-OPTIONS: s_date FOR jcds-udate OBLIGATORY NO-EXTENSION MODIF ID dt .

  • s_days FOR rfpdo3-allgtxtz NO-EXTENSION NO INTERVALS OBLIGATORY MODIF ID dt,

  • s_wbs FOR prps-posid NO INTERVALS.

PARAMETERS: p_mdays TYPE rfpdo3-allgtxtz DEFAULT '90' MODIF ID dt,

p_myears TYPE rfpdo3-allgtxtz DEFAULT '02' MODIF ID dt.

SELECT-OPTIONS: s_wbs FOR prps-posid NO INTERVALS.

SELECTION-SCREEN: END OF BLOCK block1.

By using AT SELECTION-SCREEN OUTPUT you can alternatively makes the fields visible or invisible based on radio button

selection.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_mothly = 'X'.

IF screen-name = 'S_DATE-LOW'.

IF screen-group1 = 'DT'.

screen-active = 0.

ENDIF.

ENDIF.

IF screen-name = 'S_DATE-HIGH'.

IF screen-group1 = 'DT'.

screen-active = 0.

ENDIF.

ENDIF.

IF screen-name = '%_S_DATE_%_APP_%-TEXT'.

IF screen-group1 = 'DT'.

screen-active = 0.

ENDIF.

ENDIF.

ENDIF.