Ansicht
Dokumentation

/SEHS/C147_UNDERSCORE_PROTECT - EHS: Replace all Occurrences of '_' with '#_' in a String

/SEHS/C147_UNDERSCORE_PROTECT - EHS: Replace all Occurrences of '_' with '#_' in a String

ROGBILLS - Synchronize billing plans   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module replaces all instances of '_' in a string with string '#_'. (You need this functionality, if you want to use a LIKE operator in a SELECT statement and want to hide character "_". (Otherwise it would be a wildcard). You can now write
SELECT * FROM
WHERE LIKE E_FIELD ESCAPE '#'.
...
ENDSELECT.

Field I_FIELD may not contain character "@"! Otherwise an exception is triggered. E_FIELD must be large enough to accept the result. Otherwise an exception is triggered.

Example

-

Notes

-

Further information

-





Parameters

E_FIELD
I_FIELD

Exceptions

E_FIELD_TOO_SHORT
OTHER_ERROR

Function Group

S/SAPLC147

General Material Data   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 974 Date: 20240425 Time: 090340     sap01-206 ( 25 ms )