SAP Reports / Programs | Basis Components | Installation Tools | Runtime for ABAP based automated TC(BC-INS-TC-RT) SAP BC

STC_SCN_MAINTAIN SAP ABAP Report - Task Manager for Technical Configuration







STC_SCN_MAINTAIN is a standard Executable ABAP Report 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 STC_SCN_MAINTAIN into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

STC01 - Task Manager for Tech. Configuration


ABAP code to call this SAP report using the submit statement

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.






SUBMIT STC_SCN_MAINTAIN. "Basic submit
SUBMIT STC_SCN_MAINTAIN AND RETURN. "Return to original report after report execution complete
SUBMIT STC_SCN_MAINTAIN VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Task Manager for Technical Configuration
Text Symbol: 044 = Event Tasks based on &1
Text Symbol: 043 = Show Event Tasks
Text Symbol: 042 = Task List Variant &1 is transportable. Record deletion?
Text Symbol: 041 = New
Text Symbol: 040 = Create new object or refer to the existing object?
Text Symbol: 039 = Docu object &1/&2 exists
Text Symbol: 038 = Task List is documented. Delete documentation object &1 (type &2) as well?
Text Symbol: 037 = Delete Documentation
Text Symbol: 036 = Copy task list documentation
Text Symbol: 035 = Target Document
Text Symbol: 034 = Source Document
Text Symbol: 033 = Document Type
Text Symbol: 032 = Refer
Text Symbol: 031 = Copy
Text Symbol: 030 = Do you want to copy the docu, refer to the same docu or ignore the docu (cancel)?
Text Symbol: 029 = Source task list is documented
Text Symbol: 028 = Target Task List
Text Symbol: 027 = Source Task List
Text Symbol: 026 = Reset Phase to '&1'
Text Symbol: 025 = Reset
Text Symbol: 024 = Reset Phase
Text Symbol: 021 = Show Task Documentation (in &1)
Text Symbol: 020 = Do you want to delete the selected Task List Variants (&1)?
Text Symbol: 019 = Confirm deletion
Text Symbol: 018 = Show Task Documentation
Text Symbol: 017 = Help
Text Symbol: 016 = Enter Documentation Object
Text Symbol: 015 = Task List Attributes
Text Symbol: 014 = Copy of Task List
Text Symbol: 013 = Move Down
Text Symbol: 012 = Down
Text Symbol: 011 = Move Up
Text Symbol: 010 = Up
Text Symbol: 009 = Copy Task List &1
Text Symbol: 008 = Delete Task List &1?
Text Symbol: 007 = Delete Task List
Text Symbol: 006 = Save Task List &1?





Text Symbol: 005 = Task List has been changed
Text Symbol: 004 = Choose Variants to be deleted
Text Symbol: 001 = Create New Task List &1?


INCLUDES used within this REPORT STC_SCN_MAINTAIN

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RS_TOOL_ACCESS CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = lv_obj_name object_type = lv_obj_type EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3.

F4IF_FIELD_VALUE_REQUEST CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = 'STC_SCN_TASKS' fieldname = 'PHASE' TABLES return_tab = lt_return EXCEPTIONS field_not_found = 1 no_help_for_field = 2 inconsistent_help = 3 no_values_found = 4 OTHERS = 5.

RS_TOOL_ACCESS CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = lv_obj_name object_type = lv_obj_type EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = 'Task List Attributes'(015) * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = lv_answer TABLES fields = lt_prop_fld[] EXCEPTIONS error_in_fields = 1 OTHERS = 2.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = 'Enter Documentation Object'(016) * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = lv_answer TABLES fields = lt_prop_fld[] EXCEPTIONS error_in_fields = 1 OTHERS = 2.

DOKU_OBJECT_EXIST CALL FUNCTION 'DOKU_OBJECT_EXIST' EXPORTING dokclass = lv_dokclass dokname = ls_prop-doku_obj EXCEPTIONS object_not_exist = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = gv_popup_title text_question = gv_popup_question text_button_1 = 'New'(041) icon_button_1 = 'ICON_CREATE' text_button_2 = 'Refer'(032) icon_button_2 = 'ICON_LINKED_DOCUMENT' IMPORTING answer = gv_popup_answer EXCEPTIONS OTHERS = 0.

DOCU_CALL CALL FUNCTION 'DOCU_CALL' EXPORTING displ = ' ' "edit displ_mode = '2' id = ls_prop-doku_id langu = sy-langu object = ls_prop-doku_obj.

TR_TADIR_POPUP_ENTRY_E071 CALL FUNCTION 'TR_TADIR_POPUP_ENTRY_E071' EXPORTING wi_e071_pgmid = 'R3TR' wi_e071_object = 'STCS' wi_e071_obj_name = lv_objname wi_read_only = 'X' * iv_suppress_mod_show = 'X' EXCEPTIONS OTHERS = 1.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'STC02' EXCEPTIONS ok = 1 not_ok = 2 OTHERS = 3.

STC_TM_GET_TEMPLATE_LIST CALL FUNCTION 'STC_TM_GET_TEMPLATE_LIST' EXPORTING i_scenario_id = gv_scenario_id i_show = 'X' IMPORTING e_template_id = lv_template_id.

