lt_data[] = value#( for wa in gt_data where( field1 ='01'and field2 ='02 ) ( wa ) ). --- 对range表赋值,非常简便 lt_data[] = value #( for wa in gt_data where ( field1 = '01' and field2 = '02 ) ( wa ) ). Group 分组循环 版权声明:本文为CSDN博主「慘綠少年」的原...
1.在GT_DATA中增加一个字段来用于下拉框的使用: 2.设置fieldcat属性: 设置context字段可输入,设置fieldcat-drdn_hndl= ‘1’. (这个1是下面下拉框对应的组,可以用23 4 5 6···来标记下拉框的组,以此来实现多个下拉框) 3.设置下拉框内容 如下图,set_drop_down_table()方法需要在set_table_for_first_...
IF gt_data IS NOT INITIAL. "标签日期日志表 SELECT * FROM ztcust_tag_log INTO TABLE @DATA(gt_data_t) FOR ALL ENTRIES IN @gt_data WHERE tag_id = @gt_data-tag_id. SORT gt_data_t BY tag_id. DELETE ADJACENT DUPLICATES FROM gt_data_t COMPARING tag_id. ENDIF. cl_demo_output=>wri...
获取数据内容 select * from ZWDEMOTABLE1 into CORRESPONDING FIELDS OF TABLE gt_Data . 1. 如图我们有一列是具有相同数据的列数据,其中双为多次内容. 使用语法 sort gt_Data by uom doccode zrowid matcode matname memo . DELETE ADJACENT DUPLICATES FROM gt_Data COMPARING uom . 1. 2. 3. 我们按照...
DATA:wa_fieldcat TYPE lvc_s_fcat, gt_fieldcat TYPE lvc_t_fcat. 1. 2. 3. 4. 获取数据 select * from ZWDEMOTABLE1 into CORRESPONDING FIELDS OF TABLE gt_Data . 1. 定义ALV相关变量及调用ALV函数 FORM diaplay_data . PERFORM set_alv_layout. ...
将lt_data[]移动到 gt_data[]。 在gt_data 循环 分配 字段-符号(<fs>),其中 kwmeng<10。清除 ls_scol 。 ls_scol-fname='KWMENG'.ls_scol-颜色-col='6'。"6:为红色1:强化0:颜色为背景 ls_scol-color-int='1'。"6:为红色1:强化0:颜色为背景 ...
col2TYPEchar10,ENDOFgt_data.PARAMETERS:p_fileTYPErlgrap-filename."调用F4_FILENAME,点击输入框后小方块弹出文件选择框ATSELECTION-SCREENONVALUE-REQUESTFORp_file.CLEARp_file.CALLFUNCTION'F4_FILENAME'IMPORTINGfile_name= p_file."返回文件名*Excel传值START-OF-SELECTION.PERFORMexceltotab.FORMexceltotab .CAL...
DATA: gt_temp LIKE TABLE OF gs_temp. DATA conn TYPE dbcon-con_name. INITIALIZATION. %_p_1_%_app_%-text = 'SELECT方式一:DO循环读取游标,添加内表'. %_p_2_%_app_%-text = 'SELECT方式二:通过例程添加内表'. %_p_3_%_app_%-text = 'UPDATE:更新表内容'. ...
MARA.DATA:BEGINOFGT_DATAOCCURS0,CHARGTYPEMCH1-CHARG,MATNRTYPEMARA-MATNR,MAKTXTYPEMAKT-MAKTX,CLASSTYPEKLAH-CLASS,OBJEKTYPEINOB-OBJEK,SCRQTYPESY-DATUM,LIFNRTYPELFA1-LIFNR,SHRQTYPESY-DATUM,LAENGTYPESTRING,BREITTYPESTRING,HOEHETYPESTRING,LRENGTYPESTRING,ENDOFGT_DATA.FIELD-SYMBOLS<FS_DATA>LIKELINEOF...
*DATA : gt_code TYPE TABLE OF char72, * gv_code TYPE char72, * gv_prog(8). *APPEND 'PROGRAM SUBPOOL.' TO gt_code. *APPEND 'FORM subr_name.' TO gt_code. *APPEND 'WRITE / ''Dynamic Subroutine is called''.' TO gt_code. ...