SAP J_7L_READ_PACKGROUP Function Module for NOTRANSL: REA V.gruppenverwaltung: Lesen des Datenobjekts Verpackungsgrupp
J_7L_READ_PACKGROUP is a standard j 7l read packgroup 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 V.gruppenverwaltung: Lesen des Datenobjekts Verpackungsgrupp 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 read packgroup FM, simply by entering the name J_7L_READ_PACKGROUP into the relevant SAP transaction such as SE37 or SE38.
Function Group: J7LPACK_GROUP
Program Name: SAPLJ7LPACK_GROUP
Main Program: SAPLJ7LPACK_GROUP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_7L_READ_PACKGROUP 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_READ_PACKGROUP'"NOTRANSL: REA V.gruppenverwaltung: Lesen des Datenobjekts Verpackungsgrupp.
EXPORTING
I_VPGRP = "Packaging Group
* I_DATAB = "Date from or Date within Interval
* I_DATBI = "Date To
* I_FLG_BUFFER_ON = ' ' "Use of Internal Data Buffer
* I_FLG_ENQUE_PACK_GROUP = ' ' "Generic Type
TABLES
* O_V04 = "REA Packaging Groups: General Data
* O_V05 = "REA Packaging Master Data: Packaging/Packaging Group Assign.
* O_V07 = "REA Packaging Groups: Recycling Partner-Dep. Packaging Data
* O_M11 = "REA Article Master: Declaration Key
RETURN = "Return Code
EXCEPTIONS
READ_ERROR = 1
IMPORTING Parameters details for J_7L_READ_PACKGROUP
I_VPGRP - Packaging Group
Data type: J_7LV04-VPGRPOptional: No
Call by Reference: No ( called with pass by value option)
I_DATAB - Date from or Date within Interval
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATBI - Date To
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_BUFFER_ON - Use of Internal Data Buffer
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ENQUE_PACK_GROUP - Generic Type
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for J_7L_READ_PACKGROUP
O_V04 - REA Packaging Groups: General Data
Data type: J_7LV04Optional: Yes
Call by Reference: Yes
O_V05 - REA Packaging Master Data: Packaging/Packaging Group Assign.
Data type: J_7LV05Optional: Yes
Call by Reference: Yes
O_V07 - REA Packaging Groups: Recycling Partner-Dep. Packaging Data
Data type: J_7LV07Optional: Yes
Call by Reference: Yes
O_M11 - REA Article Master: Declaration Key
Data type: J_7LM11Optional: Yes
Call by Reference: Yes
RETURN - Return Code
Data type: BAPIRET2Optional: No
Call by Reference: Yes
EXCEPTIONS details
READ_ERROR - Read Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for J_7L_READ_PACKGROUP 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_o_v04 | TYPE STANDARD TABLE OF J_7LV04, " | |||
| lv_i_vpgrp | TYPE J_7LV04-VPGRP, " | |||
| lv_read_error | TYPE J_7LV04, " | |||
| lt_o_v05 | TYPE STANDARD TABLE OF J_7LV05, " | |||
| lv_i_datab | TYPE SY-DATUM, " | |||
| lt_o_v07 | TYPE STANDARD TABLE OF J_7LV07, " | |||
| lv_i_datbi | TYPE SY-DATUM, " | |||
| lt_o_m11 | TYPE STANDARD TABLE OF J_7LM11, " | |||
| lv_i_flg_buffer_on | TYPE C, " SPACE | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_flg_enque_pack_group | TYPE C. " SPACE |
|   CALL FUNCTION 'J_7L_READ_PACKGROUP' "NOTRANSL: REA V.gruppenverwaltung: Lesen des Datenobjekts Verpackungsgrupp |
| EXPORTING | ||
| I_VPGRP | = lv_i_vpgrp | |
| I_DATAB | = lv_i_datab | |
| I_DATBI | = lv_i_datbi | |
| I_FLG_BUFFER_ON | = lv_i_flg_buffer_on | |
| I_FLG_ENQUE_PACK_GROUP | = lv_i_flg_enque_pack_group | |
| TABLES | ||
| O_V04 | = lt_o_v04 | |
| O_V05 | = lt_o_v05 | |
| O_V07 | = lt_o_v07 | |
| O_M11 | = lt_o_m11 | |
| RETURN | = lt_return | |
| EXCEPTIONS | ||
| READ_ERROR = 1 | ||
| . " J_7L_READ_PACKGROUP | ||
ABAP code using 7.40 inline data declarations to call FM J_7L_READ_PACKGROUP
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 VPGRP FROM J_7LV04 INTO @DATA(ld_i_vpgrp). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_datab). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_datbi). | ||||
| DATA(ld_i_flg_buffer_on) | = ' '. | |||
| DATA(ld_i_flg_enque_pack_group) | = ' '. | |||
Search for further information about these or an SAP related objects