I'm trying to use function module RSAQ_REMOTE_QUERY_CALL via the rfc call (.NET Connector 3) but I have a problem with selection parameters. My query has two parameters:
I would like to provide them from my C# program and don't want to use variant at all. When I use variant - the query works just fine, but with parameters, I always get NO_DATA_SELECTED exception. I append parameters like this:
var selection = query.GetTable("SELECTION_TABLE");
selection.Append();
selection.SetValue("SELNAME", "SP$00001");
selection.SetValue("KIND", "S");
selection.SetValue("OPTION", "EQ");
selection.SetValue("SIGN", "I");
selection.SetValue("LOW", "Material");
selection.Append();
selection.SetValue("SELNAME", "SP$00002");
selection.SetValue("KIND", "S");
selection.SetValue("OPTION", "EQ");
selection.SetValue("SIGN", "I");
selection.SetValue("LOW", "EN");
Is this possible to use selection parameters with this function module?
Two things that might help:
KIND
to S
for select-options only - for parameters, it has to be P
. Use the function module RSAQ_REMOTE_QUERY_FIELDLIST
to find out the types (and names as well).E
instead of the external language EN
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.