I am getting the below mentioned error when i have tried to send the Data to SAP
"Element DEALER_CODE of container metadata ZTTGPCWMSINT001 unknown". I have mentioned the below code used to send the Data.
IRfcStructure structInputs = prd.Repository.GetStructureMetadata("ZTTGPCWMSINT001").CreateStructure(); // Structure Name
for (int i = 0; i < SAPDealerResult.Tables[0].Rows.Count; i++)
{
for (int j = 0; j < SAPDealerResult.Tables[0].Columns.Count; j++)
{
//structInputs.SetValue(SAPDealerResult.Tables[0].Columns[j].ColumnName.ToString(), SAPDealerResult.Tables[0].Rows[i][j].ToString());
structInputs.SetValue("DEALER_CODE", SAPDealerResult.Tables[0].Rows[i][j].ToString());
}
table.Insert(structInputs);
}
RfcSessionManager.BeginContext(prd);
Dealer.Invoke(prd);
Kindly suggest me.