SAP Reports / Programs | Financial Accounting | Special Purpose Ledger | Sets(FI-SL-SL-MD-SE) SAP FI

MGSBMF10 SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT MGSBMF10

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:

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING setnr = rgsbs-setnr IMPORTING set_header = loc_set_header TABLES formula_lines = loc_formula_lines set_lines_basic = loc_set_lines_basic set_lines_data = loc_set_lines_data set_lines_multi = loc_set_lines_multi set_lines_single = loc_set_lines_single EXCEPTIONS no_authority = 1 set_is_broken = 2 set_not_found = 3 OTHERS = 4.

G_SET_TREE_IMPORT CALL FUNCTION 'G_SET_TREE_IMPORT' EXPORTING no_descriptions = 'X' no_rw_info = 'X' setid = rgsbs-setnr root_header_only = 'X' no_table_buffering = 'X' TABLES set_hierarchy = lt_hier EXCEPTIONS OTHERS = 1.

G_TABLE_READ CALL FUNCTION 'G_TABLE_READ' EXPORTING add_flag = 'X' table = rgsbs-table utable = 'X' IMPORTING table_attr = loc_table_attr EXCEPTIONS not_found = 4.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = rgsbs-setnr IMPORTING setclass = rgsbm-setclass shortname = rgsbm-shortname kokrs = rgsbm-kokrs ktopl = rgsbm-ktopl fikrs = rgsbm-fikrs lib = rgsbm-lib rname = rgsbm-rname eccs_dimen = rgsbm-eccs_dimen eccs_itclg = rgsbm-eccs_itclg eccs_sityp = rgsbm-eccs_sityp EXCEPTIONS OTHERS = 0.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = rgsbs-setnr IMPORTING info = loc_setinfo EXCEPTIONS set_not_found = 1 OTHERS = 2.

G_SET_CHECK_USAGE CALL FUNCTION 'G_SET_CHECK_USAGE' EXPORTING setid = rgsbs-setnr EXCEPTIONS set_is_used = 1 OTHERS = 2.

G_SET_AUTHORITY_CHECK CALL FUNCTION 'G_SET_AUTHORITY_CHECK' EXPORTING actvt = activity-delete authgr = loc_setinfo-authgr.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-015 diagnose_object = 'G_SET_CONFIRM_DELETE_HIER1' text_question = text-016 default_button = '2' IMPORTING answer = answer.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING titel = text-014 "delete set textline1 = text-004 "okay to delete set? textline2 = text-005 defaultoption = 'N' IMPORTING answer = answer.

G_SET_TREE_DELETE CALL FUNCTION 'G_SET_TREE_DELETE' EXPORTING set = rgsbs-setnr dont_delete_class_0 = 'X' dont_delete_std_hier = 'X'.

G_DELETE_SET CALL FUNCTION 'G_DELETE_SET' EXPORTING set = rgsbs-setnr.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = p_superset IMPORTING setclass = loc_setclass kokrs = l_kokrs ktopl = l_ktopl eccs_dimen = l_eccs_dimen eccs_itclg = l_eccs_itclg eccs_sityp = l_eccs_sityp lib = loc_lib rname = loc_rname EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM_WITH_VALUE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_VALUE' EXPORTING objectvalue = p_shortname text_before = text-031 " The set text_after = popup_text_2 " doesn't exist, create it ? titel = text-033 " Set not found IMPORTING answer = answer EXCEPTIONS text_too_long = 1 OTHERS = 2.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING defaultoption = '1' textline1 = popup_text_2 textline2 = text-pd7 text_option1 = text-pd4 text_option2 = text-pd5 titel = text-033 IMPORTING answer = answer EXCEPTIONS OTHERS = 0.

G_SET_CREATION CALL FUNCTION 'G_SET_CREATION' EXPORTING set_name = p_shortname set_class = loc_setclass kokrs = l_kokrs eccs_dimen = l_eccs_dimen eccs_itclg = l_eccs_itclg eccs_sityp = l_eccs_sityp use_group_maintenance = 'X' table = p_table field = loc_field types = loc_types co_set_accmode = gd_co_set_accmode IMPORTING new_set = loc_setnr EXCEPTIONS OTHERS = 10.

G_SET_GET_ID_FROM_NAME CALL FUNCTION 'G_SET_GET_ID_FROM_NAME' EXPORTING shortname = p_shortname lib = loc_lib rname = loc_rname setclass = gsetc_report_setclass EXCEPTIONS no_set_found = 1 no_set_picked_from_popup = 2 wrong_class = 3 wrong_subclass = 4 table_field_not_found = 5 fields_dont_match = 6 set_is_empty = 7 formula_in_set = 8 OTHERS = 9.

G_SET_CREATION CALL FUNCTION 'G_SET_CREATION' "Create Report Set EXPORTING set_class = gsetc_report_setclass set_name = p_shortname table = p_table field = loc_field types = loc_types lib = loc_lib rname = loc_rname co_set_accmode = gd_co_set_accmode IMPORTING new_set = loc_setnr EXCEPTIONS OTHERS = 11.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = p_setclass shortname = p_shortname IMPORTING setid = loc_setnr EXCEPTIONS OTHERS = 0.

G_SET_GET_INFO





CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = loc_setnr EXCEPTIONS set_not_found = 1 illegal_field_replacement = 2 OTHERS = 3.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = p_table fieldname = p_field text_flag = 'X' add_flag = 'X' IMPORTING field_attr = p_attr.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = 'PRPS' fieldname = 'POSID' text_flag = 'X' add_flag = 'X' IMPORTING field_attr = p_attr.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = 'PROJ' fieldname = 'PSPID' text_flag = 'X' add_flag = 'X' IMPORTING field_attr = p_attr.

OBJECT_NUMBER_CONVERSION_SET CALL FUNCTION 'OBJECT_NUMBER_CONVERSION_SET' EXPORTING i_use_conversion = ' ' i_conversion_exit = p_attr-convexit.

G_RW_TABLE_DESCRIPTION_GET CALL FUNCTION 'G_RW_TABLE_DESCRIPTION_GET' EXPORTING rw_table = p_table langu = sy-langu IMPORTING tab_text = l_tabtext EXCEPTIONS OTHERS = 1.



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