Problem in submit statement
I have written the code as
submit rabewg_alv01 with bukrs = p_bukrs
with brdatu = lv_lastdate
with ktansw = p_ktansw
with budat-low = lv_start
with budat-high = lv_end
using selection-set 'DEFECT '
In the o/p which is getting generated it is not taking into account the value of bukrs,brdatu,ktansw and budat.The o/p which is getting displayed is only based on the variant set.How to rectify this error
the values your passing with submit statement are from that report or what?
if your passing the values of calling report, u can do like this.
suppose if you have a select-option say s_uname in the report,
Inside the report, by using EXPORT statement you send the values to the called report.
EXPORT s_uname to memory-id 'key'.
after submit statement you just import the values of the selection screen.
IMPORT s_uname from memory-id 'key'.
Now in s_uname You can find the values of the submitted report selection screeen values.
Hopes this helps you.
Shake sha vali