SAP Reports / Programs

RSEREPA7 SAP ABAP Report - Checking/repairing segment using 3.x logic







RSEREPA7 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report can be used to check the formal consistency of IDoc segments and to repair any incorrect segments, under certain conditions...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 RSEREPA7 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 RSEREPA7. "Basic submit
SUBMIT RSEREPA7 AND RETURN. "Return to original report after report execution complete
SUBMIT RSEREPA7 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PCLOSED = Release flag
Selection Text: PNAME = Name
Selection Text: REPAIR = Repair data consistency
Selection Text: SEGMENT = Segment type
Selection Text: TESTRUN = Test mode
Selection Text: CLOSED = Set release flag to
Selection Text: DETAIL = Detail log
Selection Text: NAMES = Set name to
Title: Checking/repairing segment using 3.x logic
Text Symbol: 060 = No segment definition found for this segment
Text Symbol: 059 = Active segment definition has different segment type
Text Symbol: 058 = Names in segment definition are not
Text Symbol: 057 = Length of segment def. inconsistent with DDIC length of structure
Text Symbol: 056 = Segment definition is not released
Text Symbol: 049 = Checking segm.type
Text Symbol: 011 = No entry in check table
Text Symbol: 009 = No segm.type corresp. to
Text Symbol: 003 = Unknown DDIC structure will be ignored in further repairs
Text Symbol: 002 = Repair not possible since DDIC length cannot be determined
Text Symbol: 001 = Repair not possible since DDIC structure unknown
Text Symbol: 048 = Setting as active segment def.
Text Symbol: 047 = Checking segment definition
Text Symbol: 021 = Release of segment type set to
Text Symbol: 020 = Release of segment type unknown
Text Symbol: 067 = No segment definition found with segment type length
Text Symbol: 068 = Segment def. active in DDIC but length is different from segm. type
Text Symbol: 069 = Segment definition & is not released
Text Symbol: 070 = Segment definition & was released
Text Symbol: 080 = Checking segment:
Text Symbol: 012 = Check table entry will be generated
Text Symbol: 062 = Segment def. with length corresponding to segment type set to active
Text Symbol: 063 = All existing segment definitions are longer than the segment type
Text Symbol: 064 = Newest segment definition possible set as active segment def.
Text Symbol: 061 = Segment def. generated with name
Text Symbol: 091 = Names were not set to SAP
Text Symbol: 090 = Names were set to SAP
Text Symbol: 087 = Segment can be repaired
Text Symbol: 086 = Segment cannot be repaired





Text Symbol: 082 = Segment has errors
Text Symbol: 100 = Error changing
Text Symbol: 095 = Tables were not adjusted
Text Symbol: 094 = Tables were adjusted
Text Symbol: 093 = Release flag was not changed
Text Symbol: 092 = Release flag was changed
Text Symbol: 081 = Segment is correct
Text Symbol: 066 = Segment def. created with name according to convention
Text Symbol: 065 = Segment def. created with name from segment type
Text Symbol: 050 = Length of segm.type inconsistent with DDIC length of struct.
Text Symbol: 166 = Release of oldest definition adjusted to segment type
Text Symbol: 165 = Release of segment type adjusted to Release of oldest definition
Text Symbol: 162 = Generated segment definition is not active in DDIC
Text Symbol: 161 = No DDIC structure for generated segment definition
Text Symbol: 159 = Structure not active in DDIC, DDIC length cannot be determined
Text Symbol: 200 = Operating mode: Repair segments
Text Symbol: 170 = No short text exists
Text Symbol: 169 = Release of segment type differs from release of oldest def.
Text Symbol: 168 = Current Release taken for segment type and definition
Text Symbol: 167 = Release taken from check table for segment type and definition
Text Symbol: 158 = Names in segment definition set to
Text Symbol: 152 = Length of active segment definition set to
Text Symbol: 151 = Check table adjusted to segment type
Text Symbol: 150 = Length of segment type set to DDIC length of structure
Text Symbol: 120 = Checking connection from segment type to active segment def.
Text Symbol: 110 = Error generating
Text Symbol: 157 = Length of segment definition set to DDIC length of structure
Text Symbol: 156 = Release flag of segment definition set to
Text Symbol: 155 = Extension flag in segment definition adjusted to segment type
Text Symbol: 154 = Release in segment definition adjusted to segment type
Text Symbol: 153 = Segment type in segment def. adjusted to segment type
Text Symbol: 201 = Test mode: Check segments
Text Symbol: 603 = Total number of processed segments
Text Symbol: 602 = No. of irreparable segments
Text Symbol: 499 = Repair IDoc segments
Text Symbol: 333 = System profile cannot be read
Text Symbol: 320 = Table consistency repair
Text Symbol: 310 = Set name to
Text Symbol: 300 = Set release flag to





Text Symbol: 601 = Number of repairable segments
Text Symbol: 600 = No. of correct segments
Text Symbol: 502 = Time
Text Symbol: 501 = Date
Text Symbol: 500 = System
Text Symbol: 055 = Extension flag of segment definition inconsistent with segment
Text Symbol: 054 = Release of segment def. inconsistent with segment type
Text Symbol: 052 = Active segment definition not found
Text Symbol: 051 = Check table inconsistent w/ segm.type


INCLUDES used within this REPORT RSEREPA7

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:

DD_TABL_GET CALL FUNCTION 'DD_TABL_GET' EXPORTING " get_state = 'M' LANGU = SY-LANGU PRID = 0 TABL_NAME = OBJ_NAME " withtext = ' ' " use_cache = ' ' TRACELEVEL = 0 IMPORTING GOT_STATE = STATE TABLES DD03P_TAB_A = MYTAB_A DD03P_TAB_N = MYTAB_N DD05M_TAB_A = DD05M_TAB_A DD05M_TAB_N = DD05M_TAB_A DD08V_TAB_A = DD08V_TAB_A DD08V_TAB_N = DD08V_TAB_N DD12V_TAB_A = DD12V_TAB_A DD12V_TAB_N = DD12V_TAB_N DD17V_TAB_A = DD17V_TAB_A DD17V_TAB_N = DD17V_TAB_N EXCEPTIONS ACCESS_FAILURE = 01.

DD_TABL_LENGTH_GET CALL FUNCTION 'DD_TABL_LENGTH_GET' EXPORTING TABNAME = OBJ_NAME IMPORTING DATALENGTH = DATALENGTH KEYLENGTH = KEYLENGTH TABLELENGTH = DDIC_LENGTH TABLES DD03P_TAB = MYTAB_A EXCEPTIONS WRONG_TABNAME = 01.

TR_SYS_PARAMS CALL FUNCTION 'TR_SYS_PARAMS' IMPORTING " systemedit = SYSTEMNAME = SYSTEMNAME SYSTEMTYPE = SYSTEMTYPE EXCEPTIONS NO_SYSTEMNAME = 01 " system_client_edit = NO_SYSTEMTYPE = 02.



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