VARPAI_TOOLBAR is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter VARPAI_TOOLBAR into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
CONTROL_INIT CALL FUNCTION 'CONTROL_INIT'.
CONTROL_CREATE CALL FUNCTION 'CONTROL_CREATE' EXPORTING clsid = 'SAPTVToolbox.Toolbar'
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
CONTROL_LINK CALL FUNCTION 'CONTROL_LINK' EXPORTING h_control = handle repid = m_link_repid dynnr = '0120' EXCEPTIONS OTHERS = 1.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = handle method = 'SETME' EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_SET_WINDOW_PROPERTY CALL FUNCTION 'CONTROL_SET_WINDOW_PROPERTY' EXPORTING h_control = handle propid = prop_width value = 322 EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_SET_WINDOW_PROPERTY CALL FUNCTION 'CONTROL_SET_WINDOW_PROPERTY' EXPORTING h_control = handle propid = prop_height value = 85 EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
CONTROL_LINK CALL FUNCTION 'CONTROL_LINK' EXPORTING h_control = handle repid = link_repid dynnr = link_dynnr.
CONTROL_DESTROY CALL FUNCTION 'CONTROL_DESTROY' CHANGING h_control = handle EXCEPTIONS OTHERS = 1.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
CONTROL_DISPATCH CALL FUNCTION 'CONTROL_DISPATCH' EXPORTING fcode = fcode EXCEPTIONS cb_not_found = 1 OTHERS = 2.
CONTROL_REGISTER_EVT_CB CALL FUNCTION 'CONTROL_REGISTER_EVT_CB' EXPORTING event = event_id is_system_callback = ' ' callback_prog = m_owner_repid callback_form = 'ON_TVTOOLBAR_EVENT' CHANGING h_control = handle EXCEPTIONS cb_not_found = 1 inv_callback_definition = 2 OTHERS = 3.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
CONTROL_REGISTER_EVENT CALL FUNCTION 'CONTROL_REGISTER_EVENT' EXPORTING h_control = handle event = event_id EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_FLUSH * CALL FUNCTION 'CONTROL_FLUSH'.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newl EXCEPTIONS OTHERS = 1.
CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newt EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newl EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newt EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 2 no_flush = ' ' CHANGING return = newr EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 3 no_flush = ' ' CHANGING return = newb EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
RS_CUA_GET_STATUS_FUNCTIONS CALL FUNCTION 'RS_CUA_GET_STATUS_FUNCTIONS' EXPORTING program = progname status = statusname TABLES function_list = statusfunctions EXCEPTIONS MENU_NOT_FOUND = 1 PROGRAM_NOT_FOUND = 2 STATUS_NOT_FOUND = 3 OTHERS = 4.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 2 no_flush = ' ' CHANGING return = newright EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 3 no_flush = ' ' CHANGING return = newbottom EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 4 no_flush = ' ' CHANGING return = newplain EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 5 no_flush = ' ' CHANGING return = newstretch EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 6 no_flush = ' ' CHANGING return = newtext EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 0 no_flush = ' ' CHANGING return = newleft EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 1 no_flush = ' ' CHANGING return = newtop EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 2 no_flush = ' ' CHANGING return = newright EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 3 no_flush = ' ' CHANGING return = newbottom EXCEPTIONS OTHERS = 1.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING h_control = handle param_id = 4 no_flush = ' ' CHANGING return = newtext EXCEPTIONS OTHERS = 1.
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_open_error = 1 file_read_error = 2 invalid_type = 3 no_batch = 4 gui_refuse_filetransfer = 5 OTHERS = 6.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_write_error = 1 invalid_type = 2 no_batch = 3 OTHERS = 4.
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_open_error = 1 file_read_error = 2 invalid_type = 3 no_batch = 4 gui_refuse_filetransfer = 5 OTHERS = 6.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_write_error = 2 invalid_type = 4 no_batch = 5 OTHERS = 7.
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_open_error = 1 file_read_error = 2 invalid_type = 3 no_batch = 4 gui_refuse_filetransfer = 5 OTHERS = 6.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_write_error = 1 invalid_type = 2 no_batch = 3 OTHERS = 4.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = 'c:\Guixt\Test.txt '
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_write_error = 1 invalid_type = 2 no_batch = 3 OTHERS = 4.
DP_CONTROL_ASSIGN_TABLE CALL FUNCTION 'DP_CONTROL_ASSIGN_TABLE' EXPORTING h_cntl = handle TABNAME = 'SHDDFVARP' MEDIUM = CNDP_MEDIUM_OBJECT propertyname = 'DYNPTABLE' tables data = ui_data_itab EXCEPTIONS DP_ERROR_CREATE = 1 DP_ERROR_SEND_DATA = 2 DP_ERROR_ASSIGN = 3 DP_ERROR_INVALID_PARAM = 4 DP_ERROR_TABNAME = 5 OTHERS = 6 .
CONTROL_FLUSH call function 'CONTROL_FLUSH'.
DP_CONTROL_ASSIGN_TABLE CALL FUNCTION 'DP_CONTROL_ASSIGN_TABLE' EXPORTING h_cntl = handle TABNAME = 'SHDDFVARP' MEDIUM = CNDP_MEDIUM_OBJECT propertyname = 'SYNCR3' tables data = SYNCUIDATA EXCEPTIONS DP_ERROR_CREATE = 1 DP_ERROR_SEND_DATA = 2 DP_ERROR_ASSIGN = 3 DP_ERROR_INVALID_PARAM = 4 DP_ERROR_TABNAME = 5 OTHERS = 6 .
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = handle method = 'FILLS' EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
DP_CONTROL_GET_TABLE CALL FUNCTION 'DP_CONTROL_GET_TABLE' EXPORTING h_cntl = handle propertyname = 'SYNCR3' MEDIUM = CNDP_MEDIUM_OBJECT tables data = SYNCUIDATA * CHANGING * TABNAME = 'SHDDFVARP' EXCEPTIONS DP_ERROR_CREATE = 1 DP_ERROR_GET_PROPERTY = 2 DP_ERROR_GET_DATA = 3 DP_ERROR_INVALID_PARAM = 4 OTHERS = 5 .
CONTROL_FLUSH call function 'CONTROL_FLUSH'.
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = xtscriptlength TABLES data_tab = xtscripttab EXCEPTIONS file_open_error = 1 file_read_error = 2 invalid_type = 3 no_batch = 4 gui_refuse_filetransfer = 5 OTHERS = 6.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH' EXCEPTIONS OTHERS = 1.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = script filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_write_error = 1 invalid_type = 2 no_batch = 3 OTHERS = 4.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = script "SLIN (TH) filetype = 'ASC' IMPORTING filelength = flength TABLES data_tab = itab EXCEPTIONS file_write_error = 1 invalid_type = 2 no_batch = 3 OTHERS = 4.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = saptvtool->handle method = 'MOVELABEL' p_count = 4 p1 = ls p2 = lz p3 = guilabel->length p4 = guilabel->text EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = saptvtool->handle method = 'MOVELABEL' p_count = 4 p1 = guilabel->line p2 = guilabel->column p3 = guilabel->length p4 = guilabel->text EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = saptvtool->handle method = 'MOVECHECK' p_count = 4 p1 = ls p2 = lz p3 = guicheckbutton->length p4 = guicheckbutton->text EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = saptvtool->handle method = 'MOVECHECK' p_count = 4 p1 = guicheckbutton->line p2 = guicheckbutton->column p3 = guicheckbutton->length p4 = guicheckbutton->text EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = saptvtool->handle method = 'MOVERADIO' p_count = 4 p1 = ls p2 = lz p3 = guiradiobutton->length p4 = guiradiobutton->text EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
CONTROL_CALL_METHOD CALL FUNCTION 'CONTROL_CALL_METHOD' EXPORTING h_control = saptvtool->handle method = 'MOVERADIO' p_count = 4 p1 = guiradiobutton->line p2 = guiradiobutton->column p3 = guiradiobutton->length p4 = guiradiobutton->text EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name VARPAI_TOOLBAR or its description.