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

Filter option in control table

former_member421809
Participant
0 Likes
572

Hello All,

I implement a code to create a filter on a control table , but i didn't have enough information about the FM RSBC_TOOLS_FIELD_SELECTION and parameters to fill , so i also have a problem to continue the process of the filter ,

i need this option like the one in the standard of SAP

this is my code

WHEN 'FITL_BUT'.
data  ct_field   type   RSAOS_T_FIELDNM.


data  cs_field   type   RSFIELDNM.


cs_field = 'col1' .


APPEND cs_field to ct_field.


cs_field = 'col2' .


APPEND cs_field to ct_field.


      CALL FUNCTION 'RSBC_TOOLS_FIELD_SELECTION'


        EXPORTING


          i_title_left               = 'RAN_left'


          i_title_right              = 'RAN_right'


          i_popup_title              = 'RAN_title'


*         IS_LAYOUT_DOUBLE_ALV       =


*         IT_SP_GROUP                =


*         I_DISPLAY_ONLY             =


         I_TABNAME                  = 'ITAB'


*       IMPORTING


*         E_CANCELLED                =


*       TABLES


*         C_T_FIELDS                 = ct_field


*       EXCEPTIONS


*         TABLE_NOT_FOUND            = 1


*         OTHERS                     = 2


                .


      IF sy-subrc <> 0.


* Implement suitable error handling here


      ENDIF.


ENDCASE.


0 REPLIES 0