SAP J_7L_STUE_VERP Function Module for NOTRANSL: REA Stücklisten mit Verpackungselementen
J_7L_STUE_VERP is a standard j 7l stue verp 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: REA Stücklisten mit Verpackungselementen 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 7l stue verp FM, simply by entering the name J_7L_STUE_VERP into the relevant SAP transaction such as SE37 or SE38.
Function Group: J7LM
Program Name: SAPLJ7LM
Main Program: SAPLJ7LM
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_7L_STUE_VERP 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_7L_STUE_VERP'"NOTRANSL: REA Stücklisten mit Verpackungselementen.
EXPORTING
MATNR = "REA Article Number
* MENGE = 1 "Base Quantity in Article
* MEINS = 'ST' "
* STBOM = "Indicator: Check BOM Status
* FREIF = "Indicator: Check Task List Status 'Release' for BOMs
* STLWWH = ' ' "Ind.: Check Plant Changeover and Use only on Header Level
* VALID_FROM = "Valid-From Date
* VALID_TO = "Valid-To Date
* IN_PERSONAL = "Personalization
* SUPPRESS_MESSAGE = ' ' "
BUKRS = "
* WERKS = "
STLAN = "Bill of Material Usage
STLNR = "Bill of Materials No.
* STLAL = "Alternative BOM
* STLEV = '0' "Level in the menu
* VGKNT = "Preceding Node
* STMOD = ' ' "
IMPORTING
RETURN = "
TABLES
* J_7LKSTUE_TAB = "
* J_7LKMV_TAB = "
* J_7LKMAST_ALL_TAB = "
IMPORTING Parameters details for J_7L_STUE_VERP
MATNR - REA Article Number
Data type: J_7LM03-MATNROptional: No
Call by Reference: No ( called with pass by value option)
MENGE - Base Quantity in Article
Data type: J_7LKSTUE-MENGEDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
MEINS -
Data type: J_7LKSTUE-MEINSDefault: 'ST'
Optional: Yes
Call by Reference: No ( called with pass by value option)
STBOM - Indicator: Check BOM Status
Data type: J_7LC02-STBOMXOptional: Yes
Call by Reference: No ( called with pass by value option)
FREIF - Indicator: Check Task List Status 'Release' for BOMs
Data type: J_7LC02-FREIFXOptional: Yes
Call by Reference: No ( called with pass by value option)
STLWWH - Ind.: Check Plant Changeover and Use only on Header Level
Data type: J_7LC02-STLWWHDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
VALID_FROM - Valid-From Date
Data type: DATABOptional: Yes
Call by Reference: No ( called with pass by value option)
VALID_TO - Valid-To Date
Data type: DATBIOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_PERSONAL - Personalization
Data type: J7LR3_PERSONAL_LINEOptional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_MESSAGE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUKRS -
Data type: J_7LM03-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
WERKS -
Data type: J_7LM06-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
STLAN - Bill of Material Usage
Data type: J_7LM06-STLANOptional: No
Call by Reference: No ( called with pass by value option)
STLNR - Bill of Materials No.
Data type: J_7LM06-STLNROptional: No
Call by Reference: No ( called with pass by value option)
STLAL - Alternative BOM
Data type: J_7LM06-STLALOptional: Yes
Call by Reference: No ( called with pass by value option)
STLEV - Level in the menu
Data type: J_7LKSTUE-STLEVDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VGKNT - Preceding Node
Data type: J_7LKSTUE-VGKNTOptional: Yes
Call by Reference: No ( called with pass by value option)
STMOD -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_7L_STUE_VERP
RETURN -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for J_7L_STUE_VERP
J_7LKSTUE_TAB -
Data type: J_7LKSTUEOptional: Yes
Call by Reference: Yes
J_7LKMV_TAB -
Data type: J_7LKMVOptional: Yes
Call by Reference: Yes
J_7LKMAST_ALL_TAB -
Data type: J_7LKMASTOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for J_7L_STUE_VERP 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_matnr | TYPE J_7LM03-MATNR, " | |||
| lv_return | TYPE C, " | |||
| lt_j_7lkstue_tab | TYPE STANDARD TABLE OF J_7LKSTUE, " | |||
| lv_menge | TYPE J_7LKSTUE-MENGE, " 1 | |||
| lv_meins | TYPE J_7LKSTUE-MEINS, " 'ST' | |||
| lv_stbom | TYPE J_7LC02-STBOMX, " | |||
| lv_freif | TYPE J_7LC02-FREIFX, " | |||
| lv_stlwwh | TYPE J_7LC02-STLWWH, " ' ' | |||
| lv_valid_from | TYPE DATAB, " | |||
| lv_valid_to | TYPE DATBI, " | |||
| lv_in_personal | TYPE J7LR3_PERSONAL_LINE, " | |||
| lv_suppress_message | TYPE C, " SPACE | |||
| lv_bukrs | TYPE J_7LM03-BUKRS, " | |||
| lt_j_7lkmv_tab | TYPE STANDARD TABLE OF J_7LKMV, " | |||
| lv_werks | TYPE J_7LM06-WERKS, " | |||
| lt_j_7lkmast_all_tab | TYPE STANDARD TABLE OF J_7LKMAST, " | |||
| lv_stlan | TYPE J_7LM06-STLAN, " | |||
| lv_stlnr | TYPE J_7LM06-STLNR, " | |||
| lv_stlal | TYPE J_7LM06-STLAL, " | |||
| lv_stlev | TYPE J_7LKSTUE-STLEV, " '0' | |||
| lv_vgknt | TYPE J_7LKSTUE-VGKNT, " | |||
| lv_stmod | TYPE C. " ' ' |
|   CALL FUNCTION 'J_7L_STUE_VERP' "NOTRANSL: REA Stücklisten mit Verpackungselementen |
| EXPORTING | ||
| MATNR | = lv_matnr | |
| MENGE | = lv_menge | |
| MEINS | = lv_meins | |
| STBOM | = lv_stbom | |
| FREIF | = lv_freif | |
| STLWWH | = lv_stlwwh | |
| VALID_FROM | = lv_valid_from | |
| VALID_TO | = lv_valid_to | |
| IN_PERSONAL | = lv_in_personal | |
| SUPPRESS_MESSAGE | = lv_suppress_message | |
| BUKRS | = lv_bukrs | |
| WERKS | = lv_werks | |
| STLAN | = lv_stlan | |
| STLNR | = lv_stlnr | |
| STLAL | = lv_stlal | |
| STLEV | = lv_stlev | |
| VGKNT | = lv_vgknt | |
| STMOD | = lv_stmod | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| J_7LKSTUE_TAB | = lt_j_7lkstue_tab | |
| J_7LKMV_TAB | = lt_j_7lkmv_tab | |
| J_7LKMAST_ALL_TAB | = lt_j_7lkmast_all_tab | |
| . " J_7L_STUE_VERP | ||
ABAP code using 7.40 inline data declarations to call FM J_7L_STUE_VERP
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 MATNR FROM J_7LM03 INTO @DATA(ld_matnr). | ||||
| "SELECT single MENGE FROM J_7LKSTUE INTO @DATA(ld_menge). | ||||
| DATA(ld_menge) | = 1. | |||
| "SELECT single MEINS FROM J_7LKSTUE INTO @DATA(ld_meins). | ||||
| DATA(ld_meins) | = 'ST'. | |||
| "SELECT single STBOMX FROM J_7LC02 INTO @DATA(ld_stbom). | ||||
| "SELECT single FREIFX FROM J_7LC02 INTO @DATA(ld_freif). | ||||
| "SELECT single STLWWH FROM J_7LC02 INTO @DATA(ld_stlwwh). | ||||
| DATA(ld_stlwwh) | = ' '. | |||
| DATA(ld_suppress_message) | = ' '. | |||
| "SELECT single BUKRS FROM J_7LM03 INTO @DATA(ld_bukrs). | ||||
| "SELECT single WERKS FROM J_7LM06 INTO @DATA(ld_werks). | ||||
| "SELECT single STLAN FROM J_7LM06 INTO @DATA(ld_stlan). | ||||
| "SELECT single STLNR FROM J_7LM06 INTO @DATA(ld_stlnr). | ||||
| "SELECT single STLAL FROM J_7LM06 INTO @DATA(ld_stlal). | ||||
| "SELECT single STLEV FROM J_7LKSTUE INTO @DATA(ld_stlev). | ||||
| DATA(ld_stlev) | = '0'. | |||
| "SELECT single VGKNT FROM J_7LKSTUE INTO @DATA(ld_vgknt). | ||||
| DATA(ld_stmod) | = ' '. | |||
Search for further information about these or an SAP related objects