Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Submit report with dynamic selections

Hi All,

I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.

But the dynamic selections are not getting passed.

Request you to kindly provide some inputs

My code is

DATA: trange TYPE rsds_trange,

trange_line LIKE LINE OF trange,

trange_frange_t_line LIKE LINE OF trange_line-frange_t,

trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,

texpr TYPE rsds_texpr.

trange_line-tablename = 'PA0002'.

*trange_frange_t_line-tablename = 'PA0002'.

trange_frange_t_line-fieldname = 'GBJHR'.

trange_frange_t_selopt_t_line-sign = 'I'.

trange_frange_t_selopt_t_line-option = 'EQ'.

trange_frange_t_selopt_t_line-low = '1987'.

trange_frange_t_selopt_t_line-high = '1987'.

APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.

APPEND trange_frange_t_line TO trange_line-frange_t.

APPEND trange_line TO trange.

CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'

EXPORTING

field_ranges = trange

IMPORTING

expressions = texpr.

submit RPCADVQ0

VIA SELECTION-SCREEN

WITH SELECTION-TABLE rspar_tab

WITH FREE SELECTIONS it_texpr

and returN.

Kindly provide your inputs

Regards

Reshma

Tags:
Not what you were looking for? View more on this topic or Ask a question