I have written this code to field map my custom stagging table with standard tables, but no data is showing up it’s NULL
public class TPGNM_SuppliersTable extends common
{
//<summary>
//</summary>
//<param name = "_fieldId"></param>
public void modifiedField(FieldId _fieldId)
{
VendTable vendTable;
DirPartyLocation partyLocation;
LogisticsPostalAddress logisticspostalAddress;
pdsApprovedVendorList pdsApprovedVendorList;
LogisticsElectronicAddress logisticsElectronicAddress;
DirPartyTable dirPartyTable;
dirPartyLocation dirPartyLocation;
logisticsLocation logisticsLocation;
switch(_fieldId)
{
case fieldNum(TPGNM_SuppliersTable, SupplierCode):
select firstonly vendTable
join pdsApprovedVendorList
where vendTable.AccountNum == pdsApprovedVendorList.PdsApprovedVendor
&& pdsApprovedVendorList.PdsApprovedVendor == this.SupplierCode
join dirPartyTable
where dirPartyTable.RecId == vendTable.Party
join dirPartyLocation
where dirPartyLocation.Party == dirPartyTable.RecId
join logisticsLocation
where logisticsLocation.RecId == dirPartyLocation.Location
join logisticsPostalAddress
where logisticsPostalAddress.PrivateForParty == dirPartyTable.RecId;
if(vendTable.AccountNum)
{
this.SupplierCode = pdsApprovedVendorList.PdsApprovedVendor;
this.SupplierName = VendTable::find(this.SupplierCode).name();
this.Depositor = curExt();
//this.BusinessActivity = custTable.BusinessActivity;
this.Responsible = vendTable.MainContactWorker;
this.Address = LogisticsPostalAddress.Address;
this.City = LogisticsPostalAddress.City;
this.ZipCode = LogisticsPostalAddress.ZipCode;
this.Area = LogisticsPostalAddress.Street;
this.country = LogisticsPostalAddress.CountryRegionId;
this.phone = vendTable.phone();
this.Email = vendTable.email();
this.CategoryCode = vendTable.VendGroup;
this.CategoryDescription = vendTable.vendorName();
this.InsertDate = vendTable.CreatedDateTime;
this.LastUpdateDate = vendTable.ModifiedDateTime;
this.ProcessFlag = NoYes::No;
}
}
}
}