Ansicht
Dokumentation

ABENDATA_PROCESS_FIELDS_ABEXA - DATA PROCESS FIELDS ABEXA

ABENDATA_PROCESS_FIELDS_ABEXA - DATA PROCESS FIELDS ABEXA

ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Substrings

This example demonstrates how substrings can be accessed.

Source Code

Execute

Description

In the first part, the minutes of a time field are selected by specifying an offset. Then the minutes and seconds are set to their initial values by specifying an offset in the CLEAR statement.

In the second part, the five digit sequence 78901 from the field f2 is replaced with DEFGH from f1 by specifying offsets and lengths.

In the third part, assignments are used. First, the content of f1 is assigned to f2 without offset specifications. The same is then done with offsets and lengths for f1. The next three assignments overwrite the content of f2 with an offset of 2. Note that f2 is padded on the right with blanks, in accordance with the conversion rule for source type c.

In the fourth part, the WRITE TO statement is used. The first six places of the field number are written to the last 12 places of the string field as left-aligned, centered, and right-aligned places.






Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 1391 Date: 20240425 Time: 225434     sap01-206 ( 28 ms )