SAP Reports / Programs

RHGRENZ4 SAP ABAP Report - Set New End Date







RHGRENZ4 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report sets a new delimitation date for the records found using the selection screen...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 RHGRENZ4 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

RE_RHGRENZ4 - Set new end date for infotypes


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 RHGRENZ4. "Basic submit
SUBMIT RHGRENZ4 AND RETURN. "Return to original report after report execution complete
SUBMIT RHGRENZ4 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: TEST = Test
Selection Text: SUBTY = Subtype
Selection Text: NEW_END = New End Date
Selection Text: INFTY = Infotype
Selection Text: HISTO = Historical record
Selection Text: G_DAT = Existing End Date
Selection Text: ENQ = Lock Object
Selection Text: ANZEIGE = Display Delimited Objects
Title: Set New End Date
Text Symbol: CUT = -->Incorrect Delimit Date
Text Symbol: ENQ = --> Object Locked
Text Symbol: ERF = --> Record Successfully Changed
Text Symbol: ERG = Result
Text Symbol: EXC = --> related object does not exist
Text Symbol: FBB = An error occurred while processing the infotype
Text Symbol: FBI = No authorization to delete infotype
Text Symbol: FBL = Error when deleting infotype
Text Symbol: INK = --> relationship is inconsistent
Text Symbol: KBB = No Authorization to Process Object
Text Symbol: NBI = Link to linked object is inconsistent
Text Symbol: NDA = New End Date:
Text Symbol: NEB = --> New End Date < InfotypeSt.Date
Text Symbol: NEI = New End Date = End Date of Linked Object
Text Symbol: NEW = --> New End > Object End
Text Symbol: REG = -> Record Deleted
Text Symbol: SEL = Infotype Selection
Text Symbol: SET = Report-Specific Settings
Text Symbol: TIM = --> Record Adjusted for Time Const.
Text Symbol: 001 = Historical Record
Text Symbol: 002 = Lock Objects
Text Symbol: 003 = Display Delimited Records
Text Symbol: 004 = Test
Text Symbol: 005 = Delimit.Date
Text Symbol: 006 = New End Date
Text Symbol: 007 = T E S T R U N
Text Symbol: 008 = TEST MODE: Chosen End Date Not Possible
Text Symbol: 009 = Object
Text Symbol: 010 = ITyp





Text Symbol: 011 = STyp
Text Symbol: 012 = S
Text Symbol: 013 = Validity (from - to)
Text Symbol: 014 = VarField
Text Symbol: 015 = SeqNo
Text Symbol: 016 = Set New End Date
Text Symbol: 017 = New End Date:
Text Symbol: 018 = Record with Chosen End Date Does Not Exist
Text Symbol: 019 = Existing End Date
Text Symbol: 020 = Plan Version:
Text Symbol: 021 = Test Run
Text Symbol: 022 = The following records will be updated:
Text Symbol: 023 = Delete records with start date after delimit date
Text Symbol: 024 = Change/delete subsequent records in case of time constraints
Text Symbol: 030 = Your infotype selection contains IT1000
Text Symbol: 040 = All dependent infotype records will also be delimited.
Text Symbol: 050 = Your infotype selection does not contain IT1000
Text Symbol: 060 = If infotype 1000 is added to your selection


INCLUDES used within this REPORT RHGRENZ4

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:

HR_ENQUEUE_OBJECT CALL FUNCTION 'HR_ENQUEUE_OBJECT' EXPORTING plvar = ppenq-plvar otype = ppenq-otype objid = ppenq-objid IMPORTING lock_user = akt_user EXCEPTIONS enqueue_failed = 1 objid_is_initial = 2 illegal_otype = 3 internal_error = 4 OTHERS = 5.

RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING infty = ' ' istat = pchistat "note1120238 begda = pchbegda endda = pchendda INFTB = '0' "note866221 TABLES innnn = infty_tab OBJECTS = objec_innn EXCEPTIONS all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 OTHERS = 5.

RH_STRU_AUTH_MAINT_CHECK CALL FUNCTION 'RH_STRU_AUTH_MAINT_CHECK' EXPORTING fcode = 'INSE' plvar = infty_tab-plvar otype = infty_tab-otype objid = infty_tab-objid infty = infty_tab-infty subty = infty_tab-subty istat = infty_tab-istat begda = infty_tab-begda endda = infty_tab-endda EXCEPTIONS no_stru_authority_objid = 1 no_base_authority = 2 no_stru_authority_sobid = 3 no_hyper_authority = 4 OTHERS = 5.

