Hi All,
Scenario is like, In a report, I created a number of records which were having profit center(prctr) field filled with values and some records which were not.
Now i took those records in Infocenter, i created a selection field for profit center. I gave input of records with certain range and profit center value with some ranges.
Example, Records: 1230 to 2000
Profit center: 1400 to 4000.
Next i need filter for records where it should display only the records which were having profit center value in it.
I have updated the code like this.
REFRESH i_selopt.
LOOP AT sprctr.
CLEAR i_selopt.
i_selopt-shlpfield = 'PRCTR'.
i_selopt-sign = sprctr-sign.
i_selopt-option = sprctr-option.
i_selopt-low = sprctr-low.
i_selopt-high = sprctr-high.
APPEND i_selopt.
ENDLOOP.
CALL FUNCTION 'F4_CONV_SELOPT_TO_WHERECLAUSE'
IMPORTING
where_clause = l_ekkn_rfc
TABLES
selopt_tab = i_selopt.
IF NOT l_ekkn_rfc IS INITIAL.
PERFORM split_where_clause USING l_ekkn_rfc.
CLEAR:l_ekkn_rfc.
ENDIF.
when I tested it, I am getting all the records and not getting filter for Profit center.
I need to display only records which were having profit center .
How to do that?
Please help me...
Regards,
Kiran