How to replace the exiting list and fill the new list value
/// <summary> /// Converts the <c>orderedRecords</c> map to a list. /// </summary> /// <returns>The map converted to a list.</returns> public List convertMapToList() { InventTrans inventTransMarked; InventTrans inventTransReceipt; InventTransOrigin inventTransOriginOfProdTable; ProdTable prodtable; List resultNew = new List(Types::Record); List result = new List(Types::Record); RefRecId inventtransorigirecid; result = next convertMapToList(); if(SFCProductionProgressTransService_POR::cachedToIdentifyForSorting_POR(false)) { inventtransorigirecid = parameters.movement.inventTransOriginId(); while select inv...