SAP J_1I7_USEREXIT_SERGRP_DETERM Function Module for User exit for determining the sereis group
J_1I7_USEREXIT_SERGRP_DETERM is a standard j 1i7 userexit sergrp determ SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User exit for determining the sereis group 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 j 1i7 userexit sergrp determ FM, simply by entering the name J_1I7_USEREXIT_SERGRP_DETERM into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1I7
Program Name: SAPLJ1I7
Main Program: SAPLJ1I7
Appliation area: Z
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_1I7_USEREXIT_SERGRP_DETERM 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 'J_1I7_USEREXIT_SERGRP_DETERM'"User exit for determining the sereis group.
EXPORTING
* SRGRP = "
* VGBEL = "Document number of the reference document
* MBLNR = "
* MJAHR = "
* VBELN = "
* TRNMODE = "
* VKORG = "Sales Organization
* VTWEG = "Distribution Channel
* SPART = "Division
* VSTEL = "Shipping point/receiving point
IMPORTING
SRGRP = "
IMPORTING Parameters details for J_1I7_USEREXIT_SERGRP_DETERM
SRGRP -
Data type: J_1IEXCHDR-SRGRPOptional: Yes
Call by Reference: No ( called with pass by value option)
VGBEL - Document number of the reference document
Data type: VBRP-VGBELOptional: Yes
Call by Reference: No ( called with pass by value option)
MBLNR -
Data type: MSEG-MBLNROptional: Yes
Call by Reference: No ( called with pass by value option)
MJAHR -
Data type: MSEG-MJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
VBELN -
Data type: LIKP-VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
TRNMODE -
Data type: J_1IRG23D-STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
VKORG - Sales Organization
Data type: VBRK-VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
VTWEG - Distribution Channel
Data type: VBRK-VTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
SPART - Division
Data type: VBRK-SPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
VSTEL - Shipping point/receiving point
Data type: VBRP-VSTELOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_1I7_USEREXIT_SERGRP_DETERM
SRGRP -
Data type: J_1IEXCHDR-SRGRPOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_1I7_USEREXIT_SERGRP_DETERM 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_srgrp | TYPE J_1IEXCHDR-SRGRP, " | |||
| lv_srgrp | TYPE J_1IEXCHDR-SRGRP, " | |||
| lv_vgbel | TYPE VBRP-VGBEL, " | |||
| lv_mblnr | TYPE MSEG-MBLNR, " | |||
| lv_mjahr | TYPE MSEG-MJAHR, " | |||
| lv_vbeln | TYPE LIKP-VBELN, " | |||
| lv_trnmode | TYPE J_1IRG23D-STATUS, " | |||
| lv_vkorg | TYPE VBRK-VKORG, " | |||
| lv_vtweg | TYPE VBRK-VTWEG, " | |||
| lv_spart | TYPE VBRK-SPART, " | |||
| lv_vstel | TYPE VBRP-VSTEL. " |
|   CALL FUNCTION 'J_1I7_USEREXIT_SERGRP_DETERM' "User exit for determining the sereis group |
| EXPORTING | ||
| SRGRP | = lv_srgrp | |
| VGBEL | = lv_vgbel | |
| MBLNR | = lv_mblnr | |
| MJAHR | = lv_mjahr | |
| VBELN | = lv_vbeln | |
| TRNMODE | = lv_trnmode | |
| VKORG | = lv_vkorg | |
| VTWEG | = lv_vtweg | |
| SPART | = lv_spart | |
| VSTEL | = lv_vstel | |
| IMPORTING | ||
| SRGRP | = lv_srgrp | |
| . " J_1I7_USEREXIT_SERGRP_DETERM | ||
ABAP code using 7.40 inline data declarations to call FM J_1I7_USEREXIT_SERGRP_DETERM
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 SRGRP FROM J_1IEXCHDR INTO @DATA(ld_srgrp). | ||||
| "SELECT single SRGRP FROM J_1IEXCHDR INTO @DATA(ld_srgrp). | ||||
| "SELECT single VGBEL FROM VBRP INTO @DATA(ld_vgbel). | ||||
| "SELECT single MBLNR FROM MSEG INTO @DATA(ld_mblnr). | ||||
| "SELECT single MJAHR FROM MSEG INTO @DATA(ld_mjahr). | ||||
| "SELECT single VBELN FROM LIKP INTO @DATA(ld_vbeln). | ||||
| "SELECT single STATUS FROM J_1IRG23D INTO @DATA(ld_trnmode). | ||||
| "SELECT single VKORG FROM VBRK INTO @DATA(ld_vkorg). | ||||
| "SELECT single VTWEG FROM VBRK INTO @DATA(ld_vtweg). | ||||
| "SELECT single SPART FROM VBRK INTO @DATA(ld_spart). | ||||
| "SELECT single VSTEL FROM VBRP INTO @DATA(ld_vstel). | ||||
Search for further information about these or an SAP related objects