Hi ,
I want to disable the rows in table control . Here is the code I wrote to fill the table control .
Please advise .
LOOP WITH CONTROL table_TC.
MODULE FILL_CONTROL.
ENDLOOP.
MODULE FILL_CONTROL.
..
..
SELECT * INTO TABLE itab FROM ztable
WHERE WERKS = S_ztable_TMP-WERKS
AND NORMT = S_ztable__TMP-NORMT.
READ TABLE itabe
INDEX table_TC-CURRENT_LINE.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING itab TO table.
ELSE.
EXIT FROM STEP-LOOP.
ENDIF.
For disabling the rows I tried this but get an error message
""LOOP" cannot be assigned to any field."
LOOP AT itab WITH CONTROL table_TC.
MODULE CLEAR_OUTPUT.
ENDLOOP.
Thanks !!
Teresa
Edited by: Teresa lytle on Apr 8, 2008 5:22 PM
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 1:16 PM
in your PBO routine
*&spwizard: module TC_TEST1_change_tc_attr. *&spwizard: module TC_TEST1_change_col_attr. loop at g_TC_TEST1_itab into g_TC_TEST1_wa with control TC_TEST1 cursor TC_TEST1-current_line. module TC_TEST1_change_field_attr "<== Here change your screen attributes. module TC_TEST1_move. endloop.
hi.,,,,
Try this :
In PAI write :
loop at tablecontrol.
module modify_table_control.
endloop.
Module modify_table_control.
IF sy-tabix LE 3.
CASE sy-ucomm.
WHEN 'CHANGE'.
LOOP AT screen.
IF screen-name = tablecontrol-field.
Screen-input = 0.
modify screen.
ENDLOOP.
ENDIF.
<REMOVED BY MODERATOR>
rekha
Edited by: Alvaro Tejada Galindo on Apr 8, 2008 11:25 AM
Add a comment