2008 Oct 16 11:13 AM
hi ,
i have developed one program in which i am having 4 select options i have to make one button in existing
report and i have to call my program by that button without select option means when i click on submmit button my program final output shuld come without asking for select options ,
for calling that program i am using
submmit [program_name].
but for select options direclly passing i dont know what to do please help me
2008 Oct 16 11:18 AM
Hi,
Try like this :
CASE r_ucomm.
WHEN '&F04'. " Customized Back Button....use ur usercommand
SUBMIT <called prg name>
WITH <selection option name> EQ <value>
WITH <selection option name1> EQ <value1>
VIA SELECTION-SCREEN
2008 Oct 16 11:15 AM
use
if you want to pass selection screen then
submit program 'prog_name' and skip first screen.
else use
submit program 'prog_name' via selection screen
Regards,
Alpesh
Edited by: Alpesh on Oct 16, 2008 3:46 PM
2008 Oct 16 11:18 AM
but when i use skip first screen i will skip the selection screen then output will not come.
2008 Oct 16 11:17 AM
HAI,
INITIALIZE THE ITAB(rspar).
SUBMIT REPORT WITH SELECTION-TABLE rspar.
2008 Oct 16 11:19 AM
2008 Oct 16 11:18 AM
Hi,
Try like this :
CASE r_ucomm.
WHEN '&F04'. " Customized Back Button....use ur usercommand
SUBMIT <called prg name>
WITH <selection option name> EQ <value>
WITH <selection option name1> EQ <value1>
VIA SELECTION-SCREEN
2008 Oct 16 11:35 AM
hi thank for your ans it really help me
but when i am clicking to submit button
it is taking values but it is shwing first screen i dont want selection screen.
can you tell me solution for that.
2008 Oct 16 11:23 AM
Hi,
You have to pass all the require parameter with this submit like
Submit Zxyz with name = p_name
roll = s_roll.
in which program Zxyz have 2 field name and roll in selection screen,
FYI : Submit always skip the selection screen.
Regards,
Tarak
2008 Oct 16 11:32 AM
hai,
use this fm RS_REFRESH_FROM_SELECTOPTIONS get the value of current program.
sel TYPE TABLE OF rsparams
u will be getting that value itab(sel).
if submit = 'x'.
refresh sel[].
submit report with selectio-table sel.
endif.