LENGTH_SPLIT SAP Method Splits lenght into numeric value and unit









Below is documentation, parameters and attributes of ABAP Method LENGTH_SPLIT within SAP class CL_CHTMLB_CONFIG_UTILITY. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_CHTMLB_CONFIG_UTILITY into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method LENGTH_SPLIT can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method LENGTH_SPLIT

.

NameTypeData TypeDescriptionDefault Value
IV_CORRECT_MINOR_FLAWSImportingTYPE
ABAP_BOOL
corrects minor flaws
IV_LENGTHImportingTYPE
STRING
EV_NUMERIC_PARTExportingTYPE
INT4
Numeric part
EV_UNIT_PARTExportingTYPE
TEXT2
Unit part



Exceptions of Method LENGTH_SPLIT

EV_NUMERIC_PARTExportingTYPE
INT4Numeric partEV_UNIT_PARTExportingTYPE
TEXT2Unit partUNSPECIFIC_FORMAT_ERROR - Unspecific Format Error

Example ABAP coding


DATA: lv_EV_NUMERIC_PART TYPE INT4,
lv_EV_UNIT_PART TYPE TEXT2,
lv_IV_CORRECT_MINOR_FLAWS TYPE ABAP_BOOL,
lv_IV_LENGTH TYPE STRING,
lv_other TYPE c.

CALL METHOD CL_CHTMLB_CONFIG_UTILITY=>LENGTH_SPLIT(
EXPORTING
IV_CORRECT_MINOR_FLAWS = lv_IV_CORRECT_MINOR_FLAWS
IV_LENGTH = lv_IV_LENGTH
IMPORTING
EV_NUMERIC_PART = lv_EV_NUMERIC_PART
EV_UNIT_PART = lv_EV_UNIT_PART ).

Links to Related Class(s)

CL_CHTML...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!