How to restrict user to process own company code data in z program
Hi All,
I have this issue. in asset management I would like to restrict user to process its own company data.
for example A who works in company 0123 only can process comp code 0123 data whereas X who is manager can process all company code data.
In the abap program, how can i achive this? by authority object? if yes what asset management authority object to use?
i have company code in selection screen. so may i know what method i can achive so that A can only execute co 0123 whereas X can do for all company code.
thanks
Hi,
One way would be:
For all persons for whom you would like to 'control' the access to a specific company, SU01-->Parameters--->Give some parameter ID say XXX, & in PArameter Value key in the compnay code whose data it can process.
Please note that this is only one time process which has to be carried out for all the users. Then in your z-program in SELECTIO-SCREEN OUTPUT use GET PARAMETER ID 'XXX" Field w_value. If GET PARAMETER ID returns su-subrc = 0 then move w_value to your company code on the selection screen. Then Use LOOP AT SCREEN & make SCREEN-INPUT = '0' for company code so that company code will be displayed but protected thus not allowing the user to change the company code.
I hope this helps,
Regards
Raju Chitale
Similar Messages
-
Restrict users with the same company code
Hi All,
I have developed editable ALV which allows users to edit and delete records and save those changes in database.
Input is Company Code , Document Number and Fiscal Year.
Now I want to restrict multiple users trying to edit/delete records with same company code at a same time.
Example:
User A is editing records for company code 1250.
If User B tries to access for same company code 1250 at the same time, it should return an
error message saying “Table currently locked by User A”.
and also want to restrict the records if multiple users are trying to edit/delete the same record at
a same time,I should give an error message.
Thanks,
ArpitaFirst perform some search on Lock Concept in online help (ABAP Programming (BC-ABA), The ABAP Programming Language, Saving Data Externally, Data Consistency, The SAP Lock Concept or The SAP Lock Concept (BC-CST-EQ), SAP Lock Concept)
Then use or create thru SE11 a lock object for your table (keys must start with mandt + Bukrs, to not interfere with standard locks, e.g. EFBKPF, you may create your own z-structure and an associated lock object) and before reading data check the company code is not yet locked with ENQUEUE FM, release the lock is either implicit at end of transaction or triggered thru DEQUEUE FM or COMMIT/ROLLBACK WORK (depends also on your choice on _SCOPE Parameter value).
Regards,
Raymond -
How to Restricting Buisness area in same company Code?
Hi All,
Can anybody tell me whether is it possible to restrict users from accessing diffrent buisness area within the same company code?
regards,
AmitHi Amit,
Use the following objects to restrict the access for Business area's:
1. A_S_GSBER "Asset Master Data Maintenance: Company Code/Business Area"
Object class is AM [Asset Accounting]
2. J_3GABRLST "Call CEM Settlement List for Organizational Units" ---> Object class is "J3GD" [Industry Business Solutions - CEM]
and there are other auth. objects for Bus.area's which might help you :
1. F_BKPF_GSB
2. F_FDES_GSB
3. F_FDSB_GSB
4. F_FDSR_GSB
5. A_IMA_GSB
6. A_IMPR_GSB
Regards,
Ashok
"Award points if it is helpful" -
Dear All,
We are having an infrastructure setup of around 500 client computers managed through group policy.
Recently the domain controllers have been migrated from Windows Server 2003 to Server 2008 R2.
Since this account requires extremely strict environment, we need to figure the solution for restricting the users from access anything locally.
It would be great if you can assist me with the following query.
How to restrict users logged on Windows 7 clients from accessing Windows Explorer and browsing other systems in the network through Group Policy with a domain controller running on Windows Server 2008 r2 ?
Can we disable Network Tab on the left hand pane ?
explorer.exe is blocked already, but users are able to enter the Windows Explorer by clicking on the name which is visible on the Start Menu.> * explorer.exe is blocked already, but users are able to enter the
> Windows Explorer by clicking on the name which is visible on the
> Start Menu.
You cannot block explorer.exe when you do not replace the shell - the
desktop you see effectively IS explorer.exe...
Your requirement sounds like you need a custom shell:
http://gpsearch.azurewebsites.net/#2812
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
How to restrict user to change original file in word document.
Hi experts,
I am begineer in DMS. I am not able to understand how to restrict user to make any changes to a word document attached any DIR or any object link.
Ex: I have a created a DIR attaching a word doc to equipment master.
However, the user is still able to make changes to that word document usign CV03 tcode. I am sure most of you might have faced this problem. Please respond.
We are using SAP 3.1i version. It is very old version.
Thanks in advance,
KiranKiran,
The task that you have mentioned could be accomplished by setting up a status network for your document type. While setting up the status network, SAP has defined statuses which could potentially lock objects and fields corresponding to that status type.
More information could be found at
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/857f3a1c7b11d294d200a0c92f024a/frameset.htm
I am not aware of 3.0i but you can navigate to customisation --> Cross Application Components --> Document Management --> Control Data --> Define Document Types --> Click on a doc type and go to
define doc status.
Here if you define a document with status type S the object is essentially locked for editing.
Sojan -
!!!How to restrict user for making changes in Sales order , partner level
Hi all,
Can anybody tell me how to restrict user for making changes in Sales order at partner level, is it through user exit?Hi Ruchi
I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
Hope its clear
Reward if help ful
Sri -
How To Restrict Users To Only Create Purchase Requisitions with Item Catalog?
Hi, everyone
Please help me,
How To Restrict Users To Only Create Purchase Requisitions with Item Catalog? is it possible?
Regards, ManuelHi Steenie Norman
First click on the text item ---> Tools ---> Property Pallete ---->
and change the Keyboard State to Local Only also this Depend in your OS
hope this useful ....
Regards
Mohammed -
How to restrict user access in Oracle Application Server 10g (9.0.4)?
Can anybody please let me know how to restrict user access in 10g AS? To be specific, how to allow http requests from specific IPs only?
Hi,
You have to edit httpd.conf and modify acces rights for each protected directory
e.g.
<Directory /var/www/sub/payroll/>
Order allow,deny
Allow from 192.168.1.0/24
</Directory>
then you have to restart Oracle HTTP Server
jm-- -
How to restrict user at selection screen while executing in background mode
hi all,
how to restrict user at selection screen while executing in background mode
Regards
DeepakHi,
We can get the Program whether this is running in background or not then we need to use SY-BATCH, if the SY-BATCH is set to X then the program is running in Background,
so in the INITIALIZATION event, you can use this SY-BATCH and check the User names, and give the error messsage which you want to restrict
Regards
Sudheer -
How to restrict user to must enter value in compulsory fields
Greetings !
I had a personal information form. I want to restrict user to enter values in all fields e.g Compulsory fields (Username, D.O.B etc)
how i restrict user to must enter value in Compulsory fieldsI created an example on apex.oracle.com
http://apex.oracle.com/pls/apex/f?p=18686:1:0:::::
like you see a red staric placed on ID it means it is complusory to enter because it is a primary key, i want this on every field or to restrict user to enter all data , if any field left blank it will give error "to Fill respective field ", but not on creation but on left blank (if user type ID e.g 12 and skip ename field and go on Job field it gives error to fill Ename first) -
How find out which user is using which company code?
Hi Gurus,
I am having more than 500 users in Production System.I need to find out which user is using which company code?I can get the roles and users separately from two different SAP tables.
Is it possible to get it from a single table or Tcode?
Best Regards,
RahmanHi,
Thanks for the update.Yes I tried with SUIM.But I was unable to find any clue.
Regards,
Rahman -
How to add company code data to BP in SAP CRM
Hi All
I have a problem replicating BP from CRM to R3,the error coming is "Fill in the required entry fields".
While debugging the error i came to know that Company Code data is not given from CRM side which is mandatory in R3.
Actually the Company code data is kept mandatory at ABAP level due to the Client requirement.
Now how can i add the company code data to BP so that this errors is resolved.As far as my knowledge goes there is no provisions for company code data in CRM ,now even if we keep this company code data optional in R3 ,this error is coming.
Please suggest the way out.
Any help will be highly appreciated.
Regards
AshishHi there
Thanks for the reply,yeah i understand that there is no company code concept in CRM system.
so,we mean by Middleware exit is the user exit at R3 side,that i understand too.
But here scenario is different in the case that customer is not getting replicated due to the company code being kept mandatory at ABAP level in R3.
Actually client requires the company code data to be mandatory in R3 so that customer id does not get generated in R3 without giving the company code info.
Now due to the mandatory check on company code at ABAP level ,what happening is that we are not able to replicate the BP info to R3 because if that check was not there we would have at least pass on the BP data except the company code and company code info would have been given in R3 itself.
So,i believe the way out is to remove that check and place a user exit in R3 so that at least CRM data is replicated and company code will come automatically.
Hope this will help me,if you have any better suggestion then please provide the same.
Regards
Ashish -
Netting process between company codes
Hi Gurus,
How do i configure a Netting process between company codes when they trade with each other.
Please advise,
Thanks,
TembaHello,
You can post the cross company code postings even between two controlling areas. The system does not prevent to post documents between two company codes in two controlling area. Need not necessarily they should be under one operating concern. Provided you have to make sure that you have followed the following points:
In OBY6 - To company codes must be assigned to same Company, meaning that you mus thave created a Company and that company must have been assigned to these two company codes.
OBYA - You should maintain the clearing accounts in both the company codes. Meaning that you are posting one leg in one company code and the other leg in the other company. Therefore, it is required to have the missing legs in each company code.
Company Code1 - Posting Key 40 - Clearing Account
Company Code1 - Posting Key 50 - Clearing Account
Company Code2 - Positng Key 40 - Clearing Account
Company Code2 - Posting Key 50 - Clearing Account
OB08 - In case if the two company codes have different local (company code) currencies, you may maintain the exchange rates.
You can now go to F-02 and post a cross company code transaction giving the first leg in first company code and the second leg in second company code. Missing leg in the first company code will be posted to the GL Account mentioned in OBYA and the missing leg in the second company code will be posted to the GL Account mentioned in OBYA. That means you will have four line items overall.
The system will post three document.
Document 1 in First Company Code
Document 2 in Second Company Code
and
Document3 - Cross Company Code Document.
The cross company code document consists of the first company code document number plus company code plus last two digits of the fiscal year.
Hope this must have clarified your doubts.
Please let me know in case if you need further details.
Thanks,
Ravi -
Access restriction in IM52 based on company code and investment reason
Hi,
How can we have access restriction in IM52 based on company code and investment reason?
thanks
Randeephi
please check the authorization object for the transaction
company code you can -
How to change chart of account to company code
Dear Guruu2019s
I am new SAP FICO . I got the following thread . I have configured the company code through copy the existing company code. Now I want to change the Chart of Account to this company code. I gone to T code OB62 from position go to my company code I changed the chart of account but while saving the file I got thread u201CReset company code data before changing the chart of accountsu201D
How to go further could anybody explain me.
Thank you in advance
krishnaIf you really want to allocate a different chart of accounts to the company code, first of all reset the company-code specific data for the old chart of accounts.
1. First of all you must, if it exists, reset the transaction data for this company code.
2. Finally, carry out the resetting of the company code-dependent G/L account master data (without the general master data).
Note:
When dealing with large quantities of data, resetting the master data or transaction data can be very time-consuming. In this case, it is advisable to schedule the running of these reports as a batch run.
Maybe you are looking for
-
Netweaver 7 (ECC6) issues list?
Hi, We're currently on 4.6c and going to upgrade to ECC6 with unicode I'm trying to compile a list point taken care converting to unicode from ABAP technical point of view. Does anyone have such a list? Some points i shortlisted are : 1) Use GUI_UPLO
-
% calculation in Tcode MC48
Hi, When we execute MC48, system gives the total current stock value with some % calculation. Can some one tell me how is this calculated in detail. Regards
-
Hi Just wonder is it possible to change the ABAP workbench picture? How to do it? Regards, Rayden
-
Employee Basic Information Portal iViews*GRANT POINTS!!!*
Hi, I am trying to find best solution how to through the Portal iView or set of iViews to get Employee Basic Information, say Phone number, Location in the building, Email address Manager this employee report to Photo Team Viewer I know it is possib
-
Hi All, I have System center DPM 2012 which takes backup of Exchange 2010, File server, VM's and system state for physical servers. I want to perform health check on DPM. Kindly recommend any tool or report format and how to perform health check ?