SAP VBDRV_DERIVATION_PERFORM Function Module for Perform Derivation
VBDRV_DERIVATION_PERFORM is a standard vbdrv derivation perform SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Perform Derivation processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for vbdrv derivation perform FM, simply by entering the name VBDRV_DERIVATION_PERFORM into the relevant SAP transaction such as SE37 or SE38.
Function Group: DRVN
Program Name: SAPLDRVN
Main Program: SAPLDRVN
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VBDRV_DERIVATION_PERFORM pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'VBDRV_DERIVATION_PERFORM'"Perform Derivation.
EXPORTING
I_KOMGR = "Derivation: Communication Block (Dialog)
* I_PUSH_COND = "Condition Record Number
* I_PUSH_KOMKR = "
* I_OBJWA = "
* I_OBJWA2 = "
* I_CURR_SENDERS = "X: Consider Current Sender Only in Derivation
IMPORTING
E_DRVNO = "Derivation: Number of derivation, key to log file
E_STATUS = "Derivation: Status of derivation
EXCEPTIONS
NO_DERIVATION = 1 CUST_EXIT_CANCELLED_DERIVATION = 2 PARAMETER_ERROR = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLDRVN_002 Shipping Approval: Text Exit in Monitor
EXIT_SAPLDRVN_003 Shipping Approval: Follow-Up Exit
IMPORTING Parameters details for VBDRV_DERIVATION_PERFORM
I_KOMGR - Derivation: Communication Block (Dialog)
Data type: KOMGROptional: No
Call by Reference: No ( called with pass by value option)
I_PUSH_COND - Condition Record Number
Data type: KNUMHOptional: Yes
Call by Reference: Yes
I_PUSH_KOMKR -
Data type: KOMKROptional: Yes
Call by Reference: Yes
I_OBJWA -
Data type:Optional: Yes
Call by Reference: Yes
I_OBJWA2 -
Data type:Optional: Yes
Call by Reference: Yes
I_CURR_SENDERS - X: Consider Current Sender Only in Derivation
Data type: KZCUSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for VBDRV_DERIVATION_PERFORM
E_DRVNO - Derivation: Number of derivation, key to log file
Data type: DRVNOOptional: No
Call by Reference: Yes
E_STATUS - Derivation: Status of derivation
Data type: DRVSTATOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DERIVATION -
Data type:Optional: No
Call by Reference: Yes
CUST_EXIT_CANCELLED_DERIVATION -
Data type:Optional: No
Call by Reference: Yes
PARAMETER_ERROR - Call with Errors
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for VBDRV_DERIVATION_PERFORM Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_drvno | TYPE DRVNO, " | |||
| lv_i_komgr | TYPE KOMGR, " | |||
| lv_no_derivation | TYPE KOMGR, " | |||
| lv_e_status | TYPE DRVSTAT, " | |||
| lv_i_push_cond | TYPE KNUMH, " | |||
| lv_cust_exit_cancelled_derivation | TYPE KNUMH, " | |||
| lv_i_push_komkr | TYPE KOMKR, " | |||
| lv_parameter_error | TYPE KOMKR, " | |||
| lv_i_objwa | TYPE KOMKR, " | |||
| lv_i_objwa2 | TYPE KOMKR, " | |||
| lv_i_curr_senders | TYPE KZCUS. " |
|   CALL FUNCTION 'VBDRV_DERIVATION_PERFORM' "Perform Derivation |
| EXPORTING | ||
| I_KOMGR | = lv_i_komgr | |
| I_PUSH_COND | = lv_i_push_cond | |
| I_PUSH_KOMKR | = lv_i_push_komkr | |
| I_OBJWA | = lv_i_objwa | |
| I_OBJWA2 | = lv_i_objwa2 | |
| I_CURR_SENDERS | = lv_i_curr_senders | |
| IMPORTING | ||
| E_DRVNO | = lv_e_drvno | |
| E_STATUS | = lv_e_status | |
| EXCEPTIONS | ||
| NO_DERIVATION = 1 | ||
| CUST_EXIT_CANCELLED_DERIVATION = 2 | ||
| PARAMETER_ERROR = 3 | ||
| . " VBDRV_DERIVATION_PERFORM | ||
ABAP code using 7.40 inline data declarations to call FM VBDRV_DERIVATION_PERFORM
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects