将 FOR EACH 中的行添加到 TEMP-TABLE

Adding row from FOR EACH to TEMP-TABLE

我正在尝试创建一个 temp-table,它与数据库中已经存在的 table 完全一样。如何将每一行添加到临时 table?

DEFINE TEMP-TABLE o_ttProducts.

FOR EACH Product:
    /*Add current row to the o_ttProducts temp table*/
END.
DEFINE TEMP-TABLE o_ttProducts no-undo like Product.

FOR EACH Product
    no-lock:
    /*Add current row to the o_ttProducts temp table*/
    create o_ttProducts.
    buffer-copy Product to o_ttProducts.
END.