请参看程序:ZAQBFMM[@more@]
1.主程序:
SELECTION-SCREEN BEGIN OF BLOCK LAYOUT WITH FRAME TITLE TEXT-012.
PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT .(定义此P_VARI参数)SELECTION-SCREEN END OF BLOCK LAYOUT.
PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT .(定义此P_VARI参数)SELECTION-SCREEN END OF BLOCK LAYOUT.
2.include程序
AT SELECTION-SCREEN ON VALUE-REQUEST FOR
P_VARI.
ADSK_ALV->F4_LAYOUTS( CHANGING C_VARIANT = P_VARI ).
ADSK_ALV->F4_LAYOUTS( CHANGING C_VARIANT = P_VARI ).
FORM DISPLAY_ALV_OUTPUT TABLES IT_OUT.
**Set The Report Title
3,在ALV 输出界面中,
ADSK_ALV->SET_REPORT_TITLE( 'Report of Subscriptions fulfillments from Worldwide'(T01) ).
ADSK_ALV->SET_REPORT_TITLE( 'Report of Subscriptions fulfillments from Worldwide'(T01) ).
*Call the Instance method ->PUBLISH_ALV_TABLE tO display the ALV in Table
ADSK_ALV->PUBLISH_ALV_TABLE( EXPORTING I_VARIANT = P_VARI CHANGING ITAB = IT_OUT[] ).
ADSK_ALV->PUBLISH_ALV_TABLE( EXPORTING I_VARIANT = P_VARI CHANGING ITAB = IT_OUT[] ).
ENDFORM. "DISPLAY_ALV_OUTPUT
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10339634/viewspace-922377/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10339634/viewspace-922377/