RKCOOKP1 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 RKCOOKP1 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: VRGNG = Business Transaction
Selection Text: VERSN = Version
Selection Text: SET = Set Lock
Selection Text: PLAN = Plan
Selection Text: PERIO_T = To Period
Selection Text: PERIO_F = From Period
Selection Text: LLOOP = Endless Loop for Lock
Selection Text: KOKRS = Controlling Area
Selection Text: GJAHR = Fiscal Year
Selection Text: DEL = Delete Lock
Selection Text: ACTUAL = Actual
Title: Set Period Locks in Batch
Text Symbol: VSN = Version
Text Symbol: VRG = Selected Bus. Trans.
Text Symbol: SET = Set Lock
Text Symbol: PLA = Plan
Text Symbol: PET = To Period
Text Symbol: PEF = From Period
Text Symbol: KOK = Controlling Area
Text Symbol: GJA = Fiscal Year
Text Symbol: F03 = Settings
Text Symbol: F02 = Parameters
Text Symbol: F01 = Processing Options
Text Symbol: DEL = Delete Lock
Text Symbol: ACT = Act
Text Symbol: ABL = Processing Opts
Text Symbol: 002 = Problems Reading KAPS
Text Symbol: 001 = Problems Changing Locks
INCLUDE RKASMAWF.
No SAP DATABASE tables are accessed within this REPORT code!
K_PERIODS_GET_FOR_KOKRS CALL FUNCTION 'K_PERIODS_GET_FOR_KOKRS' EXPORTING KOKRS = KOKRS IMPORTING ANZBP = ls_T009-ANZBP ANZSP = ls_T009-ANZSP.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING RETFIELD = retfield VALUE_ORG = 'S' * MULTIPLE_CHOICE = ' ' TABLES VALUE_TAB = lt_vrgng_tab RETURN_TAB = return_tab EXCEPTIONS OTHERS = 1.
K_VERSN_READ CALL FUNCTION 'K_VERSN_READ' EXPORTING I_GJAHR = GJAHR I_KOKRS = KOKRS I_VERSN = VERSN IMPORTING E_TKA07 = ls_TKA07 exceptions not_found = 1 not_found_gjahr = 2 no_authority = 3.
K_KAPSA_READ_SINGLES CALL FUNCTION 'K_KAPSA_READ_SINGLES' EXPORTING BIS_PERIODE = 500 VON_PERIODE = 1 BYPASSING_BUFFER = 'X' TABLES IKAPSA = gt_kapsa EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.
VIEW_AUTHORITY_CHECK CALL FUNCTION 'VIEW_AUTHORITY_CHECK' EXPORTING VIEW_ACTION = 'U' "U=Update VIEW_NAME = ld_view_name EXCEPTIONS INVALID_ACTION = 1 NO_AUTHORITY = 2 NO_CLIENTINDEPENDENT_AUTHORITY = 3 TABLE_NOT_FOUND = 4 NO_LINEDEPENDENT_AUTHORITY = 5 OTHERS = 6.
ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING TABNAME = 'KAPS' VARKEY = VK EXCEPTIONS FOREIGN_LOCK = 4 SYSTEM_FAILURE = 8.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING ARBGB = arbgb MSGTY = msgty MSGV1 = msgv1 MSGV2 = msgv2 MSGV3 = msgv3 MSGV4 = msgv4 TXTNR = txtnr IMPORTING * ACT_SEVERITY = MAX_SEVERITY = gd_max_sever EXCEPTIONS OTHERS = 1.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
K_KAPSA_INSERT CALL FUNCTION 'K_KAPSA_INSERT' IN UPDATE TASK TABLES KAPSA_TAB = gt_kapsa.
KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING LS_DETAIL = LS_DETAIL LS_WITEM = LS_WITEM IMPORTING LS_KEY = GS_KEY TABLES LT_SELKRIT = LT_SELKRIT.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' * EXPORTING * COLLECT_AND_SEND = ' ' * RESET = 'X' * LINE_FROM = ' ' * LINE_TO = ' ' * I_STORE_DUPLICATES = ' ' * I_IDENTIFICATION = * CHECK_ON_COMMIT = 'X' * I_RESET_LINE = ' ' IMPORTING E_IDENTIFICATION = gd_ident.
MESSAGES_ACTIVE CALL FUNCTION 'MESSAGES_ACTIVE' IMPORTING MAX_SEVERITY = LD_SEVERITY.
MESSAGES_SAVE CALL FUNCTION 'MESSAGES_SAVE' exporting i_balobject = ld_balobject i_balsubobject = ld_balsubobject * i_in_update_task = i_identification = GD_IDENT importing e_log_handle = ld_log_handle exceptions NO_MESSAGES = 1 NOT_ACTIVE = 2 PROGRAM_ERROR = 3 SAVE_NOT_ALLOWED = 4 WRONG_IDENTIFICATION = 5.
MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 4.
KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING LS_KEY = GS_KEY LS_SCMA_EVENT = LS_SCMA_EVENT ls_message = ls_message CHANGING LD_APLSTAT = LD_APLSTAT EXCEPTIONS NO_ID_GIVEN = 1 OTHERS = 2.
JV_ACTIVE CALL FUNCTION 'JV_ACTIVE' IMPORTING ACTIVE = LD_JV_ACTIVE.
K_VRGNG_FOR_CLASSIFICATION CALL FUNCTION 'K_VRGNG_FOR_CLASSIFICATION' EXPORTING I_SIGN_AP = 'P' I_SIGN_PSP = 'X' I_JV_INCL = LD_JV_ACTIVE TABLES T_RKACT_CL = VRGNG_TAB_p.
K_VRGNG_FOR_CLASSIFICATION CALL FUNCTION 'K_VRGNG_FOR_CLASSIFICATION' EXPORTING I_SIGN_AP = 'A' I_SIGN_PSP = 'X' I_JV_INCL = LD_JV_ACTIVE TABLES T_RKACT_CL = VRGNG_TAB_a.
CALL FUNCTION 'BSV_GET_TEXT_VRGNG' EXPORTING VRGNG = vrgng_tab_a-vrgng IMPORTING TXT = vrgng_tab_a-txt.
BSV_GET_TEXT_VRGNG CALL FUNCTION 'BSV_GET_TEXT_VRGNG' EXPORTING VRGNG = vrgng_tab_p-vrgng IMPORTING TXT = vrgng_tab_p-txt.
MESSAGES_SHOW call function 'MESSAGES_SHOW'.
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES T_MESG = t_mesg.
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 RKCOOKP1 or its description.