DESCRIBE TABLE EMP LINES N1. ”表中无数据,回执为0 DESCRIBE TABLE EMP OCCURS N2. “表初始化大小为10,回执为10 DESCRIBE TABLE EMP KIND K. ”默认为STANDARD表,回执为T 2.内表和内表结构 2.1 结构体(Structure) 2.1.1 结构体的定义 ABAP中可以定义结构来包含多个基本类型,便于整理及操作; 结构体不属...
1.计算内表行数的三种方式 ①:LOOP 循环统计 ②:lines(table) 通过lines函数统计 ③:DESCRIBE TABLE gt_data LINES lv_int 2.字符串拼接 ①:使用 str = str1&& str2 . ②:使用 concatenate : str1 str2 into str . 3.字符串分割 split ①:分割至字符串 ②:分割至内表 4.condense 的使用 去除前后...
Solved: hi, What is the purpose of using Describe table lines. DESCRIBE TABLE gt_ADMN_patnr LINES V_LCNT1. revert back as soon as possibe. kirthi
1,Describe Table语句 2,Lines()函数 代码: " variable declaration to store internal table row count Data LV_RowCnt type i. DESCRIBE TABLE LT_PROGRAM LINES LV_RowCnt. write :/ 'Total items count', LV_RowCnt. LV_RowCnt = LINES( LT_PROGRAM ). write :/ 'Total items count', LV_RowCnt...
DESCRIBETABLEitab[LINESgv_lines][OCCURSgv_occurs][KINDgv_kind] 其中:LINES返回的是内表包含的数据件数,OCCURS返回的是内表初始大小,KIND返回的是内表的类型(T代表标准表;S代表排序表;H代表哈希表) -案例代码演示 代码语言:javascript 复制 TYPES:BEGINOFGTY_ITAB,COL1TYPEI,COL2TYPEI,ENDOFGTY_ITAB.DATA...
DESCRIBE TABLE save_key LINES lv_selected_line. "selected_line. LOOP AT tabs_and_fields WHERE fieldname IS NOT INITIAL. lv_fields_line = lv_fields_line + 1." fields_line = fields_line + 1. ENDLOOP. * IF fields_line = selected_line. ...
<datarow> TYPE ANY, <datafield> TYPE ANY.* CREATE DataStructure with field names* Datatypes are read from fieldnames of FIELDS input table DESCRIBE TABLE FIELDS LINES numberFields. LOOP AT FIELDS INTO fieldsRow. fieldname = SY-TABIX.* names need to be unique and must start with a ch...
7、取)内表(Internal Table)itab的内部嵌套循环(Loop at)(读取)内表(Internal Table)jtab,sy-tfill返回的不再是itab的记录数,而是jtab的!所以如果你需要使用itab的记录数,请先把sy-tfill的 值传递给其它变量。无论如何,sy-tfill永远保存当前的记录数。例如記錄內表記錄條數:DESCRIBE TABLE itab LINES sy...
DESCRIBE TABLE itab1 LINES li_int. DESCRIBE TABLE itab2 LINES li_row. IF li_int = 1 AND li_row = 1. ***開始值和結束值只有1個時,按BT l_option = 'BT'. ELSE. l_option = 'EQ'. ENDIF. IF l_option = 'BT'. CLEAR: t_tab. UNASSIGN: <dy_field>. fieldname = 'SIGN'. ASSI...
endloop.describe table lt_gsb lines sy-tfill.if sy-tfill = 1.read table lt_gsb index 1 into ls_gsb.case ls_gsb-gsber.when '0001'.cs_mig_asgmt-prctr = '1100'.when '3000'.cs_mig_asgmt-prctr = '1300'.when '4000'.cs_mig_asgmt-prctr = '1400'.when others....