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

radio buttons in function module.

Former Member
0 Likes
1,595

Hi,

I have developed a function module which internally calls abap report with SUBMIT command. However, the abap report has radio buttons on selecton screen. So I would like to know how to define radio buttons in function module or is there any alternative to overcome this problem?

ABAP code in function module :

submit zodmr_report with p_vkorg = bukrs

with s_off in vkbur

with s_vtweg in vtweg

with s_spart in spart

with s_dsa in dsa

with s_ext in allocation_id

with p_yyyymm = year_month

and return.

( ABAP report "ZODMR_REPORT" has two radio buttons)

Regards,

Santosh

3 REPLIES 3
Read only

Former Member
0 Likes
824

Hi,

To the best of my knowledge you need to create an IMPORT parameter of type SY-DYNNY And pass your selection screen to the FM. If this will not serve your purpose, then Instead of Standard Selection Screen with number 1000, use custom defined Screen number.

Cheers

Ram

Read only

Former Member
0 Likes
824

submit zodmr_report with p_vkorg = bukrs
with s_off in vkbur
with s_vtweg in vtweg
with s_spart in spart
with s_dsa in dsa
with s_ext in allocation_id
with p_yyyymm = year_month
WITH P_RADIO1 = 'X'
and return.
Read only

Former Member
0 Likes
824

radio buttons contains value as 'X' or blank.

X is when its selected.

so for the radio button you want the report to be executed , pass that one as 'X'.