SAP GN_COLLECTIVE_RUN_EXECUTE Function Module for NOTRANSL: Fakturasammellauf durchführen
GN_COLLECTIVE_RUN_EXECUTE is a standard gn collective run execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Fakturasammellauf durchführen 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 gn collective run execute FM, simply by entering the name GN_COLLECTIVE_RUN_EXECUTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: V60P
Program Name: SAPLV60P
Main Program: SAPLV60P
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GN_COLLECTIVE_RUN_EXECUTE 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 'GN_COLLECTIVE_RUN_EXECUTE'"NOTRANSL: Fakturasammellauf durchführen.
EXPORTING
V60P_INPUT_RV60A = "
* V60P_INPUT_SMART = 'F' "
* V60P_INPUT_SAMMG = "Group
* ID_UTASY = ' ' "
* ID_UTSWL = ' ' "
* ID_UTSNL = ' ' "
* ID_NO_NEW_RUN = ' ' "
* ID_INVOICE_LIST = ' ' "
IMPORTING
V60P_OUTPUT_VBSK = "
TABLES
GN_INPUT_VKDFIF = "Billing Index
V60P_OUTPUT_VBFS = "
V60P_OUTPUT_VBSS = "
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_SAPLV60P_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_002 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_003 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_004 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_005 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_006 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_007 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_008 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_009 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_010 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_011 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_012 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_013 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_018 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLV60P_019 DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING Parameters details for GN_COLLECTIVE_RUN_EXECUTE
V60P_INPUT_RV60A -
Data type: RV60AOptional: No
Call by Reference: No ( called with pass by value option)
V60P_INPUT_SMART -
Data type: VBSK-SMARTDefault: 'F'
Optional: Yes
Call by Reference: No ( called with pass by value option)
V60P_INPUT_SAMMG - Group
Data type: VBSK-SAMMGOptional: Yes
Call by Reference: No ( called with pass by value option)
ID_UTASY -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_UTSWL -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_UTSNL -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_NO_NEW_RUN -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_INVOICE_LIST -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GN_COLLECTIVE_RUN_EXECUTE
V60P_OUTPUT_VBSK -
Data type: VBSKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GN_COLLECTIVE_RUN_EXECUTE
GN_INPUT_VKDFIF - Billing Index
Data type: VKDFIFGNOptional: No
Call by Reference: Yes
V60P_OUTPUT_VBFS -
Data type: VBFSOptional: No
Call by Reference: No ( called with pass by value option)
V60P_OUTPUT_VBSS -
Data type: VBSSOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GN_COLLECTIVE_RUN_EXECUTE 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: | ||||
| lt_gn_input_vkdfif | TYPE STANDARD TABLE OF VKDFIFGN, " | |||
| lv_v60p_input_rv60a | TYPE RV60A, " | |||
| lv_v60p_output_vbsk | TYPE VBSK, " | |||
| lv_v60p_input_smart | TYPE VBSK-SMART, " 'F' | |||
| lt_v60p_output_vbfs | TYPE STANDARD TABLE OF VBFS, " | |||
| lv_v60p_input_sammg | TYPE VBSK-SAMMG, " | |||
| lt_v60p_output_vbss | TYPE STANDARD TABLE OF VBSS, " | |||
| lv_id_utasy | TYPE VBSS, " ' ' | |||
| lv_id_utswl | TYPE VBSS, " ' ' | |||
| lv_id_utsnl | TYPE VBSS, " ' ' | |||
| lv_id_no_new_run | TYPE VBSS, " ' ' | |||
| lv_id_invoice_list | TYPE VBSS. " SPACE |
|   CALL FUNCTION 'GN_COLLECTIVE_RUN_EXECUTE' "NOTRANSL: Fakturasammellauf durchführen |
| EXPORTING | ||
| V60P_INPUT_RV60A | = lv_v60p_input_rv60a | |
| V60P_INPUT_SMART | = lv_v60p_input_smart | |
| V60P_INPUT_SAMMG | = lv_v60p_input_sammg | |
| ID_UTASY | = lv_id_utasy | |
| ID_UTSWL | = lv_id_utswl | |
| ID_UTSNL | = lv_id_utsnl | |
| ID_NO_NEW_RUN | = lv_id_no_new_run | |
| ID_INVOICE_LIST | = lv_id_invoice_list | |
| IMPORTING | ||
| V60P_OUTPUT_VBSK | = lv_v60p_output_vbsk | |
| TABLES | ||
| GN_INPUT_VKDFIF | = lt_gn_input_vkdfif | |
| V60P_OUTPUT_VBFS | = lt_v60p_output_vbfs | |
| V60P_OUTPUT_VBSS | = lt_v60p_output_vbss | |
| . " GN_COLLECTIVE_RUN_EXECUTE | ||
ABAP code using 7.40 inline data declarations to call FM GN_COLLECTIVE_RUN_EXECUTE
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.| "SELECT single SMART FROM VBSK INTO @DATA(ld_v60p_input_smart). | ||||
| DATA(ld_v60p_input_smart) | = 'F'. | |||
| "SELECT single SAMMG FROM VBSK INTO @DATA(ld_v60p_input_sammg). | ||||
| DATA(ld_id_utasy) | = ' '. | |||
| DATA(ld_id_utswl) | = ' '. | |||
| DATA(ld_id_utsnl) | = ' '. | |||
| DATA(ld_id_no_new_run) | = ' '. | |||
| DATA(ld_id_invoice_list) | = ' '. | |||
Search for further information about these or an SAP related objects