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

Dynamic selections

Former Member
0 Likes
917

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
Read only

Former Member
0 Likes
798

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
Read only

Former Member
0 Likes
799

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.

Read only

0 Likes
798

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

Read only

0 Likes
798

Hi kumar,

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

Regards,

Vicky

Read only

0 Likes
798

Hi vicky,

My Mail ID is.

Krishnakumar.r@in.bosch.com

Thanks,

Krishnakumar

Read only

0 Likes
798

Hi Kumar,

I just mailed you the document.

Regards,

Vicky

PS: Award points if helpful