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

RKKPPGR0 SAP ABAP Report - Assignment of Materials to Product Group CO







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

KKPN - Material Assignment


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 RKKPPGR0. "Basic submit
SUBMIT RKKPPGR0 AND RETURN. "Return to original report after report execution complete
SUBMIT RKKPPGR0 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: PAR_KSTR = Product Group
Selection Text: PAR_MATN = Material Number
Selection Text: PAR_MTAR = Material Type
Selection Text: PAR_USEX = Selection via Function Exit
Selection Text: PAR_USNO = Standard Selection
Selection Text: PAR_WERK = Plant
Title: Assignment of Materials to Product Group CO
Text Symbol: 001 = Customer Function Selection
Text Symbol: 002 = Selection
Text Symbol: 010 = The selected materials will be assigned to product group &
Text Symbol: 020 = Confirm your selection by saving again.
Text Symbol: 030 = No materials could be assigned to product group &.
Text Symbol: P01 = Do you really want to select across all materials?
Text Symbol: P02 = Confirm the selection
Text Symbol: P03 = Yes
Text Symbol: P04 = No
Text Symbol: R01 = Standard Selection
Text Symbol: R02 = Selection Through Function Exit
Text Symbol: R03 = Product Group


INCLUDES used within this REPORT RKKPPGR0

INCLUDE RKKPHDAT.


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:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = TEXT-P02 * DIAGNOSE_OBJECT = ' ' TEXT_QUESTION = TEXT-P01 TEXT_BUTTON_1 = TEXT-P03 ICON_BUTTON_1 = 'ICON_OKAY' TEXT_BUTTON_2 = TEXT-P04 ICON_BUTTON_2 = 'ICON_CANCEL' * DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = '' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * popup_type = IMPORTING ANSWER = ANSWER.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = 'RKKPPGR0' * i_structure_name = IS_LAYOUT = F_LAYOUT IT_FIELDCAT = FIELD_TAB * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = ' ' * I_SAVE = ' ' * IS_VARIANT = ' ' IT_EVENTS = T_EVENT * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = TABLES T_OUTTAB = T_MATLIST.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING ARBGB = SM_MESG-ARBGB MSGTY = SM_MESG-MSGTY TXTNR = SM_MESG-TXTNR ZEILE = SM_MESG-ZEILE MSGV1 = MSGV1 MSGV2 = MSGV2 MSGV3 = MSGV3 MSGV4 = MSGV4 EXCEPTION_IF_NOT_ACTIVE = SPACE.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING * ABORT_MSGTY = 'A' APLID = 'KKP'.

CM_F_SMSG_MESSAGES_READ CALL FUNCTION 'CM_F_SMSG_MESSAGES_READ' EXPORTING APPEND_SAME_MSG = 'X'.

CM_F_ANALYSIS CALL FUNCTION 'CM_F_ANALYSIS' EXPORTING APLID = 'KKP'.

K_CKPH_GET_SINGLE CALL FUNCTION 'K_CKPH_GET_SINGLE' EXPORTING KSTRG = PAR_KSTR * DATBI = '99991231' KTRTP = KTRTP_PGR SPRAS = SY-LANGU * NO_BUFFER = ' ' * BYPASSING_BUFFER = ' ' IMPORTING * ckph_i = KTEXT_I = KSTR_TEXT EXCEPTIONS NOT_FOUND = 1 WRONG_KTRTP = 2 OTHERS = 3.

KKP_EXIT_SAPLKKPZ_001 CALL FUNCTION 'KKP_EXIT_SAPLKKPZ_001' EXPORTING KSTRG = PAR_KSTR TABLES RANGES_WERK = PAR_WERK RANGES_MATN = PAR_MATN RANGES_MTAR = PAR_MTAR T_KKPZ = P_T_KKPZ.

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 MATNR = P_T_KKPZ-MATNR WERKS = P_T_KKPZ-WERKS * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' * IMPORTING * WMARC = EXCEPTIONS * lock_on_marc = 1 * lock_system_error = 2 * wrong_call = 3 NOT_FOUND = 4.

K_MATERIAL_GET CALL FUNCTION 'K_MATERIAL_GET' EXPORTING PAR_MATNR = T_MATLIST-MATNR PAR_SPRAS = SY-LANGU IMPORTING PAR_MAKTX = T_MATLIST-MAKTX.

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 MATNR = T_MATLIST-MATNR * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' IMPORTING WMARA = P_F_MARA.

K_COST_OBJECT_ATTACH_ITEMS CALL FUNCTION 'K_COST_OBJECT_ATTACH_ITEMS' EXPORTING I_ACTVT = KKP0_C_ACTVT-AEN * I_SCREEN = ' ' I_MSG_SEND = KKP0_C_MSG-PROT * I_COSTOBJECT_FILLED = ' ' * I_COSTOBJECT_ENQUEUED = ' ' * I_CKPHS = ' ' IMPORTING E_COMMIT = P_SAVE TABLES T_ITEM_CAT = P_T_MATLIST * T_ITEM = CHANGING R_COSTOBJECT = P_F_KSTRG.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING ES_LAYOUT = P_F_LAYOUT.

REUSE_ALV_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING IS_LAYOUT = P_F_LAYOUT.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING * COLLECT_AND_SEND = ' ' * RESET = 'X' * LINE_FROM = ' ' * LINE_TO = ' ' I_IDENTIFICATION = ERROR_IDENT * CHECK_ON_COMMIT = 'X' IMPORTING E_IDENTIFICATION = ERROR_IDENT EXCEPTIONS OTHERS = 0.

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



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