Need to include table name,schema name in select output

I need to output the table name and schema name of the current user into a table.. I have tried including
within a select statement..
table_name,
from user_tables
where table_name='mnme';
no rows returned

Hi,
Its in upper case 'MNME'
Best.
EA

Similar Messages

  • Need to include Table Control in Tabstrip (which is present in selection sc

    Hi Friends,
    I have a tab strip in my selection screen. I need to include a Table control in one of the tab of the tab strip. Is it possible? If yes How to do that?
    Note: I cant use a module pool program.
    Regards,
    Sudheer

    Hi ,
        We can do that.
    You have created the Tab strips in Module Pool program.Select that tab Place the table control in your tabstrips.Assign the Table control name to the table control.
    In this program We have a field in selection screen When we submit the screen the tabstrip will come and using with in that we table controls.we filled that table controls.
    include zsalesordertop                          .    " global Data
    tables: zstr_vbak,zstr_vbap,zstr_vbep.
    data:ok_code type sy-ucomm,
         ok_cod type sy-ucomm,
         l_vbeln type vbak-vbeln,
         no_rows1 type i,
         no_rows2 type i,
         no_rows3 type i.
    data: itab1 type table of zstr_vbak,
          wa1 type  zstr_vbak,
          itab2 type table of zstr_vbap,
          wa2 type  zstr_vbap,
          itab3 type table of zstr_vbep,
          wa3 type  zstr_vbep.
    *&      Module  STATUS_0100  OUTPUT
          text
    module status_0100 output.
      set pf-status 'BACK'.
    SET TITLEBAR 'xxx'.
      case ok_code.
        when 'BACK'.
          leave program.
      endcase.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  STATUS_0101  OUTPUT
          text
    module status_0101 output.
      set pf-status 'EXIT'.
    SET TITLEBAR 'xxx'.
      case ok_cod.
        when 'EXIT'.
          leave program.
        when 'TAB1'.
          tabstrip-activetab = 'TAB1'.
        when 'TAB2'.
          tabstrip-activetab = 'TAB2'.
        when 'TAB3'.
          tabstrip-activetab = 'TAB3'.
      endcase.
    endmodule.                 " STATUS_0101  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module user_command_0100 input.
      case ok_code.
        when 'SUBMIT'.
          if l_vbeln is not initial .
            select vbeln erdat erzet ernam angdt bnddt audat vbtyp trvog auart from vbak into table itab1 where vbeln = l_vbeln.
            if itab1 is not initial.
              select vbeln posnr matnr matwa pmatn charg matkl arktx pstyv posar from vbap into table itab2 for all entries in itab1 where vbeln = itab1-vbeln.
              select vbeln posnr etenr ettyp lfrel edatu ezeit vrkme from vbep into table  itab3 for  all entries in itab1 where vbeln = itab1-vbeln.
            else.
              message i000(000) with 'no data in item and schedule information table'.
            endif.
          else.
            message i000(000) with 'not allowed'.
          endif.
      endcase.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_1101  OUTPUT
          text
    module status_1101 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      describe  table itab1 lines no_rows1.
      tablecontrol1-lines = no_rows1.
    endmodule.                 " STATUS_1101  OUTPUT
    *&      Module  STATUS_2101  OUTPUT
          text
    module status_2101 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      describe  table itab2 lines no_rows2.
      tablecontrol2-lines = no_rows2.
    endmodule.                 " STATUS_2101  OUTPUT
    *&      Module  STATUS_3101  OUTPUT
          text
    module status_3101 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      describe  table itab3 lines no_rows3.
      tablecontrol3-lines = no_rows3.
    endmodule.                 " STATUS_3101  OUTPUT
    *&      Module  FILL_TABLECONTROL1  OUTPUT
          text
    module fill_tablecontrol1 output.
      read table itab1 into zstr_vbak index tablecontrol1-current_line.
    endmodule.                 " FILL_TABLECONTROL1  OUTPUT
    *&      Module  FILL_TABLECONTROL2  OUTPUT
          text
    module fill_tablecontrol2 output.
      read table itab2 into zstr_vbap index tablecontrol2-current_line.
    endmodule.                 " FILL_TABLECONTROL2  OUTPUT
    *&      Module  FILL_TABLECONTROL3  OUTPUT
          text
    module fill_tablecontrol3 output.
      read table itab3 into zstr_vbep index tablecontrol3-current_line.
    endmodule.                 " FILL_TABLECONTROL3  OUTPUT
    Include zsalesordertop
    program  zmodule_pool_salesorder.
    controls tabstrip type tabstrip.
    controls tablecontrol1 type tableview  using screen '1101'.
    controls tablecontrol2 type tableview using screen '2101'.
    controls tablecontrol3 type tableview using screen '3101'.
    Sure this will help you.
    Please reward points if it helps to you.
    Thanks,
    Swapna.

  • Need to identify Table or Report Name or Transaction Name for mapping roles

    In PFCG transaction, we can see the simple roles available inside a composite role.
    But I want to identify the table name or report name or transaction name which will help me to identify simple roles for all composite roles.
    Looking for your soonest reply.
    With Regards,
    Santanu Samantroy

    Thank You for your quick turn around.
    This table can help us to find out the simple/derived roles inside all composite roles at once.
    Do you have any idea, of any report/transaction can provide the same result.
    Similarly please let me know, if there is any report/transaction/table which can provide mapping of all simple and derived roles.
    Transaction code SUIM does not provide this facility.
    Thank You once again.
    Santanu

  • SCHEMA NAME

    Hi,
    I have installed SAP Netweaver 2004s on Oracle 10g, windows 2000 server.
    I want to know the schema name. Can  you guys help me how to find schema name.
    Thanks,
    Chakri

    Hello Chakri,
    the in oracle user name = schema name .. so you can query dba_users:
    > sqlplus "/ as sysdba"
    > select username from dba_users;
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4174.htm#sthref2759
    In SAP NW2004s the schema name should be SAPSR3.
    Regards
    Stefan

  • Need to know schema name and table name associated with a column-URGENT

    Hi folks,
    I need to know the schema name and the table name associated with a column. Though jdbc has the api to getTableName and getSchemaName, some database vendor like oracle does return empty upon call of mentioned methods. I found that oracle driver does not support that ……
    Can any one give me the solution? It is urgent. Or do you suggest any third pary jdbc driver which can provide those?
    Thanks
    Angelina

    Angelina,
    Your question has been discussed several times previously in this forum. Search this forum's archives for "getTableName". Oracle JDBC driver does not implement this (because "it is not feasible" -- according to Oracle).
    First of all, I would suggest that you could probably change your application's logic so that you would not need this functionality (but I guess that is not feasible either, right :-)
    Alternatively, you could try querying the Oracle database data dictionary.
    Good Luck,
    Avi.

  • Access other schema's table without specify the schema name

    Hi, need ur help again,
    I would like to access other schema's table without specify the schema name. for example,
    select * from hr.jobs;
    What priviledges i need if i want to select the data in this way:
    select * from jobs;
    Thanks!

    Public synonyms have their place, but are not generally a good idea as they will cause conflicts with other schemas and applications. Another think that you can do is issue the
    ALTER SESSION set CURRENT_SCHEMA = schema;
    The CURRENT_SCHEMA (8i and above) parameter changes the current schema of the session to the specified schema. Subsequent nqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement. CURRENT_SCHEMA is a session parameter only, not an initialization parameter.
    This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give you any additional system or object privileges for the session.

  • Get the table names from a specified schema name

    Can't any one can hlep me how to use OCIDescribeAny() to retrive the list of table names for a given schema name?
    I have problem when I connect to the database using syste as usr id. I can't ge the table name form the SCOTT schema.

    If I understand you correctly, I don't think OCIDescribeAny() is the way to go.
    You can get a list of tables owned by a particular schema by using the following SQL:-
    SELECT TABLE_NAME FROM DBA_TABLES WHERE OWNER = 'SCOTT'
    Just change the where clause to your needs.
    Regards.
    Adrian

  • What is table schema name?

    Hi,
    I was looking at DatabaseMetaData::getColumns() while searching for a way to get a table's column names and I run into these ugly params catalog and schemaPattern. Of course nowhere on the sun's site could I find a definition of these terms although they're used quite often in the API documentation. So I turned to a specific DBMS provider and found out that catalog is a fancy term for the system metadata. But what about the String schema param? I usually see a table's schema referred to as the "structure" of the table, what columns it contains of which types. But I've never known this "schema" can have a string name. Anyone so kind to explain it to me or better point me to a text that has definitions and explanations of the concepts used in the JDBC API documentation? And more generally for JDK where do you folks usually go when you want a simple explanation of how things work, not the dry listing of function and parameter names? Look at MSDN for example, it is both a good reference and a reasonable self-contained tutorial. Not that I praise Microsoft but...
    BTW I found that probably ResultSetMetaData is more suitable for my initial purposes, but still the questions bother me. So if you have any suggestion please let me know.
    Thank you in advance

    To answer your question, what is a table schema name?, it is the name of the schema that the table belongs to. If you have an Oracle database, MYDB, it will have at the very least two users which are SYS and SYSTEM, these are schema names, there are objects that exists in their schema. If you create a new user, JAKE, and then create a bunch of objects as JAKE, these objects are said to belong to the JAKE schema. All objects are like this, not just tables (indexes, sequence tables, triggers, etc.).

  • Need a that Table Name in Select command which being used in from statement

    My Question Is:
    If my SQL command is like this "
    Select Code, Name from Customer (Table Name)
    Can I get this output in this Way .. ?
    Select Code, Name,Customer(Table Name)  from Customer (Table Name)
    in dynamic way ..

    NO. You missing many fundamental concepts of RDBMS. A table is a set of entities, so it's name is plural or collective(unless you really do have only one customer as you said). There is no such thing as a generic "name", or "code" in RDBMS. Those affixes
    are called attribute properties, and they have to be part of an attribute data element name -- customer_name, postal_code, etc. 
    Since a table is a set, its columns are fixed and known in the schema. They do not change by magic! This kind of non-RDBMS thinking is called "Automobiles, Squids and Lady GaGa" coding. Please read any intro book on RDBMS. Your whole mindset is wrong. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Can you tell me which table do I need join to get proper country name?

    Hi All,
    Hope you understand this but where in the database do we find the link from the table GB to the word GB ? Just to let you know GB stands for Great Britain. What we need is the table name which contains conutry names ie GB ?

    Hi,
    you can use CINF table.
    Try this query :
    select lawwset, * from CINF
    to find out the country code
    Rgds,

  • How to make sure that schema name is not included with generated sqls

    How to make sure that schema name is not included with generated sqls with tableadapter wizard.
    What should I use? Oledb, ODT.NET, where can set that I want "pure" sqls, not schemas, not ", or anything like this
    I want
    "Select a,b from t1" ,not "select "a","b" from schema.t1"
    Also schema name is put in all parameters, all over the place... What if schema name changes. (b1test to b1prod)
    . I now manually edit XML files of dataset. It works but....
    thanks

    The full hardware :
    Processor Intel core due 3.00 MHz
    RAM:1.5GB
    psu:650 Watt (but i baught i cheap one so it may be actually about 400 watt)
    HD Disk:160 GB
    But about the power supply if it not able to run the VGA card ,Is it will not show any screen or it will not able to run the computer??

  • In OPK8 need to include new list name.

    Hi Experts,
    In one of my requirment i need to configure a new list names ( LG96 & LK96) in the printer configuration OPK8.
    Please advice.
    Thanks

    I am not sure got your question correctly. But in OPK8  you can just click on icon NEW Entries & create new lists & their complete configuration.
    General best practice is to use some existing SAP lists whose configurations nearly meet your requirement  & copy into your custom lists. Then do required modifications as needed.
    Hope this helps. Else let me know.
    Thanks,
    Ram

  • Schema name & user name

    Hi All,
    I have a question that can a username and schema name can be diffrent for a single user. For example when we connect with SYSOPER we connect with PUBLIC schema but the user is SYS.
    Is there any syntax to create the same.
    Thanks
    Bhupinder

    You can grant access for any user to "public", however, it's bad for security.
    Example-
    connect scott/tiger@mydb
    create table TomTable (main_id number);
    grant select on tomtable to public;
    connect newuser/newpass@mydb
    select * from scott.tomtable;
    This gives "newuser" access to Scott's "tomtable" table.
    You can also create public synonyms...
    As scott/tiger-
    create public synonym tomtable for scott.tomtable;
    connect newuse/newpass@mydb
    select * from tomtable;
    Now "newuser" doesn't need to include the schema name when they reference "tomtable".
    It's much safer to grant access to objects based on a role... otherwise, anyone with a login can get to "public" tables. One thing to be careful of when using roles; some things can't be done- as in, you can't create a view on a table, if you only have access to the table via a role. You'd need explicit access on the table.
    When you query all_tables, who is the real owner of the tables? Your username and schema name are one and the same, but you're allowed to have access into other schemas. SYS wins big-time because of the "select any table" system privilege. The only way a normal user can get to another schema's objects is by "grant select/update/insert/delete/etc on schema.object".
    -Thomas H

  • Schema name in front of trigger name.

    I have a doubt that all the triggers in my schema of the database of my application of about 200 users have the schema name before the trigger name. Say, if the trigger is 'Trig_1' & the schema is 'Schema_1', then the trigger name is like 'Schema_1.Trig_1'. But, today, i modified one trigger & created it without the schema extension like, say 'Trig_1' as per my eg. I hope, this does not create any problem.
    I hope, my question is clear. Please help in solving the doubt as it is urgent.
    Regards.

    Please help in solving the doubt as it is urgent.This is a simple enough problem to test. If it's that urgent you would be better off investigating it yourself rather than waiting for a passing guru to pontificate. But as I happen to be in the area... ;)
    Prefixing the object name with the schema name is a common enough practice in DDL scripts. When the schema name is omitted the object is created in the schema of the user running the command. If the schema name is included, the object is created in the schema specified. When this is the same as the user running the statement there is no difference. However, specifying the schema name does allow us to run installation scripts as power users i.e. those with privileges like CREATE ANY TABLE, CREATE ANY TRIGGER.
    Why would we want to do this? Well, if we want to roll out a change to every schema it's a lot easier to log on as the power user account and run one script which installs a trigger in two hundred schemas than it is to log on as two hundred different accounts and run two hundred scripts.
    Whether this reflects your situation is a question only you can answer. How is your application installed? If it's run from a single master script you need to include the schema owner in the DDL.
    I hope my answer is clear.
    Cheers, APC

  • How to configure the schema name dynamically based on user input.

    configure the schema name dynamically based on user input.
    For ex:
    We have two schemas:
    Schema1  - base schema having 15 tables.
    Schema2 -  tables which is specific to modules. Having only 10 tables which is also available in Schema1
    Login to application using Schema 1
    Access a particlular module and select the country. Here country selection is identified.
    Based on the country selection, we need to connect the schema respectively.
    If the user selects France --> It should connect Schema1
    If the user selects Germeny --> It should connect schema2.
    Used: Eclipselink

    You may want to have a different persistence unit for each country, then you just need to switch persistence units, and can put the schema in your orm.xml file.
    You may also want to investigate EclipseLink multi-tenant support,
    http://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/a_multitenant.htm
    You can the schema in a persistence unit in code using a SessionCustomizer and the tableQualifier.

Maybe you are looking for

  • I am trying to deploy the Creative Cloud

    Hello! Thanks for this video. I found this thread while researching physical CD installs of Adobe CS vs. a Creative Cloud install. I have a work machine where volume licensed CS software was installed. (master collection via CD) I later downloaded th

  • Scheduled scenarios not working

    Hi everyone, I have created and configured ODI agent as Java EE Application successfully as mentioned below: http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/setup_jee_agent/setup_jee_agent.htm The test is successful. Now I a

  • OBIEE client tool

    Hi, We are install OBIEE client tool in windows with admin privilges. Getting error if other users in access the OBIEE client tool.(No issue with admin users) Error Message: Invalid Path:C:User\sukumar\Appdata\Local\Temp\20\oracle\instance\bifoundati

  • SXMB_MONI transaction table

    Hi, Does anyone know which ABAP table is sxmb_moni transactions is stored? Thanks, Gowri

  • Getting problem with realms

    Hi Guy's I created realm and i assign that realm at user level. But it is not reflecting.. Any other set up i have to do?. The same stuff i applied at responsibility level. It is working.. If anyone knows reply Thanks & Regards Palakondaiah.U