这段代码能够显示对于某一abap开发,在某一时间段之内的开发记录:
代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
REPORT ztest_dev_history. DATA:g_date TYPE vbak-aedat. CONSTANTS: c_name TYPE trdir-name VALUE 'Name', c_date TYPE trdir-udat VALUE 'Date'. PARAMETERS: p_name TYPE usr02-bname OBLIGATORY. SELECT-OPTIONS:s_perid FOR g_date. START-OF-SELECTION. DATA: lt_record TYPE STANDARD TABLE OF trdir. SELECT name udat INTO CORRESPONDING FIELDS OF TABLE lt_record FROM trdir WHERE unam = p_name AND udat IN s_perid. IF sy-subrc <> 0. WRITE: / 'No record found at given date period.' COLOR COL_NEGATIVE. RETURN. ENDIF. SORT lt_record BY udat DESCENDING. WRITE: 10 c_name, 80 c_date. LOOP AT lt_record INTO DATA(ls_data). WRITE: / ls_data-name UNDER c_name COLOR COL_POSITIVE, ls_data-udat UNDER c_date COLOR COL_TOTAL. HIDE ls_data-name. ENDLOOP. |
运行:
输入姓名及时间范围:
显示:
执行后能看到所有在该时间段内修改过的ABAP class, report以及function module名称。
以上。
发表评论