SAP Reports / Programs

RKUPLD09 SAP ABAP Report - Upload Tracm Tracing: Cost Elements to Activities







RKUPLD09 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 RKUPLD09 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 RKUPLD09. "Basic submit
SUBMIT RKUPLD09 AND RETURN. "Return to original report after report execution complete
SUBMIT RKUPLD09 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: RPLAN = Planning parameters
Selection Text: PERBI = To period
Selection Text: PERAB = From period
Selection Text: KSTAR = Cost element type 42
Selection Text: KOKRS = Controlling area
Selection Text: VERSN = Plan version
Selection Text: UPD = Replace existing values
Selection Text: TWAER = Transaction currency
Selection Text: STORNO = Reversal: (+/- reversed)
Selection Text: SDATE = Start date
Selection Text: ISHEX = Hex value for delimiter
Selection Text: DELIMH = Delimiter Hex Value(TAB=09)
Selection Text: DELIM = Delimiter (;)
Selection Text: CYCLE = Cycle name
Selection Text: ISASC = File type is delimited
Selection Text: GJAHR = Fiscal year
Selection Text: FCWKG = Distribution key periods
Selection Text: DSN = Name of upload file
Selection Text: DELTA = Add to existing values
Title: Upload Tracm Tracing: Cost Elements to Activities
Text Symbol: 021 = created
Text Symbol: 020 = Cycle
Text Symbol: 014 = is not category 42
Text Symbol: 013 = Allocation CElm
Text Symbol: 012 = Current fiscal year is:
Text Symbol: 103 = Delimiter hex value(TAB=09)
Text Symbol: 102 = Tab as delimiter
Text Symbol: 101 = Type delimited
Text Symbol: 100 = Input file
Text Symbol: 022 = Activity type missing
Text Symbol: 011 = DELIMITER VALUE NOT VALID
Text Symbol: 005 = Import error no
Text Symbol: 004 = Errors:
Text Symbol: 003 = Shows error code
Text Symbol: 002 = Successfully entered if no messages on previous screen
Text Symbol: 001 = Plan data
Text Symbol: 010 = Upload error
Text Symbol: 009 = UNDEFINED ERROR





Text Symbol: 008 = FIELD NOT FOUND
Text Symbol: 007 = FIELD TOO LONG
Text Symbol: 006 = WRONG TYPE
Text Symbol: 105 = No data in upload table


INCLUDES used within this REPORT RKUPLD09

INCLUDE KGALDTYP.


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:

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING * CODEPAGE = ' ' FILENAME = DSN_STR FILETYPE = 'ASC' * LINE_EXIT = ' ' * TRUNCLEN = ' ' * USER_FORM = 'READ_DATASET' * USER_PROG = 'RKTEST08' TABLES DATA_TAB = INT_RECORD EXCEPTIONS * CONVERSION_ERROR = 01 FILE_OPEN_ERROR = 02 FILE_READ_ERROR = 03 * INVALID_TABLE_WIDTH = 04 INVALID_TYPE = 05 NO_BATCH = 06 UNKNOWN_ERROR = 07.

S_ASCITEXT_TO_ABAP_CONVERT CALL FUNCTION 'S_ASCITEXT_TO_ABAP_CONVERT' EXPORTING ZEILE = INT_RECORD DELIM = DELIM FIELDNO = I IMPORTING LINE = LINE EXCEPTIONS WRONG_TYPE = 01 FIELD_TOO_LONG = 02 FIELD_NOT_FOUND = 03 UNDEFINED_ERROR = 04.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING GJAHR = GJAHR KOKRS = KOKRS IMPORTING E_TKA00 = TKA00 E_TKA01 = TKA01.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING * COMPANY = ' ' DATE = SY-DATLO * GLOBAL_COMPANY = ' ' * LEDGER = ' ' VARIANT = TKA01-LMONA IMPORTING * ANZBP = * ANZSP = * PERIOD = YEAR = AN.

K_VERSN_READ CALL FUNCTION 'K_VERSN_READ' EXPORTING I_GJAHR = GJAHR I_KOKRS = KOKRS I_VERSN = VERSN * BYPASSING_BUFFER = I_ACTVT = '72' IMPORTING E_TKA09 = TKA09 E_TKA07 = TKA07 E_TKT09 = TKT09.

