Pressing a table cell button: In an InputScript for transaction IW32 I mark a table row with

Set cell[Table,0,1] "X"

and then press a button contained in this row using the recorded function code

Enter"=MELX"

but this doesn't work. What could be the reason, please?

For a table cell button the SAP application often queries the cursor position in order to determine the active table row. Use a SetCursor for a cell in the row for which you want to perform the "=MELX" action.