SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost by Period(CO-PC-OBJ-PER) SAP CO

SAPMKKS0 SAP ABAP dialog Program - Variance Calculation







SAPMKKS0 is a standard Module pool for a dialog screen ABAP Program 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 SAPMKKS0 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

KKS3 - Scrap - Product Cost by Lot (C)
KKS2 - Variances - Product Cost by Lot (I)
KKS1N - Variances - Product Cost by Lot (C)
KKS1 - Variances - Product Cost by Lot (C)
KKS4 - Scrap - Product Cost by Lot (I)
KKS5 - Variances - Product Cost by Per. (C)
KKS6 - Variances - Product Cost by Per. (I)
KKS7 - Scrap - Product Cost by Period (C)
KKS8 - Scrap - Product Cost by Period (I)
KKSP - Variances - Engineer-to-Order (C)
KKSQ - Variances - Engineer-to-Order (I)
KKSR - Scrap - Engineer-to-Order (C)
KKSS - Scrap - Engineer-to-Order (I)
KKST - Variances - Cost by Sales Order (C)
KKSU - Variances - Cost by Sales Order (I)
KKSV - Scrap - Cost by Sales Order (C)
KKSW - Scrap - Cost by Sales Order (I)


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 SAPMKKS0. "Basic submit
SUBMIT SAPMKKS0 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPMKKS0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Variance Calculation
Text Symbol: 006 = Additional Fields
Text Symbol: 008 = Details on Cost Object
Text Symbol: 004 = Print Preview
Text Symbol: 003 = Parameters
Text Symbol: 002 = Processing Options
Text Symbol: 009 = Details on Cost Object
Text Symbol: 010 = Prod Process
Text Symbol: 011 = Edit
Text Symbol: 012 = Production Process
Text Symbol: 013 = Delete
Text Symbol: 014 = Objects for Product Cost Collector
Text Symbol: 001 = All Plants in Controlling Area
Text Symbol: 027 = Worklist
Text Symbol: 025 = Control Records
Text Symbol: 024 = Statistics
Text Symbol: 023 = Start Values
Text Symbol: 022 = Detail List
Text Symbol: 021 = Basic List
Text Symbol: 020 = Initial Screen
Text Symbol: 019 = Produc. Process to
Text Symbol: 018 = Messages
Text Symbol: 017 = Scrap Calculation
Text Symbol: 016 = Variance Calculation
Text Symbol: 041 = Close Date
Text Symbol: 040 = Deliver Date
Text Symbol: 039 = OpenDate
Text Symbol: 038 = TCV
Text Symbol: 037 = Rc
Text Symbol: 036 = Material Number
Text Symbol: 035 = Plant
Text Symbol: 034 = VarKy
Text Symbol: 032 = Find cost object...
Text Symbol: 031 = Run Parameters
Text Symbol: 030 = Order
Text Symbol: 029 = Set Filter...
Text Symbol: 053 = Cost Object
Text Symbol: 052 = AcAsCt





Text Symbol: 051 = Item
Text Symbol: 050 = Selection with Collective Order
Text Symbol: 049 = Currncy
Text Symbol: 048 = RS Header
Text Symbol: 047 = PVer
Text Symbol: 046 = RA Key
Text Symbol: 045 = L
Text Symbol: 044 = OC
Text Symbol: 043 = OTyp
Text Symbol: 042 = Status
Text Symbol: 015 = Display Long Text
Text Symbol: 091 = Success Message
Text Symbol: 066 = Of which
Text Symbol: 065 = With Errors
Text Symbol: 064 = Job Name
Text Symbol: 063 = Job Number
Text Symbol: 062 = Orders (Items) with Wrong Status
Text Symbol: 061 = Orders Without Variance Key
Text Symbol: 060 = Orders with Deletion Indicator
Text Symbol: 059 = Application/Message Number
Text Symbol: 058 = Server Group
Text Symbol: 057 = Maximum Number of Tasks
Text Symbol: 056 = Subtree of Collective Order
Text Symbol: 055 = Entire Collective Order
Text Symbol: 078 = Orders (Items) for Project
Text Symbol: 077 = Process Orders (Items)
Text Symbol: 076 = Product Cost Collectors (Items)
Text Symbol: 075 = Production Orders (Items)
Text Symbol: 074 = Number of Orders (Items) Processed
Text Symbol: 073 = Number of Records Read (View VKKS0)
Text Symbol: 072 = Update Run
Text Symbol: 071 = Test Run
Text Symbol: 070 = Processing Status
Text Symbol: 069 = Orders (Items) for Co-Products
Text Symbol: 068 = Number of Target Cost Versions
Text Symbol: 054 = Order Entered
Text Symbol: 090 = Maximum Message Type
Text Symbol: 089 = Number of Messages
Text Symbol: 088 = Without Errors





