AD02ACTV is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program to allocate actual activity costs from historical data...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter AD02ACTV into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
ADAA - Activity Allocation Conversion
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: SQFILE = Sequential file
Selection Text: FILENAME = Input Filename
Selection Text: EXCEL = Excel file
Title: Activity Allocation Conversion
Text Symbol: 920 = Number of update
Text Symbol: 910 = Number of input record is
Text Symbol: 900 = Processing end for program AD02ACTV
Text Symbol: 180 = Message Text
Text Symbol: 170 = Input
Text Symbol: 165 = Class
Text Symbol: 160 = Number
Text Symbol: 150 = Error Report
Text Symbol: 140 = File read error, return code:
Text Symbol: 032 = Posted CO Document
Text Symbol: 030 = Message
Text Symbol: 028 = Receiving Object
Text Symbol: 026 = Doc Date
Text Symbol: 024 = Personnel
Text Symbol: 022 = Activity
Text Symbol: 020 = Send CCTR
Text Symbol: 016 = Following records were transferred sucessfully to CO
Text Symbol: 015 = and will have to be reprocessed
Text Symbol: 014 = Following records could not transfer to CO
Text Symbol: 010 = Batch run, cannot use EXCEL file
Text Symbol: 003 = Read file from a Sequential data
Text Symbol: 002 = Read file from EXCEL spread sheet
Text Symbol: 001 = Activity Allocation Conversion
INCLUDE AD02ATOP.
INCLUDE AD02ACHK.
INCLUDE AD02AMSG.
INCLUDE AD02APOS.
INCLUDE AD02AWRT.
No SAP DATABASE tables are accessed within this REPORT code!
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES T_MESG = MSGTAB.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename CHANGING physical_filename = FILENAME EXCEPTIONS OTHERS = 1.
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = l_filename "FILENAME 02/2003 KH TABLES DATA_TAB = actv_tab EXCEPTIONS FILE_OPEN_ERROR = 1 FILE_READ_ERROR = 2 NO_BATCH = 3 * GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 * NO_AUTHORITY = 6 * UNKNOWN_ERROR = 7 BAD_DATA_FORMAT = 8 * HEADER_NOT_ALLOWED = 9 * SEPARATOR_NOT_ALLOWED = 10 * HEADER_TOO_LONG = 11 * UNKNOWN_DP_ERROR = 12 * ACCESS_DENIED = 13 * DP_OUT_OF_MEMORY = 14 * DISK_FULL = 15 * DP_TIMEOUT = 16 OTHERS = 17.
WS_UPLOAD * CALL FUNCTION 'WS_UPLOAD' * EXPORTING * FILENAME = FILENAME * FILETYPE = 'DAT' * IMPORTING * FILELENGTH = UP_FILELENGTH * TABLES * DATA_TAB = ACTV_TAB * EXCEPTIONS * CONVERSION_ERROR = 1 * FILE_OPEN_ERROR = 2 * FILE_READ_ERROR = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.