Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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.

Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question