SAP Reports / Programs | Basis Components | Business Management | Organizational Plan(BC-BMT-OM-OM) SAP BC

RHSTRPF0 SAP ABAP Report - Maintain Structure







RHSTRPF0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report RHSTRPF0 generates the initial screen for structure maintenance...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RHSTRPF0 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

PPSS - Display Structure
PPSM - Change Structure
PPSC - Create Structure


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


Text pool values


Title: Maintain Structure


INCLUDES used within this REPORT RHSTRPF0

INCLUDE RHODAT00.
INCLUDE RHRDAT00.
INCLUDE RHPDAT00.
INCLUDE MPHFCOD0.


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:

RH_ORG_STRUCTURE_MAIN_CHECK CALL FUNCTION 'RH_ORG_STRUCTURE_MAIN_CHECK' EXPORTING MAIN_TCODE = TCODE EXCEPTIONS NO_AUTHORITY = 1 OTHERS = 2.

RH_ORG_STRUCTURE_MAIN_CHECK CALL FUNCTION 'RH_ORG_STRUCTURE_MAIN_CHECK' EXPORTING MAIN_TCODE = 'PPSS' EXCEPTIONS NO_AUTHORITY = 1 OTHERS = 2.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING ACT_PLVAR = WF_PLVAR EXCEPTIONS NO_ACTIVE_PLVAR = 0.

RH_GET_PLVAR CALL FUNCTION 'RH_GET_PLVAR' IMPORTING PLVAR = OBJEC-PLVAR EXCEPTIONS NO_PLVAR = 1 OTHERS = 2.

ASK_PLVAR CALL FUNCTION 'ASK_PLVAR' EXPORTING D_PLVAR = '**' IMPORTING PLVAR = OBJEC-PLVAR SUBRC = SUBRC EXCEPTIONS WRONG_PLVAR_SET = 01 NO_PLVAR_SET = 02.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING ASK_PLVAR_DIALOG = ' ' IMPORTING ACT_PLVAR = WF_PLVAR EXCEPTIONS NO_ACTIVE_PLVAR = 1 OTHERS = 2.

RH_OM_MAINTAIN_STRUCTURE CALL FUNCTION 'RH_OM_MAINTAIN_STRUCTURE' EXPORTING ACT_PLVAR = OBJEC-PLVAR ACT_OTYPE = OBJEC-OTYPE ACT_ISTAT = DEF_ISTAT ACT_BEGDA = ACT_BEGDA ACT_ENDDA = ACT_ENDDA ACT_PATHID_1 = WEGID ACT_INT_PATHID_1 = ACT_INT_PATH_FLAG ONLY_DISPLAY = DISPLAY_ONLY ACT_MAINT = ACT_MAINT IMPORTING F15 = F15 TABLES OBJECTS = SEL_OBJ_1 EXCEPTIONS OTHERS = 0.

RH_GET_NEXT_NUMBER CALL FUNCTION 'RH_GET_NEXT_NUMBER' EXPORTING ACTION = 'DIRECT' EXT_NUMBER = NEW_OBJID OTYPE = OBJEC-OTYPE PLVAR = OBJEC-PLVAR IMPORTING NUMBER = NEW_OBJID.

RH_INSERT_INFTY CALL FUNCTION 'RH_INSERT_INFTY' EXPORTING FCODE = 'INSE' VTASK = 'D' TABLES INNNN = I_P1000 EXCEPTIONS CORR_EXIT = 01 NO_AUTHORIZATION = 08 ERROR_DURING_INSERT = 04 OTHERS = 04.

RH_CLEAR_BUFFER CALL FUNCTION 'RH_CLEAR_BUFFER'.

RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.

