SAP J_7L_MAINTAIN_PACK Function Module for NOTRANSL: REA Verpackungsverwaltung: Anlegen/Ändern des Datenobjekts Verpa
J_7L_MAINTAIN_PACK is a standard j 7l maintain pack 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 Verpackungsverwaltung: Anlegen/Ändern des Datenobjekts Verpa 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 maintain pack FM, simply by entering the name J_7L_MAINTAIN_PACK into the relevant SAP transaction such as SE37 or SE38.
Function Group: J7LPACK
Program Name: SAPLJ7LPACK
Main Program: SAPLJ7LPACK
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function J_7L_MAINTAIN_PACK 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_MAINTAIN_PACK'"NOTRANSL: REA Verpackungsverwaltung: Anlegen/Ändern des Datenobjekts Verpa.
EXPORTING
* I_FLG_CH_DOC_ON = 'X' "Generate Change Documents (X,)
* I_WF_EVENT = 'C' "Create Workflow Event (C)ustomizing, (A)lways, (Never)
* I_NO_MM_REQUIRED = ' ' "
* I_FLG_CONST_CHECK_ON = ' ' "
* I_TEST_MODUS_ON = ' ' "Test Mode Without Update (X,)
* I_MODUS_ENQUEUE_PACK = 'P' "Mode for Lock Entries: (A)lways, (N)ever, (P)recl
* I_MODUS_PROPAGATION = 'N' "Automatic Update: (A)lways, (N)ever
* I_MODUS_CONDITION = 'C' "Update SD Condition: (A)lways, (N)ever, (C)ustom
* I_MODUS_UPDATE = 'S' "Update Mode: (S)ynchronous, (A)synchronous
* I_MODUS_PLAUSIB_CHECK = 'N' "Plausibility Check Before Saving: (A)lways, (N)ever, (I)nfo
* I_COPY_MODUS = ' ' "No Checks - Parameter Enhancement Only
TABLES
I_V01 = "
I_V02 = "Packaging Master: Fraction Assignment
I_V03 = "Packaging Master: Recycling Partner Assignment
I_V08 = "Packaging Master: Fraction - Recycling Partner Assignment
* I_V01T = "
* I_M11 = "
RETURN = "Return Code
EXCEPTIONS
MAINTAIN_ERROR = 1
IMPORTING Parameters details for J_7L_MAINTAIN_PACK
I_FLG_CH_DOC_ON - Generate Change Documents (X, )
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_WF_EVENT - Create Workflow Event (C)ustomizing, (A)lways, (Never)
Data type: CDefault: 'C'
Optional: Yes
Call by Reference: Yes
I_NO_MM_REQUIRED -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_CONST_CHECK_ON -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_TEST_MODUS_ON - Test Mode Without Update (X, )
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_MODUS_ENQUEUE_PACK - Mode for Lock Entries: (A)lways, (N)ever, (P)recl
Data type: CDefault: 'P'
Optional: Yes
Call by Reference: Yes
I_MODUS_PROPAGATION - Automatic Update: (A)lways, (N)ever
Data type: CDefault: 'N'
Optional: Yes
Call by Reference: Yes
I_MODUS_CONDITION - Update SD Condition: (A)lways, (N)ever, (C)ustom
Data type: CDefault: 'C'
Optional: Yes
Call by Reference: Yes
I_MODUS_UPDATE - Update Mode: (S)ynchronous, (A)synchronous
Data type: CDefault: 'S'
Optional: Yes
Call by Reference: Yes
I_MODUS_PLAUSIB_CHECK - Plausibility Check Before Saving: (A)lways, (N)ever, (I)nfo
Data type: CDefault: 'N'
Optional: Yes
Call by Reference: Yes
I_COPY_MODUS - No Checks - Parameter Enhancement Only
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for J_7L_MAINTAIN_PACK
I_V01 -
Data type: J_7LV01Optional: No
Call by Reference: No ( called with pass by value option)
I_V02 - Packaging Master: Fraction Assignment
Data type: J_7LV02Optional: No
Call by Reference: No ( called with pass by value option)
I_V03 - Packaging Master: Recycling Partner Assignment
Data type: J_7LV03Optional: No
Call by Reference: No ( called with pass by value option)
I_V08 - Packaging Master: Fraction - Recycling Partner Assignment
Data type: J_7LV08Optional: No
Call by Reference: No ( called with pass by value option)
I_V01T -
Data type: J_7LV01TOptional: Yes
Call by Reference: Yes
I_M11 -
Data type: J_7LM11Optional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Code
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MAINTAIN_ERROR - Error During Processing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_7L_MAINTAIN_PACK 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: | ||||
lt_i_v01 | TYPE STANDARD TABLE OF J_7LV01, " | |||
lv_maintain_error | TYPE J_7LV01, " | |||
lv_i_flg_ch_doc_on | TYPE C, " 'X' | |||
lv_i_wf_event | TYPE C, " 'C' | |||
lv_i_no_mm_required | TYPE C, " SPACE | |||
lt_i_v02 | TYPE STANDARD TABLE OF J_7LV02, " | |||
lv_i_flg_const_check_on | TYPE C, " SPACE | |||
lt_i_v03 | TYPE STANDARD TABLE OF J_7LV03, " | |||
lv_i_test_modus_on | TYPE C, " SPACE | |||
lt_i_v08 | TYPE STANDARD TABLE OF J_7LV08, " | |||
lv_i_modus_enqueue_pack | TYPE C, " 'P' | |||
lt_i_v01t | TYPE STANDARD TABLE OF J_7LV01T, " | |||
lv_i_modus_propagation | TYPE C, " 'N' | |||
lt_i_m11 | TYPE STANDARD TABLE OF J_7LM11, " | |||
lv_i_modus_condition | TYPE C, " 'C' | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
lv_i_modus_update | TYPE C, " 'S' | |||
lv_i_modus_plausib_check | TYPE C, " 'N' | |||
lv_i_copy_modus | TYPE C. " SPACE |
  CALL FUNCTION 'J_7L_MAINTAIN_PACK' "NOTRANSL: REA Verpackungsverwaltung: Anlegen/Ändern des Datenobjekts Verpa |
