SAP J_7L_PREIS_ARTIKEL_PERIODE Function Module for NOTRANSL: REA Preisberechnung Artikel für eine Periode









J_7L_PREIS_ARTIKEL_PERIODE is a standard j 7l preis artikel periode 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 Artikel für eine Periode 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 preis artikel periode FM, simply by entering the name J_7L_PREIS_ARTIKEL_PERIODE 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_PREIS_ARTIKEL_PERIODE 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_PREIS_ARTIKEL_PERIODE'"NOTRANSL: REA Preisberechnung Artikel für eine Periode
EXPORTING
ARTNR = "Article Number
* KZFMENG = ' ' "
* KZMMSD = "Indicator: Purchase/Sale View
* KZPRFM = 'X' "Indicator: Evaluate Price Formula
* PFORMEL = "Price Formula to Be Executed
* KZFRMFRF = ' ' "Use of Material Type Formula
* WAERS = "
* WAERE = "
* WAERA = "Alternative Currency
* RBUKR = "Reference company code
* LANDR = "Reference Country
BUKRS = "Company Code
* PDATAB = "
* PDATBI = "
* NOT_CUT_DATX = ' ' "
* KONDITION_X = ' ' "
* J_7LE01_IN = "Recycling Partner Header
* J_7LE02_IN = "Recycling Partner Data: Company Code
* KVFM_KEYS = "REA Declaration: Communication Structure Key
LAND1 = "Country
VRKME = "Sales Unit
* VARIANTE = "
ENTNR = "Recycling Partner
DATAB = "Date From
DATBI = "Date To
* FMENG = 1 "Base Quantity

IMPORTING
SUMMEE = "
SUMMER = "
SUMMEA = "

TABLES
VERSION = "
VERPACK = "
FRAKTION = "

EXCEPTIONS
ARTNR_NOT_FOUND = 1 PLVRS_NOT_FOUND = 2 ENTNR_NOT_FOUND = 3 VRPNR_NOT_FOUND = 4 UNIT_CONVERSION_ERROR = 5 UNSPECIFIED_ERROR = 6 RBUKR_NOT_FOUND = 7 LANDR_NOT_FOUND = 8 OVERFLOW_ERROR = 9
.



IMPORTING Parameters details for J_7L_PREIS_ARTIKEL_PERIODE

ARTNR - Article Number

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

KZFMENG -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: Yes

KZMMSD - Indicator: Purchase/Sale View

Data type: J_7LHELP-J_7LKZMMSD
Optional: Yes
Call by Reference: Yes

KZPRFM - Indicator: Evaluate Price Formula

Data type: J_7LKM1-KZPRFM
Default: 'X'
Optional: Yes
Call by Reference: Yes

PFORMEL - Price Formula to Be Executed

Data type: J_7LE01-PFORMEL
Optional: Yes
Call by Reference: Yes

KZFRMFRF - Use of Material Type Formula

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: Yes

WAERS -

Data type: J_7LP01-WAERS
Optional: Yes
Call by Reference: Yes

WAERE -

Data type: J_7LP01-WAERE
Optional: Yes
Call by Reference: Yes

WAERA - Alternative Currency

Data type: J_7LP01-WAERA
Optional: Yes
Call by Reference: Yes

RBUKR - Reference company code

Data type: J_7LC02-RBUKR
Optional: Yes
Call by Reference: Yes

LANDR - Reference Country

Data type: J_7LC10-LANDR
Optional: Yes
Call by Reference: Yes

BUKRS - Company Code

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

PDATAB -

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

PDATBI -

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

NOT_CUT_DATX -

Data type: CHAR1
Default: ' '
Optional: Yes
Call by Reference: Yes

KONDITION_X -

Data type: CHAR1
Default: ' '
Optional: Yes
Call by Reference: Yes

J_7LE01_IN - Recycling Partner Header

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

J_7LE02_IN - Recycling Partner Data: Company Code

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

KVFM_KEYS - REA Declaration: Communication Structure Key

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

LAND1 - Country

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

VRKME - Sales Unit

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

VARIANTE -

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

ENTNR - Recycling Partner

Data type: J_7LM05-ENTNR
Optional: No
Call by Reference: Yes

DATAB - Date From

Data type: J_7LM04-DATAB
Optional: No
Call by Reference: Yes

DATBI - Date To

