SAP J_7L_VERSIONEN_VERPACKUNG Function Module for NOTRANSL: REA Preisberechnung Versionen einer Verpackung









J_7L_VERSIONEN_VERPACKUNG is a standard j 7l versionen verpackung 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 einer 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 versionen verpackung FM, simply by entering the name J_7L_VERSIONEN_VERPACKUNG 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_VERPACKUNG 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_VERPACKUNG'"NOTRANSL: REA Preisberechnung Versionen einer Verpackung
EXPORTING
VRPNR = "Packaging Number
* VPTYP = 'V' "Packaging Class
* FLG_MITPREISEN = 'X' "
* FLG_MITKOARTS = 'X' "
* J_7LE01_IN = "Recycling Partner Header
BUKRS = "Company Code
LAND1 = "Country1
* VARIANTE = "
ENTNR = "Recycling Partner
DATAB = "Date From
DATBI = "Date To
* RBUKR = "Reference Company Code
* LANDR = "Reference cntry

TABLES
VERSION = "
* KOART_VERSION = "

EXCEPTIONS
VRPNR_NOT_FOUND = 1 RBUKR_NOT_FOUND = 2 LANDR_NOT_FOUND = 3
.



IMPORTING Parameters details for J_7L_VERSIONEN_VERPACKUNG

VRPNR - Packaging Number

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

VPTYP - Packaging Class

Data type: J_7LV01-VPTYP
Default: 'V'
Optional: Yes
Call by Reference: Yes

FLG_MITPREISEN -

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

FLG_MITKOARTS -

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

J_7LE01_IN - Recycling Partner Header

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

BUKRS - Company Code

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

LAND1 - Country1

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

VARIANTE -

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

ENTNR - Recycling Partner

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

DATAB - Date From

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

DATBI - Date To

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

RBUKR - Reference Company Code

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

LANDR - Reference cntry

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

TABLES Parameters details for J_7L_VERSIONEN_VERPACKUNG

VERSION -

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

KOART_VERSION -

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

EXCEPTIONS details

VRPNR_NOT_FOUND -

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: Yes

LANDR_NOT_FOUND - Reference country not found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for J_7L_VERSIONEN_VERPACKUNG 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_vrpnr  TYPE J_7LV01-VRPNR, "   
lt_version  TYPE STANDARD TABLE OF J_7LKB1, "   
lv_vrpnr_not_found  TYPE J_7LKB1, "   
lv_vptyp  TYPE J_7LV01-VPTYP, "   'V'
lv_flg_mitpreisen  TYPE CHAR1, "   'X'
lv_flg_mitkoarts  TYPE CHAR1, "   'X'
lv_j_7le01_in  TYPE J_7LE01, "   
lv_bukrs  TYPE J_7LV03-BUKRS, "   
lt_koart_version  TYPE STANDARD TABLE OF J_7LKB6, "   
lv_rbukr_not_found  TYPE J_7LKB6, "   
lv_land1  TYPE J_7LV03-LAND1, "   
lv_landr_not_found  TYPE J_7LV03, "   
lv_variante  TYPE J_7LV03-VARIANTE, "   
lv_entnr  TYPE J_7LV03-ENTNR, "   
lv_datab  TYPE J_7LV03-DATAB, "   
lv_datbi  TYPE J_7LV03-DATBI, "   
lv_rbukr  TYPE J_7LC02-RBUKR, "   
lv_landr  TYPE J_7LC10-LANDR. "   

  CALL FUNCTION 'J_7L_VERSIONEN_VERPACKUNG'  "NOTRANSL: REA Preisberechnung Versionen einer Verpackung
    EXPORTING
         VRPNR = lv_vrpnr
         VPTYP = lv_vptyp
         FLG_MITPREISEN = lv_flg_mitpreisen
         FLG_MITKOARTS = lv_flg_mitkoarts
         J_7LE01_IN = lv_j_7le01_in
         BUKRS = lv_bukrs
         LAND1 = lv_land1
         VARIANTE = lv_variante
         ENTNR = lv_entnr
         DATAB = lv_datab
         DATBI = lv_datbi
         RBUKR = lv_rbukr
         LANDR = lv_landr
    TABLES
         VERSION = lt_version
         KOART_VERSION = lt_koart_version
    EXCEPTIONS
        VRPNR_NOT_FOUND = 1
        RBUKR_NOT_FOUND = 2
        LANDR_NOT_FOUND = 3
. " J_7L_VERSIONEN_VERPACKUNG




ABAP code using 7.40 inline data declarations to call FM J_7L_VERSIONEN_VERPACKUNG

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_vrpnr).
 
 
 
"SELECT single VPTYP FROM J_7LV01 INTO @DATA(ld_vptyp).
DATA(ld_vptyp) = 'V'.
 
DATA(ld_flg_mitpreisen) = 'X'.
 
DATA(ld_flg_mitkoarts) = 'X'.
 
 
"SELECT single BUKRS FROM J_7LV03 INTO @DATA(ld_bukrs).
 
 
 
"SELECT single LAND1 FROM J_7LV03 INTO @DATA(ld_land1).
 
 
"SELECT single VARIANTE FROM J_7LV03 INTO @DATA(ld_variante).
 
"SELECT single ENTNR FROM J_7LV03 INTO @DATA(ld_entnr).
 
"SELECT single DATAB FROM J_7LV03 INTO @DATA(ld_datab).
 
"SELECT single DATBI FROM J_7LV03 INTO @DATA(ld_datbi).
 
"SELECT single RBUKR FROM J_7LC02 INTO @DATA(ld_rbukr).
 
"SELECT single LANDR FROM J_7LC10 INTO @DATA(ld_landr).
 


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!