Hierarchy
⤷ BW-WHM-DST (Application Component) Data Staging
⤷ RSAU (Package) Update
Basic Data
Data Element | RSROUTTXT3 |
Short Description | Routine without Return Table |
Data Type
Category of Dictionary Type | D | Domain |
Type of Object Referenced | No Information | |
Domain / Name of Reference Type | TEXT60 | |
Data Type | CHAR | Character String |
Length | 60 | |
Decimal Places | 0 | |
Output Length | 60 | |
Value Table |
Further Characteristics
Search Help: Name | ||
Search Help: Parameters | ||
Parameter ID | ||
Default Component name | ||
Change document | ||
No Input History | ||
Basic direction is set to LTR | ||
No BIDI Filtering |
Field Label
Length | Field Label | |
Short | 10 | Routine |
Medium | 20 | Routine |
Long | 40 | Routine |
Heading | 60 | Routine |
Documentation
Definition
Use
When calling up the editor for routine maintenance for a key figure without a return table, the following program framework appears:
program update_routine.
*$*$ begin of global - insert your declaration only below
this line *-*
* TABLES: ...
* DATA: ...
*$*$ end of global - insert your declaration only before this line
*-*
*
FORM compute_key_figure
TABLES monitor STRUCTURE rsmonitor "user defined monitoring
USING comm_structure like <comm_structure_name>
record_no LIKE sy-tabix
record_all LIKE sy-tabix
source_system LIKE rsupdsimulh-logsys
CHANGING result LIKE <infocube_viewname>- <fieldname>
returncode LIKE sy-subrc
abort LIKE sy-subrc. "set ABORT <> 0 to cancel update
*
*$*$ begin of routine - insert your code only below this line *-*
* fill the internal table "MONITOR", to make monitor entries
* result value of the routine
result =
* if the returncode is not equal zero, the result will not be updated
returncode = 0.
* if abort is not equal zero, the update process will be canceled
abort = 0.
*$*$ end of routine - insert your code only before this line
*-*
*
ENDFORM.
Note: Fields marked with <...> are dependent on both the Data Target and the InfoSource, for which the routine is to be created. They are automatically filled by the system when the editor is called up.
For a routine with characteristics, the name of the form routine is compute_characteristics.
Example
The following routine shows an example of a characteristic routine that calculates the month from the date that was transferred.
...
FORM compute_characteristics
TABLES monitor STRUCTURE rsmonitor "user defined monitoring
USING comm_structure LIKE xcommstru
record_no LIKE sy-tabix
record_all LIKE sy-tabix
source_system LIKE rsupdsimulh-logsys
CHANGING result LIKE /bic/vcube-calmonth
returncode LIKE sy-subrc.
abort LIKE sy-subrc. "set ABORT <> 0 to cancel update
*
*$*$ begin of routine - insert your code only below this line
*-*
result = comm_structure-calday(6).
returncode = 0.
abort = 0.
*$*$ end of routine - insert your code only before this line
*-*
*
ENDFORM.
History
Last changed by/on | SAP | 20130604 |
SAP Release Created in | 30A |