Ansicht
Dokumentation

/SEHS/C147_TOTAL_REPLACE - EHS: Replace all Occurrences of a String with a Different String

/SEHS/C147_TOTAL_REPLACE - EHS: Replace all Occurrences of a String with a Different String

Fill RESBD Structure from EBP Component Structure   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module replaces all instances of I_PATTERN in field I_FIELD with string I_REPL_STRING. The final result is contained in field E_FIELD. The complete string I_PATTERN is inserted into the field. The defined length of I_REPL_STRING is inserted into the field. The system triggers an exception, should the defined length of E_FIELD not be large enough to accept the new string. I_REPL_STRING may not contain string I_PATTERN. The system triggers an exception should this be the case.

Example

-

Notes

-

Further information

Help for ABAP command REPLACE





Parameters

E_FIELD
I_FIELD
I_PATTERN
I_REPL_STRING

Exceptions

E_FIELD_TOO_SHORT
REPL_STR_CONTAINS_PATTERN

Function Group

S/SAPLC147

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 924 Date: 20240523 Time: 051258     sap01-206 ( 34 ms )