USER NAME table
Hello Friends,
I have a user ID.
I need to find the last name and the first name of the person who created the order.
What are the table and the field for this?
Ster.
Pass userid to USR21.
Take PERSNUMBER and pass this to ADRP table.
You get NAME_FIRST, NAME_LAST
Thanks,
SKJ
Similar Messages
-
How to restrict the entries of a database table based on the user name
Hi All,
I have created a Database Table. Table maintenance generator is generated for the table.
UNAME(user name) is one of the fields in the table. whenever the user creates a new entry, the field UNAME will be populated automatically with SY-UNAME value. I have used Table event '05' to do this.
My requirement is...
When a user tries to maintain the entries of the table using SM30, when 'DISPLAY' is chosen, all the records of the table should be displayed.
When 'MAINTAIN' is chosen, only those records which have UNAME = SY-UNAME(User Logged in) should be in EDIT mode. and rest all the records should be in DISPLAY mode(greyed out). It should allow to edit only those records which are created by the user logged in.
Could you please tell me how to do this..? Thanks in advance.
Thanks & Regards,
Paddu.HI,
In table main. gen there are number of events , try to select one event like 05 for the Sy-uname.
For the requirement:
In that event write the code like
this is basic idea not the code:
Case ' Sy-ucomm'.
when 'display'. " button
Nomally for the display button it will show all the records, but we need to write a code like this.
select all records frm the table.
( Need to write the code in case if the user first maintained the data then again press the display , list has to be refreshed.)
when ' Maintain'. " button.
Fetch the records that are with SY-UNAME and find out the edit function and implement it on each and every record.
endcase.
Thanks and Regards,
Bharani. -
Reg : User name and table spaces
Hi all,
I want to show all the user names in DB and total table apace , Occupied spaceand free space .
Please help on this,
Thanks in advance .for all users you can query
select * from ALL_USERSbut why are you posting the same problem in 3 different threads.
for calculating size of the table you can use
select sum(bytes) from dba_segments
where segment_name = 'YOUR_TABLE'and for rowsize you can use something like this
select
max(vsize(empno)) +
max(vsize(ename)) +
max(vsize(job)) +
max(vsize(mgr)) +
max(vsize(hiredate)) +
max(vsize(sal)) +
max(vsize(comm)) +
max(vsize(deptno)) Bytes
from
scott.emp; -
How to save user name and system date in a table
I have a form that allow users to enter some information...
I want to save user name in one of the columns and system date in another column by default when the user submit the form to save data...
Please advice...
ThanksHi talbo,
The most reliable method is to use a before-insert trigger on your table. This way the columns will be set properly no matter how rows are inserted (via your app or any other means). Given your user name column is called "CREATE_USER" and your date column is called "CREATE_DATE" for example - include these lines in a before-insert trigger:
:NEW.CREATE_USER := NVL(V('APP_USER'), USER);
SELECT SYSDATE INTO :NEW.CREATE_DATE FROM DUAL;The NVL(V('APP_USER'), USER) will set CREATE_USER to the current ApEx application user if the row is created from within the application, or to the current database user if the row is created outside the application.
Hope this helps,
John
If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well. -
How to read a databae table and current user name?
Hi All,
We need to add two radio buttons in a standard template.The RBs should be visible to some users and should not be visible to others.For this we need to read a database table in the template , compare the logged in user name with a field of the databse table.
Something like...
select single * from ZDBTAB into WA WHERE username = sy-uname.
IF SY-SUBRC = 0 .
Radio Button1
Radio Button2
ENDIF.
Please provide the exact ITS code for the same.
Regards,
AnubhavHi All,
We need to add two radio buttons in a standard template.The RBs should be visible to some users and should not be visible to others.For this we need to read a database table in the template , compare the logged in user name with a field of the databse table.
Something like...
select single * from ZDBTAB into WA WHERE username = sy-uname.
IF SY-SUBRC = 0 .
Radio Button1
Radio Button2
ENDIF.
Please provide the exact ITS code for the same.
Regards,
Anubhav -
How user variable table names in select statement
Dear all,
I have three table gp1,gp2,g3. i want user variable table in sql query
for example at oracle forms have a list table showing table names gp1,gp2,gp3
at form i want user this query
select gpno from :table where gpno=120;
how i can specify table name Dynamicly in select query
ThanksForms_DDL is a one-way street: You can only pass DDL commands TO the database; you cannot get data back using Forms_DDL.
Exec_SQL is the Forms package that enables dynamic sql within a form. But to retrieve data, you have to make a Exec_SQL call for every column in every row. So it is not a good thing to use, either.
The ref cursor method should work. You could also retrieve the data into a record group using populate_group_with_query -- it also enables dynamic data retrieval.
But if you already know you have three distinct tables and you know their names, I would keep it simple and just write three sql select statements. -
How can i build table with two user name columne ?
How can I build view with two columns for user name ( one create and the other
Can change also )
And to display full name ( the user name is the key but not display ) ?Hi,
Creating View
From initial screen of data dictionary(T.Code: SE11), enter the name of object i.e. view.
Select view radio button and click on the push button.
Dialog box is displayed for types of views.
Select the view type.
On the next screen, you have to pass following parameters.
Short text
In the table box you need to enter the table names, which are to be related.
In join table box you need to join the two tables.
Click on the TABFIELD. System displays the dialog box for all the table fields and user can select the fields from this screen. These fields are displayed in the view fields box.
Save and Activate: When the view is activated, view is automatically created in the underlying database system. As long as the table exists in the database, the view also exists (Unless you delete it).
Regards,
Bhaskar -
Which table stores the information about a user (name, username etc.)
Which table stores the information about a user (name, username etc.) .Is it LDAP server or MSSQL server? then hw to go to that table ?
I guess this is a question about CAD - and it doesn't matter much if it's UCCE or Express. The info is in the LDAP called Directory Services. In UCCE the Sync process updates the LDAP from the ICM config database.
You can use a free LDAP browser to connect to the LDAP (anonymous connection) and read the LDAP.
Regards,
Geoff -
Need table which is having User name and surname
hi,
I am having User ID from caufvd strucure , based on this i want User name and surname. In which table i will get those two fields by passing User id. Please urgent.
Thanks,
MK.Hello,
use table USR01 to achive it...
All user tables start with USR++.
Bye
Gabriel -
Table for full user name and contacts
Can anyone tell me the table names where (1) the user name field is stored and (2) Vendor contacts are stored? On the user name I want the full name (meaning if my SAP id is SSMITH I want to get "Sam Smith"?
Thanks!Hi,
for user contacts table names are
USR01 User master record (runtime data)
USR02 Logon data
USR04 User master authorizations
USR06 Additional Data per User
USR14 Surchargeable Language Versions per User
USR21 Assign user name address key
for vendor contacts check out the table LFA1
<REMOVED BY MODERATOR>
Regards,
Adarsh Srivastava
Edited by: Alvaro Tejada Galindo on Mar 5, 2008 12:08 PM -
Table contain user name and tcode
Dear Experts,
Can you tell me which Table contained user name and tcode field?
Thanks and Best regards,
wilsonYou need to be even more carefull with parameter transactions.
If SU24 is not maintained for them, PFCG will pull the proposals from the core transaction (via which the parameters are used in the skip screen feature...). If the core transaction has authority proposals for S_TCODE, then you will get those tcodes and their proposals as well.
A carefull choice of menu objects (not only limited to Tcodes), taking heed of SU24 defaults and tuning it to meet your needs is the key. But it requires organizational discipline and good training, otherwise rather dont use it for anything other than important objects which you want to control manually only, even if your business roles are a mess.
You can also restrict the authorizations of the security admins for example (as unpopular as that may sound... to segregate authorization concept development (SU24 etc), role building development (PFCG etc) and user administration (SU01 etc). Object S_USER_TCD also has a field called TCD...
There are also other objects (as Dipanjan has pointed out) which have TCD as a field of an object which is not S_TCODE. In addition to I_TCODE, Q_TCODE, P_TCODE, see also S_IDOCMONI for example.
To be honest I have given up on trying to find them all
The easiest solution is to use the menu and maintain SU24 when the transaction is configured or the application is developed and tested. That is what SAP does as well in SU22. It is more work upfront, but more sustainable in the long run.
If your users (and auditors) only see the menu (and use the SUIM --> Executable transactions) options, then you can get away with it in the short or even medium term. Latest when someone else need to maintain the roles they will hate it...
My 2 cents,
Julius -
Tables to link Business Partner number and User Name
Hello SAP Experts,
I'm having a hard time looking for the relationship tables that could link the Business Partner numbers with the user name of a user. I have tried to link the BUT* tables, the USR21 table, and several HRP* tables and I can't seem to find a link. For the table BUT000, the field XUBNAME which is suppose to contain the user names of the users are left blank for some reason.
I just want to ask if there is any other table relationships I can check so I can retrieve the User name of a user using his/her BP number or vice versa. Thank you in advance!
Regards,
Romeohi,
i am not sure about tables but you can use FM BP_CENTRALPERSON_GET to get the user name from BP and vice versa. Get the BP guid from BUT000 table and give that to the FM
thanks,
sankar. -
User stats table - columns' names description
Hi,
I have question about creation user stats table. I have created such a table:
EXECUTE DBMS_STATS.CREATE_STAT_TABLE ('PIOTR', 'piotr_sysstats', 'USERS');Here is stats table structure:
SQL> desc piotr_sysstats;
Name Null? Type
STATID VARCHAR2(30)
TYPE CHAR(1)
VERSION NUMBER
FLAGS NUMBER
C1 VARCHAR2(30)
C2 VARCHAR2(30)
C3 VARCHAR2(30)
C4 VARCHAR2(30)
C5 VARCHAR2(30)
N1 NUMBER
N2 NUMBER
N3 NUMBER
N4 NUMBER
N5 NUMBER
N6 NUMBER
N7 NUMBER
N8 NUMBER
N9 NUMBER
N10 NUMBER
N11 NUMBER
N12 NUMBER
D1 DATE
R1 RAW(32)
R2 RAW(32)
CH1 VARCHAR2(1000)Does someone know what each of this columns store? I will be very appreciated if someone help me find information about user stats tables.
Peter D.Google is your friend and Wolfgang Breitling rules! :)
http://www.centrexcc.com/SQL%20Tuning%20with%20Statistics.ppt.pdf
Gints Plivna
http://www.gplivna.eu -
hello Everyone
1.- i don't know how to merge the two qys to see in the same select (user, name, profile, role, table_name, privilege table)
Im using the tables usuarios and view dba_users : See next qry
SELECT Nvl(US.IDUSUARIO,DU.USERNAME) USUARIO,
US.DESCRIPCION NAME,
ACCOUNT_STATUS STATUS,
DU.PROFILE,
CREATED FECHA_CREACION
FROM USUARIOS US,
SYS.DBA_USERS DU
WHERE DU.USERNAME = US.IDUSUARIO(+)
UNION
SELECT Nvl(US.IDUSUARIO,DU.USERNAME) USUARIO,
US.DESCRIPCION NAME,
ACCOUNT_STATUS STATUS,
DU.PROFILE,
CREATED FECHA_CREACION
FROM USUARIOS US,
SYS.DBA_USERS DU
WHERE DU.USERNAME = UPPER(US.IDUSUARIO)
ORDER BY NAME;
this extract me, USER, REAL NAME, STATUS, PROFILE, CREATION_DATE
JP01 Johan Pena OPEN DEFAULT 05-07-2010
on the other hand:
select * from role_tab_privs
this extract me, ROLE, TABLE_NAME and PRIVILEGE
DBA TABLE1 SELECT
DBA TABLE1 INSERT
DBA TABLE2 DELETE
1.- i don't know how to merge the two qys to see in the same select (user, name, profile, role, table_name, privilege table)
2.-i want something like this.
USER, REAL NAME, STATUS, PROFILE, CREATION_DATE ROLE, TABLE_NAME PRIVILEGE
JP01 Johan Pena OPEN DEFAULT 05-07-2010 DBA TABLE1 SELECT
JP01 Johan Pena OPEN DEFAULT 05-07-2010 DBA TABLE1 DELETE
Ect Ect. Ect.
who can HELP ME.I have part understood your requirement and assumed the rest! Hence, I have used dba_role_privs in addition to the list of tables you used.
Also, I think your LEFT OUTER JOIN on sys.dba_users is incorrect. I think you are trying to get all users from USUARIOS table for which roles / privileges exist in the database. If that is what you want the following query should help out. If not change the LEFT keyword in the MAIN query (NOT the one in WITH clause) to RIGHT but the results might be unpredictable.
Note: Using ANSI standard keywords for JOIN allows you to use functions in the JOIN clause (such as UPPER(column name), which the Oracle propreitary notation does not allow and hence made you opt for the UNION option).
WITH OS AS
SELECT
DU.USERNAME
,DU.ACCOUNT_STATUS
,DU.PROFILE
,DU.CREATED
,DRP.GRANTED_ROLE
,RTP.TABLE_NAME
,RTP.PRIVILEGE
FROM
sys.dba_role_privs drp
LEFT OUTER JOIN
role_tab_privs rtp
ON
( drp.granted_role = rtp.role )
LEFT OUTER JOIN
sys.dba_users du
ON
( du.username = drp.grantee )
SELECT
NVL (US.IDUSUARIO, OS.USERNAME) USUARIO
,US.DESCRIPCION NAME
,OS.ACCOUNT_STATUS STATUS
,OS.PROFILE PROFILE
,OS.CREATED FECHA_CREACION
,OS.GRANTED_ROLE ROLE
,OS.TABLE_NAME TABLE_NAME
,OS.PRIVILEGE PRIVILEGE
FROM
USUARIOS US
LEFT OUTER JOIN
OS -- temporary result set created using WITH clause above
ON
UPPER (US.USERNAME) = OS.USERNAME
ORDER BY 2 ;Edited by: VishnuR on Jul 5, 2010 8:44 PM
Edited by: VishnuR on Jul 5, 2010 8:47 PM -
Link between User Name in user table and Personla number in HR
Hi
Could any one let me know the link between the User Name field in User table and Personal number in HR table. Pls let me know the table name which shows the relation between these two fields.
Regards,
RamHI Ram
The table which contains this data is PA0105. The value of field USRTY should be '0001'. For example if u want to get the UNAME related to an employee.
SELECT usrid
FROM pa0105
WHERE pernr EQ p_pernr
AND usrty EQ '0001'.
Please award points if u found this helpful
Maybe you are looking for
-
Unable to reinstall itunes 11.3.0.54
On Saturday (12/7/14) I had on screen info about the afore mentioned update, clicked to start update process, but had an message saying, failed to update try download only and install from folder, this had become the norm over last few itunes updates
-
How to make Auto Parallelism work?
Hello, We are running Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production. We have upgraded from 11gR1 recently. We are building a data warehouse in the instance of Oracle I am writing about. Heretofore we had been using hint
-
Hi, Please tell us the use of multicast address while setting up cluster. We had a network outage, and we were asked to restart weblogic servers (admin and managed server). When we restarted the application we found following error message in the log
-
With draw... class
i use swing to make applet. I use filloval, drawRectangle,..... to make draw. But i need the oval, rectangle taht i did to be movable (ex.: like when you move a shortcut on your desktop, you create it, but you can always move it on the desktop). I wa
-
Hi all, Can anybody please tell me what is the purpose of this WCCA table and where exactly it is being used in the following transactions. 1. WCT1 2. WCT2 3. WCT6 4. WCT7. Any pointers in this regard would be very helpful to me. Thanks in advance Sa