How to reference whole itab by name
Example: clearing all selection criteria
FORM screen_clearing_all . DATA: selctab LIKE rsscr OCCURS 20 WITH HEADER LINE, itabname TYPE c LENGTH 30. FIELD-SYMBOLS: <para> TYPE ANY, <sele> TYPE ANY TABLE. CLEAR selctab. REFRESH selctab. * Get selection screen LOAD REPORT alv_repid PART 'SSCR' INTO selctab. LOOP AT selctab. IF selctab-kind = 'P'. * Clear Parameter ASSIGN (selctab-name) TO <para>. CLEAR <para>. ELSEIF selctab-kind = 'S'. * Clear select-option (work area) ASSIGN (selctab-name) TO <para>. CLEAR <para>. * Refresh select-option CONCATENATE selctab-name '[]' INTO itabname. ASSIGN (itabname) TO <sele>. REFRESH <sele>. ENDIF. ENDLOOP. ENDFORM. " SCREEN_CLEARING_ALL
沒有留言:
張貼留言