SAP Reports / Programs | Financials | Financials | Management of Internal Controls(FIN-CGV-MIC) SAP FIN

FOPC_SOD_CHECK SAP ABAP Report - Check Segregation of Duties







FOPC_SOD_CHECK is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to check whether the tasks in a conflict group are actually not allowed to be performed by one person...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 FOPC_SOD_CHECK 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

FOPC_SOD_CHECK - Segregation of duties check


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 FOPC_SOD_CHECK. "Basic submit
SUBMIT FOPC_SOD_CHECK AND RETURN. "Return to original report after report execution complete
SUBMIT FOPC_SOD_CHECK 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: ALL_ORG = Subordinate Org Units Also
Selection Text: R1 = Selection by Org Unit
Selection Text: R2 = Selection by Person
Selection Text: BEGDATE = D .
Selection Text: ENDDATE = D .
Selection Text: FRMDATE = D .
Selection Text: ORGUNIT = D .
Selection Text: PERSON = D .
Selection Text: TODATE = D .
Title: Check Segregation of Duties
Text Symbol: 001 = Checks that have not been saved are lost. Do you still want to exit the program?
Text Symbol: 002 = Yes
Text Symbol: 003 = No
Text Symbol: TA1 = New Check
Text Symbol: TA2 = Checks Performed


INCLUDES used within this REPORT FOPC_SOD_CHECK

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:

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log IMPORTING e_log_handle = g_log_handle EXCEPTIONS OTHERS = 1.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_32 = l_guid_32.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = g_log_handle i_s_msg = ls_bal_msg EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

LVC_FIELDCATALOG_MERGE ** CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' ** EXPORTING ** i_structure_name = 'FOPC_S_SOD_INFO' ** i_buffer_active = 'X' ** i_bypassing_buffer = '' ** CHANGING ** ct_fieldcat = lt_fieldcat ** EXCEPTIONS ** OTHERS = 3.

BAL_CNTL_CREATE CALL FUNCTION 'BAL_CNTL_CREATE' EXPORTING i_container = docking_container i_s_display_profile = l_s_display_profile i_t_log_handle = g_t_log_handle IMPORTING e_control_handle = g_control_handle EXCEPTIONS OTHERS = 1.

BAL_DSP_OUTPUT_INIT * CALL FUNCTION 'BAL_DSP_OUTPUT_INIT' * EXPORTING * i_s_display_profile = l_s_display_profile * EXCEPTIONS * OTHERS = 1.

BAL_DSP_OUTPUT_SET_DATA * CALL FUNCTION 'BAL_DSP_OUTPUT_SET_DATA' * EXPORTING * i_t_log_handle = g_t_log_handle * EXCEPTIONS * OTHERS = 1.

BAL_DSP_OUTPUT_FREE * CALL FUNCTION 'BAL_DSP_OUTPUT_FREE' * EXCEPTIONS * OTHERS = 1.

BAL_DB_SEARCH CALL FUNCTION 'BAL_DB_SEARCH' EXPORTING i_s_log_filter = l_s_log_filter IMPORTING e_t_log_header = l_t_log_header EXCEPTIONS OTHERS = 0.

BAL_DB_LOAD CALL FUNCTION 'BAL_DB_LOAD' EXPORTING i_t_log_header = l_t_log_header IMPORTING e_t_log_handle = g_t_log_handle EXCEPTIONS OTHERS = 0.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_in_update_task = abap_true i_t_log_handle = g_t_log_handle EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING client = sy-mandt header = l_thead savemode_direct = ' ' TABLES lines = ls_note_pool-text EXCEPTIONS id = 1 language = 2 name = 3 object = 4 OTHERS = 5.

COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT' EXPORTING savemode_direct = ' '.

CONVERT_ITF_TO_STREAM_TEXT CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT' TABLES itf_text = itftext text_stream = notetab.

CONVERT_STREAM_TO_ITF_TEXT CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT' TABLES text_stream = notetab itf_text = itftext.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt id = const_text_id language = sy-langu name = l_tdname object = const_text_object TABLES lines = itftext EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt id = const_text_id language = sy-langu name = l_tdname object = const_text_object TABLES lines = itftext EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

RH_GET_PLVAR CALL FUNCTION 'RH_GET_PLVAR' EXPORTING no_message = abap_true IMPORTING plvar = ls_hrobject-plvar EXCEPTIONS no_plvar = 1.

BAL_LOG_HDR_READ





CALL FUNCTION 'BAL_LOG_HDR_READ' EXPORTING i_log_handle = g_sel_log_handle i_langu = sy-langu IMPORTING e_s_log = ls_log_header EXCEPTIONS log_not_found = 1 OTHERS = 2.

BAL_GLB_SEARCH_MSG CALL FUNCTION 'BAL_GLB_SEARCH_MSG' EXPORTING i_t_log_handle = lt_log_handle IMPORTING e_t_msg_handle = lt_msg_handle EXCEPTIONS msg_not_found = 1 OTHERS = 2.

BAL_LOG_MSG_READ CALL FUNCTION 'BAL_LOG_MSG_READ' EXPORTING i_s_msg_handle = ls_msg_handle i_langu = sy-langu IMPORTING e_s_msg = ls_msg EXCEPTIONS log_not_found = 1 msg_not_found = 2 OTHERS = 3.

RH_GET_PLVAR CALL FUNCTION 'RH_GET_PLVAR' EXPORTING no_message = abap_true IMPORTING plvar = ls_hrobject-plvar EXCEPTIONS no_plvar = 1.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt id = const_text_id language = sy-langu name = l_tdname object = const_text_object TABLES lines = lt_text EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

FOPC_CONVERT_TEXT_TO_STR CALL FUNCTION 'FOPC_CONVERT_TEXT_TO_STR' IMPORTING ex_string = ls_sod_t-comment_text CHANGING ct_text = lt_text. "Note871535

FOPC_PRT_BUILD_SOD CALL FUNCTION 'FOPC_PRT_BUILD_SOD' EXPORTING iv_date_begin = ls_date_interval-date_begin iv_date_end = ls_date_interval-date_end iv_perf_by = ls_log_header-aluser iv_perf_on_date = ls_log_header-aldate iv_perf_on_time = ls_log_header-altime it_sod_data = lt_sod_t IMPORTING ev_size = lv_size ev_pdf = lv_pdf.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt id = const_text_id language = sy-langu name = l_tdname object = const_text_object TABLES lines = itftext EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = 'Leave?'(001) text_button_1 = 'Ja'(002) icon_button_1 = 'ICON_OKAY' text_button_2 = 'Nein'(003) icon_button_2 = 'ICON_CANCEL' default_button = '2' display_cancel_button = ' ' IMPORTING answer = l_answer * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

BAL_CNTL_FREE CALL FUNCTION 'BAL_CNTL_FREE' CHANGING c_control_handle = g_control_handle EXCEPTIONS OTHERS = 1.

BAL_LOG_REFRESH CALL FUNCTION 'BAL_LOG_REFRESH' EXPORTING i_log_handle = g_log_handle EXCEPTIONS OTHERS = 1.

BAL_GLB_SEARCH_MSG CALL FUNCTION 'BAL_GLB_SEARCH_MSG' EXPORTING i_t_log_handle = lt_log_handle IMPORTING e_t_msg_handle = lt_msg_handle EXCEPTIONS msg_not_found = 1 OTHERS = 2.



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