SAP J_7L_READ_PACK Function Module for NOTRANSL: REA Verpackungsverwaltung: Lesen des Datenobjekts Verpackung









J_7L_READ_PACK is a standard j 7l read pack 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 Verpackungsverwaltung: Lesen des Datenobjekts Verpackung 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 pack FM, simply by entering the name J_7L_READ_PACK into the relevant SAP transaction such as SE37 or SE38.

Function Group: J7LPACK
Program Name: SAPLJ7LPACK
Main Program: SAPLJ7LPACK
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function J_7L_READ_PACK 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_PACK'"NOTRANSL: REA Verpackungsverwaltung: Lesen des Datenobjekts Verpackung
EXPORTING
I_VRPNR = "Packaging Number
* I_VARIANTE = "
* 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 = ' ' "Lock Read Packing for Change

TABLES
* O_V01 = "
* O_V01T = "
* O_V02 = "Packaging Master: Fraction Assignment
* O_V03 = "Packaging Master: Recycling Partner Assignment
* O_V08 = "Packaging Master: Fraction - Recycling Partner Assignment
* O_M11 = "
* O_MM_CLIENT_DATA = "Material Data at Client Level
* O_MM_UNITSOFMEASURE = "Units of Measure
RETURN = "Return Code

EXCEPTIONS
READ_ERROR = 1
.



IMPORTING Parameters details for J_7L_READ_PACK

I_VRPNR - Packaging Number

Data type: J_7LV01-VRPNR
Optional: No
Call by Reference: Yes

I_VARIANTE -

Data type: J_7LVARIANTE
Optional: Yes
Call by Reference: Yes

I_DATAB - Date from or Date within Interval

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_DATBI - Date To

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_FLG_BUFFER_ON - Use of Internal Data Buffer

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_FLG_ENQUE_PACK - Lock Read Packing for Change

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for J_7L_READ_PACK

O_V01 -

Data type: J_7LV01
Optional: Yes
Call by Reference: Yes

O_V01T -

Data type: J_7LV01T
Optional: Yes
Call by Reference: Yes

O_V02 - Packaging Master: Fraction Assignment

Data type: J_7LV02
Optional: Yes
Call by Reference: Yes

O_V03 - Packaging Master: Recycling Partner Assignment

Data type: J_7LV03
Optional: Yes
Call by Reference: Yes

O_V08 - Packaging Master: Fraction - Recycling Partner Assignment

Data type: J_7LV08
Optional: Yes
Call by Reference: Yes

O_M11 -

Data type: J_7LM11
Optional: Yes
Call by Reference: No ( called with pass by value option)

O_MM_CLIENT_DATA - Material Data at Client Level

Data type: BAPI_MARA_GA
Optional: Yes
Call by Reference: Yes

O_MM_UNITSOFMEASURE - Units of Measure

Data type: BAPI_MARM_GA
Optional: Yes
Call by Reference: Yes

RETURN - Return Code

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

READ_ERROR - Read Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for J_7L_READ_PACK 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_v01  TYPE STANDARD TABLE OF J_7LV01, "   
lv_i_vrpnr  TYPE J_7LV01-VRPNR, "   
lv_read_error  TYPE J_7LV01, "   
lt_o_v01t  TYPE STANDARD TABLE OF J_7LV01T, "   
lv_i_variante  TYPE J_7LVARIANTE, "   
lt_o_v02  TYPE STANDARD TABLE OF J_7LV02, "   
lv_i_datab  TYPE SY-DATUM, "   
lt_o_v03  TYPE STANDARD TABLE OF J_7LV03, "   
lv_i_datbi  TYPE SY-DATUM, "   
lt_o_v08  TYPE STANDARD TABLE OF J_7LV08, "   
lv_i_flg_buffer_on  TYPE C, "   SPACE
lt_o_m11  TYPE STANDARD TABLE OF J_7LM11, "   
lv_i_flg_enque_pack  TYPE C, "   SPACE
lt_o_mm_client_data  TYPE STANDARD TABLE OF BAPI_MARA_GA, "   
lt_o_mm_unitsofmeasure  TYPE STANDARD TABLE OF BAPI_MARM_GA, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'J_7L_READ_PACK'  "NOTRANSL: REA Verpackungsverwaltung: Lesen des Datenobjekts Verpackung
    EXPORTING
         I_VRPNR = lv_i_vrpnr
         I_VARIANTE = lv_i_variante
         I_DATAB = lv_i_datab
         I_DATBI = lv_i_datbi
         I_FLG_BUFFER_ON = lv_i_flg_buffer_on
         I_FLG_ENQUE_PACK = lv_i_flg_enque_pack
    TABLES
         O_V01 = lt_o_v01
         O_V01T = lt_o_v01t
         O_V02 = lt_o_v02
         O_V03 = lt_o_v03
         O_V08 = lt_o_v08
         O_M11 = lt_o_m11
         O_MM_CLIENT_DATA = lt_o_mm_client_data
         O_MM_UNITSOFMEASURE = lt_o_mm_unitsofmeasure
         RETURN = lt_return
    EXCEPTIONS
        READ_ERROR = 1
. " J_7L_READ_PACK




ABAP code using 7.40 inline data declarations to call FM J_7L_READ_PACK

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 VRPNR FROM J_7LV01 INTO @DATA(ld_i_vrpnr).
 
 
 
 
 
"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) = ' '.
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!