SAP Reports / Programs | Business Package for Manager Self-Service (FI) | Portal Content | Business Package for Manager Self-Service (FI)(EP-PCT-MGR-CO) SAP EP

FPB_RULES_FOR_USER SAP ABAP Report - Display Rules for a User







FPB_RULES_FOR_USER 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 FPB_RULES_FOR_USER 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

FPB_RULE_USER - Display Rule for a User


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 FPB_RULES_FOR_USER. "Basic submit
SUBMIT FPB_RULES_FOR_USER AND RETURN. "Return to original report after report execution complete
SUBMIT FPB_RULES_FOR_USER 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_MTYPE = Monitor Type
Selection Text: P_MAPPL = D .
Selection Text: P_USER = D .
Title: Display Rules for a User
Text Symbol: 001 = Delete the selected rules?
Text Symbol: 002 = Delete Rules
Text Symbol: 003 = Assignment of Rules to Users for Variances on Cost Centers
Text Symbol: 004 = Assignment of Rules for Critical Line Items on Cost Centers
Text Symbol: 005 = Assignment of Rules for Critical Line Items on Internal Orders
Text Symbol: 006 = Assignment of Rules for Critical Line Items on Profit Centers
Text Symbol: 007 = Assignment of Rules to Users for Variances on Internal Orders
Text Symbol: 008 = Assignment of Rules to Users for Variances on Profit Centers


INCLUDES used within this REPORT FPB_RULES_FOR_USER

INCLUDE FPB_RULES_FOR_USERTOP . " GLOBAL DATA


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 = 'FPB_S_LINE_DATA_EXT_TOP' CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = gs_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

FPB_LINE_TOP_DATA_GET CALL FUNCTION 'FPB_LINE_TOP_DATA_GET' EXPORTING id_monappl = p_mappl id_uname = p_user * ID_CHECKAUTH = * ID_RULEID = * IMPORTING * ED_EVALDATE = TABLES et_data = lt_line_data et_return = gt_return.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = 'FPB_RULES_FOR_USER' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND_LINE' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = * I_BACKGROUND_ID = ' ' I_GRID_TITLE = ld_title * I_GRID_SETTINGS = is_layout = ls_layout it_fieldcat = gt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = 'A ' is_variant = gs_variant * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = gt_line_data EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'FPB_VAR_DATA_EXT' CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = gs_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

FPB_TOP_DATA_GET CALL FUNCTION 'FPB_TOP_DATA_GET' EXPORTING id_monappl = p_mappl ID_UNAME = p_user * ID_ONLYRED = * ID_CHECKAUTH = 'X' * IMPORTING * ED_EVALDATE = TABLES et_data = lt_var_data et_text = gt_text et_tcurx = gt_tcurx et_return = gt_return.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = 'FPB_RULES_FOR_USER' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND_VAR' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = * I_BACKGROUND_ID = ' ' I_GRID_TITLE = ld_title * I_GRID_SETTINGS = is_layout = ls_layout it_fieldcat = gt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = 'A ' is_variant = gs_variant * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = gt_var_data EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2 .

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-002 * DIAGNOSE_OBJECT = ' ' text_question = text-001 * TEXT_BUTTON_1 = 'Ja'(001) * ICON_BUTTON_1 = ' ' * TEXT_BUTTON_2 = 'Nein'(002) * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' * DISPLAY_CANCEL_BUTTON = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = ld_answer * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

FPB_RULE_LINE_DELETE_RULE CALL FUNCTION 'FPB_RULE_LINE_DELETE_RULE' EXPORTING id_monappl = p_mappl id_uname = p_user id_ruleid = ls_line_data-ruleid TABLES et_return = gt_return.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-002 * DIAGNOSE_OBJECT = ' ' text_question = text-001 * TEXT_BUTTON_1 = 'Ja'(001) * ICON_BUTTON_1 = ' ' * TEXT_BUTTON_2 = 'Nein'(002) * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' * DISPLAY_CANCEL_BUTTON = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = ld_answer * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

FPB_RULE_VAR_DELETE_RULE CALL FUNCTION 'FPB_RULE_VAR_DELETE_RULE' EXPORTING id_monappl = p_mappl id_uname = p_user id_ruleid = ls_var_data-ruleid TABLES et_return = gt_return.



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