SAP COWIPB_CL_BATCH_CLASS Function Module for NOTRANSL: Allgemeine Funktion: Umgebung der klassifizierung









COWIPB_CL_BATCH_CLASS is a standard cowipb cl batch class 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: Allgemeine Funktion: Umgebung der klassifizierung 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 cowipb cl batch class FM, simply by entering the name COWIPB_CL_BATCH_CLASS into the relevant SAP transaction such as SE37 or SE38.

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



Function COWIPB_CL_BATCH_CLASS 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 'COWIPB_CL_BATCH_CLASS'"NOTRANSL: Allgemeine Funktion: Umgebung der klassifizierung
EXPORTING
I_MATNR = "Material Number
I_WERKS = "Plant
I_CHARG = "Batch Number
* I_MAKTX = ' ' "Material Short Text with Field Label 'Material'
* I_NO_FETCH = ' ' "Generic Type
* I_INT_VAL = ' ' "Generic Type
* I_INIT_DDB_CLAP = ' ' "Generic Type

IMPORTING
E_OBJECT = "Key of Object to Be Classified
E_KLART = "Class Type
E_CLASS = "Class Number
E_PTABLE = "Name of Database Table for Object
NO_ACTIVE_STATUS = "Classification system basic data

TABLES
* T_API_VAL_S = "Assigning and Deleting Characteristic Values
* T_API_VAL_E = "Assigning and Deleting Characteristic Values
* T_API_CH_ATT = "Attributes of Characteristics
* T_API_VALI = "API Interface for Characteristic Value (Internal)

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for COWIPB_CL_BATCH_CLASS

I_MATNR - Material Number

Data type: GOITEM-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_WERKS - Plant

Data type: GOITEM-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

I_CHARG - Batch Number

Data type: GOITEM-CHARG
Optional: No
Call by Reference: No ( called with pass by value option)

I_MAKTX - Material Short Text with Field Label 'Material'

Data type: GOITEM-MAKTX
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

I_NO_FETCH - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_INT_VAL - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_INIT_DDB_CLAP - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for COWIPB_CL_BATCH_CLASS

E_OBJECT - Key of Object to Be Classified

Data type: RMCLF-OBJEK
Optional: No
Call by Reference: No ( called with pass by value option)

E_KLART - Class Type

Data type: RMCLF-KLART
Optional: No
Call by Reference: No ( called with pass by value option)

E_CLASS - Class Number

Data type: KLAH-CLASS
Optional: No
Call by Reference: No ( called with pass by value option)

E_PTABLE - Name of Database Table for Object

Data type: TCLT-OBTAB
Optional: No
Call by Reference: No ( called with pass by value option)

NO_ACTIVE_STATUS - Classification system basic data

Data type: RMCLM-BASISD
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for COWIPB_CL_BATCH_CLASS

T_API_VAL_S - Assigning and Deleting Characteristic Values

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

T_API_VAL_E - Assigning and Deleting Characteristic Values

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

T_API_CH_ATT - Attributes of Characteristics

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

T_API_VALI - API Interface for Characteristic Value (Internal)

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

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for COWIPB_CL_BATCH_CLASS 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 GOITEM-MATNR, "   
lv_e_object  TYPE RMCLF-OBJEK, "   
lv_not_found  TYPE RMCLF, "   
lt_t_api_val_s  TYPE STANDARD TABLE OF API_VAL_I, "   
lv_e_klart  TYPE RMCLF-KLART, "   
lv_i_werks  TYPE GOITEM-WERKS, "   
lt_t_api_val_e  TYPE STANDARD TABLE OF API_VAL_I, "   
lv_e_class  TYPE KLAH-CLASS, "   
lv_i_charg  TYPE GOITEM-CHARG, "   
lt_t_api_ch_att  TYPE STANDARD TABLE OF API_CH_ATT, "   
lv_i_maktx  TYPE GOITEM-MAKTX, "   SPACE
lv_e_ptable  TYPE TCLT-OBTAB, "   
lt_t_api_vali  TYPE STANDARD TABLE OF API_VALI, "   
lv_i_no_fetch  TYPE C, "   SPACE
lv_no_active_status  TYPE RMCLM-BASISD, "   
lv_i_int_val  TYPE C, "   SPACE
lv_i_init_ddb_clap  TYPE C. "   SPACE

  CALL FUNCTION 'COWIPB_CL_BATCH_CLASS'  "NOTRANSL: Allgemeine Funktion: Umgebung der klassifizierung
    EXPORTING
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         I_CHARG = lv_i_charg
         I_MAKTX = lv_i_maktx
         I_NO_FETCH = lv_i_no_fetch
         I_INT_VAL = lv_i_int_val
         I_INIT_DDB_CLAP = lv_i_init_ddb_clap
    IMPORTING
         E_OBJECT = lv_e_object
         E_KLART = lv_e_klart
         E_CLASS = lv_e_class
         E_PTABLE = lv_e_ptable
         NO_ACTIVE_STATUS = lv_no_active_status
    TABLES
         T_API_VAL_S = lt_t_api_val_s
         T_API_VAL_E = lt_t_api_val_e
         T_API_CH_ATT = lt_t_api_ch_att
         T_API_VALI = lt_t_api_vali
    EXCEPTIONS
        NOT_FOUND = 1
. " COWIPB_CL_BATCH_CLASS




ABAP code using 7.40 inline data declarations to call FM COWIPB_CL_BATCH_CLASS

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 GOITEM INTO @DATA(ld_i_matnr).
 
"SELECT single OBJEK FROM RMCLF INTO @DATA(ld_e_object).
 
 
 
"SELECT single KLART FROM RMCLF INTO @DATA(ld_e_klart).
 
"SELECT single WERKS FROM GOITEM INTO @DATA(ld_i_werks).
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_e_class).
 
"SELECT single CHARG FROM GOITEM INTO @DATA(ld_i_charg).
 
 
"SELECT single MAKTX FROM GOITEM INTO @DATA(ld_i_maktx).
DATA(ld_i_maktx) = ' '.
 
"SELECT single OBTAB FROM TCLT INTO @DATA(ld_e_ptable).
 
 
DATA(ld_i_no_fetch) = ' '.
 
"SELECT single BASISD FROM RMCLM INTO @DATA(ld_no_active_status).
 
DATA(ld_i_int_val) = ' '.
 
DATA(ld_i_init_ddb_clap) = ' '.
 


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!