Fonction SAP WB2_GET_OPEN_VOL_AND_AMOUNT - Trading contract: Open quantity calculation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ALV C C 0 ' ' X
I_CALL_FROM C C 0 ' ' X '1': Mass processing
I_READ_DB C C 0 ' ' X
I_TKONN TKONN C 10 rading contract: Trading contract number

Paramètre Reférence Long. Facultatif Description
T_KOMWBHI KOMWBHI 1744 X Trading Contract: Communication Structure, Item Data
T_KOMWBHK KOMWBHK 1539 X Trading Contract: Communication Structure Header Data
T_STATUS_CALC WB2_STATUS_CALC_WITH_POS 361 X Trading Contract: Open Order/Delivery Control

Exception Description
CALCULATION_ERROR
DISPLAY_ERROR
DOCUMENT_READ_ERROR

Functionality
This function module is used in the report program to set the contractstatus to complete for the final logistics indicator (transaction:WB25_COMP) internally. Based on the Trading Contract Number, Header andItems data, along with the settings in Customizing, the function modulereturns the open quantity and amount.