2006 Jun 20 2:02 PM
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
2006 Jun 20 2:26 PM
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.
2006 Jun 20 2:26 PM
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.
2006 Jun 20 2:33 PM
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
2006 Jun 20 2:36 PM
Hi kumar,
can you tell your mail-id. I have a document on dynamic selection which might help you.
Regards,
Vicky
2006 Jun 20 2:40 PM
Hi vicky,
My Mail ID is.
Krishnakumar.r@in.bosch.com
Thanks,
Krishnakumar
2006 Jun 20 2:49 PM
Hi Kumar,
I just mailed you the document.
Regards,
Vicky
PS: Award points if helpful