SAP Reports / Programs | Controlling | Product Cost Controlling(CO-PC) SAP CO

INV_TOP_PRICE_DIFF_46C SAP ABAP Report - Materials with Highest Difference in MAP of Current and Prev. Period







INV_TOP_PRICE_DIFF_46C 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 INV_TOP_PRICE_DIFF_46C 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 INV_TOP_PRICE_DIFF_46C. "Basic submit
SUBMIT INV_TOP_PRICE_DIFF_46C AND RETURN. "Return to original report after report execution complete
SUBMIT INV_TOP_PRICE_DIFF_46C 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: R_WERKS = D Plant
Selection Text: R_VPRSV = D Price control
Selection Text: R_VBELN = D Sales document
Selection Text: R_STATUS = D Period status
Selection Text: R_SPART = D Division
Selection Text: R_PSPNR = D WBS element
Selection Text: R_PRCTR = D Profit center
Selection Text: R_POSNR = D Item (SD)
Selection Text: R_MTART = D Material type
Selection Text: R_MLAST = D Price determination: control
Selection Text: R_MATNR = D Material
Selection Text: R_MATKL = D Material group
Selection Text: R_BWTAR = D Valuation type
Selection Text: R_BUKRS = D Company code
Selection Text: R_BKLAS = D Valuation class
Selection Text: P_USER = D User
Selection Text: P_SAVE = D Save extract
Selection Text: P_PERS = Use personalized data
Selection Text: P_MAXSEL = D Maximum number of hits
Title: Materials with Highest Difference in MAP of Current and Prev. Period
Text Symbol: 001 = Extract


INCLUDES used within this REPORT INV_TOP_PRICE_DIFF_46C

INCLUDE INV_TOP_PRICE_DIFF_46C_TOP.
INCLUDE INV_TOP_PRICE_DIFF_46C_PARA.


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:

INVACCPERS_TOP_PRICE_GET_PERS CALL FUNCTION 'INVACCPERS_TOP_PRICE_GET_PERS' EXPORTING i_user = p_user TABLES r_matnr = r_matnr r_bukrs = r_bukrs r_werks = r_werks r_bwtar = r_bwtar r_vbeln = r_vbeln r_posnr = r_posnr r_pspnr = r_pspnr r_mtart = r_mtart r_bklas = r_bklas r_matkl = r_matkl r_spart = r_spart r_prctr = r_prctr r_mlast = r_mlast r_vprsv = r_vprsv r_status = r_status.

T001_SINGLE_READ CALL FUNCTION 'T001_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = t_t001k-bukrs IMPORTING wt001 = t001 * EXCEPTIONS * NOT_FOUND = 1 * WRONG_CALL = 2 * OTHERS = 3 .

CKML_F_GET_PREVIOUS_PERIOD CALL FUNCTION 'CKML_F_GET_PREVIOUS_PERIOD' EXPORTING input_period = l_poper input_year = l_bdatj input_periv = t001-periv IMPORTING previous_period = l_poper_prev previous_year = l_bdatj_prev.

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 = l_bdatj i_poper_1 = l_poper i_bdatj_2 = l_bdatj_prev i_poper_2 = l_poper_prev * 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 = lt_kalnr * T_CKMLPP = t_ckmlcr = lt_ckmlcr * T_MISS_CKMLPP = * T_MISS_CKMLCR = EXCEPTIONS no_data_found = 1 input_data_inconsistent = 2 buffer_inconsistent = 3 OTHERS = 4 .

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = ls_mtcom IMPORTING matdaten = ls_mbew * RETURN = * MATPER = * TABLES * SEQMAT01 = EXCEPTIONS OTHERS = 1.

CM_EXTRACT_HYPER_SAVE CALL FUNCTION 'CM_EXTRACT_HYPER_SAVE' EXPORTING i_report = l_repid i_variant = sy-slset i_user = p_user i_strucname = 'CKINVACC_TOP_PRICE_DIFF5_WAO' i_cut_off = g_cut_off i_tcode = 'INV_DISPLAY_MAT' i_okcode = 'ONLI' i_click_field = 'MATNR' i_link_field = 'HL_FNAME' TABLES it_table = t_out5 it_field_map = t_field_map.

CM_EXTRACT_HYPER_SAVE CALL FUNCTION 'CM_EXTRACT_HYPER_SAVE' EXPORTING i_report = l_repid i_variant = sy-slset i_user = p_user i_strucname = 'CKINVACC_TOP_PRICE_DIFF2_WAO' i_cut_off = g_cut_off i_tcode = 'INV_DISPLAY_MAT' i_okcode = 'ONLI' i_click_field = 'MATNR' i_link_field = 'HL_FNAME' TABLES it_table = t_out2 it_field_map = t_field_map.

CM_EXTRACT_HYPER_SAVE CALL FUNCTION 'CM_EXTRACT_HYPER_SAVE' EXPORTING i_report = l_repid i_variant = sy-slset i_user = p_user i_strucname = 'CKINVACC_TOP_PRICE_DIFF3_WAO' i_cut_off = g_cut_off i_tcode = 'INV_DISPLAY_MAT' i_okcode = 'ONLI' i_click_field = 'MATNR' i_link_field = 'HL_FNAME' TABLES it_table = t_out3 it_field_map = t_field_map.

CM_EXTRACT_HYPER_SAVE CALL FUNCTION 'CM_EXTRACT_HYPER_SAVE' EXPORTING i_report = l_repid i_variant = sy-slset i_user = p_user i_strucname = 'CKINVACC_TOP_PRICE_DIFF4_WAO' i_cut_off = g_cut_off i_tcode = 'INV_DISPLAY_MAT' i_okcode = 'ONLI' i_click_field = 'MATNR' i_link_field = 'HL_FNAME' TABLES it_table = t_out4 it_field_map = t_field_map.

CM_EXTRACT_HYPER_SAVE CALL FUNCTION 'CM_EXTRACT_HYPER_SAVE' EXPORTING i_report = l_repid i_variant = sy-slset i_user = p_user i_strucname = 'CKINVACC_TOP_PRICE_DIFF_WAO' i_cut_off = g_cut_off i_tcode = 'INV_DISPLAY_MAT' i_okcode = 'ONLI' i_click_field = 'MATNR' i_link_field = 'HL_FNAME' TABLES it_table = t_out it_field_map = t_field_map.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BUFFER_ACTIVE = ' ' * I_CALLBACK_PROGRAM = ' ' * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' i_structure_name = 'CKINVACC_TOP_PRICE_DIFF5_WAO' * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout = ls_layout it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = '' i_save = 'A' is_variant = ls_variant * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IT_ALV_GRAPHICS = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = t_out5 * EXCEPTIONS * PROGRAM_ERROR = 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 INV_TOP_PRICE_DIFF_46C or its description.