How to find classtype and class for a material.

Hi,
How to find classtype and class for a material.
which table contains this data.
Thanks
Kiran

Hi Kiran,
Check below sample code. Use this BAPI which will give all info about the class for the material.
  DATA:      l_objectkey_imp    TYPE bapi1003_key-object
                                     VALUE IS INITIAL.
  CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
                                     VALUE 'MARA',
             lc_classtype_imp   TYPE bapi1003_key-classtype
                                     VALUE '001',
             lc_freight_class   TYPE bapi1003_alloc_list-classnum
                                     VALUE 'FREIGHT_CLASS',
             lc_e               TYPE bapiret2-type VALUE 'E',
             lc_p(1)            TYPE c             VALUE 'P',
             lc_m(1)            TYPE c             VALUE 'M'.
  SORT i_deliverydata BY vbeln posnr matnr.
  CLEAR wa_deliverydata.
  LOOP AT i_deliverydata INTO wa_deliverydata.
    REFRESH: i_alloclist[],
             i_return[].
    CLEAR:   l_objectkey_imp.
    l_objectkey_imp = wa_deliverydata-matnr.
*Get classes and characteristics
    CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
      EXPORTING
        objectkey_imp         = l_objectkey_imp
        objecttable_imp       = lc_objecttable_imp
        classtype_imp         = lc_classtype_imp
*   READ_VALUATIONS       =
        keydate               = sy-datum
        language              = sy-langu
      TABLES
        alloclist             = i_alloclist
*   ALLOCVALUESCHAR       =
*   ALLOCVALUESCURR       =
*   ALLOCVALUESNUM        =
        return                = i_return
Thanks,
Vinod.

