Hierarchy
⤷ BW-WHM-DST (Application Component) Data Staging
⤷ RSAR (Package) Data import from source system
Basic Data
Data Element | RSIOBJRTTXTLG |
Short Description | Routine in the conversion rules |
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
You can define complex rules for the conversion of InfoObjects by using routines. If you create a transfer routine this is globally valid for the characteristic and is included in all transfer rules.
Routines are ABAP programs that consist of a predefined global data declaration part and an ABAP form routine. All of the functions of the ABAP programming environment are available in the form routine.
Procedure
After calling up the editor for the routine maintenance you get the following program framework:
program conversion_routine.
* Declare data type of the current InfoObject
types io_<iobjnm>(<länge>) type <datentyp>.
*
form convert_<iobjname>
using record_no like sy-tabix
source_system type rsa_logsys
changing result like type io_<iobjnmae>
returncode like sy-subrc.
*
*$*$ begin of routine - insert your code only below this line
result =
returncode = 0.
*$*$ end of routine - insert your code only before this line
*
ENDFORM.
Remark:
The fields marked with <...> are dependent on InfoObjects and are automatically filled by the system when calling up the editor.
The form routine has the following parameters:
- SOURCE_SYSTEM
- Name of the source system from which the current value of the InfoObject was delivered. Using this value you can configure the conversion depending on the source system.
- IOBJ_NAME
- Name of InfoObject that is being edited.
- RECORD_NO
- Makes available the number of the record of the transfer structure to be edited.
- RESULT
- This parameter contains the current value of the InfoObject when calling the conversion routine. You must assign the result of the conversion to this variable before leaving the routine.
- RETURNCODE
- With this parameter you can report errors to the conversion program. RETURNCODE <> 0 stands for an error in the calculation, meaning the processing of the current data packet will be terminated.
- Insert your program code for the routine between *$*$ begin of routine ... and *$*$ end of routine ..., so that the parameters RETURN and RETURNCODE are supplied with the corresponding values.
- Check the syntax of your routine with the function Check. Afterwards, you can transfer the routine with function Save. By leaving the editor you end the maintenance of the routine.
Note
All navigation possibilities (e.g. Goto Dictionary) and the syntax check are available in the Editor for entering the routines.
History
Last changed by/on | SAP | 20130604 |
SAP Release Created in |