Ansicht
Dokumentation
/FRE/FU_MEASGR_CHECK - check of allowed order units
ABAP Short Reference Vendor Master (General Section)This documentation is copyright by SAP AG.
Functionality
This function module determines the permitted order units for a combination of location product and source location.
A default unit is determined (order unit, or the base unit of measure if not otherwise maintained). A purchase order can always be made in this unit.
Subsequently, the system checks whether the vendor permits other order units. If this is the case, the order units that are defined for the product are compared with the two unit of measure groups for the source and destination location.
The units of measure that are obtained in this way are written to the export table alongside the conversion factors. The default unit is identified as such.
Example
See the call in the function module /FRE/FU_OPM_CHECKORDERUNITS
TRY.
CALL FUNCTION '/FRE/FU_OPM_CHECK_UOMGROUPS'
EXPORTING
i_product = p_i_product
i_source = p_i_source
i_target = p_i_target
i_meins = p_l_meins
is_item = p_is_item
IMPORTING
et_valid_units = lt_valid_units.
CATCH /fre/cx_db_matnr_unknown.
CATCH /fre/cx_db_matloc_unknown.
CATCH /fre/cx_fu_no_base_unit.
CATCH /fre/cx_fu_marm_no_unit.
CATCH /fre/cx_fu_no_allowed_unit.
ENDTRY.
Notes
Further information
Parameters
ES_EXCEP_HANDLEET_VALID_UNITS
E_MEINS
I_BSTME
I_BYPASSINGBUFFER
I_MEASGRBUY
I_MEASGRSUP
I_MEINS
I_ORDER_TSTAMP
I_PROC
I_PROCESS
I_PRODUCT
I_SOURCE
I_TARGET
I_VARPUOM
Exceptions
/FRE/CX_FU/FRE/CX_FU_BADI_ERROR
/FRE/CX_FU_NO_ALLOWED_UNIT
/FRE/CX_FU_UNITS_CHECK
/FRE/CX_FU_UNITS_SOS
/FRE/CX_FU_WRONG_PARAMETER
CX_STATIC_CHECK
Function Group
/SAPLFU_UOMGeneral Material Data TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 2855 Date: 20240420 Time: 103056 sap01-206 ( 40 ms )