안녕하세요...
ALV에서
REUSE_ALV_GRID_DISPLAY 이런 함수를 이용하여
어떻게
END_OF_LIST 를 구현해낼수있을까요??
top_of_page 를 구현하는것과 같은 방법으로 해봤지만 안되네요...
고수님들 도와주세요...
첨부파일을 화면처럼 제일 밑부분에 결재자의 이름등을 적어넣을수있도록 하고싶습니다.
TOP-OF-PAGE는 나오는데 아래 리스트부분은 아무리해도 안나오네요...
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT
I_CALLBACK_HTML_TOP_OF_PAGE = 'TOP'
I_CALLBACK_HTML_END_OF_LIST = 'END'
TABLES
T_OUTTAB = I_TAB_FLD
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
*&---------------------------------------------------------------------*
*& Form TOP
*&---------------------------------------------------------------------*
FORM TOP
USING ID_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.
DATA:
LT_HTML_TEXT_TABLE TYPE SDYDO_HTML_TABLE,
LS_HTML_TEXT_TABLE TYPE LINE OF SDYDO_HTML_TABLE.
* start body of text:
LS_HTML_TEXT_TABLE-LINE = 'Top-Of-Page 입니다.'.
APPEND LS_HTML_TEXT_TABLE TO LT_HTML_TEXT_TABLE.
* display this html file in html control at top of list:
CALL METHOD ID_DYNDOC_ID->ADD_STATIC_HTML
EXPORTING
TABLE_WITH_HTML = LT_HTML_TEXT_TABLE.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form END
*&---------------------------------------------------------------------*
FORM END
USING ID_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.
DATA:
LT_HTML_TEXT_TABLE TYPE SDYDO_HTML_TABLE,
LS_HTML_TEXT_TABLE TYPE LINE OF SDYDO_HTML_TABLE.
* start body of text:
LS_HTML_TEXT_TABLE-LINE = 'End-of-List 입니다.'.
APPEND LS_HTML_TEXT_TABLE TO LT_HTML_TEXT_TABLE.
* display this html file in html control at top of list:
CALL METHOD ID_DYNDOC_ID->ADD_STATIC_HTML
EXPORTING
TABLE_WITH_HTML = LT_HTML_TEXT_TABLE.
ENDFORM.
이렇게 하면 되겠네요 ㅎㅎ