简体   繁体   English

ABAP语句获取一个数据库表的所有数据

[英]ABAP statement to get all the data of a database table

有人可以告诉我如何编写语句来获取数据库表的所有字段,而不是使用数据库表的每个字段名称创建工作区吗?

DATA gt_dd03l TYPE STANDARD TABLE OF dd03l INITIAL SIZE 0.

SELECT * FROM dd03l          "Table Fields
    INTO TABLE gt_dd03l
    WHERE  tabname  = 'table name'.

You can do the following:您可以执行以下操作:

* define Table type of Business Partner Table BUT000
data: lt_table type table of but000 .

* Create Structure of the corresponding table type
data: ls_table like line of lt_table .

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

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