The Function Module WB2_CALCULATE_PROFIT97 (Purchase subtotal calculation) is a standard Function Module in SAP ERP and is part of the function group WB2_PROFIT_SIM_CALC_FUNC2 within the package WB2B.
Function Module | WB2_CALCULATE_PROFIT97 |
Short Text | Purchase subtotal calculation |
Function Group | WB2_PROFIT_SIM_CALC_FUNC2 |
Package | WB2B |
Module Type | Normal Module |
These are the IMPORTING parameters of this function module.
Parameter Name | Type | Associated Type | Default Value | Short Text |
---|---|---|---|---|
I_DOCUMENT | TYPE | WB2_DOCUMENT | Association Management: General document number | |
I_DOC_TYPE | TYPE | WB2_DOC_TYPE | Document type | |
I_ITEM | TYPE | WB2_N2M_ITEM | Association Management: General item number | |
I_LIKP | TYPE | WB2_LIKP_STAB | Delivery Header | |
I_LIPS | TYPE | WB2_LIPS_STAB | Delivery item | |
I_SIDE | TYPE | WB2_SIDE | Side | |
I_VBAK | TYPE | WB2_VBAK_STAB | Sales order: Header | |
I_VBAP | TYPE | WB2_VBAP_STAB | Sales order: Item | |
I_VBRK | TYPE | WB2_VBRK_STAB | Billing: Header | |
I_VBRP | TYPE | WB2_VBRP_STAB | Billing: Item |
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 | General value in status display |
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 | Currency type |
These are the TABLE parameters of this function module.
Parameter Name | Type | Associated Type | Default Value | Short Text |
---|---|---|---|---|
A_DOC_FLOW1 | LIKE | N2M_ITEM_QUANS | N2M: Structure table: item quantities | |
A_DOC_FLOW2 | LIKE | N2M_PRED_SUCC | N2M: Structure table: document relation | |
T_DOC_FLOW1 | LIKE | N2M_ITEM_QUANS | N2M: Structure table: item quantities | |
T_DOC_FLOW2 | LIKE | N2M_PRED_SUCC | N2M: Structure table: document relation | |
T_EKKO | LIKE | EKKO | Purchase order header | |
T_EKPO2 | LIKE | EKPO | Purchase order item | |
T_KOMLFK | LIKE | KOMLFK | Communication structure: Vendor invoice header | |
T_KOMV | LIKE | KOMV | Pricing Communication structure | |
T_KOMWBGT | LIKE | KOMWBGT | Communication structure | |
T_PROFIT_ITEM | LIKE | WB2_PROFIT_CALC_WITH_POS2 | Trading Contract: Profit simulation for logistics documents | |
T_TPROF_SIM_TYPE | LIKE | TPROF_SIM_TYPE | Profit simulation type | |
T_XKOMLFK | LIKE | KOMLFK | Communication structure: Vendor invoice header | |
T_XKOMLFP | LIKE | KOMLFP | Vendor invoice: invoice item | |
T_XKOMV | LIKE | KOMV | Pricing Communication structure | |
XKOMV | LIKE | KOMV | Pricing Communication structure | |
XKOMVE | LIKE | KOMV | Pricing Communication structure |
This function module does not define any Exceptions.