Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How obtain the value stored in MSC3N in the folder "Classification"

Former Member
0 Kudos

Hi all,

I need to get to the value stored in MSC3N in the folder "Classification" Characteristic description and value.

At the time I 've found this funtion

BAPI_CLASS_GET_CHARACTERISTICS

BAPI_CHARACT_GETDETAIL

to obtain the "Characteristic description" but for the what can I do?

Does anybody know the steps (or functions) to obtain this information ?

I thank you in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

try this function module you will get the same details like MSC3n.



* concatenate the material number and Batch number
  w_l_object = material number with leading zeros._
  w_l_object+18(10) = w_e_7b1_view-batch_number.

* Retrieve Material Batch Classes
  CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
    EXPORTING
      classtype          = zc7b1_batch_class_type
      features           = 'X'
      language           = 'E'
      object             = w_l_object  "it is a combination of Material and Batch number
      objecttable        = 'MCH1'
      initial_charact    = 'X'
    TABLES
      t_class            = t_lclass
      t_objectdata       = t_objectdata
    EXCEPTIONS
      no_classification  = 1
      no_classtypes      = 2
      invalid_class_type = 3
      OTHERS             = 4.

  IF sy-subrc = 0.

  ENDIF.

or

you will get full dat from CABN ,CAWN,CAWNT tables

Prabhudas

Edited by: Prabhu Das on Jul 10, 2009 12:08 AM

4 REPLIES 4

Former Member
0 Kudos

Check table CABN.

Regards

Sabu.

Former Member
0 Kudos

Hi,

try this function module you will get the same details like MSC3n.



* concatenate the material number and Batch number
  w_l_object = material number with leading zeros._
  w_l_object+18(10) = w_e_7b1_view-batch_number.

* Retrieve Material Batch Classes
  CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
    EXPORTING
      classtype          = zc7b1_batch_class_type
      features           = 'X'
      language           = 'E'
      object             = w_l_object  "it is a combination of Material and Batch number
      objecttable        = 'MCH1'
      initial_charact    = 'X'
    TABLES
      t_class            = t_lclass
      t_objectdata       = t_objectdata
    EXCEPTIONS
      no_classification  = 1
      no_classtypes      = 2
      invalid_class_type = 3
      OTHERS             = 4.

  IF sy-subrc = 0.

  ENDIF.

or

you will get full dat from CABN ,CAWN,CAWNT tables

Prabhudas

Edited by: Prabhu Das on Jul 10, 2009 12:08 AM

Former Member
0 Kudos

Is BAPI_CLASS_GET_CLASSIFICATIONS what you want?

Rob

Former Member
0 Kudos

use the fm VB_BATCH_GET_DETAIL