= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( 'LIKP' ). LT_IDETAILS[] = LR_REF_TABLE_DES->COMPONENTS[]. "循环判断结构每个字段 LOOP AT LT_IDETAILS. ASSIGN COMPONENT LT_IDETAILS-NAME OF STRUCTURE is_likp TO 《 L_FIELD》 . IF SY-SUBRC = 0 AND IS NOT INITIAL. ASSIGN COMPONENT LT_IDETAI...
=CL_ABAP_TYPEDESCR=>DESCRIBE_BY_data(name). BREAK-POINT. 例2: TYPES: my_table TYPE HASHED TABLE OF i WITH UNIQUE KEY TABLE LINE. DATA: descr_ref TYPErefto cl_abap_tabledescr. FIELD-SYMBOLS: <key_comp_wa>TYPE abap_keydescr. START-OF-SELECTION. descr_ref?=cl_abap_typedescr=>descri...
调用类cl_abap_structdescr中的方法describe_by_data()和get_ddic_field_list()能得到表或结构的列名字(colomn name). 代码: REPORTztest_convers_row.DATA: gwa_dataTYPEt001w, desc_strucTYPEREFTOcl_abap_structdescr, git_fieldsTYPEddfields.FIELD-SYMBOLS:<gfs_component>TYPEdfies. desc_struc ?= cl_...
Hello Friends, I am using "CALL METHOD cl_abap_typedescr=>describe_by_name" for creating a dynamic table . With this the table gets generated correctly.
调用类cl_abap_structdescr中的方法describe_by_data()和get_ddic_field_list()能得到表或结构的列名字(colomn name). 代码: REPORT ztest_convers_row. DATA: gwa_data TYPE t001w, desc_struc TYPE REF TO cl_abap_structdescr, git_fields TYPE ddfields. FIELD-SYMBOLS: <gfs_component> TYPE dfies...
DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR. DATA : INT_DETAILS TYPE ABAP_COMPDESCR_TAB, * Get the structure of the table. REF_TABLE_DES ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( DB_TABLE ). INT_DETAILS[] = REF_TABLE_DES->COMPONENTS[]. ...
lv_msg='Table:'&& lv_tabname && ` donotexist!`.MESSAGElv_msgTYPE'E'.ENDIF."創建tablelo_struct_type ?= cl_abap_typedescr=>describe_by_name( lv_tabname ). lt_comp_tab= lo_struct_type->get_components( )."最終結構創建tablelo_structdescr = cl_abap_structdescr=>create( lt_comp_tab...
百度试题 结果1 题目STRUC_DESC = CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( ).这条语句和?=的意义是什么?相关知识点: 试题来源: 解析 2016-12-08 反馈 收藏
4->Enter "CL_ABAP_TYPEDESCR" in the class name field 5->Enter "DESCRIBE_BY_DATA" in the method field, click Enter you have the pattern in the editor OR you may copy the following code, and pass the parameters data: l_describe TYPE REF TO cl_abap_typedescr. field-symbols: <field>...
STRUC_DESC = CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( ).这条语句和?=的意义是什么? 扫码下载作业帮搜索答疑一搜即得 答案解析 查看更多优质解析 解答一 举报相似问题 ABAP " 是什么 特别推荐 热点考点 2022年高考真题试卷汇总 2022年高中期中试卷汇总 2022年高中期末试卷汇总 2022年高中月考试卷汇总 ...