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

SAPKKA16 SAP ABAP Report - WIP & Reserves from Current Year, Last Year, Year Before Last, etc.







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


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 SAPKKA16. "Basic submit
SUBMIT SAPKKA16 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPKKA16 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: ABGRAUFA = Order Type
Selection Text: ABGRAUFN = Order Number
Selection Text: ABGRJAHR = Year
Selection Text: ABGRKAUF = Order Type: Sales Order
Selection Text: ABGRKOKR = Controlling Area
Selection Text: ABGRMONA = Period
Selection Text: ABGRPOSI = WBS Element
Selection Text: ABGRPOSN = Sales Order Item
Selection Text: ABGRPSPI = Project Definition
Selection Text: ABGRSCHL = Results Analysis Key
Selection Text: ABGRSTUF = Level in Project Hierarchy
Selection Text: ABGRVBEL = Sales Order
Selection Text: ABGRVERS = Results Analysis Version
Selection Text: DELTAJ1 = Interval Current Year
Selection Text: DELTAJ2 = Interval Previous Year
Selection Text: DELTAJ3 = Interval Year Before Last
Selection Text: DELTAJR = Inteval Remaining Years
Selection Text: DELTA_1 = First Interval
Selection Text: WITHPROJ = With Projects
Selection Text: WITHPPAU = With Production Orders
Selection Text: WITHKNDA = With Sales Orders
Selection Text: WITHAUFT = With Orders
Selection Text: VARIANTE = Layout
Selection Text: PSJAHR = Yearly
Selection Text: PSFLEX = Flexible periods
Selection Text: P3_STEP = Number of Periods
Selection Text: P2_STEP = Number of Periods
Selection Text: P1_STEP = Number of Periods
Selection Text: MINWERT = Minimum value
Selection Text: MAXPSO = With special periods
Selection Text: MAXP12 = Without special periods
Selection Text: JOBPLANG = Schedule Background Processing
Selection Text: DELTA_R = Remaining Int.
Selection Text: DELTA_3 = Third Interval
Selection Text: DELTA_2 = Second Interval
Title: WIP & Reserves from Current Year, Last Year, Year Before Last, etc.
Text Symbol: 310 = LIFO Remaining Int
Text Symbol: 309 = LIFO 3. Interval





Text Symbol: 308 = LIFO 2. Interval
Text Symbol: 307 = LIFO 1. Interval
Text Symbol: 305 = FIFO Remaining Int
Text Symbol: 304 = FIFO 3. Interval
Text Symbol: 303 = FIFO 2. Interval
Text Symbol: 302 = FIFO 1. Interval
Text Symbol: 301 = Remaining Int
Text Symbol: 300 = Interval
Text Symbol: 056 = Formatting output
Text Symbol: 055 = Preparing list
Text Symbol: 053 = Sales ord. are processed
Text Symbol: 052 = WBS elem. are processed
Text Symbol: 051 = Prod. orders are processed
Text Symbol: 050 = Orders are processed
Text Symbol: 049 = Reading sales orders
Text Symbol: 048 = Reading WBS elem.
Text Symbol: 047 = Reading prod. orders
Text Symbol: 046 = Reading orders
Text Symbol: 045 = of
Text Symbol: 036 = Obj.Selection
Text Symbol: 011 = Parameter
Text Symbol: 009 = Sum of Deleted Rows (MinCond)
Text Symbol: 008 = Reserves for Imminent Loss
Text Symbol: 007 = Revenue Surplus
Text Symbol: 006 = Reserves Unrealized Costs
Text Symbol: 005 = Revenue in Excess of Billings
Text Symbol: 004 = Work in Process
Text Symbol: 003 = Version
Text Symbol: 002 = Period
Text Symbol: 001 = Controlling Area
Text Symbol: 065 = ORD
Text Symbol: 206 = Update of Interval Display: Print Data Release
Text Symbol: 205 = Third Period Interval
Text Symbol: 204 = Second Period Interval
Text Symbol: 203 = Period Intervals
Text Symbol: 202 = First Period Interval
Text Symbol: 201 = Inclusion of Special Periods in Period Calculation
Text Symbol: 200 = Change Period Split and Print Data Release
Text Symbol: 111 = First Year with Amounts





Text Symbol: 110 = LIFO Rem.Years
Text Symbol: 109 = LIFO YrBefLast
Text Symbol: 108 = LIFO PriorYr
Text Symbol: 107 = LIFO Cur. Year
Text Symbol: 106 = Yr 1
Text Symbol: 105 = FIFO Rem.Years
Text Symbol: 104 = FIFO YrBefLast
Text Symbol: 103 = FIFO PriorYr
Text Symbol: 102 = FIFO Cur. Year
Text Symbol: 101 = Total
Text Symbol: 100 = Ty.
Text Symbol: 075 = APO
Text Symbol: 067 = SDI
Text Symbol: 066 = WBS


INCLUDES used within this REPORT SAPKKA16

INCLUDE LKKAGF88. "AUFTRAGSTYPEN
INCLUDE RBONRART. "OBJEKTARTEN "OBJ
INCLUDE RKACOPER.


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:

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING DISPLAY = ' ' I_KOKRS = ' ' POPUP = ' ' IMPORTING E_KOKRS = ABGRKOKR.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING display = ' ' i_kokrs = ' ' popup = '0' IMPORTING e_kokrs = abgrkokr.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = 'VERSA' TABNAME = 'TKKAP' IMPORTING SELECT_VALUE = ABGRVERS TABLES FIELDS = HELP_FIELDS VALUETAB = HELP_VALUES.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING I_DOCUMENT_NUMBER = POSNR_TAB-VBELN I_ITEM_NUMBER = POSNR_TAB-POSNR IMPORTING E_BUKRS = KAUFTRAG-BUKRS E_GSBER = KAUFTRAG-GSBER EXCEPTIONS OTHERS = 01.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING I_DOCUMENT_NUMBER = POSNR_TAB-VBELN I_ITEM_NUMBER = POSNR_TAB-POSNR IMPORTING E_BUKRS = KAUFTRAG-BUKRS E_GSBER = KAUFTRAG-GSBER EXCEPTIONS OTHERS = 01.

