Menu

SAP Function Module WB2_CALCULATE_PROFIT55

The Function Module WB2_CALCULATE_PROFIT55 () is a standard Function Module in SAP ERP and is part of the function group WB2_PROFIT_SIM_CALC_FUNC within the package WB2B.

Technical Information

Function Module WB2_CALCULATE_PROFIT55
Short Text
Function Group WB2_PROFIT_SIM_CALC_FUNC
Package WB2B
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ASSOCIATION TYPE C If association exists, 'X'
I_DOCUMENT TYPE WB2_DOCUMENT Document number
I_DOC_TYPE TYPE WB2_DOC_TYPE Document type
I_ITEM TYPE WB2_N2M_ITEM Item number
I_LIKP TYPE WB2_LIKP_STAB Delivery document header data
I_LIPS TYPE WB2_LIPS_STAB Delivery document item data
I_READ_EX TYPE C '1' Indicator of exchange rate
I_VBAK TYPE WB2_VBAK_STAB Sales document header data
I_VBAP TYPE WB2_VBAP_STAB Sales document item data
I_VBRK TYPE WB2_VBRK_STAB Billing document haeder data
I_VBRP TYPE WB2_VBRP_STAB Billing document item data

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
E_REF_FIELD TYPE WAERS Currency Key
E_VALUE TYPE WB2B_WERTV8 Net value for Open status value

Changing Parameters

These are the CHANGING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
I_BASE_CURR TYPE WAERK Currency of sales document
I_BASE_RATE TYPE UKURS_CURR Exchange rate
I_BASE_TYPE TYPE KURST_CURR Exchange rate type

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
T_EKKO LIKE EKKO Purchasing Document Header
T_EKPO2 LIKE EKPO Purchasing Document Item
T_KOMLFK LIKE KOMLFK Comm. Structure: Vendor Billing Doc. Header
T_KOMV LIKE KOMV Pricing Communications-Condition Record
T_PROFIT_ITEM LIKE WB2_PROFIT_CALC_WITH_POS2 Trading-Kontrakt:
T_TPROF_SIM_TYPE LIKE TPROF_SIM_TYPE Profit Simulation Type
T_XKOMLFK LIKE KOMLFK Comm. Structure: Vendor Billing Doc. Header
T_XKOMLFP LIKE KOMLFP Vendor billing document: billing document items
T_XKOMV LIKE KOMV Pricing Communications-Condition Record
XKOMV LIKE KOMV Pricing Communications-Condition Record
XKOMVE LIKE KOMV Pricing Communications-Condition Record

Exceptions

This function module does not define any Exceptions.