RH_OBJID_UNPACK CALL FUNCTION 'RH_OBJID_UNPACK' EXPORTING ACT_OTYPE = OBJEC-OTYPE CLEAR_STRING = ' ' CHANGING ACT_OBJID = OBJEC-REALO EXCEPTIONS OTHERS = 0.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = OBJEC-PLVAR OTYPE = OBJEC-OTYPE REALO = OBJEC-REALO ISTAT = OBJEC-ISTAT BEGDA = ACT_BEGDA ENDDA = ACT_ENDDA LANGU = SY-LANGU read_db = 'X' IMPORTING OBEG = OBJEC-BEGDA OEND = OBJEC-ENDDA SHORT = OBJEC-SHORT STEXT = OBJEC-STEXT TABLES EXISTENCE = EXISTENCE EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

RH_MACO CALL FUNCTION 'RH_MACO' EXPORTING SEARK = OBJEC-REALO SEARK_TEXT = MA_TEXT PLVAR = OBJEC-PLVAR OTYPE = OBJEC-OTYPE SET_MODE = SPACE IMPORTING SEL_OBJECT = MACO_OBJECT TABLES CONDITION = SEL_COND EXCEPTIONS F15 = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 OTHERS = 4.

RH_BASE_AUTHORITY_CHECK CALL FUNCTION 'RH_BASE_AUTHORITY_CHECK' EXPORTING FCODE = ACT_FCODE PLVAR = OBJEC-PLVAR OTYPE = OBJEC-OTYPE ISTAT = DEF_ISTAT EXCEPTIONS NO_BASE_AUTHORITY = 1 OTHERS = 2.

RH_EVALUATION_PATH_EXPAND CALL FUNCTION 'RH_EVALUATION_PATH_EXPAND' EXPORTING ACT_WEGID = P_WEGID EXTERNAL_RELATIONS = 'X' TABLES I77AW_OUT = I77AW EXCEPTIONS OTHERS = 0.

PATH_GET CALL FUNCTION 'PATH_GET' EXPORTING PATH_ID = P_WEGID TABLES 77AW = TMP_77AW EXCEPTIONS PATH_ID_NOT_FOUND = 1 OTHERS = 2.

RH_EVALUATION_PATH_EXPAND CALL FUNCTION 'RH_EVALUATION_PATH_EXPAND' EXPORTING EXTERNAL_RELATIONS = 'X' TABLES I77AW_IN = TMP_77AW I77AW_OUT = I77AW.

DYNP_VALUES_READ





CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = REPID DYNUMB = DYNNR TRANSLATE_TO_UPPER = 'X' TABLES DYNPFIELDS = DYNPFIELDS 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 OTHERS = 9.

RH_OTYPE_REQUEST_WITH_TABLE CALL FUNCTION 'RH_OTYPE_REQUEST_WITH_TABLE' IMPORTING SEL_OTYPE = OTYPE TABLES OTYPES = GL_I778O EXCEPTIONS OTHERS = 0.

RH_WEGID_REQUEST CALL FUNCTION 'RH_WEGID_REQUEST' EXPORTING OTYPE1 = ACT_OTYPE IMPORTING WEGID = TMP_WEGID EXCEPTIONS NOTHING_SELECTED = 1 OTHERS = 2.

RH_DETERMINE_ORG_OBJID CALL FUNCTION 'RH_DETERMINE_ORG_OBJID' EXPORTING ORG_OBJECT_TYPE = OBJEC-OTYPE ACT_PLVAR = OBJEC-PLVAR F4_MODE = 'X' IMPORTING ORG_OBJECT_OBJID = OBJEC-REALO EXCEPTIONS NO_ACTIVE_PLVAR = 1 NO_OBJECT_ID_SELECTED = 2 OTHERS = 3.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = REPID DYNUMB = DYNNR TABLES DYNPFIELDS = FIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7 OTHERS = 8.

RH_OM_GENERATE_PATH CALL FUNCTION 'RH_OM_GENERATE_PATH' EXPORTING ACT_PATHID = ACT_PATHID ACT_INT_PATHID = ACT_INT_PATH_FLAG GENERATE_PATH = 'X' IMPORTING NEW_PATHID = NEW_PATHID.



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