This can be because of fact that table smmBusRleTable has a index named as Party which is set to allow duplicate = No if you will try to use a PartyNumber, for which already a record exists in smmBusRelTable, it would not allow you to do so. Otherwise the following line of code should work perfectly, in case PartyNumber does not exist in smmBusRelTable smmBusRelTable.parmParty(DirPartyTable::find('000000033').PartyNumber); //000000033 is my PartyNumber taken from DirPartyTable
↧