Skip to Content
author's profile photo Former Member
Former Member

Characterisitcs for a Batch

Hi all,

I have a batch number and a material number. I need to know all the characteristics in this batch. How can I know that. Are there any function modules or tables where I can get these characteristics for a batch.

Please help. Waiting for replies. thanks

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2006 at 02:02 AM

    Hi Raju:

    Table:

    MCHA --- Batches

    MCHB --- Batch Stocks

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 04, 2006 at 02:39 AM

    Depending on whether the batches are defined at a plant level or material level, you need to concatenate the material, plant and batch or material and batch into a variable of sufficient length. You then pass that to function module CLAF_CLASSIFICATION_OF_OBJECTS to get the classification values of the batch.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2006 at 04:30 AM

    try like this.

     call function 'VBWS_MARA_CLASSIFICATION_GET'
        exporting
          i_matnr                     = i_matnr
    *     I_UPDATE_FLAG               = ' '
    *     I_INIT_FLAG                 = ' '
    *     I_WITH_CHARACTERS           = 'X'
    *     I_WITH_VALUES               = 'X'
    *     I_WITH_ALLOWED_VALUES       =
    *     I_CHECK_NO_CHAR             = 'X'
    *   IMPORTING
    *     E_CLASS                     =
    *     E_OBTAB                     =
    *     E_CUOBJ                     =
        tables
    *     E_CL_CHAR                   =
          e_cl_char_value             = it_values
    *   EXCEPTIONS
    *     CLASSTYPE_NOT_FOUND         = 1
    *     CLASSTYPE_NOT_ACTIVE        = 2
    *     CLASS_NOT_FOUND             = 3
    *     NO_ALLOCATIONS              = 4
    *     CHARACTERS_NOT_FOUND        = 5
    *     OTHERS                      = 6
                .

    Regards

    Prabhu

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2006 at 05:29 AM

    Hi!

    CALL FUNCTION 'VB_BATCH_GET_DETAIL'

    EXPORTING

    matnr = matnr_val

    charg = batch_val

    • WERKS =

    get_classification = 'X'

    • EXISTENCE_CHECK =

    • READ_FROM_BUFFER =

    • NO_CLASS_INIT = ' '

    • LOCK_BATCH = ' '

    • IMPORTING

    • YMCHA =

    • CLASSNAME =

    TABLES

    char_of_batch = it_batch_characteristics

    EXCEPTIONS

    no_material = 1

    no_batch = 2

    no_plant = 3

    material_not_found = 4

    plant_not_found = 5

    no_authority = 6

    batch_not_exist = 7

    lock_on_batch = 8

    OTHERS = 9

    .

    it_batch_characteristics contains characteristics for given batch number and material number.

    Regards,

    Maxim.

    Add comment
    10|10000 characters needed characters exceeded