SAP Reports / Programs

RSSC_DEMO_RULES SAP ABAP Report - Local: Test program 3 for rules.







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


Text pool values


Demo program for rule management
Selection Text: TITLE = Title Bar
Selection Text: TIMEZONE = Proposal for time zone
Selection Text: TIMETO = Proposal for end time
Selection Text: TIMEFROM = Proposal for start time
Selection Text: RULETYPE = Proposal for rule
Selection Text: FROMDATE = Start of calculation period
Selection Text: ENTITY = Name of rule type
Selection Text: ENDDATE = End of calculation period
Title: Local: Test program 3 for rules.
Text Symbol: 005 = To
Text Symbol: 004 = Rule ID
Text Symbol: 003 = Cancelled by user
Text Symbol: 002 = Working times
Text Symbol: 001 = Working times of


INCLUDES used within this REPORT RSSC_DEMO_RULES

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:

SUSR_USER_LOGONDATA_GET CALL FUNCTION 'SUSR_USER_LOGONDATA_GET' EXPORTING user_name = sy-uname IMPORTING user_logondata = logon_data EXCEPTIONS user_name_not_exist = 1 OTHERS = 2.

APPT_RULE_EDITOR CALL FUNCTION 'APPT_RULE_EDITOR' EXPORTING display_mode = ' ' TITLE_OF_EDITOR = title NAME_OF_RULE_ENTITY = entity TIMEZONE = timezone RULE_TYPE = ruletype TIME_FROM = timefrom TIME_TO = timeto no_period = 'X' IMPORTING ACTION = action CHANGING * period_start_date = sy-datum * period_end_date = enddate RULE = rule.

APPT_RULE_EXCLUDE_DATE * CALL FUNCTION 'APPT_RULE_EXCLUDE_DATE' * EXPORTING * exclude_date_from = '19991201' * exclude_DATE_TO = '19991231' ** TIME_FROM = ' ** TIME_TO = ** TIMEZONE = * changing * rule = rule.

APPT_RULE_COMPUTE CALL FUNCTION 'APPT_RULE_COMPUTE' EXPORTING * RULE_ID = ' ' RULE = rule from_date = fromdate to_date = enddate * APPT_TEMPLATE = tmpl tables appointments = appts EXCEPTIONS RULE_NOT_EXIST = 1 INVALID_RULE = 2 OTHERS = 3.

APPT_RULE_ID_GET CALL FUNCTION 'APPT_RULE_ID_GET' EXPORTING rule = rule rule_reference = ref * OLD_RULE_ID = ' ' FREE_ALL_OLD_RULES = ' ' IMPORTING RULE_ID = rule_id * EXCEPTIONS * NO_REFERENCE = 1 * INVALID_RULE = 2 * 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 RSSC_DEMO_RULES or its description.