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

using 'submit' statement

Former Member
0 Likes
1,245

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?

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
1,024

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,024

Hi,

Is gv_date1 is the selection-screen field of other program?

Read only

0 Likes
1,024

gv_date1 is date of my selection parameter. I am using only 'varirant1' of another program

Read only

0 Likes
1,024

Is there any reason you cannot change the gv_date1 field inside the

Variant?

Read only

0 Likes
1,024

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

Read only

MarcinPciak
Active Contributor
0 Likes
1,025

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

Read only

0 Likes
1,024

should I declare gv_date1 then?

and WITH gv_date1= gv_date will remain same?

Read only

0 Likes
1,024

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

Read only

0 Likes
1,024

Thanks a lot solved my problem