Data type: J_7LM04-DATBI
Optional: No
Call by Reference: Yes

FMENG - Base Quantity

Data type: J_7LM04-FMENG
Default: 1
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for J_7L_PREIS_ARTIKEL_PERIODE

SUMMEE -

Data type: J_7LKB1-SUMMEE
Optional: No
Call by Reference: Yes

SUMMER -

Data type: J_7LKB1-SUMMER
Optional: No
Call by Reference: Yes

SUMMEA -

Data type: J_7LKB1-SUMMEA
Optional: No
Call by Reference: Yes

TABLES Parameters details for J_7L_PREIS_ARTIKEL_PERIODE

VERSION -

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

VERPACK -

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

FRAKTION -

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

EXCEPTIONS details

ARTNR_NOT_FOUND - Error while reading article

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

PLVRS_NOT_FOUND - No price list found for period

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

ENTNR_NOT_FOUND - No recycling partner assignment found for period

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

VRPNR_NOT_FOUND - Packing number not found

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

UNIT_CONVERSION_ERROR - Error while converting units

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

UNSPECIFIED_ERROR - Unspecified error

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

RBUKR_NOT_FOUND - Reference company code not found

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

LANDR_NOT_FOUND - Reference country not found

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

OVERFLOW_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for J_7L_PREIS_ARTIKEL_PERIODE 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, "   
lv_summee  TYPE J_7LKB1-SUMMEE, "   
lt_version  TYPE STANDARD TABLE OF J_7LKB1, "   
lv_artnr_not_found  TYPE J_7LKB1, "   
lv_kzfmeng  TYPE BOOLE-BOOLE, "   SPACE
lv_kzmmsd  TYPE J_7LHELP-J_7LKZMMSD, "   
lv_kzprfm  TYPE J_7LKM1-KZPRFM, "   'X'
lv_pformel  TYPE J_7LE01-PFORMEL, "   
lv_kzfrmfrf  TYPE BOOLE-BOOLE, "   SPACE
lv_waers  TYPE J_7LP01-WAERS, "   
lv_waere  TYPE J_7LP01-WAERE, "   
lv_waera  TYPE J_7LP01-WAERA, "   
lv_rbukr  TYPE J_7LC02-RBUKR, "   
lv_landr  TYPE J_7LC10-LANDR, "   
lv_bukrs  TYPE J_7LM02-BUKRS, "   
lv_summer  TYPE J_7LKB1-SUMMER, "   
lt_verpack  TYPE STANDARD TABLE OF J_7LKB2, "   
lv_plvrs_not_found  TYPE J_7LKB2, "   
lv_pdatab  TYPE J_7LM04-DATAB, "   
lv_pdatbi  TYPE J_7LM04-DATBI, "   
lv_not_cut_datx  TYPE CHAR1, "   ' '
lv_kondition_x  TYPE CHAR1, "   ' '
lv_j_7le01_in  TYPE J_7LE01, "   
lv_j_7le02_in  TYPE J_7LE02, "   
lv_kvfm_keys  TYPE J_7LKVFM_KEYS, "   
lv_land1  TYPE J_7LM03-LAND1, "   
lv_summea  TYPE J_7LKB1-SUMMEA, "   
lt_fraktion  TYPE STANDARD TABLE OF J_7LKB3, "   
lv_entnr_not_found  TYPE J_7LKB3, "   
lv_vrkme  TYPE J_7LM03-VRKME, "   
lv_vrpnr_not_found  TYPE J_7LM03, "   
lv_variante  TYPE J_7LVARIANTE, "   
lv_unit_conversion_error  TYPE J_7LVARIANTE, "   
lv_entnr  TYPE J_7LM05-ENTNR, "   
lv_unspecified_error  TYPE J_7LM05, "   
lv_datab  TYPE J_7LM04-DATAB, "   
lv_rbukr_not_found  TYPE J_7LM04, "   
lv_datbi  TYPE J_7LM04-DATBI, "   
lv_landr_not_found  TYPE J_7LM04, "   
lv_fmeng  TYPE J_7LM04-FMENG, "   1
lv_overflow_error  TYPE J_7LM04. "   

  CALL FUNCTION 'J_7L_PREIS_ARTIKEL_PERIODE'  "NOTRANSL: REA Preisberechnung Artikel für eine Periode
    EXPORTING
         ARTNR = lv_artnr
         KZFMENG = lv_kzfmeng
         KZMMSD = lv_kzmmsd
         KZPRFM = lv_kzprfm
         PFORMEL = lv_pformel
         KZFRMFRF = lv_kzfrmfrf
         WAERS = lv_waers
         WAERE = lv_waere
         WAERA = lv_waera
         RBUKR = lv_rbukr
         LANDR = lv_landr
         BUKRS = lv_bukrs
         PDATAB = lv_pdatab
         PDATBI = lv_pdatbi
         NOT_CUT_DATX = lv_not_cut_datx
         KONDITION_X = lv_kondition_x
         J_7LE01_IN = lv_j_7le01_in
         J_7LE02_IN = lv_j_7le02_in
         KVFM_KEYS = lv_kvfm_keys
         LAND1 = lv_land1
         VRKME = lv_vrkme
         VARIANTE = lv_variante
         ENTNR = lv_entnr
         DATAB = lv_datab
         DATBI = lv_datbi
         FMENG = lv_fmeng
    IMPORTING
         SUMMEE = lv_summee
         SUMMER = lv_summer
         SUMMEA = lv_summea
    TABLES
         VERSION = lt_version
         VERPACK = lt_verpack
         FRAKTION = lt_fraktion
    EXCEPTIONS
        ARTNR_NOT_FOUND = 1
        PLVRS_NOT_FOUND = 2
        ENTNR_NOT_FOUND = 3
        VRPNR_NOT_FOUND = 4
        UNIT_CONVERSION_ERROR = 5
        UNSPECIFIED_ERROR = 6
        RBUKR_NOT_FOUND = 7
        LANDR_NOT_FOUND = 8
        OVERFLOW_ERROR = 9