K_AFPO_READ CALL FUNCTION 'K_AFPO_READ' "H356211 EXPORTING i_aufnr = tauftrag-aufnr "H356211 TABLES t_afpo = t_afpo "H356211 EXCEPTIONS NOT_FOUND = 1 "H356211 OTHERS = 2. "H356211

K_VRGNG_AUTHORITY_CHECK CALL FUNCTION 'K_VRGNG_AUTHORITY_CHECK' EXPORTING ACTVT = ACT KOKRS = ABGRKOKR VRGNG = VRG.

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING * PAR_AMAIL = 'X' PAR_DIALG = 'X' PAR_JNAME = SAV_JNAME PAR_LTDAY = CON_NODAY PAR_LTTME = CON_NOTME PAR_NONOW = ' ' PAR_PNAKZ = ' ' PAR_PNAME = CON_PNAME PAR_PRINT = 'X' PAR_PRIPA = SAV_PARAM PAR_RNAME = CON_RNAME * PAR_SMAIL = 'X' PAR_SDMSG = 'X' PAR_SWAIT = ' ' PAR_NSM37 = ' ' * PAR_NSP01 = 'X' PAR_STDAY = CON_NODAY PAR_STNOW = 'X' PAR_STTME = CON_NOTME PAR_WTIME = CON_WTIME IMPORTING * PAR_EMAIL = PAR_JNAME = SAV_JNAME PAR_JNUMM = SAV_JNUMM PAR_SPONR = SAV_SPONR PAR_RTIME = SAV_RTIME TABLES TAB_SELPA = TAB_PARAM EXCEPTIONS DELETE_REPORT_INCORRECT = 01 EDLIN_TOO_LONG = 02 GENERATE_REPORT_INCORRECT = 03 INSERT_REPORT_INCORRECT = 04 JNAME_MISSING = 05 JOB_CLOSE_INCORRECT = 06 JOB_OPEN_INCORRECT = 07 LOCK_REPORT_IMPOSSIBLE = 08 OPTION_WRONG = 09 PNAME_MISSING = 10 READ_REPORT_INCORRECT = 11 REPORT_IN_TRDIR_MISSING = 12 RNAME_MISSING = 13 SIGN_WRONG = 14 START_DATE_IMPOSSIBLE = 15 START_DATE_MISSING = 16 SUBMIT_INCORRECT = 17 OTHERS = 99.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING * AUTHORITY = " Berechtigung * COVER_PAGE = " Selektions-Deckblatt ( ,X) * COPIES = " Anzahl der Ausdrucke * DESTINATION = " Ausgabegerät LIST_NAME = SAV_PLIST " Name des Spool-Auftrags * IMMEDIATELY = " Sofort ausdrucken ( ,X) * RELEASE = " Löschen nach Ausgabe ( ,X) * NEW_LIST_ID = " Neuer Spool-Auftrag ( ,X) * EXPIRATION = " Spool Verweildauer LINE_SIZE = CON_LINSZ " Zeilenbreite (Liste) LINE_COUNT = CON_LINCT " Anzahl Listzeilen (Seite) LAYOUT = CON_PAART " Aufbereitung DATA_SET = SAV_PRDSN " Name des Spool-Datasets * IN_PARAMETERS = " Druck-Parameter LIST_TEXT = SAV_PRTXT " Text für das Deckblatt * TYPE = " Typ des Spool-Datasets * MODE = " Modus ('BATCH', SPACE) * SAP_COVER_PAGE = " SAP-Deckblatt ( ,X,D) * RECEIVER = " Empfänger * DEPARTMENT = " Abteilung NO_DIALOG = CON_X " Kein Dialog ( ,X) IMPORTING OUT_PARAMETERS = SAV_PARAM. " Druck-Parameter

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' TABLES ONR_TAB = ONR_TAB.




SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING * PERCENTAGE = 0 TEXT = txt.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = OBJ_HELP TEXT = OBJ_HELP_T.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = OBJ_HELP TEXT = OBJ_HELP_T.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = 'SAPKKA16' * i_callback_user_command = I_CALLBACK_TOP_OF_PAGE = 'FTOP' * i_callback_pf_status_set = * i_callback_layout_save = * i_callback_fieldcat_save = * I_TABNAME = 'TKABGR' is_layout = ls_layout IT_FIELDCAT = LT_FIELD * I_FCTYPE = 'R' I_SAVE = 'A' * it_special_groups = IT_SORT = LT_SORT * is_sel_hide = * i_screen_start_column = 0 * i_screen_start_line = 0 * i_screen_end_column = 0 * i_screen_end_line = 0 is_variant = ls_variant TABLES T_OUTTAB = TKABGR EXCEPTIONS OTHERS = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = lt_list.

K_PERIODS_GET_FOR_KOKRS CALL FUNCTION 'K_PERIODS_GET_FOR_KOKRS' EXPORTING i_tka01 = tka01 kokrs = abgrkokr * GJAHR "falls Rumpfgesch.Jahre

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = dat i_periv = tka01-lmona "T009B-PERIV IMPORTING e_buper = m e_gjahr = j.



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