*&--- 获取内表字段名、类型、长度DATA:L_TABLEDESCR_REFTYPEREFTOCL_ABAP_TABLEDESCR, L_DESCR_REFTYPEREFTOCL_ABAP_STRUCTDESCR. L_TABLEDESCR_REF ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( GT_ALV ). L_DESCR_REF ?= L_TABLEDESCR_REF->GET_TABLE_LINE_TYPE( ).LOOPATL_DESCR_REF->COMPONENTS ...
= cl_abap_typedescr=>describe_by_data_ref( r_metadata ). r_tabletype = cl_abap_tabledescr=>create( p_line_type = ex_structdescr p_table_kind = cl_abap_tabledescr=>tablekind_std ). CREATE DATA ex_result_ref TYPE HANDLE r_tabletype. *传递结果集一个数据对象-内表 r_adbc_result->...
题目STRUC_DESC = CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( ).这条语句和?=的意义是什么?相关知识点: 试题来源: 解析 2016-12-08 反馈 收藏
= cl_abap_typedescr=>describe_by_data( ls_struc1 ).LOOPATlo_struc_desc->components ASSIGNING <fs_comp_desc>.ASSIGNCOMPONENT<fs_comp_desc>-nameOFSTRUCTURElt_spfliTO<fs_comp>.WRITE:/ <fs_comp>.ENDLOOP.ENDFORM. 示例2: "casting类型转换FORMf_reference_casting.TYPES:BEGINOFs_date, yearTYPEC...
ex_structdescr ?= cl_abap_typedescr=>describe_by_data_ref( r_metadata ). r_tabletype = cl_abap_tabledescr=>create( p_line_type = ex_structdescr p_table_kind = cl_abap_tabledescr=>tablekind_std ). CREATE DATA ex_result_ref TYPE HANDLE r_tabletype. ...
动态对比两个相同结构工作区的值CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME_SAP刘梦_新浪博客...,空,不处理DATA:LT_IDETAILSTYPEABAP_COMPDESCR_TABWITHHEADERLINE.DATA:LR_REF_TAB...
Solved: Afternoon all I am using cl_abap_typedescr=>describe_by_data( ) to retrieve the fieldlist of my dynamically created ALV fieldcatalog. However, I have just
=cl_abap_typedescr=>describe_by_data(p_data=p_data).lw_comp-name=iv_name.lw_comp-as_include=iv_as_include.lw_comp-suffix=iv_suffix.append lw_comptot_comp.endmethod.*<SIGNATURE>---+*| Static Public Method ZCL_DYNAMIC_OBJ=>ADD_COMP_BY_DATA_REF*+---...
= cl_abap_typedescr=>describe_by_data( i_itab ).l_descr_ref ?= l_tabledescr_ref->get_table_line_type( ).LOOP AT l_descr_ref->components ASSIGNING . -name :字段名ENDLOOP.describe l_descr_ref->componentslenths len.就可以了。还有个问题:在方法中,我用table 作为参数。但是...
=cl_abap_typedescr=>describe_by_data_ref(lw_tab_ref).DATA(tablecomponents)=tablestructure->get_components()."getthe contentofexcel.将excel结构和内表结构对比,判断是否一致TYPES:BEGINOFcolumninfo,columnTYPEi,columnnameTYPEstring,ENDOFcolumninfo.TYPEScolumnsinfoTYPESTANDARDTABLEOFcolumninfoWITHEMPTYKEY....