Ansicht
Dokumentation

ABENLENGTH_FUNCTIONS_ARGS - LENGTH FUNCTIONS ARGS

ABENLENGTH_FUNCTIONS_ARGS - LENGTH FUNCTIONS ARGS

rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

- char_off

This built-in length function has a named character-like argument.

... char_off( val = text add = pos $[off = off$] ) ...

Effect

The function returns the offset of the character in text that is pos places away from the character in the offset specified in off. The default value for off is 0. text is a character-like expression position. pos and off are numeric expression positions with the type i.

This function can be specified in general and numeric expression positions. The return value has the type i.

The value of pos can be positive and negative and describes the places to the right or on the left accordingly. If pos identifies a position outside of text, the function returns the value -1. If off is greater than the length of text, an exception of the class CX_SY_RANGE_OUT_OF_BOUNDS is raised.

Note

The function char_off was suitable for finding the correct offsets of characters in non-Unicode double-byte systems.

The result of the following function call is 7.






General Data in Customer Master   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 1840 Date: 20240427 Time: 005531     sap01-206 ( 33 ms )