Text Symbol: 087 = Time
Text Symbol: 086 = Message
Text Symbol: 085 = MC
Text Symbol: 084 = Order to
Text Symbol: 083 = Order
Text Symbol: 082 = User Name
Text Symbol: 081 = Creation Date
Text Symbol: 080 = Number of Orders (Items) Read
Text Symbol: 079 = Orders (Items) for Sales Order
Text Symbol: 102 = Fiscal Year
Text Symbol: 101 = Controlling Area
Text Symbol: 100 = Error in parallel processing
Text Symbol: 099 = Order Category
Text Symbol: 098 = T
Text Symbol: 097 = Orders (Items) on Collective Order
Text Symbol: 096 = Number of Orders (Items) Changed
Text Symbol: 095 = Termination Message
Text Symbol: 094 = Error Message
Text Symbol: 093 = Warning Message
Text Symbol: 092 = Information Message
Text Symbol: 114 = Material
Text Symbol: 113 = Production Version
Text Symbol: 112 = Run Schedule Header
Text Symbol: 111 = Sales Order to
Text Symbol: 110 = Sales Order
Text Symbol: 109 = Set
Text Symbol: 108 = Order Category
Text Symbol: 107 = Order Type
Text Symbol: 106 = Order Number
Text Symbol: 105 = Control Parameters
Text Symbol: 104 = Plant
Text Symbol: 103 = Posting Period
Text Symbol: 126 = Order Number to
Text Symbol: 125 = With Process Orders
Text Symbol: 124 = With Product Cost Collectors
Text Symbol: 123 = With Production Orders
Text Symbol: 122 = Scrap
Text Symbol: 121 = Variances
Text Symbol: 120 = Detail List



