SAP Reports / Programs | Financial Accounting | Special Purpose Ledger | Basic Functions(FI-SL-SL) SAP FI

MGBUKF90 SAP ABAP INCLUDE - Read metadata for segment from file







MGBUKF90 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 MGBUKF90 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 MGBUKF90. "Basic submit
SUBMIT MGBUKF90 AND RETURN. "Return to original report after report execution complete
SUBMIT MGBUKF90 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 MGBUKF90

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:

F4_FOR_SL_DIMENSION CALL FUNCTION 'F4_FOR_SL_DIMENSION' EXPORTING tabname = 'GLU1' fieldname = sikey-field * fieldvalue = fieldvalue = helpval_value * CHECK_TYP = '3' record_key = glu1 IMPORTING chosen_value = helpval-fromvl EXCEPTIONS no_t800d_entry = 1 OTHERS = 2.

DYNP_VALUES_UPDATE * CALL FUNCTION 'DYNP_VALUES_UPDATE' * EXPORTING * dyname = 'SAPMGBUK' * dynumb = '0110' * TABLES * dynpfields = lt_dynp_tab.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'SAPMGBUK' dynumb = '0110' TABLES dynpfields = lt_dynp_tab.

POPUP_GET_VALUES_USER_HELP CALL FUNCTION 'POPUP_GET_VALUES_USER_HELP' EXPORTING f1_formname = 'F1_TARGET_LEDGER' f1_programname = 'SAPMGBUK' f4_formname = 'F4_TARGET_LEDGER' f4_programname = 'SAPMGBUK' formname = 'CHECK_TARGET_LEDGER' popup_title = text-020 programname = 'SAPMGBUK' IMPORTING returncode = returncode TABLES fields = input_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' EXPORTING no_refresh = 'X' TABLES iledger = ctl_ledger EXCEPTIONS OTHERS = 1.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' EXPORTING no_refresh = 'X' TABLES iledger = f4tl_ledger.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = fieldname IMPORTING select_value = value TABLES fields = f4_fields full_table = f4_ledgers EXCEPTIONS OTHERS = 4.

G_DISPLAY_LEDGERS_FOR_TABLE * CALL FUNCTION 'G_DISPLAY_LEDGERS_FOR_TABLE' * EXPORTING * GAPPL = 'FI' * GSUBAPPL = 'SL' * ONLY_FREE_LEDGERS = 'X' * IMPORTING * PICKED_LEDGER = PICKED_LEDGER * TABLES * ALLOWED_TABLES = ALLOWED_TABLES * EXCEPTIONS * NO_LEDGER_FOUND = 1.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING popup_title = ' ' text_object = 'FI_GLX_GI_GB01_T_LEDGER'.

POPUP_GET_VALUES_USER_HELP * CALL FUNCTION 'POPUP_GET_VALUES_USER_HELP' * EXPORTING * FORMNAME = 'CHECK_REFERENCE_DOCNR' * POPUP_TITLE = TEXT-021 * PROGRAMNAME = 'SAPMGBUK' * IMPORTING * RETURNCODE = LD_RETURNCODE * TABLES * FIELDS = LT_INPUT_FIELDS * EXCEPTIONS * ERROR_IN_FIELDS = 1 * OTHERS = 2.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = sidata-rldnr i_orgunit = ld_orgunit IMPORTING organizational_info = ld_organizational_info EXCEPTIONS OTHERS = 4.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = gd_refe_date variant = ld_organizational_info-periv IMPORTING period = sidata-poper year = sidata-ryear.

G_TEXT_FOR_CT_GET CALL FUNCTION 'G_TEXT_FOR_CT_GET' EXPORTING ct = ld_organizational_info-curt1 IMPORTING text_10 = rgbuk-hw_10 text_20 = rgbuk-hw_20.

G_PERIOD_ALLOWED_CHECK CALL FUNCTION 'G_PERIOD_ALLOWED_CHECK' EXPORTING account_type = ld_account_type global_company = ld_rcomp company = ld_bukrs period = period_tab-period record_type = nbr_docty-plact year = period_tab-year EXCEPTIONS period_not_allowed = 1 not_authorized = 2 OTHERS = 3.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = iledger.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = iledger.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = iledger.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = iledger.

G_GIVE_GLEDGER





CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = iledger.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'SAPMGBUK' dynumb = ld_dynnr perform_input_conversion = 'X' TABLES dynpfields = lt_dynpfields.

G_GLU1_HEADER * CALL FUNCTION 'G_GLU1_HEADER' * EXPORTING * I_GLU1 = LD_SIDATA.

G_GIVE_GLEDGER * CALL FUNCTION 'G_GIVE_GLEDGER' * TABLES * ILEDGER = LD_GLEDGER.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'RLDNR' dynpprog = 'SAPMGBUK' dynpnr = ld_dynnr dynprofield = 'TARGET_LEDGER' value_org = 'S' TABLES value_tab = ld_ledgers.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' EXPORTING no_refresh = 'X' TABLES iledger = ld_gledger EXCEPTIONS OTHERS = 1.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog "Current program dynumb = predec_dynnr "predecessor-screen TABLES dynpfields = dynpfields "Relevant screen fields EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07 OTHERS = 999.



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