SAP J_7L_MAINTAIN_ARTICLE Function Module for REA Article Management: Create/Change Article Data Object
J_7L_MAINTAIN_ARTICLE is a standard j 7l maintain article SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for REA Article Management: Create/Change Article Data Object 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 article FM, simply by entering the name J_7L_MAINTAIN_ARTICLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: J7LARTICLE
Program Name: SAPLJ7LARTICLE
Main Program: SAPLJ7LARTICLE
Appliation area:
Release date: 22-Oct-2007
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_7L_MAINTAIN_ARTICLE 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_ARTICLE'"REA Article Management: Create/Change Article Data Object.
EXPORTING
* I_FLG_CH_DOC_ON = 'X' "Generate Change Documents (X,)
* I_NO_MM_REQUIRED = ' ' "X=> Create Article Without Existing MM Record
* I_FLG_CONST_CHECK_ON = ' ' "Consistency Check After Saving (X.)
* I_TEST_MODUS_ON = ' ' "Test Mode Without Update (X,)
* I_MODUS_ENQUEUE_ART = 'P' "Mode for Lock Entries: (A)lways, (N)ever, (P)recl
* 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
* I_WF_EVENT = 'C' "Create Workflow Event (C)ustomizing, (A)lways, (Never)
TABLES
I_M01 = "REA Article Master: General Data
I_M10 = "REA Article Master: Filters for Regional Processing
* I_M11 = "REA Article Master: Declaration Key
RETURN = "Return Parameters
I_M02 = "REA Article Master: Company Code
I_M03 = "REA Article Master: Sales Units
I_M04 = "REA Article Master: Packaging Assignment
I_M05 = "REA Article Master: Recycling Partner Assignment
I_M06 = "REA Article Master: Bills of Material
I_M07 = "REA Article Master: Referencing Company Codes/Countries
I_M08 = "REA Article Master: Referencing Company Codes/Countries
I_M09 = "REA Article Master: R.Partner-Depend. Data Assgmt Packaging
EXCEPTIONS
MAINTAIN_ERROR = 1
IMPORTING Parameters details for J_7L_MAINTAIN_ARTICLE
I_FLG_CH_DOC_ON - Generate Change Documents (X, )
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_NO_MM_REQUIRED - X=> Create Article Without Existing MM Record
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_CONST_CHECK_ON - Consistency Check After Saving (X. )
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_ART - Mode for Lock Entries: (A)lways, (N)ever, (P)recl
Data type: CDefault: 'P'
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
I_WF_EVENT - Create Workflow Event (C)ustomizing, (A)lways, (Never)
Data type: CDefault: 'C'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for J_7L_MAINTAIN_ARTICLE
I_M01 - REA Article Master: General Data
Data type: J_7LM01Optional: No
Call by Reference: Yes
I_M10 - REA Article Master: Filters for Regional Processing
Data type: J_7LM10Optional: No
Call by Reference: Yes
I_M11 - REA Article Master: Declaration Key
Data type: J_7LM11Optional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: Yes
I_M02 - REA Article Master: Company Code
Data type: J_7LM02Optional: No
Call by Reference: Yes
I_M03 - REA Article Master: Sales Units
Data type: J_7LM03Optional: No
Call by Reference: Yes
I_M04 - REA Article Master: Packaging Assignment
Data type: J_7LM04Optional: No
Call by Reference: Yes
I_M05 - REA Article Master: Recycling Partner Assignment
Data type: J_7LM05Optional: No
Call by Reference: Yes
I_M06 - REA Article Master: Bills of Material
Data type: J_7LM06Optional: No
Call by Reference: Yes
I_M07 - REA Article Master: Referencing Company Codes/Countries
Data type: J_7LM07Optional: No
Call by Reference: Yes
I_M08 - REA Article Master: Referencing Company Codes/Countries
Data type: J_7LM08Optional: No
Call by Reference: Yes
I_M09 - REA Article Master: R.Partner-Depend. Data Assgmt Packaging
Data type: J_7LM09Optional: No
Call by Reference: Yes
EXCEPTIONS details
MAINTAIN_ERROR - Error During Processing
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for J_7L_MAINTAIN_ARTICLE 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_m01 | TYPE STANDARD TABLE OF J_7LM01, " | |||
| lv_maintain_error | TYPE J_7LM01, " | |||
| lv_i_flg_ch_doc_on | TYPE C, " 'X' | |||
| lt_i_m10 | TYPE STANDARD TABLE OF J_7LM10, " | |||
| lv_i_no_mm_required | TYPE C, " SPACE | |||
| lt_i_m11 | TYPE STANDARD TABLE OF J_7LM11, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_i_m02 | TYPE STANDARD TABLE OF J_7LM02, " | |||
| lv_i_flg_const_check_on | TYPE C, " SPACE | |||
| lt_i_m03 | TYPE STANDARD TABLE OF J_7LM03, " | |||
| lv_i_test_modus_on | TYPE C, " SPACE | |||
| lt_i_m04 | TYPE STANDARD TABLE OF J_7LM04, " | |||
| lv_i_modus_enqueue_art | TYPE C, " 'P' | |||
| lt_i_m05 | TYPE STANDARD TABLE OF J_7LM05, " | |||
| lv_i_modus_condition | TYPE C, " 'C' | |||
| lt_i_m06 | TYPE STANDARD TABLE OF J_7LM06, " | |||
| lv_i_modus_update | TYPE C, " 'S' | |||
| lt_i_m07 | TYPE STANDARD TABLE OF J_7LM07, " | |||
| lv_i_modus_plausib_check | TYPE C, " 'N' | |||
| lt_i_m08 | TYPE STANDARD TABLE OF J_7LM08, " | |||
| lv_i_copy_modus | TYPE C, " SPACE | |||
| lt_i_m09 | TYPE STANDARD TABLE OF J_7LM09, " | |||
| lv_i_wf_event | TYPE C. " 'C' |
|   CALL FUNCTION 'J_7L_MAINTAIN_ARTICLE' "REA Article Management: Create/Change Article Data Object |
| EXPORTING | ||
| I_FLG_CH_DOC_ON | = lv_i_flg_ch_doc_on | |
| 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_ART | = lv_i_modus_enqueue_art | |
| 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 | |
| I_WF_EVENT | = lv_i_wf_event | |
| TABLES | ||
| I_M01 | = lt_i_m01 | |
| I_M10 | = lt_i_m10 | |
| I_M11 | = lt_i_m11 | |
| RETURN | = lt_return | |
| I_M02 | = lt_i_m02 | |
| I_M03 | = lt_i_m03 | |
| I_M04 | = lt_i_m04 | |
| I_M05 | = lt_i_m05 | |
| I_M06 | = lt_i_m06 | |
| I_M07 | = lt_i_m07 | |
| I_M08 | = lt_i_m08 | |
| I_M09 | = lt_i_m09 | |
| EXCEPTIONS | ||
| MAINTAIN_ERROR = 1 | ||
| . " J_7L_MAINTAIN_ARTICLE | ||
ABAP code using 7.40 inline data declarations to call FM J_7L_MAINTAIN_ARTICLE
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_no_mm_required) | = ' '. | |||
| DATA(ld_i_flg_const_check_on) | = ' '. | |||
| DATA(ld_i_test_modus_on) | = ' '. | |||
| DATA(ld_i_modus_enqueue_art) | = 'P'. | |||
| DATA(ld_i_modus_condition) | = 'C'. | |||
| DATA(ld_i_modus_update) | = 'S'. | |||
| DATA(ld_i_modus_plausib_check) | = 'N'. | |||
| DATA(ld_i_copy_modus) | = ' '. | |||
| DATA(ld_i_wf_event) | = 'C'. | |||
Search for further information about these or an SAP related objects