List A Constraint For a Given Attribute In A Table - DESCRIBE?

Hello,
Given a real simple table that has a CONSTRAINT on one of the attributes, I'm trying to find out he NAME of the constraint so that I can alter it.
When I perform the DESCRIBE command for the table of interest, the following output occurs:
DESCRIBE Room;
Name Null? Type
ROOMNO NOT NULL NUMBER(4)
HOTELNO NOT NULL NUMBER(6)
TYPE CHAR(1)
PRICE NUMBER(5,2)
I know that the TYPE and PRICE attributes have CONSTRAINTS, so how do I find out those CONSTRAINTS?
Thank you

SELECT *
  FROM user_cons_columns
WHERE table_name = 'ROOM' AND column_name IN ('TYPE', 'PRICE')

Similar Messages

  • Listing logical database for a given application component

    hi
    which function module will return the logical database for a given application component from the SAP hierarchy.
    Example:
    Input- application component- LO
    output- MSM, etc.,
    Thank you.
    your time and answers will be compensated with points.

    Why dont you use two selects to get the required information#
    TAble <b>APADEVC</b>
    Here you will get the link from Application Component to Package
    Application Class - Packet
    Package           - Devclass
    Then if you go into Table <b>TADIR</b>
    and give the following input
    PGMID = R3TR
    OBJECT = LDBA
    DEVCLASS = package name
    you will get all the Logical Databases for that Application Component.
    Here obj_name will be the Name of the LDB's
    Message was edited by:
            Dominic Pappaly

  • How to find list of transactions for a given component

    Is there any table that holds information about transactions.
    My requirement is to retrieve all transactions for a particular component.e.g. list fo transactions for SD or MM.
    I am into java and have need to develop a program to retrieve teh above information using sap jco.
    Hence if there is any RFC or table holding this info please let me know.
    Thanks and Regards,
    MNGHosh

    Hi
    Let me explain this witha na example.
    Let us assume that one developer received a requirement on Material Management Module.
    (Create Material)
    Step1:
    Go to the Transaction Code : SDMO.
    Step2 :
    Execute SDMO Tcode from SE93 or Press /nSDMO
    Step3:
    It will prompts for you  a Dynamic menu with text box.
    Step3 :
    Enter your required description in that text box and press F8 or press execute button.
    Here Iu2019m entering u201CMaterialu201D as description and pressing F8.
    Step5 :
    We will get the list of Transaction Codes associated with the description u201CMaterialu201D as Follows.
    Step6 :
    In the above list, we will get all Transaction Codes associated with the description u201CMaterialu201D
    Search for your required transaction code based on your need.
    Suppose if our requirement is to create a material then search with the word u201Ccreateu201D in the above list.
    Step7 :
    It will gives you the sub list of Transaction codes associated with Material and Create search terms
    Step6 :
    In the above list, we will get all Transaction Codes associated with the description u201CMaterialu201D
    Search for your required transaction code based on your need.
    Suppose if our requirement is to create a material then search with the word u201Ccreateu201D in the above list.
    Step7 :
    It will gives you the sub list of Transaction codes associated with Material and Create search terms.
    Step8 :
    If you observe the list, we got many Transaction Codes including
    MM01 u2013 Create Material in the Sub list.
    In this way we will get the required Transaction Code using the description only.
    This is applicable to any module.
    Regards,
    Sreeram

  • Exchange 2010 - Export a list of delegates for a given group of users

    I am trying to export a list of delegates on a list of mailboxes in Exchange 2010, and cannot get it to work.  This is the most promising one I'm working with.
    $list = import-csv c:\day1.csv
    $list | foreach-object {get-mailbox -ResultSize unlimited |
      get-CalendarProcessing |
      select identity -expand ResourceDelegates |
      select @{n="Name"; e={$_.identity.Name}}, @{n="ResourceDelegates"; e={$_.Name}}} |
      export-CSV c:\delegates.csv -NoTypeInformation
    I keep seeing the following error:
    Cannot open mailbox /o=Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=SERVER/cn=Microsoft System Attendant.
        + CategoryInfo          : NotSpecified: (366:Int32) [Get-CalendarProcessing], MailboxInTransitException
        + FullyQualifiedErrorId : 9DF5103C,Microsoft.Exchange.Management.StoreTasks.GetCalendarProcessing
    Can someone tell me what I'm doing wrong here?

    $list = import-csv c:\day1.csv
    $list | foreach-object {get-mailbox -ResultSize unlimited
    I suspect the issue occurs here. You are importing user mail box list and then why are you using -ResultSize parameter? remove it and try
    $list = import-csv c:\day1.csv
    $list | foreach-object {get-mailbox -Identity $_ | get-CalendarProcessing |
    select @{n="Name"; e={$_.identity.Name}}, @{n="ResourceDelegates"; e={$_.Name}}} |
    export-CSV c:\delegates.csv -NoTypeInformation
    Regards Chen V [MCTS SharePoint 2010]

  • How to return a list of opportunities for a given contact

    Do you know how to do this? I looked at the Contact.xml (ws 2.0) QueryPage method but there's no ListofOpportunities. Below is my code so far
    <soapenv:Body>
    <ns:ContactQueryPage_Input>
    <ListOfContact>
              <Contact>
                   <Id>='ADSA-8D59T5'</Id>
                   <ContactEmail/>
              </Contact>
    </ListOfContact>
    </ns:ContactQueryPage_Input>
    </soapenv:Body>

    I have to Querypage on the Opportunity object.

  • How to find latest child for a given parent in same table?

    More details:
    Here I am giving an example -
    Orig_ID     Chg_to_ID
    A     B
    B     C
    C     D
    D     Null
    From source I use to get Orig_ID values, using Orig_ID value have to find latest Child(Chg_to_ID) to that at any level.
    Latest child identify by Null value in the column "Chg_to_ID".
    If I get B --> need to replace B with D. I may get any value A or B or C or D -- but at an end I have to replace those values with 'D', since it is latest for any of those parents.
    I tried to use "Connect By Prior", but it is tooo slow ofcourse query not returned after 10min also. Plz advise.

    First time every employee will be assingend an ID and may changed/merged to another ID basing on some other conditins. So, any time first assigned ID may changed to new ID and will be updated to another column "Chg_to_ID" as winner ID and at the same time one more records will be created with new ID as ID and Null in "Chg_to_ID".
    In my first post, given an example, here pasting again:
    Orig_ID     Chg_to_ID
    A-------------->B
    B-------------->C
    C-------------->D
    D-------------->Null
    In detail: One employee first assigned ID as "A" after wards changed to "B". At that time data would be like below
    Orig_ID     Chg_to_ID
    A-------------->B
    B-------------->Null
    After that B change to C, now it looks like this:
    Orig_ID     Chg_to_ID
    A-------------->B
    B-------------->C
    C-------------> Null
    For each change one record will be inserted.
    My requirement is -- Orig_ID may get A or B or C, but I need to replace those with "C", since it is latest child. For latest child "Chg_to_ID" is NULL.
    Plz let me know for any clarifications.

  • Obtain list of fields for marketing attributes against BP

    Hi All,
    I'm working on a data extraction routine for BP data and need to be able to allow the user to select which fields will be extracted and added to the output file.  I've got some standard code that so far uses a data dictionary structure to create a pop up of fields with checkboxes so the user can select which fields to output - it uses FM DDIF_FIELDINFO_GET to simply list all fields for a given structure.
    My requirement is to extend this so that all possible marketing attributes against business partners are also available for selection in the field list.  I guess to do this I need to find a way of reading all fields defined for any BP type attribute sets.
    Does anyone know of any FM's that do this or have any ideas around tables I can read?
    Note: I'm after the atttribute names not the actual values.
    Thanks,
    Gareth.

    Hi Gareth
    I think the function modules in group CRM_MKTPFTPL_OW are really valuable.
    Maybe you could call CRM_MKTPFTPL_GETLIST and then call CRM_MKTPFTPL_READ_CHR for each one.
    They aren't called by Pratik's FM's though .
    Cheers
    Dom

  • In need of a report that will list all vendors for all parts in our plant.

    Can anyone tell me if there is a report in SAP that we can use to list all suppliers for a given material? We are operating in SAP ECC6.0 and need a report that will list all vendors that the company has used for a given part. Is there a standard report in SAP that pulls information from purchasing info records?  Woud this be  a custom report?     I have tried using MCE3. 
    Also does anybody know of any SAP consultants that can help us create custom reports

    For the list of vendors for the material - Me03 if source list is maintained
    For list of vendors with info record - Me1m
    For list of vendors with PO - Me2l
    If you can give the correct requirements then your Technical consultant will develop a report in the required format.

  • How to get classification for a given material and material type in MM

    Hello Friends,
    One of my developer colleagues is struggling to find out : how to get classification for a given material and material type in MM?
    He is looking for probable table and table fields to Select from.
    I would appreciate seriously any help in this regard.
    ~Yours Sincerely

    Hi
    Below given the flow and table details for a given class and class type.
    - Table KLAH --> This contains the "Internal class no" [ for the given Class & Class type ]
    - Table KSML --> This contains the " internal character numbers " [ nothing but characteristics attached to the class ] , which can be fetched with the above fetched internal class no
    - Table AUSP --> This table contains the objects ( material ) attached to the internal characters of that class
    - Table CABNT --> This table contains the "Description" for the internal character numbers.
    - award points if this is ok

  • When I sync my iPhone 5 to Outlook 2010, the email addresses that I have listed as Email 1 for any given contact in my iPhone will be automatically moved to Email 3 in the Outlook file. Is there a way to fix this?

    When I sync my iPhone 5 to Outlook 2010, the email addresses that I have listed as Email 1 for any given contact in my iPhone will be automatically moved to Email 3 in the Outlook file. Is there a way to fix this?

    iCloud email supports 'plus' addressing. http://en.wikipedia.org/wiki/Email_address#Address_tags
    So your friend could just add '+research' to the username part of your email address, and you setup a rule at icloud.com to put all emails sent to that address into a particular folder.
    For example:
    [email protected]
    There's no way to do it without rules on the server though.

  • WHERE ... IN ... SELECT records for a given list of PKs (or FKs)

    Hello folks,
    Many times we need to retrieve records for given lists of PKs (or FKs), as:
    p_pk_list := '11,22,33';
    We work in 10g
    A co-worker of mine had a good idea (I thought) to "help" the optimizer and build a recordset in the FROM clause and use it later in WHERE
    SELECT ...
    FROM tableName a,
    (SELECT REGEXP_SUBSTR(p_pk_list, '[^,]+',1,ROWNUM) p_pk_id
    FROM dual
    CONNECT BY ROWNUM <= LENGTH(p_pk_list ) - LENGTH(REPLACE(p_pk_list ,','))) d_pk
    WHERE
    a.ID=d_pk.p_pk_id; -- (1)
    The tragedy is that it takes 4 seconds to retrieve 5 records from the table (no other joins). The table has about 40 columns though and there are about 51000 records. With the SELECT REGEXP_SUBSTR in the WHERE clause, it's a bit worse.
    If (1) is replaced by:
    a.ID IN (11,22,33,44,55);
    the execution takes 0.04 seconds.
    My questions are:
    1. Is this a bad idea to select records for a given list of PKs or FKs? Should one just go for one PK/FK instead?
    2. Why the stiff performance penalty?
    3. Ideally, it would be nice if this would work:
    a.ID IN (p_array);
    where p_array would be an array of integers
    Any elegant sollutions?
    Thanks a lot.
    Dan

    Check the explain plan for both statements.
    I would wager that the overhead you experience is due to the fact that you are comparing apples to oranges here.
    (SELECT REGEXP_SUBSTR(p_pk_list, '[^,]+',1,ROWNUM) p_pk_id
    FROM dual
    CONNECT BY ROWNUM <= LENGTH(p_pk_list ) - LENGTH(REPLACE(p_pk_list ,','))) d_pkreturns a string.
    a.ID IN (11,22,33,44,55);Is a list of numbers.
    If you check the explain plan for the regexp version, you should see an implicit conversion being done for you (converting the number column into a string for comparison) which means you can't use any indexes defined on a.id.
    If you want to use an array of numbers here's an approach using a built in array of numbers.
    declare
       v_number_list  sys.odcinumberlist   default sys.odcinumberlist();
    begin
       v_number_list.extend;
       v_number_list(v_number_list.count) := 100;
       v_number_list.extend;
       v_number_list(v_number_list.count) := 200;
       for vals in
          select *
          from all_objects
          where object_id in
             select column_value
             from table(cast(v_number_list as sys.odcinumberlist))
       loop
          dbms_output.put_line(vals.object_name);
       end loop;
    end;
    25  /
    I_TYPED_VIEW1
    I_NTAB2
    PL/SQL procedure successfully completed.
    ME_XE?Otherwise do an explicit TO_NUMBER on the regexp query so that you can use any indexes defined on the table in question.

  • How can I get file list for a given directory?

    Hi,
    How can I get file list for a given directory? Is there a function?
    Thanks.

    Hi friend,
    Try this sample report. It displays all files in a directory.
    While executing give some directory name in input. ex:  C:\
    Mention file type in filter parameter. ex: *.DOC
    REPORT ztests.
    DATA : file_table LIKE TABLE OF sdokpath WITH HEADER LINE .
    DATA : dir_table LIKE TABLE OF sdokpath WITH HEADER LINE .
    PARAMETERS:p_dir(50) TYPE c.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        directory  = p_dir
        filter     = '*.DOC'
      TABLES
        file_table = file_table
        dir_table  = dir_table
      EXCEPTIONS
        cntl_error = 1
        OTHERS     = 2.
    LOOP AT file_table .
      WRITE:/ file_table-pathname.
    ENDLOOP.
    Might be helpful...
    Thanks.....
    Edited by: Guest77 on Feb 11, 2009 5:30 AM

  • Info needed on how to get list price for a given MATNR and pricing Conditio

    Hi All,
    Can some one help me in finding List price for a given MATNR and pricing condition type.
    Basically, i need info regarding the tables that i need to use for this purpose.
    Thanks in advance.
    Regards,
    Udaya.
    PS: All helpful answers will be rewarded.

    Hi Udaya,
    A simple solution to all these kind of problems:
    Goto  Transation SE16
    Table :TSTC
    in Tcode :Give A* or V*  or anything...and find the relevant transctions and data.
    if found useful...reward points.
    Regards,
    Nisha

  • Info needed on how to get list price for a given MATNR and pricing Conditi

    Hi All,
    Can some one help me in finding List price for a given MATNR and pricing condition type.
    Basically, i need info regarding the tables that i need to use for this purpose.
    Thanks in advance.
    Regards,
    Udaya.
    PS: All helpful answers will be rewarded.

    Hi,
    I moved your topic to this forum
    Mario

  • How to get List of Orders for given BP

    Hi,
    I want to get the Sales Orders for a given list of Business Partners (Partner Func '00000001'). I tried to use
    BAPI_BUSPROCESSND_GETDETAILMUL but this BAPI needs to Transaction Header GUID as import parameter ti get the detail. SO does the FM CRM_ORDER_READ
    What I want is a Class/BAPI/FM that will give me a list of Sales Order Header GUID's based on a List of Business Partners
    Thanks

    Hello,
    Check function module CRM_BUPA_READ_ORDER_OBJECTS. It will get all document associated to a business partner.
    Kind regards.

Maybe you are looking for

  • PR to PO convertion (4.6C and ECC6)

    Hi, I have got a diff kind of issue (weired one), we have upgraded from 4.6C to ECC6 in ECC6 when you convert a PR to a PO for a matl for which info record is deleted earlied converts all datas expect <b>tax code</b> this happens only in ECC6 but in

  • Songs bought on iPhone appear in Laptop library...but greyed out and unavailable to be played

    I am subscribed to the cloud service. I bought songs on my iPhone and can play them there. On my laptop, they appear greyed out in my library. There is no slash thru the cloud icon...but when I click on the icon to download/play song, the Play option

  • I have no more Siri in my Iphone 5

    There is not in Setting-General.

  • Create transfer order without stock

    Hi, I have a requirement were I need to create transfer orders without stock, can we create this using the user exits (MWMTO005, MWMTO001, MWMTO002). is there anyother way of creating TO without stock by turning off ATP? we need this for cross dockin

  • Cflock session - named or not?

    I juts went through a bunch of apps and cflocked the heck out of lots of session variables being set. This greatly improved my server problems. However, I locked these all with a Name and not the Scope Now my server is getting quirky again and I want