*动态内表alv显示时要求某些单元格显示颜色 *wa_fldcat-datatype不能添加LVC_T_SCOL类型,在创建好内表之后,再添加颜色列. DATA: wa_fldcat TYPE lvc_s_fcat, lt_fldcat TYPE lvc_t_fcat, dy_table TYPE REF TO data, dy_line TYPE REF TO data, <dyn_table> TYPE STANDARD TABLE, <dyn_wa>, dref_tab TY…
DATA: DY_TABLE TYPE REF TO DATA, DY_WA TYPE REF TO DATA. FIELD-SYMBOLS: <DYN_TABLE> TYPE TABLE, "是一个标志,可以理解为一个指针,将来创建的内表就要通过它们来访问 <DYN_WA> TYPE ANY, <FS> TYPE ANY. DATA: L_SCRFNAME TYPE SCRFNAME, LS_LAYOUT TYPE LVC_S_LAYO, LT_FIELDC…