Skip to Content
-1
Jan 07, 2018 at 01:28 PM

How to get internal table select options from : GT_DYN_TRANGE .

235 Views

Dear All ,

I have a requirement that I need only the select options fields from this table

GT_DYN_TRANGE .

I have made a zcopy of the program RFKOPR10 (Report for open item analysis for vendors) . Also made zcopy of the LDB : SAPDBKDF..

So my zcopy is ZSAMPLED21 and for the LDB zcopy is : SAPDBZKDF2 .

In the program of the ldb : SAPDBZKDF2 .

There is a function module mentioned below :-


call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
exporting
CURR_REPORT = SY-CPROG
MODE_WRITE_OR_MOVE = 'M'
importing
P_TRANGE = GT_DYN_TRANGE
exceptions
NOT_FOUND = 1
WRONG_TYPE = 2
others = 3.

if SY-SUBRC > 1.
exit.
endif.

From the above function module I ma getting the internal table : GT_DYN_TRANGE.

This internal table I only need the select options fields which is there inside this internal table I am unable to fetch this select options internal table from this table GT_DYN_TRANGE..

What I have done is I am moving the data of GT_DYN_TRANGE to my internal table mentioned below .

Data : ITAB_RAN TYPE RSDS_TRANGE,

WA_RAN TYPE RSDS_RANGE.

ITAB_RAN = GT_DYN_TRANGE[].

then I am looping the itab_ran to fetch the select options filed that is sign option low and high from this internal table .

It is available here : -

ITAB_RAN[1]-FRANGE_T[1]-SELOPT_T


Below is the structure of SELOP_T internal table .Which is inside the table ITAB_RAN.

line sign option low high

1 I EQ 1200

So from above inside SELOPT_T internal table I have the sign, option, low ,high fields . I only need these fields to be fetched in my separate internal table so that I can pass these fields to my main program .

I am unable to reach the select options fields .

How to fetch these select options field in my separate internal table please guide .

Please guide how to fetch only the SELECT OPTIONS fields from ITAB_RAN which is a hierarchy table .


LOOP AT ITAB_RAN INTO WA_RAN.

endloop.

Dear gurus need your help .

Regards

Deep