Text Symbol: 119 = Background Processing
Text Symbol: 118 = Test Run
Text Symbol: 117 = Selected Target Cost Versions
Text Symbol: 116 = All Target Cost Versions
Text Symbol: 115 = or
Text Symbol: 138 = Only Collective Orders
Text Symbol: 137 = Without Collective Orders
Text Symbol: 136 = Undefined
Text Symbol: 135 = Reading procurement costs
Text Symbol: 134 = Calculate Target Costs
Text Symbol: 133 = Sales Order Item
Text Symbol: 132 = Item Number
Text Symbol: 131 = Material to
Text Symbol: 130 = WBS Element to
Text Symbol: 129 = WBS Element
Text Symbol: 128 = Worklist
Text Symbol: 127 = Run Schedule Header to
Text Symbol: 150 = Orders (Items) for Valuated Sales Order Stock
Text Symbol: 149 = Order Items for Fixed-Price Co-Product
Text Symbol: 148 = Production Process to
Text Symbol: 147 = Production Process
Text Symbol: 146 = Version-dependent check
Text Symbol: 145 = Checking and processing orders
Text Symbol: 144 = Calculating variances
Text Symbol: 143 = Calculating scrap
Text Symbol: 142 = Only Sales Orders/Projects
Text Symbol: 141 = Without Sales Orders/Projects
Text Symbol: 140 = Only Joint Mfg Orders
Text Symbol: 139 = Without Joint Mfg Orders
Text Symbol: 151 = Orders (Items) for Valuated Project Stock
Text Symbol: 163 = Workflow ID
Text Symbol: 162 = List
Text Symbol: 161 = Extract of Basic List
Text Symbol: 160 = Extract of Detail List
Text Symbol: 159 = Do Not Select
Text Symbol: 158 = Select
Text Symbol: 157 = Process Orders
Text Symbol: 156 = Product Cost Collectors
Text Symbol: 155 = Production Orders
Text Symbol: 154 = Number of Relevant Orders (Items)
Text Symbol: 153 = Orders (Items) with Cumulative Processing
Text Symbol: 152 = Orders (Items) with Periodic Processing
Text Symbol: 402 = "Order(item)/message"
Text Symbol: 401 = "Order(item)/breakpoint"
Text Symbol: 303 = Collect All
Text Symbol: 302 = Only Collect if Message
Text Symbol: 301 = Only Collect if Error
Text Symbol: 300 = Update data
Text Symbol: 202 = Scrap Calculation: &
Text Symbol: 201 = Variance Calculation: &
Text Symbol: 167 = Type of Worklist
Text Symbol: 166 = Number of Flow Step
Text Symbol: 165 = Worklist Description
Text Symbol: 164 = Object Key
Text Symbol: 500 = Reading orders
Text Symbol: 413 = "Allow scrap transactions"
Text Symbol: 412 = "Sales order from/to"
Text Symbol: 411 = "Import all"
Text Symbol: 410 = "Display all counters"
Text Symbol: 409 = "WBS element from/to"
Text Symbol: 408 = "Run schedule header from/to"
Text Symbol: 407 = "Order from/to"
Text Symbol: 406 = "Display view data"
Text Symbol: 405 = "Order type/order category/material"
Text Symbol: 404 = "Target cost version/message"
Text Symbol: 403 = "Target cost version/breakpoint"
Text Symbol: 512 = Current Cost Object
Text Symbol: 511 = Save worklist
Text Symbol: 510 = seconds:
Text Symbol: 509 = End of processing
Text Symbol: 508 = List output
Text Symbol: 507 = Messages saved
Text Symbol: 506 = Messages issued
Text Symbol: 505 = Start values output
Text Symbol: 504 = Initiate list processing
Text Symbol: 503 = Reading order
Text Symbol: 502 = Calculating scrap
Text Symbol: 501 = Calculating variances
Text Symbol: 067 = Orders (Items) for Cost Object
Text Symbol: 609 = Changed
Text Symbol: 608 = No errors
Text Symbol: 607 = Errors
Text Symbol: 606 = Read
Text Symbol: 605 = Messages
Text Symbol: 604 = MT
Text Symbol: 603 = EM
Text Symbol: 602 = User Name
Text Symbol: 601 = Time
Text Symbol: 600 = Date
Text Symbol: 513 = Current Target Cost Version
Text Symbol: 628 = General: Error while starting report
Text Symbol: 627 = General: Parameter type (TYPE) invalid ("S" or "P")
Text Symbol: 626 = General: Parameter value (HIGH) too long (max. 45 characters)
Text Symbol: 625 = General: Parameter value (LOW) too long (max. 45 characters)
Text Symbol: 624 = General: Parameter name too long (max. 8 characters)
Text Symbol: 623 = General: Target system not specified
Text Symbol: 622 = General: Server group not specified
Text Symbol: 621 = General: Report name not specified
Text Symbol: 620 = General: Job name not specified
Text Symbol: 616 = Versions
Text Symbol: 615 = Processed
Text Symbol: 614 = Year
Text Symbol: 653 = Check job: Period dates not specified
Text Symbol: 639 = Check job: Invalid number of working days (max. 19)
Text Symbol: 638 = Check job: Number of working days not specified
Text Symbol: 637 = Check job: Unknown error (factory calender)
Text Symbol: 636 = Check job: Invalid factory calender
Text Symbol: 635 = Check job: Start date is a holiday
Text Symbol: 634 = Check job: Start date invalid according to factory calender
Text Symbol: 633 = Check job: Start date (before holiday) is in the past
Text Symbol: 632 = Check job: Start date not specified
Text Symbol: 631 = Check job: Invalid start date
Text Symbol: 630 = General: Report variant not specified
Text Symbol: 629 = General: Job not released
Text Symbol: 652 = Check job: Start after job not possible periodic
Text Symbol: 651 = Check job: Start date is in the past
Text Symbol: 650 = Check job: Operation mode invalid
Text Symbol: 649 = Check job: Event not specified
Text Symbol: 648 = Check job: Latest start date is in the past
Text Symbol: 647 = Check job: Previous job invalid
Text Symbol: 646 = Check job: Previous job not unique
Text Symbol: 645 = Check job: Result invalid
Text Symbol: 644 = Check job: Start date incomplete
Text Symbol: 643 = Check job: Latest start date incomplete
Text Symbol: 642 = Check job: Specified period too small for restriction
Text Symbol: 641 = Check job: "Do not execute before" not specified
Text Symbol: 613 = Per.
Text Symbol: 665 = Request report: Cannot save
Text Symbol: 664 = Request report: Generation error
Text Symbol: 663 = Request report: Line in editor too long (max. 72 characters)
Text Symbol: 662 = Request report: Cannot delete
Text Symbol: 661 = Create job: Unknown error
Text Symbol: 660 = Create job: Job name not specified
Text Symbol: 659 = Create job: Invalid job dates
Text Symbol: 658 = Create job: Function cannot be executed
Text Symbol: 657 = Check job: Target server not specified
Text Symbol: 656 = Check job: Interval start date too large (max. 365 days)
Text Symbol: 655 = Check job: System error
Text Symbol: 654 = Check job: No job selected
Text Symbol: 677 = Close job: Job has no steps
Text Symbol: 676 = Close job: Function cannot be executed
Text Symbol: 675 = Close job: Job name not specified
Text Symbol: 674 = Close job: Invalid start date
Text Symbol: 673 = Close job: Immediate start not possible
Text Symbol: 672 = Request report: Invalid SIGN value
Text Symbol: 666 = Request report: Locking error
Text Symbol: 667 = Request report: Invalid OPTION value
Text Symbol: 668 = General: Request report name not specified
Text Symbol: 671 = Request report: Entry in TRDIR missing (after generation)
Text Symbol: 670 = Request report: Entry in TRDIR missing (before generation)
Text Symbol: 669 = Request report: Error while reading report
Text Symbol: 706 = Turn off reporting processing progress
Text Symbol: 705 = Turn on reporting processing progress
Text Symbol: 704 = Delete control records
Text Symbol: 703 = Display control records
Text Symbol: 702 = Turn off working with control records
Text Symbol: 701 = Turn on working with control records
Text Symbol: 700 = Test mode: Allow scrap transactions
Text Symbol: 682 = Request report: Report is locked
Text Symbol: 681 = Unknown error
Text Symbol: 680 = Close job: Unknown error
Text Symbol: 679 = Close job: Locking error
Text Symbol: 678 = Close job: Job cannot be executed
Text Symbol: 719 = Worklist: Orders with errors
Text Symbol: 717 = No validation on cost object hierarchy
Text Symbol: 716 = Delete control records (INDX)
Text Symbol: 715 = Delete worklist (INDX)
Text Symbol: 714 = Delete target cost versions (INDX)
Text Symbol: 713 = Test mode: Display all counters
Text Symbol: 712 = Test mode: Display table KKS09
Text Symbol: 711 = Test mode: Order type, order category, material
Text Symbol: 710 = Test mode: Message at target cost version
Text Symbol: 709 = Test mode: Breakpoint at target cost version
Text Symbol: 708 = Test mode: Message at order (item)
Text Symbol: 707 = Test mode: Breakpoint at order (item)
Text Symbol: 640 = Check job: Start time on working day not specified
Text Symbol: 761 = Closing period is in the future
Text Symbol: 760 = Delivery period is in the future
Text Symbol: 759 = Error while locking order
Text Symbol: 758 = Order category: Operation KVAR is not allowed
Text Symbol: 757 = Closing period cannot be determined (AUFK-IDAT2)
Text Symbol: 756 = Delivery period cannot be determined (AFPO-LTRMI)
Text Symbol: 755 = Entry period cannot be determined (AUFK-ERDAT)
Text Symbol: 754 = Variance key not found (TKV01)
Text Symbol: 753 = Order status: Operation KVAR is not allowed
Text Symbol: 752 = No errors occurred
Text Symbol: 751 = Automatic plantwise job planning
Text Symbol: 720 = Worklist: All orders
Text Symbol: 774 = Worklist: Switch On (All...)
Text Symbol: 773 = Worklist: Filter (type, category, material)
Text Symbol: 772 = Deletion of message logs
Text Symbol: 771 = Test mode: Import everything
Text Symbol: 770 = The order is in the cost object hierarchy
Text Symbol: 769 = The order has an incorrect status
Text Symbol: 767 = Help: Useful return codes...
Text Symbol: 766 = Help: Useful function codes...
Text Symbol: 765 = Error while setting status (I0056)
Text Symbol: 764 = Error while calculating variances/scrap
Text Symbol: 763 = Error while calculating target costs
Text Symbol: 762 = Error while reading reference data
Text Symbol: 789 = Order has multiple items (joint production)
Text Symbol: 788 = Order is assigned to a sales order
Text Symbol: 787 = Order has no variance key
Text Symbol: 786 = Order has deletion indicator
Text Symbol: 785 = Order is assigned to a project
Text Symbol: 784 = No suitable posting rule for order found
Text Symbol: 783 = Target host can be specified when scheduling job
Text Symbol: 780 = Target server can be specified when scheduling job
Text Symbol: 779 = Parallel Processing: Switch On Debugging Mode
Text Symbol: 778 = Parallel Processing: Specify Max. No. of Tasks
Text Symbol: 777 = Parallel Processing: Specify RFC Group (1st Step)
Text Symbol: 775 = Worklist: Switch On (Restart Capability)
Text Symbol: 801 = Important return codes for job scheduling...
Text Symbol: 800 = Useful function codes...
Text Symbol: 799 = Orders for joint production being processed
Text Symbol: 798 = Set test indicator
Text Symbol: 797 = Worklist: Display all
Text Symbol: 796 = Order (item) must still be processed
Text Symbol: 795 = Display all message logs
Text Symbol: 794 = System information
Text Symbol: 793 = Processing collective orders
Text Symbol: 792 = Error occurred during parallel processing
Text Symbol: 791 = Order is part of a collective order
Text Symbol: 790 = Turn off additional parameters for job scheduling
Text Symbol: 814 = No delivery/closing period
Text Symbol: 813 = Display internal tables (KV011, KV012, KV013)
Text Symbol: 812 = Display target cost versions (structure KV20A)
Text Symbol: 811 = No target costs with fixed-price co-products
Text Symbol: 810 = Order is assigned to a product cost collector
Text Symbol: 809 = Display objects read (view VKKS0)
Text Symbol: 808 = Only process orders for sales order/project
Text Symbol: 807 = Only process orders for joint production
Text Symbol: 806 = Only collective orders are processed
Text Symbol: 805 = Display orders on hand
Text Symbol: 804 = Do not process orders for sales order/project
Text Symbol: 803 = Automatic job scheduling (following period)
Text Symbol: 860 = Work Process ID
Text Symbol: 859 = Work Process Number
Text Symbol: 858 = User's Terminal
Text Symbol: 857 = IP Address of Front-End Computer
Text Symbol: 856 = Front-End Computer
Text Symbol: 855 = Number of Instances
Text Symbol: 854 = Number of Objects
Text Symbol: 853 = Instance
Text Symbol: 852 = Runtime
Text Symbol: 851 = Runtime (Real Time)
Text Symbol: 850 = Runtime (Total of Tasks)
Text Symbol: 815 = Error during calculation of plan cost / plan qty
Text Symbol: 802 = Return codes for worklist...
Text Symbol: A01 = Should the changes you made
Text Symbol: 911 = Target Cost Versions
Text Symbol: 910 = Logs
Text Symbol: 903 = Exit
Text Symbol: 902 = Cancel
Text Symbol: 901 = End
Text Symbol: 900 = Back
Text Symbol: 865 = Support Package Level
Text Symbol: 864 = generated on
Text Symbol: 863 = generated at
Text Symbol: 862 = Database Library
Text Symbol: 861 = Kernel Release
Text Symbol: G02 = records completely?
Text Symbol: G01 = Do you want to delete the control
Text Symbol: E02 = selected message log?
Text Symbol: E01 = Do you want to delete the
Text Symbol: D02 = target cost versions from the INDX?
Text Symbol: D01 = Do you want to delete the set
Text Symbol: C02 = delete all messages logs?
Text Symbol: C01 = Do you want to
Text Symbol: B02 = worklist completely?
Text Symbol: B01 = Would you like to delete the
Text Symbol: A02 = be saved first?


INCLUDES used within this REPORT SAPMKKS0

INCLUDE MKKS0TOP.
INCLUDE MKKS0F00.
INCLUDE MKKS0F01.
INCLUDE MKKS0F02.
INCLUDE MKKS0F03.
INCLUDE MKKS0F04.
INCLUDE MKKS0F05.
INCLUDE MKKS0F09.
INCLUDE MKKS0F11.
INCLUDE MKKS0F90.
INCLUDE MKKS0O01.
INCLUDE MKKS0I01.
INCLUDE MKKS0IZ0.
INCLUDE LKV20F05.


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:

No SAP FUNCTION MODULES are executed within this report code!



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