Hi,
When you call the setTmpData method on the record buffer, you will have the record buffers use the same temporary dataset. As illustrated in the following X++ code. In this example, the setTmpData method is called on the second record buffer and is passed in the first record buffer as a parameter.
TmpLedgerTable tmpLedgerTable1;
TmpLedgerTable tmpLedgerTable2;
tmpLedgerTable2.setTmpData(tmpLedgerTable1);
Now both record buffers point to the same dataset.