Batch Classification Value

Hi,
How can i fetch Batch Classifcation values

Hi
Use the following BAPI's:
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
Reward if useful
regards
Anji

Similar Messages

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

  • Batch classification table

    Hello friends,
    Can any body provide the table in which the batch classification values are stored.
    Regards,
    Amit Shirsath.

    hi
    initially you need to get the object number CUOBJ_BM from MCHA
    then pass this value in as table AUSP and field OBJEK
    then you get the values
    -ashok

  • Batch classification flow to SD delivery

    dear experts
    we have FERT materials, which are having the batch specific conversion fatcor for tablets/container. Base UOM for these type of materials is 'Tablet' and sales order is also booked in base UOM only.
    Tablets are packed in container and the no of tablets per container varies batch to batch.
    Now i want to know by any means can we  bring the batch classification values into delivery.
    I want to use these values for further calculations for packing.
    please help
    regards
    kailash

    Entered Batch number as a charcteristic for sort criteria

  • 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

  • Batch Classification Characteristic Values in MIGO...

    Hi,
    Can we update Batch Classification Characteristic Values in MIGO...
    Batch is also created while doing MIGO. I have no issues in creating Batch.
    Thanks in advance...

    Hi.
      You can use the CACL_VALUE_CHANGE badi.
    Regards.

  • How to read classification value from batch class

    Hi Gurus,
    In our material master we maintain Batch class (023) from all RM where 2 characteristics value is very important one is std.moisture and another is actual moisture.Now Std moisture value is fixed and we maintain this value in material master.Actual moisture is variable batchwise and thats why we maintain it by using MSC2N.Here the problem is the std moisture is not coming in classification data autometically from Material Master but we already maintain it.It shows in Material Data tab.But I need that it will come in Classification data tab autometically as we use this in report.I use VB_BATCH_VALUES_FOR_OUTPUT Function for classification value fetching from material and batch.Now as this value is not coming automatically coming user again put this data.I want to know how can it come autometically?If it is not possible please tell me how I can get this data from material and batch as the above function is not working.
    Please help me out.
    Regards
    Nirmal

    check your customizing in IMG > Logistics general > Batch Management > Batch Valuation > Valuation for Goods Movement in Inventory Management > Activate Batch Classification for Goods Movements in IM

  • Batch Classification - copy values

    Hi,
    One of the requirements on the SD side is to print, the Batch class Characteristic values from the Raw MAterial on the Finished good's Invoice. Having performance concerns about reading MB56 for each Invoice line item, I was wondering if there is anyway to copy Batch characteristics values from the RM to the Finished good during Production ORder completion or any such process. All products are Batch managed.
    Would appreciate any inputs from you with similar requirements and your solutioning to it.
    Thks in Advance!

    It is not required that both the materials should have the same characterisitics.
    It completely depends on your requirement and development, of what characterisitics to be copied.
    If you need the total characteristics of the RM to be copied to FG then you should have the Characterisitcs in common.
    What ever the characteristics you want to copy should exist in both the materials.
    Hope this helps you.

  • 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

  • Batch characteristic value not populated!

    Hello guys,
    please would appreciate advice to following:
    I created two reference chars z_goods_receipt (MCH1-LWEDT) and z_created_on (MCH1-ERSDA). Chars assigned to material batch class. During GR in Classification Dates (chars values) are visible, but after GR is saved, in batch chars values are not populated.
    Consequently, I can not use these chars in sorting criterium for delivery batch determination - batches are not sorted acocrding to dates.
    Batches on material level. In Customizing (Classify batches within goods mvt), for mvt 101 setting is 4 (Classification always in foreground (all batches)) - but bug remains even if i try with other options. Check with developer shows not much help from EXIT_SAPMM07M_004 or EXIT_SAPMM07M_004 or EXIT_SAPLV01Z_012.
    Any idea how to populate these chars in batch?
    Alternatively, what else I could use in order to enable FIFO batch determination for batches in delivery?
    Thanks for prompt replies!
    Br, Jan

    Hello,
    SAP reply -standard behaviour. After save in MSC2n values read from MCH1, after that in MSC3N value read from AUSP.
    Issue solved using non reference charactereristic and adding code into ZXMBCU04.
    Br, Jan

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

  • 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

  • Copy of Batch characteristics value from material master to Batch

    Hi Gurus,
    I have maintained some values in the characteristics under batch classification in material master and want to copy the values in batch characteristics during batch creation at process order release.
    Can any one help me to achieve this in standard way?
    Thanks
    Sandip

    Hi,
    Try to understand the batch classification functionality...In batch classification characteristic values changes from batch to batch...Values should not be maintained in the material master...it does not have any meaning...in the material master we need to assign only the batch class with class type 023 in classification view ...no need to assign the values there....Batch classification means characteristics values differs from batch to batch...
    Thanks
    Kumar 

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

  • 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

Maybe you are looking for

  • TS4002 How can I get a notification sound when an email arrives?

    I am using Safari and icloud to manage and check emial. I am not receiving a notification sound. How can I get an audiable sound to alret me?

  • Inserting div in a pre-existing CSS layout

    I am trying to add a div tag to an existing CSS style sheet - twoColFixFt Hdr.css. I want to add a second sidebar under the existing sidebar which is floated to the right of the main content. I want the second sidebar to float to the right of the mai

  • Error in JMS

    Hi I tried the following code to connect to a JMS server which is running on a remote machine.. String strConnectionFactory="java:comp/env/jms/sample";                String strTopic="java:comp/env/jms/Computer";                Hashtable env = new Ha

  • Performance Tunning and Optimization in Site Studio based sites.

    Hi all, I am hosting a site studio based site but performance test number are not encouragin. I have made sure not execute lots of service. I am using LoadRunner for performance evaluation. Can some body please share with me the Performance strategy

  • Default Character Encoding stuck on UTF-8 - Firefox 7

    I cannot change the Character Encoding - it is stuck on Unicode UTF-8 and I can not change it! When a web page opens I get these little boxes with "FF FD" instead of Quote marks. When I change the character encoding on that page using "View->Characte