1:数据定义
tables:pernr(HR 主数据报告的标准选择)
pcl1
pcl2
引入HR各簇表的数据定义
include rpc2cd00. "Cluster CD data definition
include rpc2ca00. "Cluster CA Data-Definition
include pc2rxcn0. "Cluster CN data definition
include rpc2rx00. "Cluster RX data definition internat. part
include rpppxd00. "Data definition buffer PCL1/PCL2
include rpppxd10. "Common part buffer PCL1/PCL2
include rpppxm00. "Buffer handling routine
就可以用已定义好的数据和各种宏!
2:动态内表
field-symbols: <dyn_table> type standard table,
<dyn_wa>,
<dyn_field>.
data: dy_table type ref to data,
dy_line type ref to data,
it_structure type lvc_t_fcat,
wa_structure type lvc_s_fcat.
应用ALV结构: lvc_s_fcat
应用filed-symbols动态指针