SAP Reports / Programs

RSRLDREL SAP ABAP Report - Program RSRLDREL: Delete Roles and Relationships







RSRLDREL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Deletes links between objects...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 RSRLDREL into the relevant SAP transactions such as SE38 or SE80


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


Text pool values


Delete from relationships without object reference
Selection Text: G_BOTH = Neither object exists
Selection Text: G_CTSZ = Package Size for Updates
Selection Text: G_DSINCE = Start Date
Selection Text: G_DUNTIL = End Date
Selection Text: G_MODOBJ = Select by Object/Role
Selection Text: G_MODREL = Select by Relationship Type
Selection Text: G_NONE = Do not check existence
Selection Text: G_OBJTYP = Object Type
Selection Text: G_ONE = One object does not exist
Selection Text: G_PACK = Find Minimum Package Size
Selection Text: G_PKSZ = Package Size for Selection
Selection Text: G_RELTYP = Relationship Type
Selection Text: G_ROLE = Role
Selection Text: G_TEST = Test Run
Selection Text: G_TSINCE = Start Time
Selection Text: G_TUNTIL = End Time
Title: Program RSRLDREL: Delete Roles and Relationships
Text Symbol: E01 = Invalid date or time
Text Symbol: 114 = Package Size
Text Symbol: 113 = Actual Package Size
Text Symbol: 112 = Minimum Package Size
Text Symbol: 111 = Test Run
Text Symbol: 110 = Delete if neither object exists
Text Symbol: 109 = Delete if one object does not exist
Text Symbol: 108 = Do not check existence
Text Symbol: 001 = OK
Text Symbol: 002 = Relationship not deleted
Text Symbol: 003 = Attribute not deleted
Text Symbol: 004 = Role A not deleted
Text Symbol: 005 = Role B not deleted
Text Symbol: 006 = Test Run
Text Symbol: 007 = Checked Relationships
Text Symbol: 008 = Deleted Roles
Text Symbol: 009 = Deleted Relationships
Text Symbol: 010 = Criterion
Text Symbol: 011 = Selection Period
Text Symbol: 012 = Relationships





Text Symbol: 013 = Selection mode
Text Symbol: 014 = Object not checked
Text Symbol: 015 = Role
Text Symbol: 016 = Entries
Text Symbol: 017 = Relationship Type
Text Symbol: 018 = Database Table
Text Symbol: 101 = Start Date
Text Symbol: 102 = Start Time
Text Symbol: 103 = End Date
Text Symbol: 104 = End Time
Text Symbol: 105 = Relationship Type
Text Symbol: 106 = Object Type
Text Symbol: 107 = Role Type


INCLUDES used within this REPORT RSRLDREL

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:

RELMOD_OBJTYPES_OF_ROLETYP_GET CALL FUNCTION 'RELMOD_OBJTYPES_OF_ROLETYP_GET' EXPORTING roletype = g_role TABLES objtypes = gt_objroles EXCEPTIONS no_data = 1 OTHERS = 3.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = g_own_logsys EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.

REL_INIT_BUFFER CALL FUNCTION 'REL_INIT_BUFFER'.

BREL_INIT_BUFFER CALL FUNCTION 'BREL_INIT_BUFFER'.

DB_COMMIT call function 'DB_COMMIT'.

DB_COMMIT call function 'DB_COMMIT'.

DB_COMMIT call function 'DB_COMMIT'.

RELMOD_BRELTYP_OF_ROLETYPE_GET CALL FUNCTION 'RELMOD_BRELTYP_OF_ROLETYPE_GET' EXPORTING roletype = l_role TABLES breltypmod = lt_breltyp EXCEPTIONS unknown = 1 not_found = 2 internal_error = 3 OTHERS = 4.

RELMOD_READ_BINRELTYPE CALL FUNCTION 'RELMOD_READ_BINRELTYPE' EXPORTING binreltype_name = g_reltyp IMPORTING binreltypmod = ps_breltyp EXCEPTIONS unknown = 1 OTHERS = 2.

