How to block a single table for a single user
Hi all.
I want to block a single Z table for a single user. How to do this? If he/she tries to display data using SE16 or SE11 Tcode he/she should get an error message.
Regards,
Prajwal K.
Hi Prajwal,
We can use the function modules ENQUEUE_E_TABLE for locking tables and the function module DEQUEUE_E_TABLE for unlocking tables. With this method, we don't need to lock objects in order to lock the tables. In other words, any table can be locked/unlocked using these function modules.
Check this sample code:
*Locking Table*
data:
varkey like rstable-varkey.
varkey = sy-mandt.
locking the tables............................
call function 'ENQUEUE_E_TABLE'
exporting
MODE_RSTABLE = 'E'
tabname = 'MARA'
varkey = varkey
X_TABNAME = ' '
X_VARKEY = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = 'X'
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
Hope this helps you.
Regards,
Chandra Sekhar
Similar Messages
-
HT3354 how can i use one table for reference to another
how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using
you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
Here is an example of something you can do with two tables:
The table on the right is title "Data" and stores a list of names with age and favorite color.
The table on the left uses the value in the first column to lookup up information in the table Data
in the table on the left:
B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
I know this look complicated. so I'll break it up into smalled pieces:
first the "&" is called the concatenate operator and joins two strings. like this:
a string is a set of characters between double quotes.
so "string 1" & "string 2" becomes "string 1string2" or "Sam " & "Jones" becomes "Sam Jones"
you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
so if cell A1 contains "Hi " and the cell A2 contains "There" then A1 & A2 will result in "Hi There"
so you could add the formula
A3=A1 & A2
this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
OK. So the formula I provided concatenates several items together:
it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data". If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
You will find the Numbers users guide and function reference helpful. You can download then from Apple here:
http://support.apple.com/manuals/#productivitysoftware -
How many implimentations can be done for a single BADI definition?
How many implimentations can be done for a single BADI definition?
Is there any restriction to impliment a single BADI definition?
Plz answer with proper explanation....
Thank you in advance
REgards,
Chaitanyahi Krishna Chaitanya,
In a badi if the "Multiple Use" Checkbox is checked then You can have any number of Implementations for the BADI
Say I have defined a BADI "BADI1"
and I have 3 implementations
IMP1
IMP2
IMP3
The order of execution will be IMP1, IMP2 and IMP3
In a badi if the "Multiple Use" Checkbox is not checked then You can have ONLY ONE Implementation for the BADI
Say I have defined a BADI "BADI1"
and I have 3 implementations
IMP1
IMP2
IMP3
Only one Implementation can be active at a time and only that will get executed
Hope this helps a bit
Reward if Useful
Cheers
Kripa Rangachari. -
How do I change the volume for a single midi instrument in GarageBand 10? Every time I move the volume, it moves back!
Every time I move the volume, it moves back!
Check, if you have a volume automation set on the software instrument track.
If the track volume automation curve is enabled, the volume slider for the track will move with the automation curve.
Click the automation curves disclosure triangle in the track header and disable the volume automation. -
URGENT: How to find out the Tables for Routines in BW.
Hi BW Gurus,
How to find out the Tables for Routines in BW.
I have this routine id <b>45XFAEI7LKIFIRDUKQG127YWW</b> and it is in inactive state and i want to activate it.
thanks in advance,
points will be rewarded.
Regards,
Maruthi.Hi Maruthi,
Check table RSUPDROUT using the routine id as input for the field CODEID. You will get the technical name of the update rule.
Cheers,
Praveen. -
How to find R/3 table for FI and PS Datasources
Hi,
Can anyone tell me that how can we find SAP tables for FI and PS datasources in BI. Please provide information as it is urgent. Points will be assigned
Thanks
ShanthiHi,
To find DS assigned to a table.
How to find the Datasources for the given table names ?
How to find the Datasources for the given table names ?
To find Tables assigned to a DS.
USe Extractor Checker RSA3. Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to
retrieve data and present it to you.
Note: Set the break point in the Extractor Function module.
View the ST05 Extended Trace list. The Object name shows the Tables accessed.
Thanks,
JituK -
How can we give two name for a single material ??
Hi friends
how can we give two name for a single material ??
e.g.. if single material is sold to different customer by different names
then how can we do that ??Yes
you can achieve it thro CMIR in T code VD51
Go to T code VD51 choose that customer and material combination and click on to its details blue lens on application tool bar
In the screen which is coming ,enter your description in the CUSTOMER DESCRIPTION tab the second one and save
Now create a sales order and see
Your requirement will be fulfilled
If a material is pen description is ball pen in material master and for customer A you have defined it as Pen 1 and description as Super ball pen in VD51
If a material is pen description is ball pen in material master and for customer B you have defined it as Pen 1 and description as VerySuper ball pen in VD51
Now in sales order the description will appear as Super ball pen for Customer A
Now in sales order the description will appear as Very Super ball pen for Customer B
Hence the material pen whose description is ball pen in MMR will appear as super ball pen for customer A and very super ball pen for customer B
Hope you have checked the field info record in VOV8
I have tried this tested this and getting it
Regards
Raja
Edited by: ramanathan raja on Dec 8, 2008 5:54 PM -
Dispaly of two tables for a single tab in tabstrip
Hi Experts,
I have three tables,one is the consolidated table of another one and the third one is completely different but the requirement is ,
for a SINGLE TAB click of a tab strip both the tables which are related have to be displayed
and for the the third table a new tab has to be clicked.
,i know to display only one ui element for one tab .
please help me out with this problem of displaying of two tables for a single tabHi Shanmukha,
Suppose you name of name of tables which need to be displayed in one tab is table 1 and table 2. To get this you can try these steps:
method 1:
- create a view with 2 tables in it i.e table 1 and table 2. create a view container UI element in tab strip and embed this view in it.
method 2
- create view1 containing table 2 only.
- create view 2 containing table 1 and a view container UI element. Embed view 1 in the view container of this view. Now your view 2 contains both the tables.
- In the tab strip's tab, create another view container UI element and embed view2 in it.
I hope it helps.
Regards
Arjun -
How to Read the internal table for the data download from the spool
HI all,
I have one issue regarding the spool ,we are getting the correct output as per requirement of user but when we send the same to the user in pdf format they did notget the same.
they are telling that the due date is missing from the pdf.
Please advice me how to track the internal table for the spool data converted intopdf in a readable format.
the FM used for the above task is :
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
Please reply if any one worked on the same.
Thanks in advance.
Gaurav,Hi Wang,
Please let me know how you solved your question.
Points will be rewarded.
Thanks,
Arun. -
How may I include the table for audit?
How may I include global tables for audit? We are going to control changes.
Do you know which table contained the list with it?
ThanksHi Marina,
The following is the information on table log:
You must start the SAP system with the rec/client parameter. This parameter specifies whether the SAP system logs changes to table data in all clients or only in specific clients. The parameter can have
the following values:
- rec/client = ALL logs all clients
- rec/client = 000 [,...] logs the specified clients
- rec/client = OFF turns logging off
In the technical settings (use transaction SE13), set the Log data changes flag for those tables that you want to have logged.
If both of these conditions are met, the database logs table changes in the DBTABPRT table. You can also check at transaction SCU3.
Use the RSTBHIST report to obtain a list of those tables that are currently set to be logged.
Hope it helps.
Please award points if it is useful.
Thakns & Regards,
Santosh -
Hi!
Win 8.1 pro, domain workstation. How Block all access, except for a fews users/groups and domain controller information/date.
Nuance:
From domain AD is locked Workstation Firewall "Domain profile" edit.
Possible?
cenubitHi GirtsR,
I am not sure the command to use the SID to accomplish what you want to achieve, if you only know the SID, you could take use Powershell to find the related information, more information, please check:
Working with SIDs
And a similar thread for reference:
How to find user/group known only SID
More reference: Default local groups.
Best regards
Michael Shao
TechNet Community Support -
How to get a organization name for a particular user using API's
Hi alll,
How to get a organization name for a particular user using API'sYou need to do something like this:
SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
UserManager usrService = oimClient.getService(UserManager.class);
Set<String> retAttrs = new HashSet<String>();
retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key")); -
To restrict single job for a single quote
Hi All,
We have a requirement where we need to restrict single job for a single quote.
Can anybody help me on this.
Reward points are assured.
Any quick response will be highly appreciated.
Best Regards
Bhagat.Currently in CRM we are able to create multiple sales orders for a single quotation. What our requirement is, if there is already an order exist for a quotation then the system should not allow to create another sales order.
Best Regards
Bhagat. -
Multiple AD account in single domain for a single user
Hi,
Does OIM support multiple AD account in single domain for a single user?
Scenario 1 :- If the multiple accounts already exists in AD can I pull it from AD to OIM for single user.
Scenraio 2:- Does OIM allow creation of multiple account in AD for a single user, when requested from OIM?
Thanks,yes. this is possible. OIM allow this.
obviously the recon rule would be employee number or anything other than ' sAmAccontName' for target recon
while provisioning make sure you are generating unique sAmAccountName and Common Name(if in same OU) for same user
If you maintain above no issue having multiple account for a sing user in single domain -
How can I update the table with a single query for...
I have a table with columns C1 and C2.
C1 C2
A1 null
A1 null
A1 null
A1 null
A2 null
A2 null
A2 null
A3 null
A4 null
A4 null
I want to update my table with a single query so that I would have data like
C1 C2
A1 1
A1 2
A1 3
A1 4
A2 1
A2 2
A2 3
A3 1
A4 1
A4 2
The updated column C2 has the values like serial no grouped on the column C1.SQL> create table mytable
2 ( c1 varchar2(2)
3 , c2 number(2)
4 )
5 /
Tabel is aangemaakt.
SQL> insert into mytable (c1)
2 select 'A1' from dual union all
3 select 'A1' from dual union all
4 select 'A1' from dual union all
5 select 'A1' from dual union all
6 select 'A2' from dual union all
7 select 'A2' from dual union all
8 select 'A2' from dual union all
9 select 'A3' from dual union all
10 select 'A4' from dual union all
11 select 'A4' from dual
12 /
10 rijen zijn aangemaakt.
SQL> select * from mytable
2 /
C1 C2
A1
A1
A1
A1
A2
A2
A2
A3
A4
A4
10 rijen zijn geselecteerd.
SQL> merge into mytable t1
2 using (select c1
3 , row_number() over (partition by c1 order by null) rn
4 , rowid rid
5 from mytable
6 ) t2
7 on (t1.rowid = t2.rid)
8 when matched then
9 update set c2 = rn
10 when not matched then
11 insert values (null,null)
12 /
10 rijen zijn samengevoegd.
SQL> select * from mytable
2 /
C1 C2
A1 1
A1 2
A1 3
A1 4
A2 1
A2 2
A2 3
A3 1
A4 1
A4 2
10 rijen zijn geselecteerd.Regards,
Rob.
Maybe you are looking for
-
I called Sprint yesterday and was treated terribly by tech support because I didn't want to switch devices. They as much as called me outright stupid for wanting to stay with my Palm Pre. Even though they agreed that all four phones were broken out
-
[SOLVED] Incorrect time displayed in my system
Hey Archers, I have trouble correct time being displayed in my system. My BIOS time is: May 18 2012 08:39:21 PM IST Date command displays Sat May 19 02:09:59 IST 2012 Clearly the time displayed by date command is localtime+05:30 (Asia/Kolkata), when
-
Error sending IDoc from ERP to PI 7.4 Java Only (stuck in SM58)
Hi specialists I'm trying to send an IDoc to our new PI 7.4 Java Only. Because of some authorization issues I changed the RFC Destination <blabla> on PI (nwa) pointing to the ERP system. Now the IDoc is stuck in SM58 (tRFC queue) and I get this error
-
hi, We need to send the application acknowledgement to OTM system with out using BPM. If we needed we can split the scenario. Please suggest from sap sending (ALEAUD01 idoc id :abc ,ref to 123 for SAP PI) and receiving SAP is (idoc id :123) then f
-
Hi How do i get my photo's on my iPod onto my computer Windows XP