SAP Reports / Programs

RKETRERF SAP ABAP Report - Build summarization levels from join table: costing-based CO-PA







RKETRERF 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 RKETRERF 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

KEDF - CO-PA: Fill Summ. Levels (Expert)


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 RKETRERF. "Basic submit
SUBMIT RKETRERF AND RETURN. "Return to original report after report execution complete
SUBMIT RKETRERF 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: PERKRS = Operating concern
Selection Text: PFIELD = Field sequence for sorting
Selection Text: PMAX_MEM = Buffer size (bytes)
Selection Text: PTRCATNR = Summarization levels
Selection Text: PTRFIRST = Build new levels
Selection Text: PTRNEW = Rebuild
Title: Build summarization levels from join table: costing-based CO-PA
Text Symbol: 001 = Function
Text Symbol: 002 = Technical settings
Text Symbol: 003 = Objects
Text Symbol: W01 = Parameters
Text Symbol: W10 = Operating concern:
Text Symbol: W20 = Summarization levels:
Text Symbol: W21 = All levels
Text Symbol: W30 = Data in summarization levels:
Text Symbol: W31 = Build new levels
Text Symbol: W33 = Rebuild
Text Symbol: W35 = Buffer size (bytes):


INCLUDES used within this REPORT RKETRERF

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:

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = restrict.

RKE_CHECK_GENERATION CALL FUNCTION 'RKE_CHECK_GENERATION' EXPORTING erkrs = perkrs.

RKD_TR_UPDATE_INIT CALL FUNCTION 'RKD_TR_UPDATE_INIT' EXPORTING applclass = applclass subclass = subclass tabname = tabname trcatnr_ranges = trcatnr_sel update_method = method update_concurrent = ' ' commit_allowed = 'X' ignore_initial_items = ' ' max_memory_size = max_mem drop_indexes = 'X' IMPORTING handle = handle levels_to_change = levels_to_change.

RKD_TR_UPDATE_ENQUEUE CALL FUNCTION 'RKD_TR_UPDATE_ENQUEUE' EXPORTING handle = handle.

RKD_TR_UPDATE_SELECTION_GET CALL FUNCTION 'RKD_TR_UPDATE_SELECTION_GET' EXPORTING handle = handle TABLES seltab = seltab sftab = sftab.

RKD_TR_UPDATE_REFRESH CALL FUNCTION 'RKD_TR_UPDATE_REFRESH' EXPORTING handle = handle.

RKD_TR_UPDATE_START CALL FUNCTION 'RKD_TR_UPDATE_START' EXPORTING handle = handle tmp_del_prim_sumtab_index = g_ordered_input_mode.

RKE_READ2_READ_FROM_JOIN CALL FUNCTION 'RKE_READ2_READ_FROM_JOIN' EXPORTING erkrs = erkrs form = 'GET_DATA' program = repid * DEBUG_MODE = ' ' IMPORTING timestmp = timestmp TABLES seltab = seltab sftab = sftab.

RKD_TR_UPDATE_CLOSE CALL FUNCTION 'RKD_TR_UPDATE_CLOSE' EXPORTING handle = handle timestmp = timestmp.

RKD_TR_UPDATE_DEQUEUE CALL FUNCTION 'RKD_TR_UPDATE_DEQUEUE' EXPORTING handle = handle.

RKD_TR_UPDATE_PROTOCOL CALL FUNCTION 'RKD_TR_UPDATE_PROTOCOL' EXPORTING handle = handle protocol_mode = prot_mode.

RKD_TR_UPDATE_EXIT CALL FUNCTION 'RKD_TR_UPDATE_EXIT' EXPORTING handle = handle.

RKD_TR_SEL_DISTINCT_VALS call function 'RKD_TR_SEL_DISTINCT_VALS' in background task exporting i_erkrs = tabname+3(4) exceptions others = 1.

RKD_TR_UPDATE_PUT CALL FUNCTION 'RKD_TR_UPDATE_PUT' EXPORTING handle = g_param-handle TABLES line_items = ce0_tab.

RKD_TR_UPDATE_SYNC CALL FUNCTION 'RKD_TR_UPDATE_SYNC' EXPORTING handle = g_param-handle.

DYNP_VALUES_READ * CALL FUNCTION 'DYNP_VALUES_READ' * EXPORTING * dyname = repid * dynumb = '1000' * TABLES * dynpfields = dynpfields * EXCEPTIONS * invalid_abapworkarea = 01 * invalid_dynprofield = 02 * invalid_dynproname = 03 * invalid_dynpronummer = 04 * invalid_request = 05 * no_fielddescription = 06 * undefind_error = 07.

F4IF_FIELD_VALUE_REQUEST CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING TABNAME = 'TKETRLF' FIELDNAME = 'TRCATNR' * SEARCHHELP = ' ' * SHLPPARAM = ' ' DYNPPROG = sy-repid DYNPNR = '1000' DYNPROFIELD = 'PTRCATNR-LOW' * STEPL = 0 * VALUE = ' ' * MULTIPLE_CHOICE = ' ' * DISPLAY = ' ' * SUPPRESS_RECORDLIST = ' ' CALLBACK_PROGRAM = sy-repid CALLBACK_FORM = 'SHRINK' SELECTION_SCREEN = 'X' TABLES RETURN_TAB = lt_Return EXCEPTIONS FIELD_NOT_FOUND = 1 NO_HELP_FOR_FIELD = 2 INCONSISTENT_HELP = 3 NO_VALUES_FOUND = 4 OTHERS = 5 .

HELP_VALUES_GET_FROM_LIST * CALL FUNCTION 'HELP_VALUES_GET_FROM_LIST' * EXPORTING fieldname = 'TRCATNR' * tabname = 'TKETRLF' * shrink = 'X' ** SPACE_MEANS_GENERIC = 'X' * IMPORTING select_value = svalue * TABLES shrinkfields = sfields * EXCEPTIONS no_table_in_dictionary = 1 * no_fields_in_table = 2 * OTHERS = 3.

DYNP_VALUES_READ





CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = repid dynumb = '1000' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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