SAP Reports / Programs | Financials | Financial Supply Chain Management(FIN-FSCM) SAP FIN

RBNK_RULID_EVALUATE SAP ABAP Report - Test program for batch rules







RBNK_RULID_EVALUATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program subjects all chosen payments (table REGUH) to the batch rules maintained in Bank Relationship Management (BRM) customizing and shows the result: No batch rule applied Unique batch rule (taking rule priority into account) Several batch rules apply, same priority (not unique) By default, the date for rule evaluation is the system date ...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 RBNK_RULID_EVALUATE 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 RBNK_RULID_EVALUATE. "Basic submit
SUBMIT RBNK_RULID_EVALUATE AND RETURN. "Return to original report after report execution complete
SUBMIT RBNK_RULID_EVALUATE 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_CRDAT = D .
Selection Text: P_NLAUFI = New ID (simulation)
Selection Text: P_RUNDAT = Take run dates instead
Selection Text: S_KUNNR = D .
Selection Text: S_LAUFD = D .
Selection Text: S_LAUFI = D .
Selection Text: S_LIFNR = D .
Selection Text: S_VBLNR = D .
Selection Text: S_XVORL = D .
Selection Text: S_ZBUKR = D .
Title: Test program for batch rules
Text Symbol: 001 = List of matching rules
Text Symbol: I0G = Unique batch rule
Text Symbol: I0R = No batch rule applies
Text Symbol: I0Y = Non-unique batch rule


INCLUDES used within this REPORT RBNK_RULID_EVALUATE

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:

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = 'TBNK_RULE' CHANGING CT_FIELDCAT = LT_FIELDCAT EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = 'BNK_BTC_MONIP_UI' CHANGING CT_FIELDCAT = LT_FIELDCAT EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = 'BNK_STR_BATCH_RULE_ATTRIB' CHANGING CT_FIELDCAT = LT_FIELDCAT EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

BNK_API_RULID_EVALUATE CALL FUNCTION 'BNK_API_RULID_EVALUATE' EXPORTING I_STRUCTURE_NAME = 'BNK_STR_BATCH_RULE_ATTRIB' I_STRUCTURE = I_RCRD_CREA_DATE = L_DATE IMPORTING E_RULE_ID = LF_PAY-RULE_ID E_TAB_RULE_EVAL = LT_RULE_EVAL EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING NAME = U_ICON TEXT = U_TEXT INFO = U_TEXT IMPORTING RESULT = TABLE_FIELD EXCEPTIONS ICON_NOT_FOUND = 1 OUTPUTFIELD_TOO_SHORT = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING IS_LAYOUT = GS_LAYOUT IT_FIELDCAT = GT_FIELDCAT I_SAVE = 'X' I_CALLBACK_PROGRAM = G_REPID I_CALLBACK_USER_COMMAND = 'USER_COMMAND' TABLES T_OUTTAB = GT_PAY EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

BNK_API_RULID_EVALUATE CALL FUNCTION 'BNK_API_RULID_EVALUATE' EXPORTING I_STRUCTURE_NAME = 'BNK_STR_BATCH_RULE_ATTRIB' I_STRUCTURE = -RULE_ATTRIB I_RCRD_CREA_DATE = L_DATE IMPORTING E_TAB_RULE_EVAL = LT_RULE_EVAL EXCEPTIONS OTHERS = 0.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING I_TITLE = 'List of matching rules'(001) I_SELECTION = ' ' I_TABNAME = '1' I_STRUCTURE_NAME = 'BNK_STR_RULE_PRIO_4_DISP' TABLES T_OUTTAB = LT_RULE_EVAL1 EXCEPTIONS OTHERS = 0.

COMPANY_CODE_READ CALL FUNCTION 'COMPANY_CODE_READ' EXPORTING I_BUKRS = -RULE_ATTRIB-ZBUKR IMPORTING E_T001 = LF_T001.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = -RULE_ATTRIB-ZALDT "posting date I_PERIV = LF_T001-PERIV IMPORTING E_GJAHR = L_GJAHR EXCEPTIONS OTHERS = 0.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = P_TCODE EXCEPTIONS OK = 0 OTHERS = 3.



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