‎2009 Oct 26 4:49 AM
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
‎2009 Oct 26 5:00 AM
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
‎2009 Oct 26 5:02 AM
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.
‎2009 Oct 26 5:14 AM
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'.