SAP Reports / Programs | Knowledge Management | Knowledge Warehouse(KM-KW) SAP KM

KW_STATE_HIERARCHY SAP ABAP Report - Maintenance Program: Hierarchy of Statuses in KW







KW_STATE_HIERARCHY 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 KW_STATE_HIERARCHY 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

SISTATE2 - Extended Status Management On/Off
SISTATE - Maintenance of Changes to Status


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 KW_STATE_HIERARCHY. "Basic submit
SUBMIT KW_STATE_HIERARCHY AND RETURN. "Return to original report after report execution complete
SUBMIT KW_STATE_HIERARCHY VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Maintenance Program: Hierarchy of Statuses in KW
Text Symbol: 001 = Cancel Processing
Text Symbol: 002 = Do you want to save the data?
Text Symbol: 004 = This function is not possible with multiple selection
Text Symbol: 005 = Start Status
Text Symbol: 006 = Next Status
Text Symbol: 010 = Insert Data Record
Text Symbol: 011 = Change Data Record
Text Symbol: 012 = Copy Data Record
Text Symbol: 013 = Delete Data Record
Text Symbol: 014 = Check Hierarchy Chain
Text Symbol: 015 = Check for Consistency
Text Symbol: 016 = Yes
Text Symbol: 017 = No
Text Symbol: 018 = Do you really want to delete the data?
Text Symbol: 019 = Succecssful
Text Symbol: F01 = On/Off
Text Symbol: F02 = Activate/Deactivate Function for Status Change


INCLUDES used within this REPORT KW_STATE_HIERARCHY

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:

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'STK_IWBSTATEHIER_FOR_GRID' CHANGING ct_fieldcat = gt_fieldcatalog.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = l_question text_button_1 = 'Ja'(016) text_button_2 = 'Nein'(017) display_cancel_button = 'X' IMPORTING answer = l_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

IWB_D_AREA_GET CALL FUNCTION 'IWB_D_AREA_GET' IMPORTING area = l_area.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = progname dynumb = dynnum translate_to_upper = 'X' TABLES dynpfields = tab_dynread EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 INVALID_PARAMETER = 7 UNDEFIND_ERROR = 8 DOUBLE_CONVERSION = 9 STEPL_NOT_FOUND = 10 OTHERS = 11.

IWB_D_PROP_VALUE_GET CALL FUNCTION 'IWB_D_PROP_VALUE_GET' EXPORTING i_area = l_area i_class = '' i_without_prop = without_prop IMPORTING e_prop_value = ret_pro.

IW_C_AREA_GET CALL FUNCTION 'IW_C_AREA_GET' EXPORTING language = sy-langu kw_application = 'KM_KW_R3' only_local_areas = 'X' TABLES areas_texts = l_areas.

IWB_GLOBAL_SETTINGS_GET CALL FUNCTION 'IWB_GLOBAL_SETTINGS_GET' TABLES required_properties = l_reqprops properties_of_result = l_propsres.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'SDOKDOCSPT' CHANGING ct_fieldcat = pt_fieldcat EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

IWB_GLOBAL_SETTINGS_DELETE CALL FUNCTION 'IWB_GLOBAL_SETTINGS_DELETE' TABLES props_to_be_deleted = l_reqprops.

IWB_GLOBAL_SETTINGS_SET CALL FUNCTION 'IWB_GLOBAL_SETTINGS_SET' TABLES properties = l_iwbsetting.



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