Similar Messages

  • HOW TO FIND WF_ITEM_TYPE AND WF_ITEM_KEY FOR PO

    제품 : MFG_PO
    작성날짜 : 2003-05-14
    HOW TO FIND WF_ITEM_TYPE AND WF_ITEM_KEY FOR PO
    ===============================================
    PURPOSE
    This solution is for Oracle Purchasing 11 and higher
    Explanation
    1. Start a SQL*Plus session using the APPS schema.
    2. Run the following script and enter the Purchase Order number that is stuck
    in process when prompted for the PO_NUMBER:
         SELECT WF_ITEM_TYPE, SUBSTR(WF_ITEM_KEY,1,25) "WF_ITEM_KEY"
         FROM PO_HEADERS_ALL
         WHERE AUTHORIZATION_STATUS='IN PROCESS'
         AND SEGMENT1='&PO_NUMBER';
    3. If more than one row is returned, then run the following script and only
    refer to the row that contains the OPERATING_UNIT_NAME that equals the
    operating unit name tied to the responsibility used when the Purchase Order was
    discovered as being stuck in process.
         SELECT SUBSTR(WF_ITEM_TYPE,1,12) "WF_ITEM_TYPE",
         SUBSTR(WF_ITEM_KEY,1,15) "WF_ITEM_KEY",
         SUBSTR(NAME,1,35) "OPERATING_UNIT_NAME"
         FROM PO_HEADERS_ALL PA, HR_ORGANIZATION_UNITS OU
         WHERE PA.ORG_ID=OU.ORGANIZATION_ID
         AND AUTHORIZATION_STATUS='IN PROCESS'
         AND SEGMENT1='&PO_NUMBER';
    Example
    Reference Documents
    -------------------

    Hi Kishore,
    Welcome to SCN!
    to find the sales order from Purchase order , go to SE16, Enter the table name as VBAK and press Enter.
    In BSTNK field of VBAK, Enter the Purchase order number. System will return you corresponding sales order.
    Hope this will help you.
    Regards,
    Nikhil

  • How to find objects and classes

    hi
    any notes or path on objects and classes on crm?

    Hi Kumara
    I beleive your talking about the Classification system.
    To get to this go here: SPRO->IMG->Cross-Application Components - -> Classification System - -> Classes - -> Maintain Object Keys
    This will give a list of Tables which are currently set with Object Keys, you may need to add a new table and configure.
    Next
    To get to this go here: SPRO->IMG->Cross-Application Components - -> Classification System - -> Classes - -> Maintain Object Types and Class Types
    Here you assign a Class Type to Link your Table from the previous step, this class new Class Type will be used with a New Class to created in the following steps.
    Goto Transaction CT04 - Create Characteristics
    Here you create effectively attributes of a Class (Fields)
    Goto Transaction CL01 - Create New Class
                              or CL02 - Maintain Class
    Create a new class linked to your Class Type from previous steps
    On the Char.. Tab you can add the new Characteristics created in the previous step to your new Class.
    Based on the Object Key from the first step, these new attributes shoulds all now link together. If the key is of type 'RAW'  (Binary) it may not be possible to link correctly, therefore some ABAP maybe required to create the link, depending on your application.
    Hope this helps.
    <b>Reward with points if useful.</b>
    Regards
    Arden

  • How to find Blocked Stock Value for a Material Division

    Hi Every Body,
    I have gone through the notes 589024,637927 to find out Blocked Stock value for a Particular Material at different plants . But I have to get Blocked Stock value at each Material Division . Kindly give some light on it to get it.
    The steps are same for finding the Consignment stock value and Transit Stock value. So kindly help me if any body has already worked on it.
    With rgds,
    Anil Kumar Sharma .P

    Hi Anil,
    well these notes work but they're prerequisites that have bothered me and unabled me to fulfill our requirement, for instance, having the material number in the drilldown and so on in order to perform the calculation during query execution.
    I believe there is not much more alternative if you still want to calculate valuations accurately at SLOC or any other stock indicator during query execution...
    I started from the basic fact that valuation of material underneath the plant/valuation area  (in my case 1 PLANT = 1 VALAREA).; precisely because all movements doens't carry all information as per the note explanation.
    So what we have done is to pull a cube with all Article/Sites MAP values; this can be done in several ways; MBEW/MBEWH are holding MAP values per fiscal periods; it has sufficient for us until now: our operations are asking to track MAP values more frequently.... So I am investigating how to work this out and have several alternatives:
    - MSEG has additional fields (available in the extract structures) like Total Stock Qty/Value PRIOR the posting. There is as well an indicator telling if the posting is relevant for the valuation (if it is going to affect the Qty/MAP or not). So it is possible to get the MAP after the posting for each material movement.
    - Create a change pointer on MBEW/MBEWH.
    - MKPF has two convenient fields (CPUDATE and CPUTIM) from which we could build our own delta extractor tracking MAP changes
    In BW the Idea  is to have a cube registering the Article/Plant valuation in time (non-cumulative) and then fulfill our queries via a multicube...
    hoping this will help you in solving your issue; I am of course following any topic in this matter so would appreciate your input....
    Olivier.

  • How to find if routing exists for a material / plant

    Hi,
    From development point of view.. how can I find out if rounting exists for a given Material and plant combination? Is there a function module or table I can look into? I just need to find out if routing exists, no other details are needed.
    Thank you!

    Hello MAPL is the table to get the details of Allocation of task lists to materials.
    You can also check the following tables for more details.
    PLKO     Task list - header
    PLKZ     Task list: main header
    If helpful rewards your points.
    Regards
    TAJUDDIN

  • How to Find fields and tables of any Datasource

    Hi  ,
    How to find tables and fields for DataSource  2LIS_05_QE1 , and extractstruct is MC05Q1_0INSP as per requirement to find INCOMING PPM.
    is there any specific technique , to find any tables and fields related to our requirement in any DataSource .
    thank's

    Check in LBWE transaction ..
    for
    2LIS_05_QE1 , and extractstruct is MC05Q1_0INSP as per requirement to find INCOMING PPM.
    go to quality management ..
    you will get the data source
    if you click on maintenance ..
    BR
    Manthan

  • How To Find Opening Stock And Value For a Material

    Hi Experts,
    How To Find Opening Stock And Value For a Material  in Given Dates
    Moderator Message: Search.
    Edited by: kishan P on Sep 15, 2010 4:05 PM

    Thanks For Answering.....
    But I Need Any Function Module To Get Opening Stock And Value For Given Material With in Dates.

  • HT2509 Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the Mac Air? I need to be able to use a pop up window of fonts.

    Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the MacBook  Air? I need to be able to use a pop up window of fonts.

    Unless you've done anything to change it, Google keeps every email that ever passes through their server in your All Mail folder/mailbox/label. Even if you delete stuff, they hold onto it, there. You have to go out of your way to actually delete anything permanently.

  • HT1848 I rented four movies on my mac and then transfered them to my iPad, i then did an update to my iPad, now the rentals are not on my ipad nor my mac. I did not watch them and I was charged for them. How do find them and transfer back on my iPad

    I rented four movies on my mac and then transfered them to my iPad, i then did an update to my iPad, now the rentals are not on my ipad nor my mac. I did not watch them and I was charged for them. How do find them and transfer back on my iPad

    If you moved them to your iPad then they will have been removed from your Mac.  If they are no longer in the iPad's Videos app following the update then you will need to try contacting iTunes support and see if they will let you re-download them : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Where and how to find the storage locatation for the consignment stock

    where and how to find the storage locatation for the consignment stock (customer stock )  for more than one storage location .
    table :msku
    material no    -   werks - batch
    xxx                   sg11  - 200352ac
    table : mchb
    material no    -   werks  -lgort - batch
    xxx                   sg11   sg10   200352ac
    xxx                   sg11   gs11   200352ac
    note : each stock location having same batch no in different storage and my question how to find which link for msku to mchb .

    Hi,
    Try the table MARD: Storage Location Data for Material, where in the field LABST will give the stock field, against a given material/plant/Storage Loc.
    Regards,
    JLN

  • How do I set up my iPhone 4s so siri will dial calls for me, find places and addresses for me, etc.?

    how do I set up my iPhone 4s so siri will dial calls for me, find places and addresses for me, etc.? Right now I just get the answer: "I am not permitted to do that for you" from siri

    See Note #1 near the bottom here:
    iOS: Understanding Restrictions (Parental Controls)
    You'll have to do a factory restore if you forgot (or don't know) the restrictions passcode.

  • Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised the value of Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How to find next number range for project definition in tcode CJ20N

    Hai Experts,
          Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
    Note: I searched in forum before posting, but couldn't find the solution.
    Thanks
    Regards,
    Prabu S.

    Hi,
    For project defination internal number is assigned by system.
    When you saves's project then system allocate one number to project defination, you can view it,
    SE11 >>> table  PROJ >> Click on contents >>> execute,
    here you will get your project defination & number is assigned to project defination.
    kapil

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • How to remove bullets and spacing for url links in the Related Links iview?

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor".
    All I need is to remove the bullets and increase some vertical spacing between the links.
    Currently, it looks like this:
    URL iView A
    URL Iview B
    I go through the whole section of Related Links properties, none of them seems to do what I want.
    Here are the list of properties in Related Link section (of Navigation Panel):
    Link Color
    Text Decoration of Link
    Hover Color
    Text Decoration of Hovered Link
    Initially, I thought "Text Decoration of Link" should be the right property I should look at. But there are a drop-down with 5 options: None, Underline, Blinking, Overline and Line-Through, which really can't achieve what I want.
    Thanks for advice.
    Kent
    Post with Diagram Illustration:
    <a href="http://sapnetweaverforum.blogspot.com/2006/11/how-to-remove-bullets-and-spacing-for.html">How to remove bullets and spacing for url links in the Related Links iview?</a>
    Message was edited by: Kent C.

    Hi, Kai.
    I checked the Related iView properties (URL Template), I don't see what layoutset it is really using. I am not sure, is that a layout set apply to the Related Link Iview?
    For the regular KM iView, I will see what Layout Set I want to apply, then I can go and change the properties (of layout coontroller, collection renderer & resource renderer)you mentioned. But for this Related Link iView, I really don't know. I guess it may be in the code itself.
    If there is a layout set for Related Link iView (or the place to apply layout set to it), can you point to me which one is that? (I did a search through the layout set names, I only find the AppQuicklinkExplorer (I used this for Dynamic Nav. Link iView before), if I can aply this layout set to Related Link iView, my problem will be solved.)
    Thanks for help.
    Kent

Maybe you are looking for