EXPORTING | ||
I_FLG_CH_DOC_ON | = lv_i_flg_ch_doc_on | |
I_WF_EVENT | = lv_i_wf_event | |
I_NO_MM_REQUIRED | = lv_i_no_mm_required | |
I_FLG_CONST_CHECK_ON | = lv_i_flg_const_check_on | |
I_TEST_MODUS_ON | = lv_i_test_modus_on | |
I_MODUS_ENQUEUE_PACK | = lv_i_modus_enqueue_pack | |
I_MODUS_PROPAGATION | = lv_i_modus_propagation | |
I_MODUS_CONDITION | = lv_i_modus_condition | |
I_MODUS_UPDATE | = lv_i_modus_update | |
I_MODUS_PLAUSIB_CHECK | = lv_i_modus_plausib_check | |
I_COPY_MODUS | = lv_i_copy_modus | |
TABLES | ||
I_V01 | = lt_i_v01 | |
I_V02 | = lt_i_v02 | |
I_V03 | = lt_i_v03 | |
I_V08 | = lt_i_v08 | |
I_V01T | = lt_i_v01t | |
I_M11 | = lt_i_m11 | |
RETURN | = lt_return | |
EXCEPTIONS | ||
MAINTAIN_ERROR = 1 | ||
. " J_7L_MAINTAIN_PACK |
ABAP code using 7.40 inline data declarations to call FM J_7L_MAINTAIN_PACK
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.DATA(ld_i_flg_ch_doc_on) | = 'X'. | |||
DATA(ld_i_wf_event) | = 'C'. | |||
DATA(ld_i_no_mm_required) | = ' '. | |||
DATA(ld_i_flg_const_check_on) | = ' '. | |||
DATA(ld_i_test_modus_on) | = ' '. | |||
DATA(ld_i_modus_enqueue_pack) | = 'P'. | |||
DATA(ld_i_modus_propagation) | = 'N'. | |||
DATA(ld_i_modus_condition) | = 'C'. | |||
DATA(ld_i_modus_update) | = 'S'. | |||
DATA(ld_i_modus_plausib_check) | = 'N'. | |||
DATA(ld_i_copy_modus) | = ' '. | |||
Search for further information about these or an SAP related objects