SAP J_7L_READ_ARTICLE Function Module for NOTRANSL: REA Artikelverwaltung: Lesen des Datenobjekts Artikel









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

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



Function J_7L_READ_ARTICLE 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_ARTICLE'"NOTRANSL: REA Artikelverwaltung: Lesen des Datenobjekts Artikel
EXPORTING
I_MATNR = "Article Number
* I_BUKRS = "Company Code
* I_LAND = "Country Key
* I_VRKME = "Sales Unit
* 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_ART = ' ' "Lock Read Articles for Change

TABLES
* O_M01 = "REA Article Master: General Data
* O_M10 = "REA Article Master: Filters for Regional Processing
* O_M11 = "REA Article Master: Declaration Key
RETURN = "Return Parameters
* O_M02 = "REA Article Master: Company Code
* O_M03 = "REA Article Master: Sales Units
* O_M04 = "REA Article Master: Packaging Assignment
* O_M05 = "REA Article Master: Recycling Partner Assignment
* O_M06 = "REA Article Master: Bills of Material
* O_M07 = "REA Article Master: Referencing Company Codes/Countries
* O_M08 = "REA Article Master: Referencing Company Codes/Countries
* O_M09 = "REA Article Master: R.Partner-Depend. Data Assgmt Packaging

EXCEPTIONS
READ_ERROR = 1
.



IMPORTING Parameters details for J_7L_READ_ARTICLE

I_MATNR - Article Number

Data type: J_7LM01-MATNR
Optional: No
Call by Reference: Yes

I_BUKRS - Company Code

Data type: J_7LM02-BUKRS
Optional: Yes
Call by Reference: Yes

I_LAND - Country Key

Data type: J_7LM03-LAND1
Optional: Yes
Call by Reference: Yes

I_VRKME - Sales Unit

Data type: J_7LM03-VRKME
Optional: Yes
Call by Reference: Yes

I_VARIANTE -

Data type: J_7LM03-VARIANTE
Optional: Yes
Call by Reference: Yes

I_DATAB - Date from or Date within Interval

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

I_DATBI - Date To

Data type: DATBI
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_ART - Lock Read Articles for Change

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

TABLES Parameters details for J_7L_READ_ARTICLE

O_M01 - REA Article Master: General Data

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

O_M10 - REA Article Master: Filters for Regional Processing

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

O_M11 - REA Article Master: Declaration Key

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

RETURN - Return Parameters

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

O_M02 - REA Article Master: Company Code

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

O_M03 - REA Article Master: Sales Units

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

O_M04 - REA Article Master: Packaging Assignment

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

O_M05 - REA Article Master: Recycling Partner Assignment

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

O_M06 - REA Article Master: Bills of Material

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

O_M07 - REA Article Master: Referencing Company Codes/Countries

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

O_M08 - REA Article Master: Referencing Company Codes/Countries

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

O_M09 - REA Article Master: R.Partner-Depend. Data Assgmt Packaging

Data type: J_7LM09
Optional: Yes
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_ARTICLE 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_m01  TYPE STANDARD TABLE OF J_7LM01, "   
lv_i_matnr  TYPE J_7LM01-MATNR, "   
lv_read_error  TYPE J_7LM01, "   
lt_o_m10  TYPE STANDARD TABLE OF J_7LM10, "   
lt_o_m11  TYPE STANDARD TABLE OF J_7LM11, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_o_m02  TYPE STANDARD TABLE OF J_7LM02, "   
lv_i_bukrs  TYPE J_7LM02-BUKRS, "   
lt_o_m03  TYPE STANDARD TABLE OF J_7LM03, "   
lv_i_land  TYPE J_7LM03-LAND1, "   
lt_o_m04  TYPE STANDARD TABLE OF J_7LM04, "   
lv_i_vrkme  TYPE J_7LM03-VRKME, "   
lt_o_m05  TYPE STANDARD TABLE OF J_7LM05, "   
lv_i_variante  TYPE J_7LM03-VARIANTE, "   
lt_o_m06  TYPE STANDARD TABLE OF J_7LM06, "   
lv_i_datab  TYPE DATAB, "   
lt_o_m07  TYPE STANDARD TABLE OF J_7LM07, "   
lv_i_datbi  TYPE DATBI, "   
lt_o_m08  TYPE STANDARD TABLE OF J_7LM08, "   
lv_i_flg_buffer_on  TYPE C, "   SPACE
lt_o_m09  TYPE STANDARD TABLE OF J_7LM09, "   
lv_i_flg_enque_art  TYPE C. "   SPACE

  CALL FUNCTION 'J_7L_READ_ARTICLE'  "NOTRANSL: REA Artikelverwaltung: Lesen des Datenobjekts Artikel
    EXPORTING
         I_MATNR = lv_i_matnr
         I_BUKRS = lv_i_bukrs
         I_LAND = lv_i_land
         I_VRKME = lv_i_vrkme
         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_ART = lv_i_flg_enque_art
    TABLES
         O_M01 = lt_o_m01
         O_M10 = lt_o_m10
         O_M11 = lt_o_m11
         RETURN = lt_return
         O_M02 = lt_o_m02
         O_M03 = lt_o_m03
         O_M04 = lt_o_m04
         O_M05 = lt_o_m05
         O_M06 = lt_o_m06
         O_M07 = lt_o_m07
         O_M08 = lt_o_m08
         O_M09 = lt_o_m09
    EXCEPTIONS
        READ_ERROR = 1
. " J_7L_READ_ARTICLE




ABAP code using 7.40 inline data declarations to call FM J_7L_READ_ARTICLE

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_7LM01 INTO @DATA(ld_i_matnr).
 
 
 
 
 
 
"SELECT single BUKRS FROM J_7LM02 INTO @DATA(ld_i_bukrs).
 
 
"SELECT single LAND1 FROM J_7LM03 INTO @DATA(ld_i_land).
 
 
"SELECT single VRKME FROM J_7LM03 INTO @DATA(ld_i_vrkme).
 
 
"SELECT single VARIANTE FROM J_7LM03 INTO @DATA(ld_i_variante).
 
 
 
 
 
 
DATA(ld_i_flg_buffer_on) = ' '.
 
 
DATA(ld_i_flg_enque_art) = ' '.
 


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!