Ansicht
Dokumentation

HR99L00_CONV_FROM_EDIT_MASK_IN - Check&Convert from any edit-mask e.g. "RR___.___.___-__"

HR99L00_CONV_FROM_EDIT_MASK_IN - Check&Convert from any edit-mask e.g. "RR___.___.___-__"

CL_GUI_FRONTEND_SERVICES - Frontend Services   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Field-input of a screen that might be formated conform a specific edit-mask, for example like

(a),,'___.___.___-__',,(contains 4 segments: '___', '___', '___', '__' separated by 2 different separators) or

(b),,'____-__.__.__' ,,(contains 4 segments: '____', '__', '__', '__' separated by 2 different separators).

It is checked if each segment-length and each separator is conform to the mask.

If the segment of the input-field (excluding leading and trailing spaces) is longer then the corresponding segment of the edit-mask then an exception raises.

If the segment of the input-field (excluding leading and trailing spaces) is shorter then the corresponding segment of the edit-mask then the segment is right-aligned and left filled up with the initial value (P_TRANSLATE_INITIAL).

Example for (a): Input '1.2.3-4' is interpreted as '001.002.003-04' and converted to '00100200304'.

Example for (b): Input '1234-24.1.64' is interpreted as '1234-24.01.64' and converted to '1234240164' .

If the field-input was done without using any separator of the edit-mask, then the it will be converted right aligned.

Example for (a): Input '1234' is interpreted as '000.000.012-34' and converted to '00000001234'.

Example for (b): Input '123424164' is interpreted as '0123-42.41.64' and converted to '0123424164' .

Example

Notes

Further information





Parameters

INPUT
OUTPUT
P_ALLOWED_CHARS
P_EDIT_MASK
P_TRANSLATE_INITIAL

Exceptions

INPUT_NOT_VALID

Function Group

HR99L00_CONVERSION_EXIT

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2171 Date: 20240605 Time: 091134     sap01-206 ( 47 ms )