SAP Reports / Programs | Controlling | Overhead Cost Controlling | Cost Center Accounting(CO-OM-CCA) SAP CO

MKPU2F80 SAP ABAP INCLUDE - documentation and ABAP source code







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

INCLUDE MKPU2F11.


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:

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' * EXPORTING * ONLY_FOR_ACTUAL_LINE = * LINE_FROM = '000' * LINE_TO = '999' * severity_from = 0 * severity_to = 16 IMPORTING count = gd_count max_severity = gd_max_severity.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING table = 'RKPU2' ftype = 'A' text_flag = 'X' EXCEPTIONS not_found = 4.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = dfies subrc = ld_subrc.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING table = 'LKO74S' ftype = 'A' text_flag = 'X' EXCEPTIONS not_found = 4.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = dfies subrc = ld_subrc.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'COFI_SCR' lfieldname = 'POST_STAT' IMPORTING dfies_wa = dfies.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING * object = show_linno = space EXCEPTIONS no_messages = 1.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING line_count = 65 line_size = 132 no_dialog = 'X' mode = 'CURRENT' IMPORTING out_parameters = ls_print_parameters valid = ld_ppvalid.

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = true par_nsm37 = ' ' par_pripa = ls_print_parameters par_rname = gc_batch_report par_pname = gc_dummy_report par_print = true par_sdmsg = true TABLES tab_selpa = lt_selpa EXCEPTIONS OTHERS = 01.

K_LINE_ITEM_PLN_CALL_WITH_DATA CALL FUNCTION 'K_LINE_ITEM_PLN_CALL_WITH_DATA' EXPORTING * i_rep_object = 'RV' "ALRK142189 i_rep_object = g_rep_object "ALRK142189 i_co_area = rkpu2-kokrs i_version = rkpu2-versn i_from_per = rkpu2-frper i_to_per = rkpu2-toper i_year = rkpu2-gjahr it_cosel = gt_cosel * i_cycle = space TABLES t_coeja = lt_coeja * t_cobk = gt_cobk EXCEPTIONS no_data = 1 no_data_selected = 2 OTHERS = 3.

RS_VARIANT_FOR_ONE_SCREEN CALL FUNCTION 'RS_VARIANT_FOR_ONE_SCREEN' EXPORTING program = g_varid_repo "note 308366 dynnr = '1000' IMPORTING variant_exists = gd_variant_exists. "note 308366

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'KP' txtnr = '077' zeile = '002' modify = 'X' EXCEPTIONS not_active = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KP' msgty = 'I' msgv1 = it823c-umwrt msgv2 = rkpu2-gjahr msgv3 = rkpu2-versn txtnr = '114'.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KP' msgty = ld_msgty msgv1 = it823c-umwrt txtnr = '078' zeile = ' ' EXCEPTIONS message_type_not_valid = 1 not_active = 2 OTHERS = 3.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' IMPORTING e_identification = gd_identification.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = gd_identification IMPORTING e_identification = gd_identification.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'KP' * msgty = ' ' * msgv1 = ' ' * MSGV2 = ' ' * MSGV3 = ' ' * MSGV4 = ' ' txtnr = '076' zeile = '001' modify = 'X' EXCEPTIONS not_active = 1 OTHERS = 2.

K_DATABASE_ENQUEUE CALL FUNCTION 'K_DATABASE_ENQUEUE' EXPORTING * SHARED = ' ' * _SCOPE = '2' _wait = 'X' TABLES comb = comb_enqueue * ITVERSNGJAHR = EXCEPTIONS foreign_lock = 04.

DYNP_VALUES_READ





CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr * TRANSLATE_TO_UPPER = ' ' * REQUEST = ' ' * PERFORM_CONVERSION_EXITS = ' ' TABLES dynpfields = ld_dynpfields.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING * DISPLAY = ' ' * I_KOKRS = ' ' popup = '1' IMPORTING e_kokrs = rkpu2-kokrs.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'KP' * msgty = 'I' * msgv1 = ' ' * MSGV2 = ' ' * MSGV3 = ' ' * MSGV4 = ' ' txtnr = '077' zeile = '002' modify = 'X' EXCEPTIONS not_active = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KP' msgty = 'I' msgv1 = it823c-umwrt msgv2 = rkpu2-gjahr msgv3 = rkpu2-versn txtnr = '114'.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KP' msgty = ld_msgty msgv1 = it823c-umwrt txtnr = '078' zeile = ' ' EXCEPTIONS message_type_not_valid = 1 not_active = 2 OTHERS = 3.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = rkpu2-versn IMPORTING output = rkpu2-versn.

F4IF_FIELD_VALUE_REQUEST CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = 'CCSS' fieldname = 'VERSN' searchhelp = 'CO_VERSN_GJAHR' shlpparam = 'VERSN' value = ld_versn_value callback_program = 'SAPMKPU2' callback_form = 'CALLBACK_F4_VERSN' TABLES return_tab = lt_return_tab EXCEPTIONS field_not_found = 1 no_help_for_field = 2 inconsistent_help = 3 no_values_found = 4 OTHERS = 5.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields.



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