SAP ARTICLE_RECLASSIFY_LITE_RETAIL Function Module for NOTRANSL: Einfache Artikelreklassifzierung









ARTICLE_RECLASSIFY_LITE_RETAIL is a standard article reclassify lite retail 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: Einfache Artikelreklassifzierung 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 article reclassify lite retail FM, simply by entering the name ARTICLE_RECLASSIFY_LITE_RETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: WWG2
Program Name: SAPLWWG2
Main Program: SAPLWWG2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ARTICLE_RECLASSIFY_LITE_RETAIL 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 'ARTICLE_RECLASSIFY_LITE_RETAIL'"NOTRANSL: Einfache Artikelreklassifzierung
EXPORTING
I_MATNR = "Material Number
* I_SAME_PROFIL = "ABAP System Field: Background Processing Active
* I_PROT = 'X' "ABAP System Field: Background Processing Active
* I_AREGEL = 'X' "ABAP System Field: Background Processing Active
I_NEWWG = "Material Group
* I_TEST = 'X' "ABAP System Field: Background Processing Active
I_NEWPROFIL = "Class number
* I_BEST = ' ' "ABAP System Field: Background Processing Active
* I_AUFT = ' ' "ABAP System Field: Background Processing Active
* I_LISTO = ' ' "ABAP System Field: Background Processing Active
* I_LISTN = ' ' "ABAP System Field: Background Processing Active
* I_LIST_METHOD = 'B1' "Listing procedure

EXCEPTIONS
ARTICLE_NOT_FOUND = 1 MC_NOT_FOUND = 2 ALREADY_DONE = 3 NOT_POSSIBLE = 4 CLASSIFICATION_ERROR = 5 NO_PROFIL_IN_TARGET = 6 NO_ACCESS = 7
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLWWG2_001 User Exit: Check When Reclassifying Objects (Classes)

IMPORTING Parameters details for ARTICLE_RECLASSIFY_LITE_RETAIL

I_MATNR - Material Number

Data type: MARA-MATNR
Optional: No
Call by Reference: Yes

I_SAME_PROFIL - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROT - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AREGEL - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NEWWG - Material Group

Data type: MARA-MATKL
Optional: No
Call by Reference: Yes

I_TEST - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NEWPROFIL - Class number

Data type: KLAH-CLASS
Optional: No
Call by Reference: Yes

I_BEST - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AUFT - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LISTO - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LISTN - ABAP System Field: Background Processing Active

Data type: SY-BATCH
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LIST_METHOD - Listing procedure

Data type: TWLV-LSTFL
Default: 'B1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ARTICLE_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

MC_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

ALREADY_DONE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NOT_POSSIBLE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

CLASSIFICATION_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_PROFIL_IN_TARGET - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_ACCESS - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ARTICLE_RECLASSIFY_LITE_RETAIL 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_i_matnr  TYPE MARA-MATNR, "   
lv_article_not_found  TYPE MARA, "   
lv_i_same_profil  TYPE SY-BATCH, "   
lv_i_prot  TYPE SY-BATCH, "   'X'
lv_i_aregel  TYPE SY-BATCH, "   'X'
lv_i_newwg  TYPE MARA-MATKL, "   
lv_mc_not_found  TYPE MARA, "   
lv_i_test  TYPE SY-BATCH, "   'X'
lv_already_done  TYPE SY, "   
lv_i_newprofil  TYPE KLAH-CLASS, "   
lv_not_possible  TYPE KLAH, "   
lv_i_best  TYPE SY-BATCH, "   ' '
lv_classification_error  TYPE SY, "   
lv_i_auft  TYPE SY-BATCH, "   ' '
lv_no_profil_in_target  TYPE SY, "   
lv_i_listo  TYPE SY-BATCH, "   ' '
lv_no_access  TYPE SY, "   
lv_i_listn  TYPE SY-BATCH, "   ' '
lv_i_list_method  TYPE TWLV-LSTFL. "   'B1'

  CALL FUNCTION 'ARTICLE_RECLASSIFY_LITE_RETAIL'  "NOTRANSL: Einfache Artikelreklassifzierung
    EXPORTING
         I_MATNR = lv_i_matnr
         I_SAME_PROFIL = lv_i_same_profil
         I_PROT = lv_i_prot
         I_AREGEL = lv_i_aregel
         I_NEWWG = lv_i_newwg
         I_TEST = lv_i_test
         I_NEWPROFIL = lv_i_newprofil
         I_BEST = lv_i_best
         I_AUFT = lv_i_auft
         I_LISTO = lv_i_listo
         I_LISTN = lv_i_listn
         I_LIST_METHOD = lv_i_list_method
    EXCEPTIONS
        ARTICLE_NOT_FOUND = 1
        MC_NOT_FOUND = 2
        ALREADY_DONE = 3
        NOT_POSSIBLE = 4
        CLASSIFICATION_ERROR = 5
        NO_PROFIL_IN_TARGET = 6
        NO_ACCESS = 7
. " ARTICLE_RECLASSIFY_LITE_RETAIL




ABAP code using 7.40 inline data declarations to call FM ARTICLE_RECLASSIFY_LITE_RETAIL

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 MATNR FROM MARA INTO @DATA(ld_i_matnr).
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_same_profil).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_prot).
DATA(ld_i_prot) = 'X'.
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_aregel).
DATA(ld_i_aregel) = 'X'.
 
"SELECT single MATKL FROM MARA INTO @DATA(ld_i_newwg).
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_test).
DATA(ld_i_test) = 'X'.
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_i_newprofil).
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_best).
DATA(ld_i_best) = ' '.
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_auft).
DATA(ld_i_auft) = ' '.
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_listo).
DATA(ld_i_listo) = ' '.
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_listn).
DATA(ld_i_listn) = ' '.
 
"SELECT single LSTFL FROM TWLV INTO @DATA(ld_i_list_method).
DATA(ld_i_list_method) = 'B1'.
 


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!