SAP Reports / Programs | Controlling | Product Cost Controlling | Actual Costing/Material Ledger(CO-PC-ACT) SAP CO

INV_TOP_PRICE_DIFF SAP ABAP Report - Materials with Largest Difference in MAP in Current or Previous Period







INV_TOP_PRICE_DIFF 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 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CKMTOPPRICEDIF - Mat. with Highest MAP Difference


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. "Basic submit
SUBMIT INV_TOP_PRICE_DIFF AND RETURN. "Return to original report after report execution complete
SUBMIT INV_TOP_PRICE_DIFF 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_MAXSEL = D Maximum Number of Hits
Title: Materials with Largest Difference in MAP in Current or Previous Period
Text Symbol: 002 = Determine Period
Text Symbol: 001 = Extract


INCLUDES used within this REPORT INV_TOP_PRICE_DIFF

INCLUDE INV_TOP_PRICE_DIFF_TOP.
INCLUDE INV_TOP_PRICE_DIFF_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:

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_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.

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 = pk_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.

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_GS_OUT5' * 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 = 'X' "# note no 453249 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 or its description.