Skip to Content
0
Former Member
Apr 08, 2008 at 03:18 PM

disable rows in table control

892 Views

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