. " J_7L_PREIS_ARTIKEL_PERIODE




ABAP code using 7.40 inline data declarations to call FM J_7L_PREIS_ARTIKEL_PERIODE

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 SUMMEE FROM J_7LKB1 INTO @DATA(ld_summee).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_kzfmeng).
DATA(ld_kzfmeng) = ' '.
 
"SELECT single J_7LKZMMSD FROM J_7LHELP INTO @DATA(ld_kzmmsd).
 
"SELECT single KZPRFM FROM J_7LKM1 INTO @DATA(ld_kzprfm).
DATA(ld_kzprfm) = 'X'.
 
"SELECT single PFORMEL FROM J_7LE01 INTO @DATA(ld_pformel).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_kzfrmfrf).
DATA(ld_kzfrmfrf) = ' '.
 
"SELECT single WAERS FROM J_7LP01 INTO @DATA(ld_waers).
 
"SELECT single WAERE FROM J_7LP01 INTO @DATA(ld_waere).
 
"SELECT single WAERA FROM J_7LP01 INTO @DATA(ld_waera).
 
"SELECT single RBUKR FROM J_7LC02 INTO @DATA(ld_rbukr).
 
"SELECT single LANDR FROM J_7LC10 INTO @DATA(ld_landr).
 
"SELECT single BUKRS FROM J_7LM02 INTO @DATA(ld_bukrs).
 
"SELECT single SUMMER FROM J_7LKB1 INTO @DATA(ld_summer).
 
 
 
"SELECT single DATAB FROM J_7LM04 INTO @DATA(ld_pdatab).
 
"SELECT single DATBI FROM J_7LM04 INTO @DATA(ld_pdatbi).
 
DATA(ld_not_cut_datx) = ' '.
 
DATA(ld_kondition_x) = ' '.
 
 
 
 
"SELECT single LAND1 FROM J_7LM03 INTO @DATA(ld_land1).
 
"SELECT single SUMMEA FROM J_7LKB1 INTO @DATA(ld_summea).
 
 
 
"SELECT single VRKME FROM J_7LM03 INTO @DATA(ld_vrkme).
 
 
 
 
"SELECT single ENTNR FROM J_7LM05 INTO @DATA(ld_entnr).
 
 
"SELECT single DATAB FROM J_7LM04 INTO @DATA(ld_datab).
 
 
"SELECT single DATBI FROM J_7LM04 INTO @DATA(ld_datbi).
 
 
"SELECT single FMENG FROM J_7LM04 INTO @DATA(ld_fmeng).
DATA(ld_fmeng) = 1.
 
 


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!