REL_ROLE_READ CALL FUNCTION 'REL_ROLE_READ' EXPORTING roleid = p_role IMPORTING role = ls_role EXCEPTIONS unknown = unknown OTHERS = others.

BIN_RELS_OF_ROLE_GET CALL FUNCTION 'BIN_RELS_OF_ROLE_GET' EXPORTING roleid = ls_roles-roleid roletype = ls_roles-roletype TABLES gbinrel = lt_binrel EXCEPTIONS no_binary_link_existing = 1 wrong_usage = 2 unknown = 3 OTHERS = 4.

RELMOD_READ_BINRELTYPE





CALL FUNCTION 'RELMOD_READ_BINRELTYPE' EXPORTING binreltype_name = ls_binrel-breltyp IMPORTING binreltypmod = gs_breltyp EXCEPTIONS OTHERS = 0.

REL_ROLE_DEL * CALL FUNCTION 'REL_ROLE_DEL' * EXPORTING * roleid = ls_roles-roleid.

DB_COMMIT * call function 'DB_COMMIT'.

RELMOD_ROLETYPES_OF_OBJTYP_GET CALL FUNCTION 'RELMOD_ROLETYPES_OF_OBJTYP_GET' EXPORTING objtype = g_objtyp TABLES roletypes = gt_objroles EXCEPTIONS unknown = 1 no_data = 2 OTHERS = 3.

RELMOD_ROLETYPES_OF_OBJTYP_GET CALL FUNCTION 'RELMOD_ROLETYPES_OF_OBJTYP_GET' EXPORTING objtype = ' ' TABLES roletypes = gt_objroles EXCEPTIONS unknown = 1 no_data = 2 OTHERS = 3.

RELMOD_OBJTYPES_OF_ROLETYP_GET CALL FUNCTION 'RELMOD_OBJTYPES_OF_ROLETYP_GET' EXPORTING roletype = g_role TABLES objtypes = gt_objroles EXCEPTIONS no_data = 1 OTHERS = 2.

REL_INIT_BUFFER CALL FUNCTION 'REL_INIT_BUFFER'.

BREL_INIT_BUFFER CALL FUNCTION 'BREL_INIT_BUFFER'.

SWO_INVALIDATE CALL FUNCTION 'SWO_INVALIDATE' EXPORTING objtype = ' ' clear_program_memory = 'X'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'SRL_BRATR' is_layout = ls_layout TABLES t_outtab = gt_output EXCEPTIONS program_error = 1 OTHERS = 2.

BIN_REL_ATTRIB_DEL CALL FUNCTION 'BIN_REL_ATTRIB_DEL' EXPORTING relationid = ps_binrel-relationid relationtype = ps_binrel-breltyp EXCEPTIONS internal_error = 1 OTHERS = 2.

BIN_RELS_OF_ROLE_GET CALL FUNCTION 'BIN_RELS_OF_ROLE_GET' EXPORTING roleid = ps_binrel-role_a roletype = ps_breltypmod-role_a * TABLES * gbinrel = lt_binrel EXCEPTIONS no_binary_link_existing = 1 wrong_usage = 2 unknown = 3 OTHERS = 4.

REL_ROLE_DEL * CALL FUNCTION 'REL_ROLE_DEL' * EXPORTING * roleid = l_roleid.

BIN_RELS_OF_ROLE_GET CALL FUNCTION 'BIN_RELS_OF_ROLE_GET' EXPORTING roleid = ps_binrel-role_b roletype = ps_breltypmod-role_b * TABLES * gbinrel = lt_binrel EXCEPTIONS no_binary_link_existing = 1 wrong_usage = 2 unknown = 3 OTHERS = 4.

REL_ROLE_DEL * CALL FUNCTION 'REL_ROLE_DEL' * EXPORTING * roleid = l_roleid.



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