=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=>describ...
有时候我们要在程序运行的时候取得某个内表或者某个结构它的属性或者它的字段的属性,可能通过类CL_ABAP_TYPEDESCR和它的子类取得指定内表的属性。 类CL_ABAP_TYPEDESCR和它的子类的结构图 CL_ABAP_TYPEDESCR | |--CL_ABAP_DATADESCR | | | |--CL_ABAP_ELEMDESCR | |--CL_ABAP_REFDESCR | |--CL_ABAP...
如果is_likp 中字段是空,不处理 DATA : LT_IDETAILS TYPE ABAP_COMPDESCR_TAB WITH HEADER LINE . DATA : LR_REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR . “定义field变量,type any FIELD-SYMBOLS : 《L_FIELD》 TYPE ANY, 《L_FIELD_C》 TYPE ANY. **动态得到内表结构 ”全局结构 LR_REF_...
CL_ABAP_STRUCTDESCR CL_ABAP_TABLEDESCR CL_ABAP_OBJECTDESCR CL_ABAP_CLASSDESCR CL_ABAP_INTFDESCR Example of CL_ABAP_TYPEDESCR usage. Below tips are very helpful in implicit enhancements "Supposed that <F1> is "MARA-MATNR" DATA:LO_TYPEDESCR TYPE REF TO CL_ABAP_TYPEDESCR, LV_TYPE TYPE STR...
= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( WA_DEPT ). LOOP AT DESCR_REF->COMPONENTS ASSIGNING <fs_dept>. WRITE: / <fs_dept>-NAME. ENDLOOP. 例子2: TYPES: my_table TYPE HASHED TABLE OF i WITH UNIQUE KEY TABLE LINE. DATA: descr_ref TYPE ref to cl_abap_tabledescr. FIELD-...
SAP Managed Tags: SAP TechEd, ABAP Development, SAP Solution Manager Afternoon all I am using cl_abap_typedescr=>describe_by_data( <gt_table> ) to retrieve the fieldlist of my dynamically created ALV fieldcatalog. However, I have just switched to using some fields that are of type INT...
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.
* all fields of the table enabled or disabled for editing, depending on parameter I_EDITABLE. * Parameter I_SALV_TABLE is the CL_SALV_TABLE object you want to enable or disable editing for. * Parameter I_EDITABLE should be ABAP_TRUE or ABAP_FALSE to enable or disable editing. ...
... Within SAP BI-IP ABAP-Exit function I am trying to create a copy of the system generate ITAB1 in which the data is delivered to me by the system. I want to add a few columns to this copy, perform calculations and write the data back to the result table ITAB2 ...
DATA: lo_struct_descr TYPE REF TO cl_abap_structdescr, lt_struct_fields TYPE cl_abap_structdescr=>component_table, lwa_struct_field TYPE cl_abap_structdescr=>component, lo_elem_descr TYPE REF TO cl_abap_elemdescr.* Get RTTI object for the local structurelo_struct_descr ?= cl_abap_type...