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

Module Pool with select options

Former Member
0 Likes
935

Hi,

I have created select-option and radio button in Module pool. My req is that I when the user enters any value and click on the radio button the respective programs should be executed.

Thanks

Hari

4 REPLIES 4
Read only

Former Member
0 Likes
880

You are following the wrong procedure, what is the need of radiobutton here?? use Pushbutton.

If you use one radio button, by default it come as checked, use radiobutton when you multiple options to select.

Read only

Former Member
0 Likes
880

Hi Hariharan,

I would recommend you to use primarily use push button and then after SUBMIT statement, and also the example for the same is provided below:


*Code used to execute a report
SUBMIT Zreport.

*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
      seltab_wa like line of seltab.

  seltab_wa-selname = 'PNPPERNR'.
  seltab_wa-sign    = 'I'.
  seltab_wa-option  = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
  loop at pnppernr.
    seltab_wa-low = pnppernr-low.
    append seltab_wa to seltab.
  endloop.
  SUBMIT zreport with selection-table seltab
                                via selection-screen.

*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
                with p_param2 = 'value'.

Please validate the same at your end as well, please come back, if inputs are required.

BR/Thanks

Pranav Agrawal


Read only

former_member202818
Active Contributor
0 Likes
880

Hi Hariharan,

You can have Function Code for radio button group, pls refer the pic,

Now when you click on any radio button the control will come to PAI, from there you can find the selected

radio button (by checking if rad1 = 'X'.

                                             call transaction 'TCode1'.

                                      else.

                                             call transaction 'TCode2'.

                                      endif.) and value entered in select option.

Use call transaction or submit to call respective program.

Regards

Sreekanth

Read only

gireesh_kokate
Explorer
0 Likes
880

You created select-option in Module pool, that means you are using selection screen as sub screen on main screen.

and your requirement is that  when the user enters any value and click on the radio button the respective programs should be executed!

- add selection screen event for radio button and apply your code under