SAP EHPRC_CP_LB33_NORM_VALUE_CONV Function Module for Convert float value into quantity with fixed length and decimal places
EHPRC_CP_LB33_NORM_VALUE_CONV is a standard ehprc cp lb33 norm value conv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert float value into quantity with fixed length and decimal places processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ehprc cp lb33 norm value conv FM, simply by entering the name EHPRC_CP_LB33_NORM_VALUE_CONV into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHPRC_CP_LB33
Program Name: SAPLEHPRC_CP_LB33
Main Program: SAPLEHPRC_CP_LB33
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EHPRC_CP_LB33_NORM_VALUE_CONV pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'EHPRC_CP_LB33_NORM_VALUE_CONV'"Convert float value into quantity with fixed length and decimal places.
EXPORTING
I_VALUE = "Normalized proportion or weight value of a declarable substance
I_UNIT = "Unit of Measurement
IS_DECL = "CP: Buffer structure for declareable substances
* I_ROW = "
* I_FIELD_NAME = "
* I_UNIT_TO = "Unit of Measurement
* I_FLG_UNIT_TO = "X: Convert form i_unit to i_unit_to
IMPORTING
E_VALUE = "Converted value
E_UNIT = "Base Unit of Measure
ET_MESSAGE = "CP: Message table
E_FLG_ERROR = "Truth Value
IMPORTING Parameters details for EHPRC_CP_LB33_NORM_VALUE_CONV
I_VALUE - Normalized proportion or weight value of a declarable substance
Data type: FOptional: No
Call by Reference: Yes
I_UNIT - Unit of Measurement
Data type: MSEHIOptional: No
Call by Reference: Yes
IS_DECL - CP: Buffer structure for declareable substances
Data type: EHPRCS_DECSUBOptional: No
Call by Reference: Yes
I_ROW -
Data type: IOptional: Yes
Call by Reference: Yes
I_FIELD_NAME -
Data type: COptional: Yes
Call by Reference: Yes
I_UNIT_TO - Unit of Measurement
Data type: MSEHIOptional: Yes
Call by Reference: Yes
I_FLG_UNIT_TO - X: Convert form i_unit to i_unit_to
Data type: ESEBOOLEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EHPRC_CP_LB33_NORM_VALUE_CONV
E_VALUE - Converted value
Data type: POptional: No
Call by Reference: Yes
E_UNIT - Base Unit of Measure
Data type: MEINSOptional: No
Call by Reference: Yes
ET_MESSAGE - CP: Message table
Data type: EHPRCT_MESSAGESOptional: No
Call by Reference: Yes
E_FLG_ERROR - Truth Value
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHPRC_CP_LB33_NORM_VALUE_CONV Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_e_value | TYPE P, " | |||
lv_i_value | TYPE F, " | |||
lv_e_unit | TYPE MEINS, " | |||
lv_i_unit | TYPE MSEHI, " | |||
lv_is_decl | TYPE EHPRCS_DECSUB, " | |||
lv_et_message | TYPE EHPRCT_MESSAGES, " | |||
lv_i_row | TYPE I, " | |||
lv_e_flg_error | TYPE ESEBOOLE, " | |||
lv_i_field_name | TYPE C, " | |||
lv_i_unit_to | TYPE MSEHI, " | |||
lv_i_flg_unit_to | TYPE ESEBOOLE. " |
  CALL FUNCTION 'EHPRC_CP_LB33_NORM_VALUE_CONV' "Convert float value into quantity with fixed length and decimal places |
EXPORTING | ||
I_VALUE | = lv_i_value | |
I_UNIT | = lv_i_unit | |
IS_DECL | = lv_is_decl | |
I_ROW | = lv_i_row | |
I_FIELD_NAME | = lv_i_field_name | |
I_UNIT_TO | = lv_i_unit_to | |
I_FLG_UNIT_TO | = lv_i_flg_unit_to | |
IMPORTING | ||
E_VALUE | = lv_e_value | |
E_UNIT | = lv_e_unit | |
ET_MESSAGE | = lv_et_message | |
E_FLG_ERROR | = lv_e_flg_error | |
. " EHPRC_CP_LB33_NORM_VALUE_CONV |
ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_LB33_NORM_VALUE_CONV
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects