Batch Classification error

Hi,
I have got an error that while user is trying to change batch 180208 for the product no 17962  , they are getting the error message, " Inconsistency in classification data, transaction terminated".
iam not aware how to change batches .How to resolve the above and thru which T-codes.
regards
sachin

Hi, I checked in batch master Msc3n, there is no classification data maitained for the batch number i have   specified for the material. However in the material master classifcation data is maitained.
One thing, I have seen in the batch master , MSC3n that the batch no is selected as non-classified (and no classifcation data maintained) whereas in material master, the classification data is there.
Is non maintienance of classifcation data in batch master, the reason for error even if the batch in selected as non -classified in batch master.
aslo the class type in material master is taken as 001 instead of 023.
regards
sachin

Similar Messages

  • Batch Classification error - re Customer name change

    Dear all,
    We have a problem with Batch classification for one customer who has had a name change.
    Name of customer changed and search term changed in customer master.
    The NEW search term then added as a 'customer suitability Value'  into the Batch classification for material, plant and batches.
    However when entering these batches onto the delivery note, SAP comes up with BATCH CLASSIFICATION ERROR.
    IN order to resolve this, we have had to add the OLD customer suitability/Search term value into the Batch classification
    This does not seem to be correct, is there some other change that we need to do ???
    Please advise
    Thanks
    Tony

    Hi
    We put this to SAP via Service marketplace
    and they kindly told us where our error was
    We needed to update the new searchterm in transaction VCH3 - Batch search strategy
    this involves SHip to, materials
    when you hi-lite the grade and click on the selection criteria
    The customer suitability in here , which is the search term in customer masterdata, had never ever been updated
    problem resolved now
    Tony

  • Automatic batch classification with procedure on goods receipt does not wor

    Hi,
    I have a material with batch classification.
    The material has two characteristics.
    One is a number called VALUE.
    The other is also a number (called CONVERSION) and shall be deived from the first.
    A procedure is created and assigned to the second characteristic.
    $SET_DEFAULT ($SELF, CONVERSION , $SELF.VALUE / 6000)
    When I post a goods receive (movement Type 501) the characteristics can be filled . The field VALUE is set with 12000.
    I was expecting the characteristic CONVERSION to be calculated as '2' and filled by the procedure.
    This is not the case.
    If however, I try to fill it manually, the system accepts only the calculated value '2'. Otherwise an error is shown.
    How can I force the system to calculate and fill the second characteristic when insserting a value in the first ?
    Thanks for any help.

    Hi Marcus,
    i have the same problem with movement type 101.
    How did you solve this issue?
    Can you help me.
    Thank you.
    CM

  • Updating Batch classification data from MIGO for Purchase order

    Hi,
    I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
    1) Pass material and batch to MCH1 table to get CUOBJ_BM.
    2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
    3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
    4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
    I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
    Class type 023, object type MCH1, object RAW-6             0000001151
    Object is currently locked by user
    The assignment was not changed
    Please let me know how to do it. Is there any BADI or User Exit?

    Hi,
    As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
    I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
    Regards,
    Rafi

  • Update Batch Classification for a Material

    Hello friends,
    I'm facing the following problem : A specific BTCI wich simulates MB01 was calling another program called SAPLCTMS to update Batch classification for a Material, this program (SAPLCTMS ) seems to be not necessary after the support package Level 57 (we just installed SAP4.6C). I didn't find any note on OSS for this...
    Now i'm trying to use this BAPI instead of BTCI for the Material batch classification  :
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
             EXPORTING
                  objectkey          = l_objnum
                  objecttable        = 'MCH1'
                  classnum           = 'ZGB_TIDCLASS'
                  classtype          = '022'
                  status             = '1'
                  keydate            = sy-datum
             TABLES
                  allocvaluesnumnew  = t_valuesnum
                  allocvaluescharnew = t_valueschar
                  allocvaluescurrnew = t_valuescurr
                  return             = t_return.
    But its not working, it keeps asking for a batch number. I guess i'm not using the right FM ?
    Any ideas about this ?
    Thank you in advance for your help !
    Best Regards.
    Edited by: Soufiane FAYSSAL on Jun 18, 2009 11:42 AM

    Hello,
    I am Ashok Chelikani. I am working on the same Issue.
    i am getting following message:
    TYPE ID    NUMBER  MESSAGE
    E       |C1   |003          |Characteristic DIMENSIONSCOLOR not found or not valid
    I        |CL   |736          |Assignment was not created 
    my procedure as follows:
    CLEAR: lv_objnum.
    lv_objnum = I_MSEG-MATNR.
    **Get Object Details
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = lv_objnum
    objecttable = 'MARA'
    classnum = 'Z_RMBCH1'
    classtype = '001' 
    TABLES
    allocvaluesnum = lt_alloc_num
    allocvalueschar = lt_alloc_char
    allocvaluescurr = lt_alloc_curr
    return = lt_return.
    IF NOT lt_return IS INITIAL.
    CLEAR: lv_objnum.
    lv_objnum(18) = I_MSEG-MATNR.
    lv_objnum+18(10) = I_MSEG-CHARG.
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    objectkey = lV_objnum
    objecttable = 'MCH1'
    classnum = 'Z_RMBCH1'
    classtype = '023' 
    tables
    allocvaluesnumnew = lt_alloc_num
    allocvaluescharnew = lt_alloc_char
    allocvaluescurrnew = lt_alloc_curr
    return = lt_return.
    lt_return returing error message. Kindly help me.

  • Idoc: post goods movement and batch classification

    Hi,
    I want to process a goods receipt to PO (mvt: 101) via Idoc for a batch managed part and also add some data into the batch classification.
    The idoc processing works (including the creation of the classification data). but as soon as I want to add data to the classification within the same function module I get a lock entry error.
    Can someone give me a hint of how to do that? what is the best option to fill additional classification data (maybe a BAPI?)
    Thanks for any help!
    Right now I added the following coding to the function module (copy of IDOC_INPUT_MBGMCR) which processes the idoc (here I get the error that the data of material XXX is blocked!):
        PERFORM dynpro USING:
                'X'  'SAPMM03S'     '0105',
                ' '  'RM03S-MATNR'   batch_data-matnr,
                ' '  'RM03S-WERKS'   batch_data-werks,
                ' '  'RM03S-CHARG'   batch_data-batch,
                ' '  'RM03S-LGORT'   '    ',
                'X'  'SAPMM03S'     '0200',
                ' '  'BDC_OKCODE'   '/7',
                'X'  'SAPLCTMS'     '0109'.
        IF batch_data-trace1 NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(1)'  'TRACECODE1',
                ' '  'RCTMS-MWERT(1)'   batch_data-trace1.
        ENDIF.
        IF batch_data-trace2 NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(2)'  'TRACECODE2',
                ' '  'RCTMS-MWERT(2)'   batch_data-trace2.
        ENDIF.
        IF batch_data-lotno NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(4)'  'STM_LOT',
                ' '  'RCTMS-MWERT(4)'   batch_data-lotno.
        ENDIF.
        IF batch_data-difflot NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(5)'  'STM_DIFFUSION_LOT',
                ' '  'RCTMS-MWERT(5)'   batch_data-difflot.
        ENDIF.
        PERFORM dynpro USING:
                ' '  'BDC_OKCODE'   '/3',
                'X'  'SAPMM03S'     '0200',
                ' '  'BDC_OKCODE'   '/11'.
      post changes
        CLEAR:  msg, msg[].
        l_mode = 'N'.
        CALL TRANSACTION 'MSC2' USING tbdc MODE l_mode UPDATE 'S'
                                MESSAGES INTO msg.

    Sorry! resolved it myself. I was jsut a commit missing.
    I called the BAPI_TRANSACTION_COMMIT before processing my routine to update the classification data and it worked.

  • Copy of Material Master charac. values to the batch classif. in GR for PO

    Dear gurus,
    Could you please help me with the following issue. I have a material managed in batches, and it has a classification type 023 in material master. I fill one chaacteristic of this classification with some value. Now I want this value to be copied to the batch classification during the creation of new batch while making GR to production order.
    Is it possible?

    Hi Nikolaj,
    What I am understand your requirement is like,
    You want to fetch the value of Characteristic maintain in Batch class in Material master to the Batches, correct?
    But my Friend if you maintain value of characteristic in Batch Class in material master then it will works as a validation.
    For Example,
    Suppose your Characteristic is Colour and in Material Master Batch classification view you have maintain value as Red.Then system will not allow you any other colour in Batches.You will find that value in Drop Down list.
    Regards,
    Dhaval

  • Different Batch Classification at storage location level

    Dear guru ,
    I have tested that i can insert different values of batch classification for the same material and the
    same batch number but in different plants.
    In MSC1N/MSC2N transaction the system allow a insertion at storage location level.
    Itu2019s possible to insert different values of batch classification for the same material , same batch number and the same plant but in different storage locations ?
    Thanks.

    hi,
       check in OMCT under which batch level the current system is, if the level is set to be material level or client level, if you make a change to the batch classificaiton, it will reflect in all the plants across the clients.
    Batch classification is not maintained at the storage location level.

  • Error while creating a product group--Batch input error 9

    Hi,
       While creating a product group in T-code MC84, getting the error message" Product group can not be created (Batch input error 9)". Would appreciate providing yr help to resolve above issue.
    Thks,
    Nilesh

    Hi Neel,
       As ponited by you, the material type "PROD" is realted with creation of product group.I am able to resolve the error, "actually the work schedulling & MRP views were not activated for "PROD" resulting in the above error.
      Thks for yr help.
    Regards,
    Nilesh

  • Batch Classification Values not getting changed

    Hi Gurus,
    I am using the following bapi ( BAPI_OBJCL_CHANGE ) to change Batch classification values Eg: Cut clarity etc.
    when i pass these values thru the function module in the program it is not getting changed while when i change it through msc2n it gets changed successfully...
    I have passed the following values in the parameters of the bapi :
    OBJECTKEY            = v_objectkey          
    OBJECTTABLE        = 'MCH1'          
    CLASSNUM             = V_CLASSNUM 
    CLASSTYPE           = '023'
    KEYDATE                = 30.04.2010
    ALLOCVALUESCHARNEW
    CHARACT = CLARITY
    VALUE_CHAR =  P040
    VALUE_NEW   = P040.
    Can some one help me solve this....
    Needed urgently..
    Edited by: NAVIN FERNANDES on Apr 30, 2010 12:31 PM
    Edited by: NAVIN FERNANDES on Apr 30, 2010 12:32 PM

    Hi Jacky,
    I am posting the code here.. Do let me know if u have ne queries:
    REPORT  ZNAVBATCH.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS: P_MATNR TYPE MATNR,
                P_CHARG TYPE CHARG_D,
                P_WERKS TYPE WERKS_D,
                P_LGORT TYPE LGORT_D.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      DATA: WA_BATCH TYPE BAPI1003_OBJECT_KEYS,
            WA_ALLOCCHAR TYPE BAPI1003_ALLOC_VALUES_CHAR,
            WA_ALLOCVAL TYPE BAPI1003_ALLOC_VALUES_NUM,
            INT_BATCH TYPE STANDARD TABLE OF BAPI1003_OBJECT_KEYS,
            INT_RET1 TYPE STANDARD TABLE OF BAPIRET2,
            INT_RET2 TYPE STANDARD TABLE OF BAPIRET2,
            INT_RET3 TYPE STANDARD TABLE OF BAPIRET2,
            LV_KEY TYPE BAPI1003_KEY-OBJECT,
            INT_ALLOCVAL TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_NUM,
            INT_ALLOCCHAR TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CHAR,
            INT_ALLOCCURR TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CURR.
      WA_BATCH-KEY_FIELD = 'MATNR'.
      WA_BATCH-VALUE_INT = P_MATNR.
      APPEND WA_BATCH TO INT_BATCH.
      WA_BATCH-KEY_FIELD = 'CHARG'.
      WA_BATCH-VALUE_INT = P_CHARG.
      APPEND WA_BATCH TO INT_BATCH.
      CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
        EXPORTING
          OBJECTTABLE    = 'MCH1'
        IMPORTING
          OBJECTKEY_CONC = LV_KEY
        TABLES
          OBJECTKEYTABLE = INT_BATCH
          RETURN         = INT_RET1.
      IF SY-SUBRC = 0.
       WRITE: 'SUCCESSFUL'.
        CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
          EXPORTING
            OBJECTKEY              = LV_KEY
            OBJECTTABLE            = 'MCH1'
            CLASSNUM               = 'ZTBATCHCHR'
            CLASSTYPE              = '023'
            KEYDATE                = SY-DATUM
          UNVALUATED_CHARS       = ' '
          LANGUAGE               = SY-LANGU
        IMPORTING
          STATUS                 =
          STANDARDCLASS          =
          TABLES
            ALLOCVALUESNUM         = INT_ALLOCVAL
            ALLOCVALUESCHAR        = INT_ALLOCCHAR
            ALLOCVALUESCURR        = INT_ALLOCCURR
            RETURN                 = INT_RET2
        IF SY-SUBRC = 0.
          WRITE : 'SUCCESSFUL'.
          READ TABLE INT_ALLOCCHAR INTO WA_ALLOCCHAR WITH KEY CHARACT = 'CLARITY'.
          IF SY-SUBRC = 0.
            WA_ALLOCCHAR-VALUE_CHAR = 'C02'.
            WA_ALLOCCHAR-VALUE_NEUTRAL = 'C02'.
            MODIFY INT_ALLOCCHAR FROM WA_ALLOCCHAR INDEX SY-TABIX TRANSPORTING VALUE_CHAR VALUE_NEUTRAL.
          ENDIF.
          CALL FUNCTION 'BAPI_OBJCL_CHANGE'
            EXPORTING
              OBJECTKEY                = LV_KEY
              OBJECTTABLE              = 'MCH1'
              CLASSNUM                 = 'ZTBATCHCHR'
              CLASSTYPE                = '023'
             STATUS                   = '1'
             STANDARDCLASS            =
             CHANGENUMBER             =
             KEYDATE                  = SY-DATUM
             NO_DEFAULT_VALUES        = ' '
           IMPORTING
             CLASSIF_STATUS           =
            TABLES
              ALLOCVALUESNUMNEW        = INT_ALLOCVAL
              ALLOCVALUESCHARNEW       = INT_ALLOCCHAR
              ALLOCVALUESCURRNEW       = INT_ALLOCCURR
              RETURN                   = INT_RET3
          IF SY-SUBRC = 0.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
               WAIT          = 'X'
            IMPORTING
              RETURN        =
            IF SY-SUBRC = 0.
              WRITE: 'SUCCESSFUL'.
            ENDIF.
          ENDIF.
        ENDIF.
    ENDIF.

  • Need a bapi r  fn module to update the batch classification in the bom

    hi,
    iam working a exit : exit_saplcoml_001.This exit is for material quantity calculation.the materials are currently classified in the material master under the classification tab.Ans due to this the classification becomes cross plant.
    To make the material classification plant specific i have decided to maintain the classification in the batch classification of bom.i am finding for a function module r a bapi to update the calculated values in to the batch classification characteristics.please help mi with this.
    thanks.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • How to Change Batch Classification of material master

    Hi,
    How to Change Batch Classification of material master  in a production system,Pl note that there is no stock and no open qty still system is not allowing me to delete the old Classification and add my new classification.
    Guys any solution for this.
    Thanks in advance
    rgds
    bijaya pradhan

    I believe there is a FM VB_CHANGE_BATCH for this, any body tried this FM?

  • Copy batch classification in GR (101)

    Dear gurus,
    Could you please help me with the following issue.
    I have a material managed in batches, and it has a classification type 023 in material master.
    Now I want the class (with all characteristics) to be copied to the batch classification during the good reciept (MIGO / 101).
    How it's possible?
    When i go to the batch generated in migo (101) using T-code MSC2N, there is one icone in Classification-tab "Create classification". and i can do it manually. how can we do this automatically in GR (101).
    Thanks in advance.

    Hi,
    Check for that movement type in OMJJ in Entry control tab where there is field called  classification batch, check what is defined for that movement type.
    Regards
    Ravi Shankar.

  • Batch classification "Date of last goods receipt" is "00.00.0000"

    Dear all,
    I have configured all steps for batch determination for FIFO.
    It worked fine for IM (stock transfer - mov.type 301) on last friday, however, get the issue today:
    - After I do GR (mov.type 101), the batch is auto created, batch classification is created,
    I use MSC2N to view batch classification:
    the value of "Date of last goods receipt" is "00.00.0000"
    What is wrong with my configuration?
    Could you pls help me to fix this?
    Thanl you very much for you help!
    Edited by: Ngo Quoc Hung on Dec 13, 2010 10:59 AM

    System Updates Batch Data in the Batch Master Record in the Following ways :
    1)  If the batch does not yet exist for the plant, it is automatically created.
    2)  If the batch already exists for the plant, the new quantity is simply posted as a receipt in the specified storage location.
    When posting a goods receipt with reference to Purchase order, the system updates Posting date as the goods receipt date in general data of the batch.

  • Want to find out how a batch classification is used

    Hello
    I have previously sent out a message and the idea given was not very helpful.
    Anyway, this is my question:
    I have found a class and its characteristic which was setup in the system and I would like to know how this classification` is being use in the system.
    For example, I would like to know which process (i.e. during goods receipt, during sales order creation, during production, during warehouse) is using this classification to perform their transaction.
    Do you know how to find out this kind of information in the SAP system?
    Thanks
    Tuff

    Do you want to know how the batch classification is used in general in SAP or how it is used in the system where you found it?
    In the latter case make an interview with the users, any process that has to do with stock can make use of the batch classification
    In general is classification exact what the word "classification" means. You describe something in more detail in an organized way. Classification is a modification free way to add own "fields" to standard objects, the user can immediately search  in classification without an extra effort to develop a search help.
    The batch classification can be used in a batch determination to to enable SAP to automatically search for batches with certain characteristics.and assign them to documents like sales order, delivery, goods movements, transfer orders, and production/process orders.

Maybe you are looking for