Hi,
I am using query::insertRecordSet() to the one of the business process requirement.
query is inserting always against first company record in the change company loop, eventhough company context is changing,
Reason here is, source table dataareaid column is not resetting, but instead query::insertRecordSet(), if am using insertrecordset means,
each change company iteration, i can reset the table buffer.
If am using the query::insertRecordSet(), how to reset the table buffer.
the below code always doing insertion against 1200 legal entity only.
public void insertion(Common _target, Map _fieldMapping, Query _query, QueryRun _queryRun)
{
changecompany ('1200')
{
Query::insert_recordset(_target, _fieldMapping, _query);
}
changecompany ('1100')
{
Query::insert_recordset(_target, _fieldMapping, _query);
}
}