Sub-fields
Notes:
Sub-fields
You can address and change sub-areas of an elementary field by specifying the offset and length of the sub-string. When an offset is not included, an offset of zero is implied and the sub-field begins with the first character of field.
In ABAP/4, you can specify offset values for elementary data objects in all statements which process these data objects. To do so, specify the name of a data object in a statement as follows:
<f>[+<o>][(<l>)]
The operation of the statement is performed for the part of the field <f> that begins at position <o>+1 and has a length of <l>.
If the length <l> is not specified, the field is processed for all positions between <o> and the end of the field.
- With some statements, the offset and length details may be given as variables.
- The plus sign (+) must NOT be preceded or followed by any spaces when specifying a sub-field.