Application Development 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: 

Dynamic selections

Former Member
0 Kudos
226

Hello all,

I am using a function Module RS_REFRESH_FROM_DYNAMICAL_SEL to read the dynamic selections given by user.

But its not returning any values.

DATA : IT_TRANGE TYPE RSDS_TRANGE.

CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL'

EXPORTING

curr_report = SY-REPID

mode_write_or_move = W

IMPORTING

P_TRANGE = IT_TRANGE

EXCEPTIONS

NOT_FOUND = 1

WRONG_TYPE = 2

OTHERS = 3.

Any one please let me know whether anyother function module must be used before this.

Regards,

Krishna

1 ACCEPTED SOLUTION

Former Member
0 Kudos
107

I believe that your syntax (and EXPORTING parameters) should be like this:

data: g_repid like sy-repid.

move sy-repid to g_repid.

CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL'

EXPORTING

CURR_REPORT = G_REPID

MODE_WRITE_OR_MOVE = 'M' "Move

IMPORTING

P_TRANGE = IT_TRANGE

EXCEPTIONS

NOT_FOUND = 1

WRONG_TYPE = 2

OTHERS = 3.

IF SY-SUBRC NE 0.

EXIT.

ENDIF.

5 REPLIES 5

Former Member
0 Kudos
108

I believe that your syntax (and EXPORTING parameters) should be like this:

data: g_repid like sy-repid.

move sy-repid to g_repid.

CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL'

EXPORTING

CURR_REPORT = G_REPID

MODE_WRITE_OR_MOVE = 'M' "Move

IMPORTING

P_TRANGE = IT_TRANGE

EXCEPTIONS

NOT_FOUND = 1

WRONG_TYPE = 2

OTHERS = 3.

IF SY-SUBRC NE 0.

EXIT.

ENDIF.

0 Kudos
107

Hi John,

I tried in all the ways but though the dynamic selections are active in my report it's not returning any values to the IT_RANGE.

Is there any other way to read the dynamic selections entered by the user in the report.

Thanks,

Krishna

0 Kudos
107

Hi kumar,

can you tell your mail-id. I have a document on dynamic selection which might help you.

Regards,

Vicky

0 Kudos
107

Hi vicky,

My Mail ID is.

Krishnakumar.r@in.bosch.com

Thanks,

Krishnakumar

0 Kudos
107

Hi Kumar,

I just mailed you the document.

Regards,

Vicky

PS: Award points if helpful