Код: Выделить всё
SAP RFC Error: RFC_CONVERSION_FAILURE with message: T_ZSDS_IH08A of type RFCTYPE_TABLE cannot be converted to type RFC_STRUCTURE_HANDLE'
Код: Выделить всё
SapConfig sapConfig = new SapConfig();
string connectionString = sapConfig.SapconnectionString(ConfigurationManager.AppSettings["Ambiente"].ToString());
using var connection = new SapConnection(connectionString);
try
{
connection.Connect();
using var someFunction = connection.CreateFunction("ZRFC_IH08");
var result = someFunction.Invoke(new SapFuncionParameters
{
EquipmentNumber = "",
FunctionalLocation = "",
});
}
catch (Exception ex)
{
throw ex;
}
Код: Выделить всё
public class SapFunctionResult
{
[SapName("T_ZSDS_IH08A")]
public object table { get; set; }
}
Код: Выделить всё
IRfcTable table = function.GetTable("T_ZSDS_IH08A");
Моя идея — получить данные из таблицы в result.table.< /п>
Подробнее здесь: https://stackoverflow.com/questions/787 ... ure-handle