简体   繁体   English

功能模块 RSAQ_REMOTE_QUERY_CALL 选择参数

[英]Function module RSAQ_REMOTE_QUERY_CALL selection parameters

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.我正在尝试通过 rfc 调用(.NET 连接器 3)使用功能模块 RSAQ_REMOTE_QUERY_CALL,但我在选择参数方面遇到了问题。 My query has two parameters:我的查询有两个参数:

  • Material (SP$00001)材料 (SP$00001)
  • Language Key (SP$00002)语言键 (SP$00002)

I would like to provide them from my C# program and don't want to use variant at all.我想从我的 C# 程序中提供它们,并且根本不想使用变体。 When I use variant - the query works just fine, but with parameters, I always get NO_DATA_SELECTED exception.当我使用变体时 - 查询工作正常,但使用参数时,我总是收到 NO_DATA_SELECTED 异常。 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:两件事可能有帮助:

  • Ensure that you set KIND to S for select-options only - for parameters, it has to be P .确保您将KIND设置为S仅用于选择选项 - 对于参数,它必须是P Use the function module RSAQ_REMOTE_QUERY_FIELDLIST to find out the types (and names as well).使用功能模块RSAQ_REMOTE_QUERY_FIELDLIST找出类型(以及名称)。
  • Try using the internal, single-character language E instead of the external language EN .尝试使用内部单字符语言E而不是外部语言EN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM