Materail group (MATKL) table

HI All,
Is there any table to store only materail group (matkl).
I want to fetch the materials whose material group starts with to characters( for example AB***** ).
how can i write the condition on mara table to fetch the materail whose materal group starts with "AB".
if material group field values stores in separate table than i can fetch all material group values, filter required materail group based on than i can write select query.

Hi,
Check in MARA table.You can get both matnr and matkl.
data:begin of itab occurs 0,
       matnr like mara-matnr,
      matkl like mara-matkl.
      end of itab.
parameter p_matkl like mara-matkl
select matnr
          matkl
          from mara
          into table itab
          where matkl = p_matkl.
In the selection screen given the value as AB* and execute.
K.Kiran.

Similar Messages

  • Ind out qty by materail group

    For a given coustmer is there any table which stores qantity by material group.
    in s003 table i can find total qty for the coustmer, but is there any way to find out qty by materail group.
    Cattle Feed Popular                  Premium          Bovino                   Layer Feed ( MT)               
    Mash      Pellet     Mash     Pellet     Pellet     Full Feed Mash   Full feed Crumbs  Concentrate Pellet

    Hi,
    Check S123, S124 Tables.
    Regards,
    Harsh.

  • Database design question about historical data in a group of tables

    Hi Folks,
    I have a group of tables having relationships among them. In order to keep the change history, we can not update the data, instead, we add new data to the table(s) and mark older data as whatever non-current status. They all have timestamps in these tables.
    For example, If table Parent changes, we add new record Parent(new) and keep older record(s). But the table child has not changed, so how could we link the parent and child table(s)?
    One solution is to use a unique sequencial number to identify the snapshot of all these group of tables, so the FK contains this sequencial number to keep all tables in sync from point of time t1 to t2 and so on.
    But the problem is if only one table changes, we have to insert new records to ALL tables with the new sequencial number to indicate a new snapshot of all group of tables, this obviously has lots of redundancy when change occurs in one place only.
    However, If we only adds new records to a changed table, lets say Parent, how could we distinguish the current record in Parent table and its child tables to reflect a consistent snapshot of all tables? Because the record in parent table Parent(t2), Parent(t1) all associate to child(t1), since at time of t2, child table has not changed, only Parent table changed.
    Your opinions are appreciated!
    Thanks a lot.

    There are books on the subject of dealing with time series data. You may need to read one or two as this is a very complex topic. Though not applications of time series classification are complex it is difficult to tell based on what information can go in a post.
    What has to be reflected on the parent when a child row is changed? Do both the old child row and the new child row belong to the same parent?
    What activity at the parent level would affect the child rows? That is, is there any activty on the parent that requires new child rows to be populated?
    One way of tying the child rows to a specific set of parents would be to carry the parent key, timestamp to the child as a begin_parent_timestamp and then also potentially have a end timestamp if a change to a parent ends the relationship. If changes to the parent do not ever end the relationsip then the end_timestamp would not be necessary. In this case if you want to join a parent to only the most recent version of a child you can perform a select parent kye, child key, max(parent_timestamp) from child group by parent key, child key. One child row would match serveral parents.
    Without more specifics it is hard to make suggestions that might prove usable but your table relationships might be too complex to deal with in this kind of forum.
    There is a newsgroup on database theory that may be a good place to seek ideas on this type of problem.
    HTH -- Mark D Powell --

  • How do I transpose and group a table in a ViewObject?

    Hi,
    I want to transpose and group a table within a view object and don't know how to do it.
    Please let me explain what I want to do:
    One table, e.g. Employees, has one row per employee. Each employee has a departmenent and a room assigned:
    Employee
    Department
    Room
    John
    Finance
    101
    Susie
    Prod
    102
    Hank
    Finance
    103
    Now I want to show one row per departmenent and a marked checkbox for each room that has an employee from this department in it:
    Department
    Room 101
    Room 102
    Room 103
    Finance
    X
    X
    Prod
    X
    What I already did is, I added a transient attribute of type boolean for each room to the ViewObject for employees. I was able to set the booleans within the method ViewObject::createRowFromResultSet. But I still need to do a grouping by department.
    What I don't understand is: is it possible to 1. selecting data, 2. grouping the result and 3. setting booleans for the rooms, anything in the same view object? Or do I need to have two ViewObjects, one that holds the data and another one that prepares and to displays the data?
    Btw. the users will change the checkboxes and the changes must be written back to the database (makes no sense for this example, I know...).
    Could anything be done in the same ViewObject? If so, which methods do I have to overwrite to do the grouping?
    Could someone please give me a hint or let me know where I can find an example of a similar scenario?
    Thanks in advance!

    Sort the playlist into the desired order, e.g. click the heading for the track no. or album columns, the right-click on the playlist name and click Copy to Play Order. The playlist should now burn in the correct order.
    tt2

  • How to create checkbox group and table dynamically?

    HI All
    How to create checkbox group and table dynamically?
    Regards
    Ravi

    hi
    check this links for creating  tables dnamically
    How to Create a table dynamically?
    Re: how to create a table dynamically in webdynpro
    and for checkboxgroup
    IWDTransparentContainer rootContainer =
    (IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
    //Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
    check.setChecked(false);
    rootContainer.addChild(check);
    or Re: adding checkboxes dynamically

  • Reasign authorisation group at table maintenance generator

    Hi All,
          I have a table, assigned with authorisation group as &NC&. Now I need to change to authorisation group created newly.
    If i change with newly created authorisation group in table maintenance generator level.
    My Qus:1. Need to generate the table maintenance generator for this again.
    2. Will it affect the users assigned to authorisation group.
    3. Wht i need to do to change this, and wht are its effects if i change the authorisation group.

    Hi,
    If the user is not assigned for the role he has to be assigned for that role.
    one role is assigned to authorization group.
    basis consultants will add the role of that group to that particular user.
    otherwise he cant change the entries of the table.
    so consult basis consultant for security role assignment.
    Thanks
    Parvathi

  • Selection groups for tables and header tables

    A couple of questions or rather observations around Selection Groups for tables and conversion objectu2026
    1) For tables that do not really have a date field, for instance table PDSNR, it appears that you cannot specify a selection group. Consequently, you have to transfer the table in its entirety. Is this something that can be modified via customizing?
    2) And what about the header tables, for example, X_ANLC, I have tried but not able to change the selection groups on these objects.
    Thanks!
    Harmeet

    Hi Harmeet.
    Since you mention you can only filter by date I am assuming you are using TDTIM.
    How would you want to filter PDSNR, for example? Would it want to filter all entries >= a given sequence number?
    The only way I know to do that is to work directly with the configuration tables. In your case you will need to use CNVMBTSEL* tables. Check how the standard selection groups are configured, and it should not be too difficult to follow the same logic and create your own selection groups.
    CNVMBTSELGRP                   MBT PCL Selection groups              (main table to create the selection group)
    CNVMBTSELMEMTYPE               MBT PCL Selection group member types  (main table to define members => fields for the selection group)
    CNVMBTSELGRPDEF                MBT PCL Selection group definition    (definition of the fields in that selection group)
    CNVMBTSELGRPVAL                MBT PCL Selection group values        (values for each field; you can use GE for >=)
    CNVMBTSELCLAUSE                MBT PCL Selection group clause        (should also be straightforward if you are using only one field)
    CNVMBTSELVAR                   MBT PCL Selection group variants     (configure the same variant for your selection group as for the others)
    CNVMBTSELREF                   MBT PCL Selection group reference     (assignment of selection group to conversion object)
    Hope this helps,
    Rui Dantas

  • Grouping drilldown table and chart

    Hi,
    I want to group drilldown table and chart on same webi  report.
    For example table has many records and chart must be shown below table no matter how many records does it have.
    I cant estimate the data record number every run so when table rec number is bigger than 40 chart looks under table.I have urgently correct this display issue.
    Is there any function about this?
    Any help will highly be appreciated.
    Thanks

    Hi Nil,
    Try these steps.
    1. Click on Preferences in InfoView.
    2. Click on Web Intelligence
    3. Scroll to Drill options
    4. Check u201CSynchronize drill on report blocksu201D
    As you drill to the next hierarchy on the table, the chart will also drill down along with the table.
    Hope this helps.

  • Loop through a group of tables

    Someone who can help me with: I need to go a group of tables in a database, which have a common field. The idea is to do a select on that field in common according to a query criteria. thanks

    create table table1 as
    (select rid,identification,
            decode(identification,1,'Al',2,'Bo',3,'Che',4,'Doe',5,'Ed',6,'Fox',7,'Gil',8,'Hoss',9,'Ian',10,'Joe',11,'Ken',12,'Lou',13,'Moe',14,'Ned',15,'Oz',16,'Poe',17,'Red',18,'Sy',19,'Ted','Vic') name,
            Initcap(dbms_random.string('l',dbms_random.value(5,15))||' '||dbms_random.string('l',dbms_random.value(5,10))||' '||dbms_random.string('l',dbms_random.value(5,20))) info
       from (select level rid,
                    trunc(dbms_random.value(1,20)) identification
               from dual
             connect by level <= 10
    RID
    IDENTIFICATION
    NAME
    INFO
    1
    8
    Hoss
    Iqvispa Lmurse Zuzaozjmgruxk
    2
    5
    Ed
    Lomqevifqeeeo Nxlxnhdv Wlakstxjms
    3
    18
    Sy
    Znaked Eoenhxeeca Nrxpwjyt
    4
    14
    Ned
    Jbiebqxcowrw Ipuqfm Zlbjiumygtcnfgiq
    5
    16
    Poe
    Jmbwzhodm Ujcxeubr Ucikapudanbtyhrbla
    6
    11
    Ken
    Nwcdowlndfb Lzekz Fwmjhcufw
    7
    16
    Poe
    Ltiyuz Zuyevvf Ngeyowyyjvrh
    8
    2
    Bo
    Zrifwczbkktcouc Izpmaib Tmhkqatyahzuguwpw
    9
    6
    Fox
    Tsrghyzi Qdutdqqm Takrtwv
    10
    12
    Lou
    Zfgyftaidslpcg Osexqg Owaoafoipgn
    RID
    IDENTIFICATION
    NAME
    INFO
    1
    2
    Bo
    Agabtq Tanivdo Hiaybiuyyktitvwgjp
    2
    12
    Lou
    Znvcvycgllx Gtewsxz Lziuom
    3
    13
    Moe
    Qdzurj Cgdfmtslee Emtvhupylnalelbbacv
    4
    17
    Red
    Nwjjmqkfpxn Hiywfb Hrveoiegppo
    5
    1
    Al
    Bhnyjgnkmlsu Jbrdmiu Adwbpzbelyrebfq
    6
    11
    Ken
    Hsnccafffl Okfpeodw Znrmbrnxkxwi
    7
    8
    Hoss
    Olvwgjhtejhu Nvbofegy Kbanybopcg
    8
    1
    Al
    Cvnwwaw Hhzwsb Peuruso
    9
    19
    Ted
    Xuykzepjpdjrc Mmnxfdc Cdwfjvv
    10
    19
    Ted
    Zqmhv Mqxkio Mpbssxxurbxtaifud
    RID
    IDENTIFICATION
    NAME
    INFO
    1
    16
    Poe
    Gappv Ptkkgqh Zfbkoeb
    2
    3
    Che
    Ggbughdb Icdiwl Imtfng
    3
    9
    Ian
    Cadwemch Ckwdlrxs Kzdpanneushpp
    4
    7
    Gil
    Frlufjrk Amidybzd Rwlwqfxp
    5
    10
    Joe
    Rqvhbh Rbpdaklmsz Nhzkeblzmdgxvx
    6
    19
    Ted
    Sphkzeoean Epllenxz Cdpikiftoacwqrw
    7
    9
    Ian
    Ntovrotmwdaago Bpvdxmeofr Qfnpl
    8
    19
    Ted
    Sjookoa Ilotrpqyz Eaabfufbeeflb
    9
    17
    Red
    Pvzmbjepm Vevqae Oqnezylttqz
    10
    2
    Bo
    Rbjseracpal Exvukmsvt Auujopmdawrwzz
    RID
    IDENTIFICATION
    NAME
    INFO
    1
    12
    Lou
    Rmbjqggtwgvkuq Mgdxelhg Mcjsxldszzvsbnpex
    2
    15
    Oz
    Zdmfqyiqz Wrepkbn Jmvfrcwegqdxjeo
    3
    15
    Oz
    Klkzrjhvxo Xftxbac Ovhsvuvrvof
    4
    7
    Gil
    Pzktxz Kkopip Irfixa
    5
    17
    Red
    Hegcugpqxn Trdtcmkq Wljbm
    6
    1
    Al
    Pvlrqg Ceamqdxzh Mieubwiul
    7
    5
    Ed
    Uejsqrghek Yrqjfkjy Itnwowljg
    8
    13
    Moe
    Llguurt Hiqfycrkel Pcftjjbvbwimsqqlt
    9
    7
    Gil
    Hnsaeflly Arbml Ovmcwrzfqyy
    10
    2
    Bo
    Hmzxxlzvoqskjsx Itandsik Pxlqcdnxkv
    RID
    IDENTIFICATION
    NAME
    INFO
    1
    8
    Hoss
    Oogcgbjsmmqm Vxpknalu Hbxfvydnfdnqz
    2
    1
    Al
    Xaejofaeramguil Rtmtcbkpp Adpmrsytubflyfhoda
    3
    3
    Che
    Weyphtako Xendsrx Uhhatkyzhptgkg
    4
    15
    Oz
    Lhwpxgfvyh Xdvvcv Bxtueffbzkri
    5
    1
    Al
    Mjtpycls Myxftbcb Edbytrjwzppfdkqyn
    6
    2
    Bo
    Gujxzuzogigwdo Htzvfsfnh Cekmyezwlyuzcp
    7
    4

  • Re-assigning function group to tables.

    I created tables, but assigned them to the wrong function group. I try to navigate through se11 to edit the function groups, but I'm having difficulty.
    Is there a different way with which I can do this?
    Natasha

    I'm a little confused.  Are you talking about that you assigned to the wrong function group during table maintenance generator.  If so, just delete it and re-create it in the other function group.
    Regards,
    Rich Heilman

  • Materail group

    HI,
    what is the t.code for creating materail group
    regards,
    balu

    hi
    plz use code OMSF
    regards
    kunal
    award if helpful

  • Help with query to return results from group within table?

    Hi
    Im a total noob, so please be gentle....!
    I am looking at a table that has a WORD column and a WORD_TYPE_ID column.
    Words can have the same type_id.
    What I am trying to do is write a query that will return the longest word for each word_type_id.
    I have been trying for hours to get this and all I seem to get is either error messages or I return the longest word in the whole WORD column.
    The furthest I can get before things break down is.....
    select word
    from table
    where
    length(word) =
    select
    max(length(word))
    from table
    Any help on this or if I could be pointed in the right direction it would be greatly appreciated.
    Thanks

    Hi,
    Welcome to the forum!
    Here's one way:
    SELECT    word_type_id
    ,       MIN (word) KEEP (DENSE_RANK LAST ORDDER BY LENGTH (word))     AS longest_word
    FROM       table_x
    GROUP BY  word_type_id;If there happens to be a tie within some word_type_id (that is, 2 or more words have exactly the same length, which is the longest in that group) the expression above will return the first one, in alphabetic order. (That's what MIN means here.)
    Edited by: Frank Kulash on Aug 11, 2009 1:56 PM
    You almost had it.
    As you noticed, you were getting the longest row in the whole table. That's because your sub-query was looking at the whole table.
    If you correlate the sub-query to the row in the main table, as shown below, you can get the longest word in each group:
    select  word
    from     table     m                              -- m for main
    where      length (word) = (
                                select  max (length(word))
                   from     table
                   where     word_type_id  = m.word_type_id     -- New
                   );

  • Vendor-Customer balances in group currency-table/structure/function module?

    Hi All,
    Which table/structure/function module can be used to get balances for vendors and customers in group currency? We just wnat to extract balances in group currency so FBL1N and FBL5N are not options. Is there any SAP report which can provide these balances for both vendors and customers?
    Thanks and regards,
    Pinky

    Hi Pinky,
    I came across one report S_ALR_87012079 - Transaction Figures: Account Balance, Program RFSRRCUA, which extracts Account Balances of Vendor. Once the report is executed, you can do Currency Translation from one currency to different currencies. In the output screen, in the Top Menu, select 'Settings -> Currency' and you can convert to another currency. I am not sure, if this helps you. If this helps, kindly update your comments here.
    Thank you.
    Suresh Jayanthi.

  • Group and table visibility

    Hello Friends,
    I am facing a problem as follows:
    In an existing application I am trying to modify some code: there is a group which contains two tables the visibility of both tables are set to context element node also called visibility: and its elements table_1 is set to visibility property of first table and table_2 value attribute is set to visibility property of the second table.
    Now from the coading as far as I understood it is as follows:
    When the first table is set to NONE the second table is automatially visible and first table is disappered, and as soon as in coading it makes the first table visible the second table is automatically disappred ?
    Can any one pls help me in understanding how/what is going on ?
    Because the issue is I have to place now a third table and when this table is visible then the other two tables should not be visible, .......
    Regards

    Hi,
    In the wdDoModifyView:- Now put the if condition for tables that if one is VISIBLE then other two should be set as NONE.
    Regards,
    Praveen

  • Doing calculations on a table or group of tables

    Table A
    Name          Length
    REDBOX          45
    GREENBOX     67
    YELLOWBOX     89
    PINKBOX          23
    How would I write a query that would count the number of rows in the table
    which is this case is 4 (count* maybe) , add up the four values in length
    (using sum () I think) and then multiply both values together.
    So ( num of rows ) * ( sum (length)) = Result.
    I would like to displat the Result as an extra row but not sure you can do that...

    hi
    SQL> ed
    Wrote file afiedt.buf
    1 select t.table_name,count(column_name)
    2 from user_tables t, user_tab_columns c
    3 where t.table_name = c.table_name
    4* group by t.table_name
    SQL> /
    SQL> /
    TABLE_NAME COUNT(COLUMN_NAME)
    BIN$48zoh9RLRoq/Fj6gXkvdxg==$0 8
    BIN$C0999MpPRjGrEnn4tSnBeg==$0 5
    BONUS 4
    DEPT 3
    DEPTT 3
    DUMMY_T2 2
    EMP 8
    EMP1 8
    EMP2 8
    EMPHIST 8
    EMPLOYEES_TEMP 3
    TABLE_NAME COUNT(COLUMN_NAME)
    EMPPROJ 4
    EROW 1
    LOGIN 2
    PARENT 3
    PR 3
    SAL 2
    SALGRADE 3
    T1 1
    TEST 3
    TSTAMP 1
    USERDATA 4
    TABLE_NAME COUNT(COLUMN_NAME)
    USERDATAUSER 4
    VALID_RANGE 13
    24 rows selected.
    mohammadi
    Message was edited by:
    Mohdidubai52

Maybe you are looking for

  • Printer Error Messages When Printing PDF Documents

    I keep getting the following error messages when I try to pring a PDF document. This application has failed to start because LXBBGF.DLL was not found. Reinstalling the application may fix this. The other error message is: Cannot load library LXBBPRP.

  • Invalid page fault in module cvirte.dll

    I have updated two old programs using LabWindows 7.0 which were perviously created with an earlier version of LabWindows. I am having problems though updating a third program. I get an error stating... Characerization (the name of the program) caused

  • Aperture 3 and GPS logs

    According to the manual, Aperture 3 can place photos on a map based on camera GPS data, or else manually by clicking on a map. I have a camera that doesn't support GPS and was hoping I could find a solution where Aperture can add GPS EXIF data based

  • HT4759 can't sign in to icloud

    I get this message whenever I try to sign in on iCloud on a Windows 7 PC.  "You can't sign in because of a server error"

  • Photoshop free trial did not download

    I went thru the steps to download the free trial of photoshop, yet nothing happened after 4 hours. What should I do?