STC_TM_GET_TEMPLATE_LIST CALL FUNCTION 'STC_TM_GET_TEMPLATE_LIST' EXPORTING i_scenario_id = gv_scenario_id i_show = space "only get list TABLES et_template = lt_template[].

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = 'LT_TEMPL_SEL' i_structure_name = 'STCTM_S_TEMPLATE' CHANGING ct_fieldcat = lt_fc EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING is_layout = ls_layout it_fieldcat = lt_fc it_excluding = lt_exclude i_screen_start_column = 5 i_screen_start_line = 5 i_screen_end_column = 130 i_screen_end_line = 20 IMPORTING es_exit_caused_by_user = ls_user_exit TABLES t_outtab = lt_templ_sel[] EXCEPTIONS program_error = 0 OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question display_cancel_button = abap_false IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

TR_ORDER_CHOICE_CORRECTION





CALL FUNCTION 'TR_ORDER_CHOICE_CORRECTION' EXPORTING iv_category = 'CUST' iv_cli_dep = 'X' IMPORTING * ev_order = lv_order ev_task = lv_trkorr EXCEPTIONS no_correction_selected = 1 invalid_category = 2 OTHERS = 3.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question IMPORTING answer = lv_answer EXCEPTIONS OTHERS = 0.

DOKU_DELETE_ALL CALL FUNCTION 'DOKU_DELETE_ALL' EXPORTING doku_id = ls_prop-doku_id doku_object = ls_prop-doku_obj suppress_authority = ' ' suppress_enqueue = ' ' suppress_transport = ' ' EXCEPTIONS header_without_text = 1 index_without_header = 2 no_authority_for_devclass_xxxx = 3 no_docu_found = 4 object_is_already_enqueued = 5 object_is_enqueued_by_corr = 6 techn_enqueue_problem = 7 user_break = 8 OTHERS = 9.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = lv_title IMPORTING returncode = lv_answer TABLES fields = lt_attr_fld[] EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = gv_popup_title text_question = gv_popup_question text_button_1 = 'Copy'(031) icon_button_1 = 'ICON_COPY_OBJECT' text_button_2 = 'Refer'(032) icon_button_2 = 'ICON_LINKED_DOCUMENT' IMPORTING answer = gv_popup_answer EXCEPTIONS OTHERS = 0.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = lv_title * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = lv_answer TABLES fields = lt_attr_fld[] EXCEPTIONS OTHERS = 0.

DOKU_COPY_ALL CALL FUNCTION 'DOKU_COPY_ALL' EXPORTING new_object = lv_copy_doc old_id = ls_prop-doku_id old_object = ls_prop-doku_obj * old_typ = ' ' suppress_authority = ' ' suppress_enqueue = ' ' suppress_transport = ' ' * corr_entry = EXCEPTIONS header_without_text = 1 index_without_header = 2 no_authority_for_devclass_xxxx = 3 no_docu_found = 4 object_is_already_enqueued = 5 object_is_enqueued_by_corr = 6 techn_enqueue_problem = 7 user_break = 8 OTHERS = 9.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = gv_popup_title text_question = gv_popup_question IMPORTING answer = gv_popup_answer EXCEPTIONS OTHERS = 0.

STC_TM_GET_TEMPLATE_LIST CALL FUNCTION 'STC_TM_GET_TEMPLATE_LIST' EXPORTING i_scenario_id = gv_scenario_id i_show = 'X' IMPORTING e_template_id = gv_template_id.

STC_TM_TEMPLATE_CREATE_DIALOG CALL FUNCTION 'STC_TM_TEMPLATE_CREATE_DIALOG' EXPORTING i_scenario_id = gv_scenario_id i_show = 'X' EXCEPTIONS error_occurred = 1 aborted_by_user = 2 OTHERS = 3.

F4IF_FIELD_VALUE_REQUEST CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = space fieldname = space searchhelp = 'STC_TASK' multiple_choice = 'X' TABLES return_tab = lt_sel_task[] EXCEPTIONS field_not_found = 1 no_help_for_field = 2 inconsistent_help = 3 no_values_found = 4 OTHERS = 5.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'STCTM_S_TASKLIST' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'STCTM_S_TASKLIST' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

LVC_TRANSFER_TO_SLIS CALL FUNCTION 'LVC_TRANSFER_TO_SLIS' EXPORTING it_fieldcat_lvc = lt_evt_fieldcat is_layout_lvc = ls_layout IMPORTING et_fieldcat_alv = lt_slis_fcat es_layout_alv = ls_slis_layout TABLES it_data = gt_ev_tasks EXCEPTIONS it_data_missing = 1 it_fieldcat_lvc_missing = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'STC_SCN_MAINTAIN' i_callback_top_of_page = 'SHOW_EV_TASKS_TOPOFPAGE' is_layout = ls_slis_layout it_fieldcat = lt_slis_fcat it_events = lt_events it_excluding = lt_exclude i_screen_start_column = 5 i_screen_start_line = 5 i_screen_end_column = 124 i_screen_end_line = 17 TABLES t_outtab = gt_ev_tasks EXCEPTIONS program_error = 1 OTHERS = 2.

GET_GLOBALS_FROM_SLVC_FULLSCR CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' IMPORTING e_grid = gr_evt_grid.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_top_of_page.



Contribute (Add Comments)

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 STC_SCN_MAINTAIN or its description.