SAP Reports / Programs | Financial Accounting | Contract Accounts Receivable and Payable(FI-CA) SAP FI

RLOCKS_2_HIST SAP ABAP Report - Set Expired Locks in the History







RLOCKS_2_HIST 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 RLOCKS_2_HIST 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 RLOCKS_2_HIST. "Basic submit
SUBMIT RLOCKS_2_HIST AND RETURN. "Return to original report after report execution complete
SUBMIT RLOCKS_2_HIST 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: P_TDATE = Limited locks up to
Title: Set Expired Locks in the History
Text Symbol: 001 = LockCat.
Text Symbol: 002 = Transport to history
Text Symbol: 003 = Only simulate run


INCLUDES used within this REPORT RLOCKS_2_HIST

INCLUDE: RLOCKS_2_HISTTOP, RLOCKS_2_HISTO01, RLOCKS_2_HISTI01.
INCLUDE: RLOCKS_2_HISTTOP, RLOCKS_2_HISTO01, RLOCKS_2_HISTI01.


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:

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = L_PROGRESS_PERCENTAGE TEXT = TEXT-002.

ENQUEUE_EFKKLOCK CALL FUNCTION 'ENQUEUE_EFKKLOCK' EXPORTING LOOBJ1 = LS_DFKKLOCKS-LOOBJ1 LOTYP = LS_DFKKLOCKS-LOTYP PROID = LS_DFKKLOCKS-PROID LOCKR = LS_DFKKLOCKS-LOCKR FDATE = LS_DFKKLOCKS-FDATE TDATE = LS_DFKKLOCKS-TDATE EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

DEQUEUE_EFKKLOCK CALL FUNCTION 'DEQUEUE_EFKKLOCK' EXPORTING LOOBJ1 = LS_DFKKLOCKS-LOOBJ1 LOTYP = LS_DFKKLOCKS-LOTYP PROID = LS_DFKKLOCKS-PROID LOCKR = LS_DFKKLOCKS-LOCKR FDATE = LS_DFKKLOCKS-FDATE TDATE = LS_DFKKLOCKS-TDATE EXCEPTIONS OTHERS = 1.

RS_MSG_TEXT CALL FUNCTION 'RS_MSG_TEXT' EXPORTING * text_type = 'S' MSGID = C_ENQ_MSGID MSGNO = C_ENQ_MSGNO MSGV1 = SY-MSGV1 TABLES MSGTEXT = LT_TEXTTABLE.

RS_MSG_TEXT CALL FUNCTION 'RS_MSG_TEXT' EXPORTING * text_type = 'S' MSGID = C_RUNDATE_MSGID MSGNO = C_RUNDATE_MSGNO MSGV1 = L_CHAR_DATE TABLES MSGTEXT = LT_TEXTTABLE.



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