‎2008 Dec 18 7:39 AM
I am calling variant of one program in my program. My selection parameters are employee range and date.
SUBMIT prog_1
USING SELECTION-SET variant1
WITH SELECTION-TABLE rspar_tab
WITH gv_date1 = gv_date
EXPORTING LIST TO MEMORY
AND RETURN.
employee ranges I have defined in rspar_tab. date I am passing as above. Now my report is executing only according to variant1 and employee ranges. How should I pass the date, so that it will excecute according to date also?
‎2008 Dec 18 7:59 AM
Hi Reshma,
Simply include gv_date1 in your rspar_tab instead of passing it with
WITH gv_date1 = gv_date
...similary as you do with EE ranges. Only thing to remember is :
rspar_tab-KIND = 'P'. "...that you passing parameter
rspar_tab-LOW = gv_date1. "with only low value, no high value exist here
Regards
Marcin
‎2008 Dec 18 7:46 AM
Hi,
Is gv_date1 is the selection-screen field of other program?
‎2008 Dec 18 7:47 AM
gv_date1 is date of my selection parameter. I am using only 'varirant1' of another program
‎2008 Dec 18 7:49 AM
Is there any reason you cannot change the gv_date1 field inside the
Variant?
‎2008 Dec 18 7:52 AM
sorry for previous reply,
'rspar_tab' contains employee range of my program and gv_date is date of my program
I am comparing gv_date with gv_date1 of another program . I dont know the syntax
‎2008 Dec 18 7:59 AM
Hi Reshma,
Simply include gv_date1 in your rspar_tab instead of passing it with
WITH gv_date1 = gv_date
...similary as you do with EE ranges. Only thing to remember is :
rspar_tab-KIND = 'P'. "...that you passing parameter
rspar_tab-LOW = gv_date1. "with only low value, no high value exist here
Regards
Marcin
‎2008 Dec 18 9:03 AM
should I declare gv_date1 then?
and WITH gv_date1= gv_date will remain same?
‎2008 Dec 18 9:16 AM
No,
Simply add your parameter name (in the submited program)
"add to your rspar_tab this parameter
rspar_tab-selname = 'GV_DATE_PROG1'. "here parameter name of program prog_1 which you want to populate with value i.e GV_DATE_PROG1
rspar_tab-kind = 'P'.
rspar_tab-sign = 'I'.
rspar_tab-option = 'EQ'.
rspar_tab-low = gv_date. "just pass your date value to this parameter
APPEND rspar_tab.
"note that WITH gv_date1= gv_date is not included in submit anymore
SUBMIT prog_1
USING SELECTION-SET variant1
WITH SELECTION-TABLE rspar_tab
EXPORTING LIST TO MEMORY
AND RETURN.
That should be sufficient
Marcin
‎2008 Dec 18 9:22 AM