RH_STRU_AUTH_MAINT_CHECK CALL FUNCTION 'RH_STRU_AUTH_MAINT_CHECK' EXPORTING fcode = 'DEL' plvar = infty_tab-plvar otype = infty_tab-otype objid = infty_tab-objid infty = infty_tab-infty subty = infty_tab-subty istat = infty_tab-istat begda = infty_tab-begda endda = infty_tab-endda EXCEPTIONS no_stru_authority_objid = 1 no_base_authority = 2 no_stru_authority_sobid = 3 no_hyper_authority = 4 OTHERS = 5.

RH_DELETE_INFTY CALL FUNCTION 'RH_DELETE_INFTY' EXPORTING vtask = 'B' TABLES innnn = wplog_tab EXCEPTIONS ERROR_DURING_DELETE = 1 NO_AUTHORIZATION = 2 DELETE_FIRST_RECORD = 3 CORR_EXIT = 4 OTHERS = 5.

RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = infty_innn EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.

RH_TURN_RELATION CALL FUNCTION 'RH_TURN_RELATION' EXPORTING otype = p1001-sclas EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_INVERT_RELA_INFTY CALL FUNCTION 'RH_INVERT_RELA_INFTY' EXPORTING p1001_imp = p1001 IMPORTING p1001_exp = p1001_new EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = p1001_innn EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.






RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' old_tabnr = 'X' TABLES innnn = insert_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.

RH_TURN_RELATION CALL FUNCTION 'RH_TURN_RELATION' EXPORTING otype = p1001-sclas EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_INVERT_RELA_INFTY CALL FUNCTION 'RH_INVERT_RELA_INFTY' EXPORTING p1001_imp = p1001 IMPORTING p1001_exp = p1001_new EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = p1001_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 corr_exit = 3 OTHERS = 4.

RH_DELETE_INFTY CALL FUNCTION 'RH_DELETE_INFTY' EXPORTING vtask = 'B' TABLES innnn = infty_innn EXCEPTIONS error_during_delete = 1 no_authorization = 2 delete_first_record = 3 corr_exit = 4 OTHERS = 5.

RH_UPDATE_INFTY CALL FUNCTION 'RH_UPDATE_INFTY' EXPORTING vtask = 'B' old_tabnr_new_langu = 'X' TABLES innnn = insert_innn EXCEPTIONS error_during_update = 1 no_authorization = 2 repid_form_initial = 3 corr_exit = 4 OTHERS = 5.

RH_INSERT_INFTY CALL FUNCTION 'RH_INSERT_INFTY' EXPORTING vtask = 'B' old_tabnr = 'X' TABLES innnn = insert_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.

RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING vtask = 'D' EXCEPTIONS corr_exit = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_buffer_active = 'X' i_callback_program = g_repid is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_events = gt_events[] TABLES t_outtab = ausgabe_tab EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = e03_lt_events.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = p1001-plvar otype = p1001-sclas realo = p1001-sobid istat = p1001-istat ointerval = 'X' IMPORTING obeg = rela_obj_begda oend = rela_obj_endda EXCEPTIONS not_found = 1 OTHERS = 2.

RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = infty_innn EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.

RH_TURN_RELATION CALL FUNCTION 'RH_TURN_RELATION' EXPORTING otype = p1001-sclas EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_INVERT_RELA_INFTY CALL FUNCTION 'RH_INVERT_RELA_INFTY' EXPORTING p1001_imp = p1001 IMPORTING p1001_exp = p1001_new EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_DELETE_INFTY_DIRECT CALL FUNCTION 'RH_DELETE_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = p1001_innn EXCEPTIONS no_authorization = 1 error_during_delete = 2 corr_exit = 3 OTHERS = 4.

RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' old_tabnr = 'X' TABLES innnn = insert_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 repid_form_initial = 3 corr_exit = 4 begda_greater_endda = 5 OTHERS = 6.

RH_TURN_RELATION CALL FUNCTION 'RH_TURN_RELATION' EXPORTING otype = p1001-sclas EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_INVERT_RELA_INFTY CALL FUNCTION 'RH_INVERT_RELA_INFTY' EXPORTING p1001_imp = p1001 IMPORTING p1001_exp = p1001_new EXCEPTIONS relation_not_reversible = 1 OTHERS = 2.

RH_INSERT_INFTY_DIRECT



CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING vtask = 'B' TABLES innnn = p1001_innn EXCEPTIONS no_authorization = 1 error_during_insert = 2 corr_exit = 3 OTHERS = 4.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = p1001-plvar otype = p1001-sclas realo = p1001-sobid istat = p1001-istat ointerval = 'X' IMPORTING obeg = rela_obj_begda oend = rela_obj_endda EXCEPTIONS not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-030 text_question = text-040 IMPORTING answer = confirm_answer.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-050 text_question = text-060 IMPORTING answer = confirm_answer.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-050 text_question = text-060 IMPORTING answer = confirm_answer.



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