Batch classification logic

whats the logic of a batch determination, if i have previously set-up a batch search strategy for FEFO (nomination based on SLED) if i havent put in any SLED in the batches of the material? system still nominates batches, even if a batch has no SLED but has a classification tab.

Dear,
Its depend upon the characteristics assign to the material and your search procedure (MBC1) selection condition and sort rule CU70.
If you want to select the batch in FIFO criteria that is first in first out i.e. the batches that are received first will be selected, then
Assign this to class
Create sort sequence with ascending order
Then create batch search strategy in MBC1 transaction
Give the sort rule there
Give the no. of batch splits as much as you want or just keep 999
Then try doing the batch determination.
Regards,
R.Brahmankar

Similar Messages

  • 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

  • Need Badi/user exit-migo-update batch classification

    Hello all,
    I need to update revision level and country of origin in batch classification tab in migo while posting GR.
    I've already done using exit "EXIT_SAPLV01Z_014".
    But this exit triggers only when classification tab is clicked in migo.
    But i need to also update rev level and country of origin when GR is posted(Save button is pressed).
    I tried MB_CF001,MB_CF001,MBCF0002,MBCF0005,MBCF0006,MBCF0007,MBCF0009,MBCF0010,MBCF0011
    and badis
    MB_DOCUMENT_BADI,CACL_VALUE_CHANGE.
    Please someone help me
    Thanks in advance

    Hi Sriram,
    If you want to add logic on particular action you need to search for exact BADI.
    e.g.
    As you are expecting that your code need to be trigger when user press SAVE button (Time of Posting) so at that time you need to check which BADI get trigger ( I am assuming that you have knowledge on how to search BADI)
    List down the BADI name and check the methods. You will get exact method name in listed BADI's.
    I am hoping that while checking badi you will find MB_MIGO_BADI just check and use method [POST_DOCUMENT] for your logic.
    Also in User Exit you will see multiple function modules in component those function modules are behaving like PAI and PBO. so you need to find out whcih function module will trigger as per your requirement.
    please find below link which will help you to understand how to search User Exit.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0041d4e6-1e43-2e10-0db4-9386abe98fe6?overridelayout=t…
    Please let me know if its work for you.
    Regards,
    Nikhil

  • 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

  • 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

  • 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.

  • 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.

  • Batch classification class and MBC3

    Hi,
    I am a bit confused with the batch determination (i.e. how the R/3 searches the correct batch). Kindly please correct me on the following steps.
    1 u2013 Base on OMCG setup, R/3 pulls the batch search procedure base on the movement type in IM.
    2 u2013 R/3 searches through the strategy types listed in the search procedure to search for a search strategy.
    QUESTION:
    Letu2019s say there is this strategy condition type consist of access sequence and a class (to be used in batch classification)
    I am a bit confused here when come to the relationship between the classification and the access sequence. How does the R/3 find the correct batch when the R/3 can uses the characteristics from the selection class of the search strategy to look for batches with suitable specifications, in that case does the R/3 still have to access sequence to find the batch again in MBC3?
    If R/3 can find the batch through the batch determination from the classification, what is the MBC3 use for? I am confuse here because unlike batch determination, the pricing determination can just go find the right price value for a condition type base on the access sequence and later grab it in MEK3.
    The batch classification and MBC3 confused me? Are they both finding the same batch object or redundant to one another? Please explain with an example.
    rgd.
    Tuff

    Hi Jurgen,
    So, can you tell me which of the following sequence correct base on what you said.
    1 u2013
    Movement Type >> Batch Search Procedure >> Strategy Condition Type >> Batch Classification found the batch >> Go to batch condition table (i.e. base on the Access sequence in the strategy type) and get the final batch?
    2 u2013
    Movement Type >> Batch Search Procedure >> Strategy Condition Type >>  Go to batch condition table (i.e. base on the Access sequence in the strategy type) and get the batch >> Go to Batch Classification found the final batch?
    Which of the above is correct? And it seems my wording explanation is not quite correctu2026. Am I?
    Thanks
    Tuff

  • Batch Derivation Logic

    Dear Experts,
    I have one issue in Batch derivation Logic: For Batch derivation we have to create Strategy Type & Condition Type suppose if i create 2 condition types for sending Material like 1) Plant specific means In condion Table We have to give Sender Material Type & Plant & 2) Client Specific means in Condition Table we have to give only Sender Material Type then which condition type system will take while Batch Derivation.
    Regards,
    Shivkumar Dachawar

    Dear Experts,
    I have one issue in Batch derivation Logic: For Batch derivation we have to create Strategy Type & Condition Type suppose if i create 2 condition types for sending Material like 1) Plant specific means In condion Table We have to give Sender Material Type & Plant & 2) Client Specific means in Condition Table we have to give only Sender Material Type then which condition type system will take while Batch Derivation.
    Regards,
    Shivkumar Dachawar

  • Batch Classification Screen for Goods Movements

    SAP Gurus,
    Very recently (24. April), we experience the following issue: (PP-PI Process Order)
    At the moment of process order confirmation, for any new batch assigned in the good movement overview, there's no pop-up of batch classification screen which allow our user to entry the classification data. And this functionality works fine in the past.
    Do you have an idea that how it happens? We checked the configuration OMCV and master data as well, the settings are all fine to me.
    Best regards,
    Vincent

    Dear Vincent,
    I think you talk about the 101 movement, don't you? In this case this is not possible at all, check SAP note  85310
    Because goods movements can be decoupled from confirmations and          
    processed in background, it was decided that this functionality would    
    not be implemented; therefore this is Standard R/3.                      
    Solution                                                                 
    As a work around for this you have the following options:                                                                               
    1.  Classify your batch manually through Batch Master Maintenance.                                                                               
    2.  Turn off automatic goods receipt and classify your batch through the 
        pop-up that is presented during MM goods receipt.                                                                               
    3.  Do not create your batch during Order Processing. Instead have the   
        system create it during confirmation and at this time you will be    
        able to classify your new batch from the Goods Movement screen       
        COMPONENT>BATCH MANAGEMENT>CREATE BATCH.                                                                               
    Note :                                                                   
    If you want that your batch is classified in the background you can set  
    in the transaction OMCV (classify batches within goods movement          
    overview) that the classification is to happen in the background. You    
    can then utilise the user exit EXIT_SAPMM07M_004 to valuate the          
    characteristics if it is valid for                                       
    your release.                                                            
    Regards,
    Sabine

Maybe you are looking for