Empty Temp-Table Block
Each temp-table in the report data set should be emptied before the main program logic is executed. This is necessary since temp-table contents could still be cached on the Application Server from previous client requests.
The following example illustrates this for the two temp-tables in our example data set:
/* Empty temp-table block */
empty temp-table ttSalesHeader no-error.
empty temp-table ttSoLine no-error.