SAP J_7L_VERSIONEN_ARTIKEL Function Module for NOTRANSL: REA Preisberechnung Versionen eines Artikel
J_7L_VERSIONEN_ARTIKEL is a standard j 7l versionen artikel 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 Preisberechnung Versionen eines 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 versionen artikel FM, simply by entering the name J_7L_VERSIONEN_ARTIKEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: J7LP
Program Name: SAPLJ7LP
Main Program: SAPLJ7LP
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_7L_VERSIONEN_ARTIKEL 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_VERSIONEN_ARTIKEL'"NOTRANSL: REA Preisberechnung Versionen eines Artikel.
EXPORTING
ARTNR = "Article Number
* LANDR = "Reference Country
* FLG_MITPREISEN = 'X' "
* FLG_NURARTENTS = ' ' "
* FLG_MITKOARTS = 'X' "
* NOT_CUT_DATX = ' ' "Not in use
* PDATAB = "
* PDATBI = "
* J_7LE01_IN = "Recycling Partner Header
BUKRS = "Company Code
LAND1 = "Country
VRKME = "Sales Unit
* VARIANTE = "
ENTNR = "Recycling Partner
DATAB = "Date From
DATBI = "Date To
* RBUKR = "Reference company code
TABLES
VERSION = "
* KOART_VERSION = "
EXCEPTIONS
ARTNR_NOT_FOUND = 1 RBUKR_NOT_FOUND = 2 LANDR_NOT_FOUND = 3
IMPORTING Parameters details for J_7L_VERSIONEN_ARTIKEL
ARTNR - Article Number
Data type: J_7LM01-MATNROptional: No
Call by Reference: Yes
LANDR - Reference Country
Data type: J_7LC10-LANDROptional: Yes
Call by Reference: Yes
FLG_MITPREISEN -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
FLG_NURARTENTS -
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: Yes
FLG_MITKOARTS -
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
NOT_CUT_DATX - Not in use
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: Yes
PDATAB -
Data type: J_7LPV1-DATABOptional: Yes
Call by Reference: Yes
PDATBI -
Data type: J_7LPV1-DATBIOptional: Yes
Call by Reference: Yes
J_7LE01_IN - Recycling Partner Header
Data type: J_7LE01Optional: Yes
Call by Reference: Yes
BUKRS - Company Code
Data type: J_7LM03-BUKRSOptional: No
Call by Reference: Yes
LAND1 - Country
Data type: J_7LM03-LAND1Optional: No
Call by Reference: Yes
VRKME - Sales Unit
Data type: J_7LM03-VRKMEOptional: No
Call by Reference: Yes
VARIANTE -
Data type: J_7LM03-VARIANTEOptional: Yes
Call by Reference: Yes
ENTNR - Recycling Partner
Data type: J_7LM05-ENTNROptional: No
Call by Reference: Yes
DATAB - Date From
Data type: J_7LPV1-DATABOptional: No
Call by Reference: Yes
DATBI - Date To
Data type: J_7LPV1-DATBIOptional: No
Call by Reference: Yes
RBUKR - Reference company code
Data type: J_7LC02-RBUKROptional: Yes
Call by Reference: Yes
TABLES Parameters details for J_7L_VERSIONEN_ARTIKEL
VERSION -
Data type: J_7LKB1Optional: No
Call by Reference: Yes
KOART_VERSION -
Data type: J_7LKB6Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ARTNR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RBUKR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LANDR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_7L_VERSIONEN_ARTIKEL 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_artnr | TYPE J_7LM01-MATNR, " | |||
| lt_version | TYPE STANDARD TABLE OF J_7LKB1, " | |||
| lv_artnr_not_found | TYPE J_7LKB1, " | |||
| lv_landr | TYPE J_7LC10-LANDR, " | |||
| lv_flg_mitpreisen | TYPE CHAR1, " 'X' | |||
| lv_flg_nurartents | TYPE CHAR1, " ' ' | |||
| lv_flg_mitkoarts | TYPE CHAR1, " 'X' | |||
| lv_not_cut_datx | TYPE CHAR1, " ' ' | |||
| lv_pdatab | TYPE J_7LPV1-DATAB, " | |||
| lv_pdatbi | TYPE J_7LPV1-DATBI, " | |||
| lv_j_7le01_in | TYPE J_7LE01, " | |||
| lv_bukrs | TYPE J_7LM03-BUKRS, " | |||
| lt_koart_version | TYPE STANDARD TABLE OF J_7LKB6, " | |||
| lv_rbukr_not_found | TYPE J_7LKB6, " | |||
| lv_land1 | TYPE J_7LM03-LAND1, " | |||
| lv_landr_not_found | TYPE J_7LM03, " | |||
| lv_vrkme | TYPE J_7LM03-VRKME, " | |||
| lv_variante | TYPE J_7LM03-VARIANTE, " | |||
| lv_entnr | TYPE J_7LM05-ENTNR, " | |||
| lv_datab | TYPE J_7LPV1-DATAB, " | |||
| lv_datbi | TYPE J_7LPV1-DATBI, " | |||
| lv_rbukr | TYPE J_7LC02-RBUKR. " |
|   CALL FUNCTION 'J_7L_VERSIONEN_ARTIKEL' "NOTRANSL: REA Preisberechnung Versionen eines Artikel |
| EXPORTING | ||
| ARTNR | = lv_artnr | |
| LANDR | = lv_landr | |
| FLG_MITPREISEN | = lv_flg_mitpreisen | |
| FLG_NURARTENTS | = lv_flg_nurartents | |
| FLG_MITKOARTS | = lv_flg_mitkoarts | |
| NOT_CUT_DATX | = lv_not_cut_datx | |
| PDATAB | = lv_pdatab | |
| PDATBI | = lv_pdatbi | |
| J_7LE01_IN | = lv_j_7le01_in | |
| BUKRS | = lv_bukrs | |
| LAND1 | = lv_land1 | |
| VRKME | = lv_vrkme | |
| VARIANTE | = lv_variante | |
| ENTNR | = lv_entnr | |
| DATAB | = lv_datab | |
| DATBI | = lv_datbi | |
| RBUKR | = lv_rbukr | |
| TABLES | ||
| VERSION | = lt_version | |
| KOART_VERSION | = lt_koart_version | |
| EXCEPTIONS | ||
| ARTNR_NOT_FOUND = 1 | ||
| RBUKR_NOT_FOUND = 2 | ||
| LANDR_NOT_FOUND = 3 | ||
| . " J_7L_VERSIONEN_ARTIKEL | ||
ABAP code using 7.40 inline data declarations to call FM J_7L_VERSIONEN_ARTIKEL
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_artnr). | ||||
| "SELECT single LANDR FROM J_7LC10 INTO @DATA(ld_landr). | ||||
| DATA(ld_flg_mitpreisen) | = 'X'. | |||
| DATA(ld_flg_nurartents) | = ' '. | |||
| DATA(ld_flg_mitkoarts) | = 'X'. | |||
| DATA(ld_not_cut_datx) | = ' '. | |||
| "SELECT single DATAB FROM J_7LPV1 INTO @DATA(ld_pdatab). | ||||
| "SELECT single DATBI FROM J_7LPV1 INTO @DATA(ld_pdatbi). | ||||
| "SELECT single BUKRS FROM J_7LM03 INTO @DATA(ld_bukrs). | ||||
| "SELECT single LAND1 FROM J_7LM03 INTO @DATA(ld_land1). | ||||
| "SELECT single VRKME FROM J_7LM03 INTO @DATA(ld_vrkme). | ||||
| "SELECT single VARIANTE FROM J_7LM03 INTO @DATA(ld_variante). | ||||
| "SELECT single ENTNR FROM J_7LM05 INTO @DATA(ld_entnr). | ||||
| "SELECT single DATAB FROM J_7LPV1 INTO @DATA(ld_datab). | ||||
| "SELECT single DATBI FROM J_7LPV1 INTO @DATA(ld_datbi). | ||||
| "SELECT single RBUKR FROM J_7LC02 INTO @DATA(ld_rbukr). | ||||
Search for further information about these or an SAP related objects