SAP Function Modules

J_7L_TEMPLATE_FRAKTION_FORMEL SAP Function module







J_7L_TEMPLATE_FRAKTION_FORMEL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name J_7L_TEMPLATE_FRAKTION_FORMEL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: J7LE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM J_7L_TEMPLATE_FRAKTION_FORMEL - J 7L TEMPLATE FRAKTION FORMEL





CALL FUNCTION 'J_7L_TEMPLATE_FRAKTION_FORMEL' "
  EXPORTING
    entnr =                     " j_7le01-entnr
    land1 =                     " j_7le01-land1
*   bukrs =                     " j_7le02-bukrs
*   matnr =                     " j_7lm01-matnr
*   variante =                  " j_7lvariante
*   datum = SY-DATUM            " sy-datum
*   j_7le01_in =                " j_7le01
*   j_7le02_in =                " j_7le02
*   j_7le09_in =                " j_7le09
*   j_7lp01_in =                " j_7lp01
  IMPORTING
    delete =                    " c
  CHANGING
    fraktion =                  " j_7lkb3
  EXCEPTIONS
    FORMEL_ERROR = 1            "
    .  "  J_7L_TEMPLATE_FRAKTION_FORMEL

ABAP code example for Function Module J_7L_TEMPLATE_FRAKTION_FORMEL





The ABAP code below is a full code listing to execute function module J_7L_TEMPLATE_FRAKTION_FORMEL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_delete  TYPE C .

DATA(ld_fraktion) = 'Check type of data required'.

SELECT single ENTNR
FROM J_7LE01
INTO @DATA(ld_entnr).


SELECT single LAND1
FROM J_7LE01
INTO @DATA(ld_land1).


SELECT single BUKRS
FROM J_7LE02
INTO @DATA(ld_bukrs).


SELECT single MATNR
FROM J_7LM01
INTO @DATA(ld_matnr).

DATA(ld_variante) = 'Check type of data required'.
DATA(ld_datum) = '20210129'.
DATA(ld_j_7le01_in) = '20210129'.
DATA(ld_j_7le02_in) = '20210129'.
DATA(ld_j_7le09_in) = '20210129'.
DATA(ld_j_7lp01_in) = '20210129'. . CALL FUNCTION 'J_7L_TEMPLATE_FRAKTION_FORMEL' EXPORTING entnr = ld_entnr land1 = ld_land1 * bukrs = ld_bukrs * matnr = ld_matnr * variante = ld_variante * datum = ld_datum * j_7le01_in = ld_j_7le01_in * j_7le02_in = ld_j_7le02_in * j_7le09_in = ld_j_7le09_in * j_7lp01_in = ld_j_7lp01_in IMPORTING delete = ld_delete CHANGING fraktion = ld_fraktion EXCEPTIONS FORMEL_ERROR = 1 . " J_7L_TEMPLATE_FRAKTION_FORMEL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_fraktion  TYPE J_7LKB3 ,
ld_delete  TYPE C ,
ld_entnr  TYPE J_7LE01-ENTNR ,
ld_land1  TYPE J_7LE01-LAND1 ,
ld_bukrs  TYPE J_7LE02-BUKRS ,
ld_matnr  TYPE J_7LM01-MATNR ,
ld_variante  TYPE J_7LVARIANTE ,
ld_datum  TYPE SY-DATUM ,
ld_j_7le01_in  TYPE J_7LE01 ,
ld_j_7le02_in  TYPE J_7LE02 ,
ld_j_7le09_in  TYPE J_7LE09 ,
ld_j_7lp01_in  TYPE J_7LP01 .

ld_fraktion = '20210129'.

SELECT single ENTNR
FROM J_7LE01
INTO ld_entnr.


SELECT single LAND1
FROM J_7LE01
INTO ld_land1.


SELECT single BUKRS
FROM J_7LE02
INTO ld_bukrs.


SELECT single MATNR
FROM J_7LM01
INTO ld_matnr.

ld_variante = '20210129'.
ld_datum = '20210129'.
ld_j_7le01_in = '20210129'.
ld_j_7le02_in = '20210129'.
ld_j_7le09_in = '20210129'.
ld_j_7lp01_in = '20210129'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name J_7L_TEMPLATE_FRAKTION_FORMEL or its description.