DATA lt_table TYPE TABLE OF dfies. "字段结构表 DATA ls_table TYPE dfies. DATA lr_struc TYPE REF TO cl_abap_structdescr. DATA lr_table TYPE REF TO cl_abap_tabledescr. DATA lr_type TYPE REF TO cl_abap_typedescr. DATA lr_data TYPE REF TO cl_abap_datadescr. DATA lt_comp TYPE ab...
SAP ABAP 动态ALV创建过程 动态内表的创建和使用主要有以下几点: 1.动态内表的创建,首先要定义动态结构,然后再根据定义的动态结构利用系统一个标准的method:”cl_ALV_table_create=>create_dynamic_table“生成动态内表。 2.动态内表的赋值,遍历动态结构,获取指定的字段,然后给指定的字段赋值。 3.动态内表的读取...
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = l_tablename CHANGING ct_fieldcat = lt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3. IF sy-subrc EQ 0. CALL METHOD cl_alv_table_create=>create_dynamic_table EXPORTING it_fieldcatalog = lt_fcat...
i am facing a problem of how to create a internal table of variable size.some what like creating dynamic arrays. depending upon the data in the database i have to create a internal table of that size. actually what i am exactly looking at is a internal table having a dynamic structure...
SAP Managed Tags: ABAP Development ABAP Development Programming Tool View products (1) Hi Experts, I am trying creating a dynamic internal table. But I am getting the error 'The field string "LT_GENTAB" contains no fields. 4 LT_GENTAB". Can anybody tell me what is the error and how...
2010-03-23 13:38 − ABAP 动态内表构建 Dynamic internal table 这两天做了一个这样的需求,其中要求根据用户输入的工资项(T512W-LGART)查找数据,并输出到ALV,要求是输出跟着输入变。由于工资项的配置信息可能会变,因此用于存储要显示的数据的内表就不能预先知道,因此不得不寻求动态内表的构建... elegant...
ABAP Development Hi Ajay, U can use the below code to create a dynamic internal table. *adding the field names only once for the dynamic table . MOVE 'PRCTR' TO gw_component-name. gw_component-type ?= cl_abap_elemdescr=>get_string( ). ...
SAP Managed Tags: ABAP Development ABAP Development Programming Tool View products (1) Build a Dynamic Internal Table in 1 - 2 - 3 Steps To create the dynamic table using the much recommended methods in RTTS, refer this document. Create Dynamic Table using RTTS and...
Internal table is a temporary table that is created and used during the program execution and deleted before the program terminated. Internal tables used to store the dynamic data that sets from a fixed structure in the main/working memory in ABAP. ...
How to create dynamic internal table output based on selection-screen data former_member184119 Active Contributor 2014 Dec 11 9:12 AM 0 Kudos 1,669 SAP Managed Tags: ABAP Development Hi All, I have 200 fields in ITAB, ...THOSE 200 FIELDS WILL BE DISPLAYED IN selctions-screen...