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
Below is a list of transaction codes which are relevant to this SAP report
FPB_RULE_USER - Display Rule for a User
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.
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
INCLUDE FPB_RULES_FOR_USERTOP . " GLOBAL DATA
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
FPB_RULES_FOR_USER - Display Rules for a User FPB_RULES_FOR_USER - Display Rules for a User FPB_PERS_POST_BATCH - Report FPB_PERS_POST_BATCH FPB_PERS_POST_BATCH - Report FPB_PERS_POST_BATCH FPB_MON_VAR_ALERT_GENERATE - Execute Rule Evaluation for Critical Variances FPB_MON_VAR_ALERT_GENERATE - Execute Rule Evaluation for Critical Variances