MMKARDEX 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 MMKARDEX into the relevant SAP transactions such as SE38 or SE80
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: S_WERKS = Plant
Selection Text: S_MTART = Material type
Selection Text: S_MATNR = Material
Selection Text: S_MATKL = Material group
Selection Text: S_BWTAR = Valuation type
Selection Text: S_BWKEY = Valuation key
Selection Text: PA_POPER = Posting period
Selection Text: PA_CURTP = Currency type
Selection Text: PA_BUKRS = Company code
Selection Text: PA_BDATJ = Posting year
Text Symbol: 027 = Tot. Quantity
Text Symbol: 028 = Tot. Quant.
Text Symbol: 029 = Average Cost
Text Symbol: 030 = Avrg. Cost
Text Symbol: 031 = Avrg. Cst.
Text Symbol: 032 = Different Prices
Text Symbol: 033 = Guía Remisión
Text Symbol: 034 = G. Remisión
Text Symbol: 035 = G. Rem.
Text Symbol: 036 = Log for Material History Report (CL/PE)
Text Symbol: 037 = New Average Price
Text Symbol: 038 = Initial Average Price
Text Symbol: 039 = Plant
Text Symbol: 026 = Total Quantity
Text Symbol: 001 = Selection by Material, Organizational Structure and Valuation
Text Symbol: 002 = Selection of Period and Year to be reported
Text Symbol: 003 = Historical Stock and Valuation List for Materials Management
Text Symbol: 004 = Name of the Company
Text Symbol: 005 = Period/Year
Text Symbol: 006 = Report Currency
Text Symbol: 007 = Report created on
Text Symbol: 009 = Company Code
Text Symbol: 010 = Movement Quantity
Text Symbol: 011 = Mvmnt. Quantity
Text Symbol: 012 = Mvmnt. Qntty.
Text Symbol: 013 = Movement Value
Text Symbol: 014 = Mvmnt. Value
Text Symbol: 015 = Mvmnt. Val.
INCLUDE MMKARD_TOP.
No SAP DATABASE tables are accessed within this REPORT code!
CKMS_PERIOD_READ_WITH_ITAB CALL FUNCTION 'CKMS_PERIOD_READ_WITH_ITAB' EXPORTING * I_REFRESH_BUFFER = * I_READ_ONLY_BUFFER = ' ' * I_USE_BUFFER = 'X' * I_BUILD_SMBEW = i_bdatj_1 = p_bdatj i_poper_1 = p_poper * I_BDATJ_2 = * I_POPER_2 = * I_BDATJ_3 = * I_POPER_3 = * I_BETWEEN_1_AND_2 = * I_UNTPER = '000' * I_CALL_BY_REPORTING = ' ' * I_NO_CHK_PERIODS_COMPLETE = ' ' TABLES t_kalnr = t_kalnr t_ckmlpp = t_ckmlpp t_ckmlcr = t_ckmlcr * T_MISS_CKMLPP = * T_MISS_CKMLCR = EXCEPTIONS no_data_found = 1 * input_data_inconsistent = 2 * BUFFER_INCONSISTENT = 3 * OTHERS = 4 .
GLD_ERRECHNEN CALL FUNCTION 'GLD_ERRECHNEN' EXPORTING lbkum = ab-gesmeng salk3 = ab-geswert peinh = ab-peinh * CURTP = IMPORTING pvprs = ab-preis EXCEPTIONS * overflow = 1 price_negative = 2 price_zero = 3 * priceunit_zero = 4 * OTHERS = 5 .
GLD_ERRECHNEN CALL FUNCTION 'GLD_ERRECHNEN' EXPORTING lbkum = p_ph_line-lbkum salk3 = p_ph_line-salk3 peinh = p_ph_line-peinh * CURTP = IMPORTING pvprs = l_tab_line-preis_bew EXCEPTIONS * overflow = 1 price_negative = 2 price_zero = 3 * priceunit_zero = 4 * OTHERS = 5 .
GLD_ERRECHNEN CALL FUNCTION 'GLD_ERRECHNEN' EXPORTING lbkum = l_tab_line-gesmeng salk3 = l_tab_line-geswert peinh = p_ph_line-peinh * CURTP = IMPORTING pvprs = l_tab_line-preis EXCEPTIONS * overflow = 1 price_negative = 2 price_zero = 3 * priceunit_zero = 4 * OTHERS = 5 .
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.
ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING address_selection = addr1_sel address_group = 'CA01' * read_sadr_only = 'X' IMPORTING sadr = *sadr.
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = 'MMKARDEX' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = gt_layout it_fieldcat = gt_fieldcat IT_EXCLUDING = gt_excluding * IT_SPECIAL_GROUPS = it_sort = gt_sort * IT_FILTER = * IS_SEL_HIDE = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_DEFAULT = 'X' i_save = 'A' * IS_VARIANT = ' ' it_events = gt_events * IT_EVENT_EXIT = i_tabname_header = 'P_WORK_LIST' i_tabname_item = 'P_L_TAB' * I_STRUCTURE_NAME_HEADER = * I_STRUCTURE_NAME_ITEM = is_keyinfo = gt_keyinfo * IS_PRINT = * IS_REPREP_ID = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab_header = p_work_list t_outtab_item = p_l_tab * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 .
REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' * IMPORTING * ES_LAYOUT = * ET_FIELDCAT = * ET_SORT = * ET_FILTER = * ES_LIST_SCROLL = * ES_VARIANT = * E_WIDTH = * ET_MARKED_COLUMNS = * ET_FILTERED_ENTRIES = * ET_FILTERED_ENTRIES_HEADER = * ET_FILTERED_ENTRIES_ITEM = TABLES * ET_OUTTAB = et_outtab_header = alv_work_list * ET_OUTTAB_ITEM = * ET_COLLECT00 = * ET_COLLECT01 = * ET_COLLECT02 = * ET_COLLECT03 = * ET_COLLECT04 = * ET_COLLECT05 = * ET_COLLECT06 = * ET_COLLECT07 = * ET_COLLECT08 = * ET_COLLECT09 = * EXCEPTIONS * NO_INFOS = 1 * PROGRAM_ERROR = 2 * OTHERS = 3 .
CKMD_PRICE_HISTORY_READ CALL FUNCTION 'CKMD_PRICE_HISTORY_READ' EXPORTING i_kalnr = work_list_line-kaln1 i_bdatj = p_bdatj i_poper = p_poper * I_NO_BUFFER = * I_REFRESH_BUFFER = * I_ONLINE = 'X' TABLES t_ph = ph EXCEPTIONS no_document_found = 1 no_data_found = 2 * OTHERS = 3 .
AC_DOCUMENT_SENDER CALL FUNCTION 'AC_DOCUMENT_SENDER' EXPORTING i_awtyp = l_tab_line-awtyp i_awref = l_tab_line-awref i_aworg = l_tab_line-aworg i_awsys = l_tab_line-awsys i_bukrs = pa_bukrs * i_valutyp = ' ' * EXCEPTIONS * AWTYP_NOT_FOUND = 1 * NO_DOCUMENT_DISPLAY_FUNCTION = 2 * OTHERS = 3 .
J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = s_bukrs component = '**' IMPORTING active_component = s_component EXCEPTIONS component_not_active = 1.
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.
BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = g_log_handle i_s_msg = l_s_msg EXCEPTIONS OTHERS = 1.
CALL FUNCTION 'BAL_DSP_PROFILE_POPUP_GET' IMPORTING e_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1.
BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1.
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 MMKARDEX or its description.