SAP J_7L_V1_SAVE Function Module for NOTRANSL: REA Verbuchung Periodenmeldung
J_7L_V1_SAVE is a standard j 7l v1 save 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 Verbuchung Periodenmeldung 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 v1 save FM, simply by entering the name J_7L_V1_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: J7LS
Program Name: SAPLJ7LS
Main Program: SAPLJ7LS
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_7L_V1_SAVE 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_V1_SAVE'"NOTRANSL: REA Verbuchung Periodenmeldung.
EXPORTING
J_7LV1K_IN = "
* VBELN = "
* MBELN = "
* NO_COMMIT = ' ' "
* NUMBER = 1 "
* MNUMBER = 1 "
IMPORTING
J_7LV1K_OUT = "
VBELN_FIRST_OUT = "
VBELN_LAST_OUT = "
MBELN_FIRST_OUT = "
MBELN_LAST_OUT = "
TABLES
* J_7LV1P_TAB = "
* J_7LV1S_TAB = "
* J_7LV1M_TAB = "
* J_7LV1A_TAB = "
* J_7LV1H_TAB = "REA Document: Trade Levels
* J_7LV1F_TAB = "
* J_7LV1B_TAB = "REA Document: Consolidated Documents
EXCEPTIONS
DATA_INCONSISTENCY = 1 NR_RANGE_ERROR = 2 SAVE_ERROR = 3
IMPORTING Parameters details for J_7L_V1_SAVE
J_7LV1K_IN -
Data type: J_7LV1KOptional: No
Call by Reference: Yes
VBELN -
Data type: J_7LV1K-VBELNOptional: Yes
Call by Reference: Yes
MBELN -
Data type: J_7LV1K-MBELNOptional: Yes
Call by Reference: Yes
NO_COMMIT -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
NUMBER -
Data type: IDefault: 1
Optional: Yes
Call by Reference: Yes
MNUMBER -
Data type: IDefault: 1
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for J_7L_V1_SAVE
J_7LV1K_OUT -
Data type: J_7LV1KOptional: No
Call by Reference: Yes
VBELN_FIRST_OUT -
Data type: J_7LV1K-VBELNOptional: No
Call by Reference: Yes
VBELN_LAST_OUT -
Data type: J_7LV1K-VBELNOptional: No
Call by Reference: Yes
MBELN_FIRST_OUT -
Data type: J_7LV1K-MBELNOptional: No
Call by Reference: Yes
MBELN_LAST_OUT -
Data type: J_7LV1K-MBELNOptional: No
Call by Reference: Yes
TABLES Parameters details for J_7L_V1_SAVE
J_7LV1P_TAB -
Data type: J_7LV1POptional: Yes
Call by Reference: Yes
J_7LV1S_TAB -
Data type: J_7LV1SOptional: Yes
Call by Reference: Yes
J_7LV1M_TAB -
Data type: J_7LV1MOptional: Yes
Call by Reference: Yes
J_7LV1A_TAB -
Data type: J_7LV1AOptional: Yes
Call by Reference: Yes
J_7LV1H_TAB - REA Document: Trade Levels
Data type: J_7LV1HOptional: Yes
Call by Reference: Yes
J_7LV1F_TAB -
Data type: J_7LV1FOptional: Yes
Call by Reference: Yes
J_7LV1B_TAB - REA Document: Consolidated Documents
Data type: J_7LV1BOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DATA_INCONSISTENCY - Inconsistent Data
Data type:Optional: No
Call by Reference: Yes
NR_RANGE_ERROR -
Data type:Optional: No
Call by Reference: Yes
SAVE_ERROR - DB Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for J_7L_V1_SAVE 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_j_7lv1k_in | TYPE J_7LV1K, " | |||
| lv_j_7lv1k_out | TYPE J_7LV1K, " | |||
| lt_j_7lv1p_tab | TYPE STANDARD TABLE OF J_7LV1P, " | |||
| lv_data_inconsistency | TYPE J_7LV1P, " | |||
| lv_vbeln | TYPE J_7LV1K-VBELN, " | |||
| lt_j_7lv1s_tab | TYPE STANDARD TABLE OF J_7LV1S, " | |||
| lv_nr_range_error | TYPE J_7LV1S, " | |||
| lv_vbeln_first_out | TYPE J_7LV1K-VBELN, " | |||
| lv_mbeln | TYPE J_7LV1K-MBELN, " | |||
| lv_save_error | TYPE J_7LV1K, " | |||
| lt_j_7lv1m_tab | TYPE STANDARD TABLE OF J_7LV1M, " | |||
| lv_vbeln_last_out | TYPE J_7LV1K-VBELN, " | |||
| lv_no_commit | TYPE C, " ' ' | |||
| lt_j_7lv1a_tab | TYPE STANDARD TABLE OF J_7LV1A, " | |||
| lv_mbeln_first_out | TYPE J_7LV1K-MBELN, " | |||
| lv_number | TYPE I, " 1 | |||
| lt_j_7lv1h_tab | TYPE STANDARD TABLE OF J_7LV1H, " | |||
| lv_mbeln_last_out | TYPE J_7LV1K-MBELN, " | |||
| lv_mnumber | TYPE I, " 1 | |||
| lt_j_7lv1f_tab | TYPE STANDARD TABLE OF J_7LV1F, " | |||
| lt_j_7lv1b_tab | TYPE STANDARD TABLE OF J_7LV1B. " |
|   CALL FUNCTION 'J_7L_V1_SAVE' "NOTRANSL: REA Verbuchung Periodenmeldung |
| EXPORTING | ||
| J_7LV1K_IN | = lv_j_7lv1k_in | |
| VBELN | = lv_vbeln | |
| MBELN | = lv_mbeln | |
| NO_COMMIT | = lv_no_commit | |
| NUMBER | = lv_number | |
| MNUMBER | = lv_mnumber | |
| IMPORTING | ||
| J_7LV1K_OUT | = lv_j_7lv1k_out | |
| VBELN_FIRST_OUT | = lv_vbeln_first_out | |
| VBELN_LAST_OUT | = lv_vbeln_last_out | |
| MBELN_FIRST_OUT | = lv_mbeln_first_out | |
| MBELN_LAST_OUT | = lv_mbeln_last_out | |
| TABLES | ||
| J_7LV1P_TAB | = lt_j_7lt1p_tab | |
| J_7LV1S_TAB | = lt_j_7lt1s_tab | |
| J_7LV1M_TAB | = lt_j_7lt1m_tab | |
| J_7LV1A_TAB | = lt_j_7lt1a_tab | |
| J_7LV1H_TAB | = lt_j_7lt1h_tab | |
| J_7LV1F_TAB | = lt_j_7lt1f_tab | |
| J_7LV1B_TAB | = lt_j_7lt1b_tab | |
| EXCEPTIONS | ||
| DATA_INCONSISTENCY = 1 | ||
| NR_RANGE_ERROR = 2 | ||
| SAVE_ERROR = 3 | ||
| . " J_7L_V1_SAVE | ||
ABAP code using 7.40 inline data declarations to call FM J_7L_V1_SAVE
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 VBELN FROM J_7LV1K INTO @DATA(ld_vbeln). | ||||
| "SELECT single VBELN FROM J_7LV1K INTO @DATA(ld_vbeln_first_out). | ||||
| "SELECT single MBELN FROM J_7LV1K INTO @DATA(ld_mbeln). | ||||
| "SELECT single VBELN FROM J_7LV1K INTO @DATA(ld_vbeln_last_out). | ||||
| DATA(ld_no_commit) | = ' '. | |||
| "SELECT single MBELN FROM J_7LV1K INTO @DATA(ld_mbeln_first_out). | ||||
| DATA(ld_number) | = 1. | |||
| "SELECT single MBELN FROM J_7LV1K INTO @DATA(ld_mbeln_last_out). | ||||
| DATA(ld_mnumber) | = 1. | |||
Search for further information about these or an SAP related objects