How to select a field from view

Hai All
This is my view name mtl_item_flexfields mif
i can able to select a single column Ie Inventory_item from view when i use this
Select inventory_item from mtl_item_flexfields mif.
But i not able get the values when i use this select statement
SELECT organization_code,
item_number,
mif.organization_id,
COUNT(*)
FROM mtl_item_flexfields mif,
mtl_parameters mp
WHERE mif.organization_id = mp.organization_id
AND mif.organization_id IN (87,85)
GROUP BY organization_code,
item_number,
mif.organization_id
HAVING COUNT(*) > 1
ORDER BY 1,2;
Thanks & Regards
Srikkanth

Hello Srikkanth,
The query you posted cannot return the inventory_item column because that column isn't part of you GROUP BY clause.
If you need to see the inventory_item column, you should either include it in your GROUP BY clause (but I doubt that's the right thing to do in this case) or, you need to apply an aggregation function to the inventory_item column, such as MAX or MIN (this may be appropriate in this case but, without seeing any data, can't really tell).
The GROUP BY limits the fields you can select to be either, included in the GROUP BY clause or, arguments of an aggregation function whose result is driven by the GROUP BY clause. In any other case, you'll get message complaining about the field not being part of a group by group.
HTH,
John.
P.S: put code (like the select you posted) and data enclosed in [ code ] <your code here> [ / code ]
(without the spaces), that will format the code nicely, like this
nicely formatted code herewhich makes it much easier to understand.
Edited by: 440bx - 11gR2 on Aug 13, 2010 5:44 AM - added "" suggestion                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Urgent......  how to select few fields, from database table, (dynamic ita.)

    Dear all experts,
    I am able to populate all fields data from database table, using dynamic table creation.
    eg,
    SELECT *    FROM (w_tabname)    INTO    TABLE <t_itab>.
    where w_tabname is the table name given by the user, and t_itab is field symbol.
    but some requirement is like that i need to pick up only few fields, <b>which user will give at the runtime.</b>
    <b>I can</b> take those fields from file into any internal table,
    but the problem is that instead of <b>select *</b>, i need to put selected the fields given by user.
    i have tried with field symbol, it is not working (as per my knowledge.)
    do i need to create any structures dynamically ?
    Can anybody please help in this regards ?
    Your help will be surely rewarded with points.
    Waiting for reply..
    Regards
    Vinay

    Hi Vinay ,
    Adding to the below code , you can use some more fields in the select stmt as below:-
    REPORT ychatest.
    PARAMETERS : p_field1 LIKE dd03l-fieldname,
                             P_field2 LIKE dd03l-fieldname,
                             p_table LIKE dd03l-tabname.
    FIELD-SYMBOLS : <fs> TYPE STANDARD TABLE.
    SELECT (p_field1) (p_field2) ( FROM (p_table) INTO TABLE <fs>.
    Now p_field1 & p_field2  belong to the same table since you have give the user to enter only one table name.
    This should work fine.
    please try & let me know .
    Thanks & Regards,
    Daniel

  • How to select RSNUM field from SUPO_MD_MRP_LIST_ITEM_RFC function?

    Hi all,
    From my program, I call the SUPO_MD_MRP_LIST_ITEM_RFC function passing MATNR and WERKS to it and receiving a internal table with the MRP list related. So, I check, for each record returned, if the DELKZ field - MRP Element - is equal to 'AR'.  So far so good.
    However, when DELKZ field value is equal to 'AR', the EXTRA field value returns the BAUGR value - Material number of higher-level assembly - and not the RSNUM value - Number of Reservation -, that it is the information I need.
    Does anybody know how I find the RSNUM related to that results returned from SUPO?
    Thanks in advance.
    Tiago.

    Tiago,
    In table is the MRP list appearing with all the entries. If not then the storage mode of the MRP list mihgt have been set for transaparent table storage. Check in customization :
    SPRO>Production>Materials Reqmt Planning>Check for performance settings>Check storage mode for MRP List. In this the check box might not be selected.
    Now it depends whether you really want to check this or not because the database size is going to increase.
    But from the point of view of your program you can check this. Run MRP -MD02 for a material. Then check the MDTB table. Now this table will have entries and also the individual segment number.
    I am interesten in kwnowing why you are requiring to know the MRP list details. Why not the stock requirements list which is dynamic. I could give you a function mudule which fetches the data from the stock requirements list in an internal table.
    Regards
    Ram

  • How to select and field from an table with similar value

    Hi Gurus,
          I got an requirement where i need to capture some values from an table whose value start with "vmr*"
    could anyone tell me the syntax to be used with this?
    My table contains valies like "lrt", "vmr'" nut i need only  values starting with "vmr"*
    Ravi

    Hi,
    In where clause, you can write,
    where field  like 'vmr%'.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to select the data from a Maintainance View into an internal table

    Hi All,
    Can anybody tell me how to select the data from a Maintainance View into an internal table.
    Thanks,
    srinivas.

    HI,
    You can not retrieve data from A mentenance view.
    For detail check this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Regards,
    Anirban

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • How to Select a value from DropDownByIndex -Urgent

    Hi All,
    I have dropdownbyindex UI elements in my Views, I get values from BAPI. When click records in a table, It goes to another view to display full record. Here i have dropdownbyIndexes So it should select one of appropriate value in dropdownbyindex based on record(Value) in table.
    Example:
    <u><i><b>In Table View</b></i></u>
    id                  title                 status          priority
    10000      webDynPro            New              Low
    <i><u><b>Detail View:</b></u></i>
    id                   10000
    title                 webDynPro
    Status             New                  [New,Old,Open,Closed]---DropDownbyIndex
    Priority            Low                   [High,Low,Medium]---DropDownByIndex..4m BAPI
    How to select Appropriate Values from DropdownbyIndex. if any one has sample code, that will be helpful.
    Note: I am using Model Nodes
    Thanks and Regards
    Ravi Golla

    Hi Ravi,
    In details view, you will have corresponding context node created for Status and priority dropdown fields.
    Let suppose, context node for Status is, StatusNode.
    value attribute inside this is,
    StatusNode
      |_ StatusAttrib
    Now, you need to write following code to set l_status ="LOW" value in it.
    wdContext.nodeStatusNode().moveFirst();
    for(int i=0; i<wdContext.nodeStatusNode().size(); i++)
        if(wdcontext.currentStatusNodeElement().getStatusAttrib().equals(l_status)
              wdContext.nodeStatusNode().setLeadselection(i);
              break;
    wdContext.nodeStatusNode().moveNext();
    write same code for priority also.
    Let me know if it is not working with you.
    regards,
    Bhavik

  • How to select the vendor from the source list in the PO(me21n) screen ??

    Hi
    How to select the vendor from the source list in the PO(me21n) screen.
    Is there any Sources of Supply tab in the PO just like we have in the PR.
    I don't want a PO raised from a PR which has got the Vendor assigned to it already.
    Or the SAP doesnot provide the option of Source list/Assign source/Sources of Supply .....in the PO.
    Kindly reply

    There is not any facility available for Source Determination in PO. Only you can select the line item and click Menu Environment > Source List and view the list of sources available for the material but you can not chooss and assign. If you wan to assign the vendor then change the vendor already entered in PO and put the desired vendor.

  • Selecting desired fields from extract structure to datasource in CRM

    hi guys... coming back to this forum with new problem...
    how are you guys...
    i'm using ds 0CRM_SALES_ACT_1 in CRM to extract activities related data...
    by standard this data source is not supplying some fields which i needed... but when i checked in 'roosfield' table and even in extract structure 'CRMT_BW_DS_ACTIVITY' it is showing the those fields which i required...
    how can i get these fields to data source...
    in LO its like...we can select required field from extract sturcture right???
    is there any procedure do same with CRM data sources...
    thnaking you...
    regards...
    nithin
    Message was edited by: nith l

    Hi,
    If the fields are available in ES but not available in DS , then we can Modify the table ROOSFIELD. But, I think, this is some what rude mothod.
    Before doing this, It is better to Raise a OSS. They may come out with some SP upgradation.
    Search this forum with ROOSFIELD.
    With rgds,
    Anil Kumar Sharma .P

  • How to select alternate entries from the database table

    Hi Experts,
    can u help me, how to select alternate entries from the database table.
    Thanks

    As there is no concept of sequence (unless there is a field specifically included for the purpose), there is no meaning to "alternate" records.
    What table do you have in mind, what data does it hold, and why do you want alternate records?
    matt

  • How to select all PERNR from infotype 0000 (Action)

    Hi,
    How to select all PERNR from IT0000 (Action), if an action has been done on IT0000 between reporting START DATE and END DATE. What fields I should consider in IT0000.
    Thanks,
    mini

    You can try:
    data: t_0000 type standard table of pa0000.
    select * from pa0000
       into corresponding fields of table t_0000
      where begda le <your-initial-date> and endda ge <your-final-date>.
    Or use one of options described at last forum.
    Regards!
    Marcello
    Edited by: Marcello Lanzoni on Jul 24, 2008 8:11 PM

  • How to select multiple values from a listbox

    Hi,
    I have a list box on my UI which is not allowing me to select multiple values
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving error
    When i drag & drop the component i am unable to drop it as a multi select list box that option is not coming.
    I am working on Jdev 11.1.1.3 and I am using ADF/BC components
    How to select multiple values from a listbox ?
    Thanks,

    Hi,
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving errorank
    And what is the error ?
    Frank

  • How to select multiple values from the parameters in BI Publisher report

    How to select multiple values from the parameter drop down in BI Publisher, and how to handle this mulitple values from the report sql...

    Hi kishore,
    I have used all the steps as you mentioned in your previous reply....including checking Mulitple Selection Check Box..
    Iam able to get the results when I am selecting one value..
    and also I am able to handle multiple values the in the query by using IN :Parameter, but seems when we select more than one value from the parameter drop down i think the Bi Publisher is sending the values in concatenated form something ilke
    ex: "'ACCOUNT','HR','SALES'" ,and when trying to display the parameters values in the output, its throwing the error as 'missing right paranthesis' ....on the whole do you have any solution which would handle
    1.Single selection.
    2.Multiple selection.
    3.'ALL' Values.
    4.Separating the concatenated string into individual strings and dispaly them on the output of the report..etc..in case of Mulitple selection.
    Ex:
    Concatenated String from BI Publisher:"'ACCOUNT','HR','SALES'"
    Expected Output on the report:ACCOUNT,HR,SALES
    reply to this would be much appreciated....
    thanks,
    manoj

  • How to select multiple values from the Parameters in the concurrent program

    How to select multiple values from the Parameters defined in the concurrent program...and i believe multiple selection is not a direct feature of EBS, but is there any workaround solution to acheive mulitple selection?

    I think there's no way to do that using standard feature.
    Some workaround I use :
    1. If the number of selections are fixed, you could use multiple parameters for the same valueset. For example :
    Selection1 : <choose first selection>
    Selection2: <choose 2nd selection>
    ..etc.
    If you don't use it then leave it empty.
    2. Use text varchar valueset and enter it manually and separate by comma (or other value) , eg : selection1,selection2,selection3....etc.

  • How to select multiple records from a TREE in the table

    HI,
    I have a tree structure which is in the table.When I open the node of the tree,all the subnodes are coming as one-one records in the table.I want to slect multiple record from this table.I applied onLeadSelect for this table,I can select only 1 record from the table.
    Can any one plz suggest me how to select multiple records from the table so that I can get all the data of those selected record.
    Regards
    -Sandip

    Rashmi/Kukku,
    First of all, Thanks for your help!
    Is there any other way in which we can access tables other than using BAPIs or RFCs?
    In my case, there is a table structure which has to be updated with values after validating a key. i don't think there is any RFC available now. do i need to create bapi/rfc for that?
    Krishna Murthy

Maybe you are looking for

  • Internet Explorer Loads swf as Black Screen

    File created in Captivate 5.0 Published with html Internet Explorer Flash Player 10.1 The swf is just a black box. Within Firefox flash player 10.1 it plays fine. Within Chrome flash it plays fine. Any thoughts?

  • Applescript to batch change "title" in Photos

    I'm trying to use the new Photos, but without being able to batch change the title, it's not going to work for me.  I saw a script in a previous post that shows how to do this, but I couldn't get it to work - apparently the script only works on small

  • CC Lightroom 5.? will not install

    I have checked the install logs and i do not know what to do. Error 1402, 1603, Exit code 7

  • Chakra liveCD - things to come...

    Hi there, just to inform you that the project is not dead We have just released a video on our page which shows a complete installation from one of our pre-alpha builds, check it here: http://www.chakra-project.org/ We are currently in the "polishing

  • Trial Upgraded, how can I move to iMac?

    Hello all,              About a year ago I had upgraded my Trial Aperture 3, to a legal copy for $99 (I believe).  I just bought a 2011 iMac and moved everything from my macbook over to the iMac. Most programs have sucessfully transfered without a pr