RK_KSTAR_CHECK CALL FUNCTION 'RK_KSTAR_CHECK' EXPORTING DATUM = SDATE KOKRS = KOKRS KSTAR = KSTAR * SPRAS = ' ' VRGNG = 'RKPU' * ZEILE = '000' IMPORTING * KTEXT = * TXT_FLAG = V_CSKB = CSKBV EXCEPTIONS KSTAR_NOT_ALLOWED = 01 .

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING INPUT = FIELD IMPORTING OUTPUT = FIELD.

RK_AL_CYCLE_DELETE CALL FUNCTION 'RK_AL_CYCLE_DELETE' EXPORTING IM_T811C = T811C EXCEPTIONS * HAS_POSTINGS = 01 WRONG_CYCLE = 02.

RK_AL_CYCLE_NEW CALL FUNCTION 'RK_AL_CYCLE_NEW' EXPORTING ACTIVITY = 'CRAP' ALART = 'R' FYVARIANT = TKA01-LMONA IM_T811C = T811C IPKNZ = 'P' * REF_CYCLE = ' ' * REF_SDATE = T811C-SDATE VALTAB = T811C-TAB IMPORTING * EX_STATUS = STATUS EX_T811C = T811C SEQ_COUNT = IINDEX TXT = TXT TABLES IRKGAG = IRKGAG.

KGAL_READ_CYCLEFIELDS CALL FUNCTION 'KGAL_READ_CYCLEFIELDS' * EXPORTING * ONLY_FIELDS_WITH_VALUE = E01 * WITH_TEXT = E02 TABLES EAKEYS = IKGALK .

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING * COMPANY = ' ' DATE = SDATE * GLOBAL_COMPANY = ' ' * LEDGER = ' ' VARIANT = TKA01-LMONA IMPORTING * ANZBP = * ANZSP = * PERIOD = YEAR = YEAR .

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING GJAHR = YEAR KOKRS = KOKRS IMPORTING E_TKA00 = TKA00 E_TKA01 = TKA01.

KGAL_MOD_ALL_FIELDS CALL FUNCTION 'KGAL_MOD_ALL_FIELDS' * IMPORTING * EX_STATUS = I01 TABLES EAKEYS = IKGALK.

RK_AL_CYCLE_SAVE CALL FUNCTION 'RK_AL_CYCLE_SAVE' EXPORTING IM_T811C = T811C TXT = TXT GROUP = KOKRS IMPORTING * EX_STATUS = I01 EX_T811C = T811C TABLES IRKGAG = IRKGAG EXCEPTIONS NOT_SAVED = 01.

RK_AL_SEQ_NEW CALL FUNCTION 'RK_AL_SEQ_NEW' EXPORTING INSERT = ' ' IMPORTING * EX_STATUS = I01 NEW_KGALS = IKGALS.

KGAL_READ_ALL_FIELDS CALL FUNCTION 'KGAL_READ_ALL_FIELDS' * EXPORTING * APPEND_EAKEYS = ' ' * KIND_FROM = ' ' * KIND_TO = ' ' * ONLY_FIELDS_WITH_VALUE = ' ' * SET_HEADER = ' ' * WITH_TEXT = ' ' TABLES EAKEYS = IKGALK .






K_AL_RCDATA_READ CALL FUNCTION 'K_AL_RCDATA_READ' EXPORTING RCDATAFLG = RCDATAFLAG IMPORTING RCDATA = IKGALS-RCDATA.

RK_AL_SEQ_MODIFY CALL FUNCTION 'RK_AL_SEQ_MODIFY' EXPORTING MOD_KGALS = IKGALS * WITH_FIELDS = ' ' * IMPORTING * EX_STATUS = TABLES EAKEYS = IKGALK .

KGAL_MOD_ALL_FIELDS CALL FUNCTION 'KGAL_MOD_ALL_FIELDS' * IMPORTING * EX_STATUS = I01 TABLES EAKEYS = IKGALK.

RK_AL_COMBINATIONS_READ CALL FUNCTION 'RK_AL_COMBINATIONS_READ' EXPORTING * NO_SHOW = ' ' SR = 'R' * IMPORTING * EVALUATED = * HEADLINE = TABLES COMBINATIONS = IKGALF FIXCOMBS_ORG = FIXCOMBS .

RK_AL_SEQ_MODIFY CALL FUNCTION 'RK_AL_SEQ_MODIFY' EXPORTING MOD_KGALS = IKGALS * WITH_FIELDS = ' ' * IMPORTING * EX_STATUS = TABLES EAKEYS = IKGALK .

KGAL_MOD_COMBINATIONS CALL FUNCTION 'KGAL_MOD_COMBINATIONS' * IMPORTING * EX_STATUS = I01 TABLES COMBINATIONS = IKGALF.



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