将TC的内容转换为ALV LIST并打印
来源:互联网 发布:比逗拍还牛的软件 编辑:程序博客网 时间:2024/06/02 08:57
将TC的内容转换为ALV LIST并打印
*&---------------------------------------------------------------------*
*& Form top_of_list
*&---------------------------------------------------------------------*
FORM top_of_list.
WRITE: / 'Top_of_list'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form print_table_control_data
*&---------------------------------------------------------------------*
FORM print_tc .
DATA: repid LIKE sy-repid.
repid = sy-repid.
CALL FUNCTION 'FITRV_PRINT_TABLE_CONTROL_DATA'
EXPORTING
table_control = flights
callback_program = repid
callback_top_of_list = 'TOP_OF_LIST'
callback_top_of_page = 'TOP_OF_PAGE'
callback_end_of_page = 'END_OF_PAGE'
callback_end_of_list = 'END_OF_LIST'
optimize_column_width = 'X'
get_curr_quan_fields_from_ddic = 'X'
window_title = '测试'
TABLES
print_data = itab
EXCEPTIONS
column_information_missing = 1
printing_not_possible = 2
OTHERS = 3.
ENDFORM. " print_table_control_data
*& Form print_table_control_data
*&---------------------------------------------------------------------*
FORM print_tc .
DATA: repid LIKE sy-repid.
repid = sy-repid.
CALL FUNCTION 'FITRV_PRINT_TABLE_CONTROL_DATA'
EXPORTING
table_control = flights
callback_program = repid
callback_top_of_list = 'TOP_OF_LIST'
callback_top_of_page = 'TOP_OF_PAGE'
callback_end_of_page = 'END_OF_PAGE'
callback_end_of_list = 'END_OF_LIST'
optimize_column_width = 'X'
get_curr_quan_fields_from_ddic = 'X'
window_title = '测试'
TABLES
print_data = itab
EXCEPTIONS
column_information_missing = 1
printing_not_possible = 2
OTHERS = 3.
ENDFORM. " print_table_control_data
*&---------------------------------------------------------------------*
*& Form top_of_list
*&---------------------------------------------------------------------*
FORM top_of_list.
WRITE: / 'Top_of_list'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form top_of_page
*&---------------------------------------------------------------------*
FORM top_of_page.
WRITE: / 'Top_of_page'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form end_of_list
*&---------------------------------------------------------------------*
FORM end_of_list.
WRITE: / 'End_of_list'.
ENDFORM.
*& Form top_of_page
*&---------------------------------------------------------------------*
FORM top_of_page.
WRITE: / 'Top_of_page'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form end_of_list
*&---------------------------------------------------------------------*
FORM end_of_list.
WRITE: / 'End_of_list'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form end_of_page
*&---------------------------------------------------------------------*
FORM end_of_page.
WRITE: / 'End_of_page'.
ENDFORM.
*& Form end_of_page
*&---------------------------------------------------------------------*
FORM end_of_page.
WRITE: / 'End_of_page'.
ENDFORM.
*END_OF_PAGE 不能触发,参考:
http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e071d52611d2b468006094192fe3/frameset.htm
这个事件只是在除最后页的其它页触发
如果不想打印统计信息,可以修改函数FITRV_PRINT_TABLE_CONTROL_DATA,添加:
printcat-no_print_listinfos = xfield.
- 将TC的内容转换为ALV LIST并打印
- 将16进制数据转换为字符并打印
- 将arraylist集合转换为数组并打印出来
- Python将list形式的字符串转换为list
- 将ResultSet转换为List
- 将list 转换为 datatable
- 将List转换为DataTable
- 将数组转换为List
- 将list转换为数组
- 将List转换为json
- 将list里的新旧数据做对比生成不存在的数据的新旧集合并转换为JsonObject
- 将list或者list<?>转换为JSONObject
- Android中如何将View的内容转换为图片
- Java实现将Map转换为List的小代码
- Java实现将Map转换为List的小代码
- 将DataTable转换为List的好处与实现方法
- java将数组转换为list的方法
- 将逗号分隔的字符串转换为List
- 收藏夹
- 修改工程发布路径
- php中利用iconv转化字符串编码出错()
- hibernate 延迟加载问题探讨
- 迅速提高职业竞争力
- 将TC的内容转换为ALV LIST并打印
- 销售直流无刷电机 86blf
- #import 的简单用法.
- SQLite 多参数插入注意事项 insert multiple parameters
- 一个很普通的行业软件的网下推广故事
- 企业:一只不断扩容的木桶
- 如何在DOS下从硬盘安装XP系统
- js验证表单大全
- 通过阵地攻坚战谈项目调研的方法