Menu

SAP Function Module PREFERENCE_COSTING_KMAT

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_KMAT (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_KMAT
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 Alternative Baugruppen auflösen
P_LAND1 LIKE T604WGG-LAND1 Land
P_MDMPS LIKE CSDATA-XFELD SPACE KZ Auflösungsart Space - Alles, X - einstufig
P_POSNR2 LIKE VBAP-POSNR Verkaufsbelegposition
P_PROZEN LIKE RVSEL-P_PROZEN 0 Sicherheitzuschlag in % für Baugruppe
P_PWGGR LIKE T604WGG-PWGGR Präferenzwerksgruppe
P_PWLEN LIKE STPOX-AUFST 4 Tarifsprunglänge
P_UPDATE LIKE CSDATA-XFELD SPACE KZ Simulation oder Update Space - Simu, X - Upd
P_VBELN2 LIKE VBAP-VBELN Vertriebsbelegnummer
P_WERKS LIKE T001W-WERKS Werk in dem die Präferenz kalkuliert wird
TOPMAT LIKE CSTMAT Daten des Einstiegsmaterial der Stückliste

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 Arbeitsbereich MARC

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
BG_WERTEKMAT LIKE RL0PRE_6 Präferenz KMAT Ergebnisse konfigurierbare Baugruppen
DATA_LOG LIKE RL0PRE_3
ERROR_LOG LIKE RL0PRE_3
K_TAB LIKE RL0PRE_4
MATCAT LIKE CSCMAT Keydaten der Stücklistenposition
STB LIKE RL0PRE_2 Stücklisten-Positionsdaten
T_MATWERTE LIKE RL0PRE_1

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
FAILURE_KOMPONENTE
FAILURE_MOD_TAB Fehler Modify auf interne Tabelle
FAILURE_READ_MARC Kein MARC-Segment vorhanden
FAILURE_READ_TAB Fehler beim Zugriff auf T604x Tabellen
HS_OPCODE_FAILURE Falscher OPCODE bei HS-Position in Tab. T604R
NO_PLANT Werk in Tabelle T001W nicht vorhanden
NO_PROCEDURE_DEFINED Keine Verfahren in T604V definiert
NO_RULE_DEFINED Keine Regel in T604R vorhanden
NO_STAWN Statistische Warennummer nicht gepflegt