To create record buffer at runtime in axapta you can get hints from below code.
DictTable dictTable = new DictTable(tableId);
Common targetTable = dictTable.makeRecord();
It will create buffer dynamically.