How to find batch class based on material number

Hi experts,
Can any one say how to get Batch class number by giving material number as input
regards
subbu

Hi ,
check in MCH1 table.....
or  try this way..
By using this function module you can get the batch class related to material..
* Retrieve Material Batch Classes
  CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
    EXPORTING
      classtype          = zc7b1_batch_class_type
      features           = 'X'
      language           = 'E'
      object             = w_object             "Pass material Number with leading zeros
      objecttable        = 'MCH1'              "Pass table MCH1
      initial_charact    = 'X'
    TABLES
      t_class            = t_lclass             " check here what are all the classes related to material
      t_objectdata       = t_objectdata
    EXCEPTIONS
      no_classification  = 1
      no_classtypes      = 2
      invalid_class_type = 3
      OTHERS             = 4.
Prabhudas

Similar Messages

  • How to get ATINN value based on material number and Class Type ?

    I have below SELECT stmt code which gives the correct value of atwrt based on materil no and ATINN.
    However in quality system, it is failing because in quality system "atinn" value is not 0000000381. It is different.
    So how can I get ATINN(Internal characteristic) value based on material number and Class Type?
    -Obtain the batch characterstic value for the Material******************
      SELECT atwrt
        UP TO 1 ROWS
        INTO v_charvalue
        FROM ausp
       WHERE objek = mcha-matnr
         AND atinn = '0000000381'   " 'US80_FRENCH_ON_LABEL'
         AND klart = '001'.
    THANKS N ADVANCE.

    Hi SAm,
    use the Below function module to get the Atinn for Atwrt for thr Class and MAterial combination..
    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
          EXPORTING
            classtype          = '023'       "Class type
            object             = w_object  "Material number with Leading zeros
            no_value_descript  = 'X'      "Default X
            objecttable        = 'MCH1'    "Table name Mara or MCH1 or MARC
          TABLES
            t_class            = t_class   "It return the Batch class available for the above combination
            t_objectdata       = t_char  "Return Batch characteristics(ATWRT) and their value ATINN in this table
          EXCEPTIONS
            no_classification  = 1
            no_classtypes      = 2
            invalid_class_type = 3
            OTHERS             = 4.
    Regards,
    Prabhudas

  • How to find country code based on delivery number

    HI Folks,
    plz suggest which table is having country code(ship-to party) based on delivery number.this should be storage location country.
    Thanks,
    Ritesh.
    Message was edited by:
            Ritesh Shrivastava

    Hi,
    You can also get it from the table VBPA..
    SELECT SINGLE * FROM VBPA
                  WHERE VBELN = 'DELIVERY NUMBER'
                  AND       PARVW = 'WE'.   "SHIP TO PARTY.
    VBAP-LAND1 will be the country code..
    Thanks,
    Naren

  • HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER

    Hi,
           I want to know how to find the last document details based on material number.
    Is there any Functional modulle or BAPI programe?
    i,e, I want know last goods receipt details (MIGO)  based on material number.
    Can u please anybody tell me.
    Thanks,
    S.Muthu.
    Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AM

    Hello.
    Check the BAPI_GOODSMVT_GETITEMS
    -example--
    Get GRs after a specific date for a specific plant/ storage location and movement types
      wa_budats-sign = 'I'.
      wa_budats-option = 'GE'.
      wa_budats-low = '20071201'.
      APPEND wa_budats TO budats.
      wa_plants-sign = 'I'.
      wa_plants-option = 'EQ'.
      wa_plants-low = '1000'.
      APPEND wa_plants TO plants.
      wa_stlocs-sign = 'I'.
      wa_stlocs-option = 'EQ'.
      wa_stlocs-low = '0001'.
      APPEND wa_stlocs TO stlocs.
      wa_mvts-sign = 'I'.
      wa_mvts-option = 'EQ'.
      wa_mvts-low = '101'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '901'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '123'.
      APPEND wa_mvts TO mvts.
      CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
        TABLES
          plant_ra        = plants
          stge_loc_ra     = stlocs
          move_type_ra    = mvts
          pstng_date_ra   = budats
          goodsmvt_header = header
          goodsmvt_items  = item
          return          = return.
    Reward if helpful.
    Cheers,
    George

  • Find batch class of material and characteristics

    Hello Experts,
    can anybody send sample code to derive the batch class of the material and list of characteristics that are assigned to that class.
    Thanks in advance.
    Zak.

    Tables used for batch characterastics are:
    MCH1
    AUSP
    CABN
    MCH1->CUOBJ_BM   = AUSP->OBJEK     (see preceding zeros)
    AUSP->ATINN           = CABN->ATINN
    Thanks
    Ganesh

  • How to find a materail based on Sales Area ??

    Dear All,
    How to find a materail based on Sales Area ??
    please let me know ..
    Thanks
    Venkat

    Hi Venkat
    Its actually the other way round- you extend a material to a sales area
    The quickest way to find all the sales areas to which a material is extended,  is to go to  transaction SE16 and give table MVKE and then give the relevant parameters.
    Please reward points if this helps you

  • HOW TO FIND OUT VA TARGET IN MATERIAL COSTING

    Hi experts,
        how to find out va target in material costing. I got a field from keph-kts004 but i cant able to find out how it is calculated.
    Whenever costing using ck11n for one material  va target coming correct value but using ck40n for multiple material  va target coming incoorect . it is taking previous material  va target value .
       Please  help on this one and u can get reward points,
    Thanks,
    venky

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • Anyone know how to find available classes in a package?

    Anyone know how to find available classes in a package?
    Given a String like "java.io" I would like to write a method to extract the available classes in this package. I can't seem to find a method for this anywhere in the docs. The package class does not seem to have a method like this.

    Here is some code I tried.
    I'm not very familiar with manipulating JARs The code below is what I tried, but how do I access the packages like "java.io" in the JarFile? and then get the available classes?
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    class Tester
         public static void main(String args[])
              try {
                   JarFile jf = new JarFile("c:/jdk1.3/lib/dt.jar");/* usually rt.jar (and 1.4)*/
                   Enumeration e = jf.entries();
                        while (e.hasMoreElements())
                             Object current = e.nextElement();
                             System.out.println(current.toString() + "class:"+current.getClass());
                             try {
                                  Thread.sleep(300);
                             } catch (InterruptedException ie) {}
              } catch (IOException ioe) {System.out.println(ioe.toString());}
                   /*also tried      ClassLoader cl = ClassLoader.getSystemClassLoader();
              try {
                   Enumeration e = cl.getResources("c:/jdk1.3/lib/dt.jar");
                   System.out.println(e.nextElement());
                   while (e.hasMoreElements())
                   System.out.println(e.nextElement());
              } catch (IOException ioe) {System.out.println(ioe.toString());}

  • How to find condition type for a material???

    How to find condition type for a material??

    Hi Suman.
    Refer the following
    tcodes:http://www.tcodesearch.com/sap-tables/search?q=condition+types
    and http://wiki.scn.sap.com/wiki/display/Snippets/Get?original_fqdn=wiki.sdn.sap.com
    Please search for condition type with pricing condition/pricing procedure.
    Regards,
    Kannan

  • How to Remove batch mangement indicator from Material Master

    Hi
    I am trying to remove batch mangement indicator from Material master..but system does not allow
    Before this .. I have done all activities also ...clear open SD documnets ,deliveriy documents ,PO documents ,Process order teco and . reservations and activae deletion flag in  batch  ... and made current period  stock an previous period  stock zero... i have cleard all documnets ...still system does not allow remove indicator..could you please guide in this issue ..how to remove batch indicator.
    Regards
    Sasi

    Hi,
    Please refer the below links.
    Re: untick Batch Manegement Indicator on Material Master
    Remove batch management flag and deletion of material documents
    How to remove Batch Management in the Material
    Re: How to remove Batch Management Check in the Material
    Thanks.

  • How to find the composition of a material

    Hi,
       Can anyone tell me how to find the composition of a material ?
    I am unable to find the composition,what it is made of?
    Is there any separate transaction for that?
    Regards,
    Tess

    hi,
    Two ways:
    Either check the BOM via CS03...
    OR
    Check the table STPO, STKO and MAST..
    Regards
    Priyanka.P

  • How to find Batch jobs schedule in bw system

    How to find Batch jobs,  bi statisticks  schedule in bw system
    please guide me

    Hi,
    You can find it in SM37.
    ~ Vaishnav

  • How to assign a class to the material through ABAP code

    Hi,
    I am working on a transaction in ABAP which takes material name, material description and a class from the user. Now, after this much input I create the material, its configuration profile through the ABAP code. For this I know I have to make relevant entries in tables MARA, MAKT, CUCO.. and also check for the existence of the class in the table KLAH.
    Now the point where I am stuck is that I am not able to get how to assign the class to the material through the code. I am able to get the internal class id from the table KLAH but I am not able to figure how the internal material number is being generated in the table INOB and i need this number as well as the internal class id number to insert a record in the table KSSK to show proper assignment.
    Can anyone please suggest me some solutions?
    Thanks....

    Hi,
    I tried using BAPI_OBJCL_CREATE. In order to understand it functioning better I created a material and class (of type 300) through transactions MM01 and cl01 respectively. Then i  created a report and called the FM BAPI_OBJCL_CREATE, gave the material name as the material above, table as MARA, class as the one i created above and class type 300. I even analysed the message of the table return (return-message) after executing the report. The messahe said assignment done. But when I checked mnaually in cl20n there was no assignment done to the required material. There was also no entry for the required material in the table INOB which I need.
    Can anyoene tell me that where am i going wrong? Please do help.

  • How to change valuation class of a material.

    how to change valuation class of a material.

    Dear Sandesh,
    Refer to:
    [Changing The Valuation Class|http://www.sap-img.com/materials/changing-the-valuation%20class.htm]
    and
    [Changing Valuation Class|http://masteryen.com/sap/?p=98]
    Best Regards,
    Amit
    Note: Key-points to remember, before changing the Valuation Class -
    1. All the stocks are zero and
    2. There is no pending orders as well?

  • How do I find apple id based on serial number, I dont have any other option as of now. any help on this is great. Thanks.

    How do I find apple id based on serial number, I dont have any other option as of now. any help on this is great.
    This is for id with @me.com Thanks.

    You cannot find out an apple ID from a devices Serial #. It sounds as though you are encountering IOS 7's Activation lock, If that is the case, please see http://support.apple.com/kb/ht5818 which describes this feature, and what needs to be done to make the phone usable is described in http://support.apple.com/kb/TS4515

Maybe you are looking for

  • Gifted a playlist by emailing it and receipant cant download, Gifted a playlist by emailing it and receipant cant download

    gifted a playlist and reciepant is having trouble downloading it?

  • Query about Nokia Messenging Always On

    I have Nokia Messenging installed on my X6 with the access point on Internet.  My first priority in my wireless LAN which is fine but out of it's range it'll switch to my pay as you go internet access which is priority two.  This is normal.  My query

  • Experienced XI developers

    Greetings, I am pretty new in the field. I have just started working in the field. We have a sort of scenario:               ( PLC -> Database ) is actually the requirement      However they have achieved this via:                 ( PLC -> .NET appli

  • Condition types in orders

    Hi,       I want to find out in what all sales orders a particular condition type was used. For example there is a condition type k005, now i want to find out in what all sales orders this condition type was used.      Useful responses are highly app

  • Apple tv 1st Generation Remote Query

    I have an Apple TV 1st Generation and I have lost the white remote control. I had installed the Remote App on my ipad and it was working fine but it seems to have lost the connection with the Apple TV and is not showing up the Apple TV when I go into