Menu

SAP Function Module PREFERENCE_COSTING

Präferenzkalkualtion

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module PREFERENCE_COSTING (Präferenzkalkualtion) is a standard Function Module in SAP ERP and is part of the function group PREF within the package VEI.

Technical Information

Function Module PREFERENCE_COSTING
Short Text Präferenzkalkualtion
Function Group PREF
Package VEI
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
P_ALPAUF LIKE CSDATA-XFELD SPACE
P_MDMPS LIKE CSDATA-XFELD SPACE ID explosion type Space - all, X - single level
P_PWLEN LIKE STPOX-AUFST 4
P_UPDATE LIKE CSDATA-XFELD SPACE ID simulation or update Space - simu, X - upd
P_WERKS LIKE T001W-WERKS Plant in which preference is calculated
TOPMAT LIKE CSTMAT Data of BOM initial material

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
KZ_NO_CONDITION_INSERT LIKE CSDATA-XFELD
KZ_NO_MATSTAMM_UPDATE LIKE CSDATA-XFELD
W_MARC LIKE MARC MARC work area

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DATA_LOG LIKE RL0PRE_3
ERROR_LOG LIKE RL0PRE_3
K_TAB LIKE RL0PRE_4
MATCAT LIKE CSCMAT BOM item key data
STB LIKE RL0PRE_2 BOM item data
T_MATWERTE LIKE RL0PRE_1

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
FAILURE_KOMPONENTE
FAILURE_MOD_TAB Modify error in internal table
FAILURE_READ_MARC No MARC segment available
FAILURE_READ_TAB Error on access to T604x tables
HS_OPCODE_FAILURE Wrong OPCODE for HS item in table T604R
NO_PLANT Plant in table T001W not available
NO_PROCEDURE_DEFINED No procedure defined in T604V
NO_RULE_DEFINED No rule available in T604
NO_STAWN Commodity code not maintained