SAP FKK_INV_FUNCTION_GET_OPTIONAL Function Module for
FKK_INV_FUNCTION_GET_OPTIONAL is a standard fkk inv function get optional SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fkk inv function get optional FM, simply by entering the name FKK_INV_FUNCTION_GET_OPTIONAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKKINV_SERVICE
Program Name: SAPLFKKINV_SERVICE
Main Program: SAPLFKKINV_SERVICE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_INV_FUNCTION_GET_OPTIONAL 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 'FKK_INV_FUNCTION_GET_OPTIONAL'".
EXPORTING
I_APPLK = "Application Area
* I_SET_ALL_FUNC_SWITCHABLE = ' ' "
* I_EXTENDED_LOG = 'X' "
* I_INVTRIG_TAB = "Invoicing Trigger (Table for Structure FKKINV_TRIG)
I_INV_PROCESS = "Invoicing Process
I_INV_TYPE = "Invoicing Type
I_INV_CATEGORY = "
* I_INV_FUNCTION = "Invoicing Function
* I_EXPERT_MODE = ' ' "Switch for Activation of Expert Mode for Invoicing
* I_HEADERTEXT = ' ' "
* I_INIT_FUNC = ' ' "
* I_INIT_FUNCTION_TAB = "
IMPORTING
E_FUNC_ACTIVE = "
E_SWITCH_OFF_EXPERT_MODE = "Checkbox
EXCEPTIONS
USER_ABORT = 1
IMPORTING Parameters details for FKK_INV_FUNCTION_GET_OPTIONAL
I_APPLK - Application Area
Data type: APPLK_KKOptional: No
Call by Reference: Yes
I_SET_ALL_FUNC_SWITCHABLE -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
I_EXTENDED_LOG -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_INVTRIG_TAB - Invoicing Trigger (Table for Structure FKKINV_TRIG)
Data type: FKKINV_TRIG_TABOptional: Yes
Call by Reference: Yes
I_INV_PROCESS - Invoicing Process
Data type: INV_PROCESS_KKOptional: No
Call by Reference: Yes
I_INV_TYPE - Invoicing Type
Data type: INV_TYPE_KKOptional: No
Call by Reference: Yes
I_INV_CATEGORY -
Data type: INV_CATEGORY_KKOptional: No
Call by Reference: Yes
I_INV_FUNCTION - Invoicing Function
Data type: INV_FUNCTION_KKOptional: Yes
Call by Reference: Yes
I_EXPERT_MODE - Switch for Activation of Expert Mode for Invoicing
Data type: INV_EXPERT_KKDefault: ' '
Optional: Yes
Call by Reference: Yes
I_HEADERTEXT -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_INIT_FUNC -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
I_INIT_FUNCTION_TAB -
Data type: INV_FUNCTION_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FKK_INV_FUNCTION_GET_OPTIONAL
E_FUNC_ACTIVE -
Data type: XFELDOptional: No
Call by Reference: Yes
E_SWITCH_OFF_EXPERT_MODE - Checkbox
Data type: XFELDOptional: No
Call by Reference: Yes
EXCEPTIONS details
USER_ABORT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_INV_FUNCTION_GET_OPTIONAL 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_i_applk | TYPE APPLK_KK, " | |||
| lv_user_abort | TYPE APPLK_KK, " | |||
| lv_e_func_active | TYPE XFELD, " | |||
| lv_i_set_all_func_switchable | TYPE XFELD, " ' ' | |||
| lv_i_extended_log | TYPE XFELD, " 'X' | |||
| lv_i_invtrig_tab | TYPE FKKINV_TRIG_TAB, " | |||
| lv_i_inv_process | TYPE INV_PROCESS_KK, " | |||
| lv_e_switch_off_expert_mode | TYPE XFELD, " | |||
| lv_i_inv_type | TYPE INV_TYPE_KK, " | |||
| lv_i_inv_category | TYPE INV_CATEGORY_KK, " | |||
| lv_i_inv_function | TYPE INV_FUNCTION_KK, " | |||
| lv_i_expert_mode | TYPE INV_EXPERT_KK, " ' ' | |||
| lv_i_headertext | TYPE C, " SPACE | |||
| lv_i_init_func | TYPE XFELD, " ' ' | |||
| lv_i_init_function_tab | TYPE INV_FUNCTION_TAB. " |
|   CALL FUNCTION 'FKK_INV_FUNCTION_GET_OPTIONAL' " |
| EXPORTING | ||
| I_APPLK | = lv_i_applk | |
| I_SET_ALL_FUNC_SWITCHABLE | = lv_i_set_all_func_switchable | |
| I_EXTENDED_LOG | = lv_i_extended_log | |
| I_INVTRIG_TAB | = lv_i_invtrig_tab | |
| I_INV_PROCESS | = lv_i_inv_process | |
| I_INV_TYPE | = lv_i_inv_type | |
| I_INV_CATEGORY | = lv_i_inv_category | |
| I_INV_FUNCTION | = lv_i_inv_function | |
| I_EXPERT_MODE | = lv_i_expert_mode | |
| I_HEADERTEXT | = lv_i_headertext | |
| I_INIT_FUNC | = lv_i_init_func | |
| I_INIT_FUNCTION_TAB | = lv_i_init_function_tab | |
| IMPORTING | ||
| E_FUNC_ACTIVE | = lv_e_func_active | |
| E_SWITCH_OFF_EXPERT_MODE | = lv_e_switch_off_expert_mode | |
| EXCEPTIONS | ||
| USER_ABORT = 1 | ||
| . " FKK_INV_FUNCTION_GET_OPTIONAL | ||
ABAP code using 7.40 inline data declarations to call FM FKK_INV_FUNCTION_GET_OPTIONAL
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.| DATA(ld_i_set_all_func_switchable) | = ' '. | |||
| DATA(ld_i_extended_log) | = 'X'. | |||
| DATA(ld_i_expert_mode) | = ' '. | |||
| DATA(ld_i_headertext) | = ' '. | |||
| DATA(ld_i_init_func) | = ' '. | |||
Search for further information about these or an SAP related objects