KFPR_ARCH_SET_DELETION_FLAG 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 KFPR_ARCH_SET_DELETION_FLAG into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
KBEA - Trsfr Price Docs: Set Del.Indicator
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: SO_BELNR = D Document number
Selection Text: P_TEST = D Test run
Selection Text: P_KOKRS = D Controlling area
Selection Text: KEY_DATE = Key date
Selection Text: BTKFPP = Transfer price agreements
Selection Text: BTKFPI = Transfer price allocations
Title: Transfer Price Agreement/Allocation: Set Deletion Indicator
Text Symbol: 040 = No archiving authorization exists for the following documents:
Text Symbol: 022 = Transfer price allocations
Text Symbol: 021 = Transfer price agreements
Text Symbol: 015 = Number of documents in which the deletion indicator was set:
Text Symbol: 012 = to
Text Symbol: 011 = Update run
Text Symbol: 010 = Test run
Text Symbol: 009 = Controlling area
Text Symbol: 008 = Key date
Text Symbol: 007 = Document categories
Text Symbol: 006 = Document number
Text Symbol: 005 = No documents were selected
Text Symbol: 004 = The following documents were locked by another user when the program ran:
Text Symbol: 002 = Processing options
Text Symbol: 001 = Select documents
INCLUDE KFPR_ARCH_TOP.
No SAP DATABASE tables are accessed within this REPORT code!
KFPRS_DOC_TYPE_AUTHORITY_CHECK CALL FUNCTION 'KFPRS_DOC_TYPE_AUTHORITY_CHECK' EXPORTING I_ACTVT = ACTVT_ARCHIVIEREN I_KOKRS = CHECK_TAB-KOKRS I_BLART = CHECK_TAB-BLART I_BLTYP = CHECK_TAB-BLTYP EXCEPTIONS NO_AUTHORITY = 1.
ENQUEUE_EKFPK CALL FUNCTION 'ENQUEUE_EKFPK' EXPORTING KOKRS = CHECK_TAB-KOKRS BELNR = CHECK_TAB-BELNR EXCEPTIONS FOREIGN_LOCK = 1.
KFPRR_READ_DATA CALL FUNCTION 'KFPRR_READ_DATA' EXPORTING I_KOKRS = CHECK_TAB-KOKRS I_BELNR = CHECK_TAB-BELNR WITH_CURRENCIES = OFF IMPORTING E_KFPK = KFPK TABLES T_KFPE = T_KFPE T_KFPP = T_KFPP.
DEQUEUE_EKFPK CALL FUNCTION 'DEQUEUE_EKFPK' EXPORTING KOKRS = CHECK_TAB-KOKRS BELNR = CHECK_TAB-BELNR.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
CJPN_GET_WBS_ELEMENT CALL FUNCTION 'CJPN_GET_WBS_ELEMENT' EXPORTING I_PSPNR = L_KFPK-RPSPNR EXCEPTIONS NOT_FOUND = 1.
CJPN_GET_WBS_ELEMENT CALL FUNCTION 'CJPN_GET_WBS_ELEMENT' EXPORTING I_PSPNR = L_KFPK-SPSPNR EXCEPTIONS NOT_FOUND = 1.
AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = iv_tcode EXCEPTIONS OK = 0 NOT_OK = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
KFPR_ARCH_SET_DELETION_FLAG - Transfer Price Agreement/Allocation: Set Deletion Indicator KFPR_ARCH_SET_DELETION_FLAG - Transfer Price Agreement/Allocation: Set Deletion Indicator KFPR_ARCH_READ - Transfer Price Agreement/Allocation Archiving: Read Archive KFPR_ARCH_READ - Transfer Price Agreement/Allocation Archiving: Read Archive KFPR_ARCH_FORMS - CO_FIXEDPR Archiving: Central Form Routines KFPR_ARCH_DELETE - Transfer Price Agreement/Allocation Archiving: Deletion Program