SAP 将数据从应用程序传递到屏幕。 “表格”如何显示?工作?
我不太明白TABLES
语句在ABAP中是如何工作的。从一些示例代码中我看到语句后面的表名是一个已经存在的字典结构。这是它的唯一使用方法吗?因为我永远不确定我需要哪种结构。
一旦声明完毕,我如何将其传递到实际屏幕?我希望它像 HIDE
方法一样简单,我无法理解这个问题。
I don't quite understand how the TABLES
statement works in ABAP. From a few example codes I've seen that the tablename afther the statement is an already existing dictionary structure. Is this the only way it can be used? Because I'm never sure which structure it is that I need.
And once it is declared how do I pass this to the actual screen? I wish it were as straight forward as the HIDE
method, I can't get my head around this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
tables
语句只是为您提供指定的字典结构的单行工作区域。它允许您将结构的字段用作选择选项
,并使表的结构可用作程序中的变量。如果您尝试将结构写入 abap 列表,您可以按如下方式使用它:
如果您尝试使用 ABAP dynpro 显示字段,则应确保读取 PBO 中的字段并添加字段从词典到屏幕。
The
tables
statement just provides you with a single-line work area of the dictionary structure that you specify. It allows you to use fields of the structure asselect-options
and make the structure of the table available as a variable in your program.If you are trying to write the structure to an abap list you could use it as follows:
If you are trying to display the field using ABAP dynpro, you should make sure that you read the field in the PBO and add the field(s) to the screen from the dictionary.