Web Dynpro for ABAP "调用 SALV_WD_TABLE GET_MODEL 时没有数据" 报错解决
2017-09-18 15:01
555 查看
在写 Web 程序时,写在WDOMODIFYVIEW方法里的一段代码:
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model(
).
当程序运行到这段代码时,提示"调用 SALV_WD_TABLE GET_MODEL 时没有数据" !
调试了好久,最终在一个网站上找到自己的错误原因。网站在这:https://archive.sap.com/discussions/thread/2097956
原来是自己的Component Usages下的ALV 中的INTERFACECONTROLLE里的DATA没有绑定需要显示的数据,只要绑定好数据就可以解决这个问题了。
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model(
).
当程序运行到这段代码时,提示"调用 SALV_WD_TABLE GET_MODEL 时没有数据" !
调试了好久,最终在一个网站上找到自己的错误原因。网站在这:https://archive.sap.com/discussions/thread/2097956
原来是自己的Component Usages下的ALV 中的INTERFACECONTROLLE里的DATA没有绑定需要显示的数据,只要绑定好数据就可以解决这个问题了。
相关文章推荐
- Delphi调用Java的WebService报错can not find dispatch method for{null}terminalNo using "Payload QName-based Dispatcher"的解决方法
- dsoframer 注册控件后在某些机器调用部分函数时提示"没有注册接口"的解决办法
- Webdynpro For ABAP 实例
- Java解析DBF文件,错误Failed to parse Number: For input string: "-.---" 或读取不出数据或乱码问题都在这里解决
- Operation not allowed for reason code "7" on table 原因码 "7"的解决
- web dynpro for abap基础知识(四)
- web dynpro for abap bapi的使用
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- 在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"的解决方法
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- Websphere报错"Cannot get canonical host name for server" 解决方法
- Operation not allowed for reason code "7" on table 原因码 "7"的解决
- Web Dynpro for ABAP SELECT OPTIONS
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法
- web dynpro for abap基础知识(3)(转)
- Web Dynpro for ABAP: creating Dynamic UI Elements and Context: Step by Step
- json返回hibernate的结果会自动调用(get)查询出关联表的数据,解决方法
- 个人收藏 Totals and Subtotals in ALV Web Dynpro (Web Dynpro for ABAP)
- jQuery在异步请求数据返回后,调用$("selector").html(data.content);之后因为一些特殊字符或者',"不能显示内容的问题解决办法
- 个人收藏 Programming dynamic ALV in WebDynpro for ABAP