in src/zrest/zrest_screen.prog.abap [0:0]
METHOD handle_toolbar.
DATA: ls_toolbar TYPE stb_button.
* add delete button "v-javeda - MS2K948543
CLEAR ls_toolbar.
MOVE 'DELETE' TO ls_toolbar-function.
MOVE icon_delete_row TO ls_toolbar-icon.
MOVE 'Delete Payload' TO ls_toolbar-quickinfo.
MOVE 'Delete' TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
"append download payload button
CLEAR ls_toolbar.
MOVE 'DOWNLOAD' TO ls_toolbar-function.
MOVE icon_message TO ls_toolbar-icon.
MOVE 'Download Payload'(111) TO ls_toolbar-quickinfo.
MOVE 'Download'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
"append an icon to show headers
CLEAR ls_toolbar.
MOVE 'HEADERS' TO ls_toolbar-function.
MOVE icon_header TO ls_toolbar-icon.
MOVE 'Show headers'(111) TO ls_toolbar-quickinfo.
MOVE 'Headers'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
"append an icon to show retry
CLEAR ls_toolbar.
MOVE 'RETRY' TO ls_toolbar-function.
MOVE icon_refresh TO ls_toolbar-icon.
MOVE 'Try Again'(111) TO ls_toolbar-quickinfo.
MOVE 'Retry'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
"append an icon to show payload
CLEAR ls_toolbar.
MOVE 'SHOW PAYLOAD' TO ls_toolbar-function.
MOVE icon_display TO ls_toolbar-icon.
MOVE 'Payload'(111) TO ls_toolbar-quickinfo.
MOVE 'Payload'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
"append an icon to show response
CLEAR ls_toolbar.
MOVE 'SHOW RESPONSE' TO ls_toolbar-function.
MOVE icon_display TO ls_toolbar-icon.
MOVE 'Response'(111) TO ls_toolbar-quickinfo.
MOVE 'Response'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
CLEAR ls_toolbar.
MOVE 'RETRY_LOG' TO ls_toolbar-function.
MOVE icon_display TO ls_toolbar-icon.
MOVE 'Retry Log' TO ls_toolbar-quickinfo.
MOVE 'Retry Log' TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
* Added for VSTF 2163894 / DGDK903444
SORT e_object->mt_toolbar BY function.
DELETE ADJACENT DUPLICATES FROM e_object->mt_toolbar COMPARING function.