Dear All ,
I have a requirement that I need only the select options fields from this table
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'
CURR_REPORT = SY-CPROG
MODE_WRITE_OR_MOVE = 'M'
P_TRANGE = GT_DYN_TRANGE
NOT_FOUND = 1
WRONG_TYPE = 2
others = 3.
if SY-SUBRC > 1.
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 : -
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.
Dear gurus need your help .