Locking of transaction code
How can I lock any transaction code
Regards
Amitava
Hi
Go to T.Code SMO1.
enter the t.code that you need to lock in the below tab. and in the screen the t.code will come
select the lock option and tick over there.
so that t.code wil be locked . you cannot use the t.code henceforth
Similar Messages
-
How to lock a transaction code in a report ?
Dear Abapers ,
i had a requirement to lock a transaction code in my Module pool programming . the requirement goes in this way ..
" if a single user is editing a report then that particular report has to be accesseble to only that concerned user , it cant be accessed to any other user who gonna run the report unless the first user exits the report . <removed>.
Thanks & Regards,
Sravani . Y .
Edited by: Thomas Zloch on Apr 5, 2010 8:39 PMHi,
You have to verify the processes in execution. Here an exaple code:
DATA: BEGIN OF WP_TABL OCCURS 10.
INCLUDE STRUCTURE WPINFO.
DATA: END OF WP_TABL.
" This CALL verifyes the processes in execution:
CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE ID 'TAB' FIELD
WP_TABL-SYS ID 'CPU' FIELD WITH_CPU.
" Now loop at table WP_TABL
LOOP AT WP_TABL.
" Inside this loop you have to check if the report field WP_TABL-WP_REPORT is been executed more than one time. The user field WP_BNAME tells you who is executing the program.
ENDLOOP.
I suggest you, ask for an ABAPER help with this code example.
Hope it helps you...
Alexis Sánchez N.
SAP ABAP Developer Consultant
<please no company names in the posts, folks can view your business card if interested>
Edited by: Thomas Zloch on Apr 12, 2010 4:50 PM -
Lock for transaction code.
i have created screen executed with Transaction code,having few Controls inside screen.
As soon as I enter action(click push button) inside the screen.(ie Transaction code), this transaction screen should be locked, and other users should not use the transaction simultaneously in the present System.
I have to do it inside the ABAP coding. could you please help me how to do it.
Regards
Chandrahai
I used below FM with parameter 'ZTRAN$' for TABNAME as u said.my transaction name is ZTRANS.
Now tell me onething, If same user opens the same transaction again(\n) , transaction opens for simultaneous access.
How to deal this case..will this FM cover this function also?
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
MODE_RSTABLE = 'E'
TABNAME = 'ZTRAN$'
VARKEY =
X_TABNAME = ' '
X_VARKEY = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to lock transaction codes in ABAP report
Hello all,
I'm now planning to lock several transaction codes as a batch job to prevent end users from using locked tr-cds while processing batch jobs during online service period.
I found out tr-cd: SM01 to lock tr-cds, but I don't get what I can do with this tr-cd when you want to execute this as a background job.
I suppose I can make it by using transaction recorder or call transaction.
But I want to do this in smarter manner (like executing certain report PGM with a variant containing tr-cds to be locked).
I rather prefer using FM or BAPI to using transaction recorder etc if possible...
If you know anything on this issue, please please help me..
HozyHi,
Not quite correct - this is the FM that posts a record about the lock/unlock to the audit log (SM01 calls it), but ir doesn't change the transaction lock itself.
Here is a sample report that does do the trick. You may want to change it to your needs, e.g. allow changing multiple transactions in one run:
REPORT ZTXLOCK.
parameters:
p_tcode type tcode obligatory,
p_mode type char1 obligatory. "L=lock, U=unlock
tables: tstc.
at selection-screen on p_tcode.
select single * from tstc where tcode = p_tcode.
if sy-subrc <> 0.
message e002(sy) with 'Transaction code not found'.
endif.
at selection-screen on p_mode.
if p_mode na 'LU'.
message e002(sy) with 'Invalid mode, use L (lock), U (unlock)'.
endif.
start-of-selection.
case p_mode.
when 'L'.
perform bit-set(sapmtstc) using tstc-cinfo 6.
when 'U'.
perform bit-reset(sapmtstc) using tstc-cinfo 6.
endcase.
update tstc.
if sy-dbcnt = 0.
message e002(sy) with 'TSTC update failed'.
endif.
Regards,
Mark -
Gurus,
How can we know who has locked the transaction code in a system?
Thanks,
SagaThere is no standard easy way to do this.
If this is a once off investigation based on an event, then you can use the audit logs (SM20, etc) to see who used transaction SM01 since the last time the transaction which is locked was last successfully used.
There is a complicated way of activating a more detailed way of logging, but it is not easy to use.
See transaction SE13 (log data changes, and search for threads about it) and this thread: locked T-codes
Please leave the thread open for a while. Perhaps someone knows of another way.
Cheers,
Julius -
Remove transaction codes from multiple roles at a time
Hello,
how to remove transaction codes from multiple roles at at time?
Thank you in Advance.Hi Vanita,
Why do you want to remove a t-code from all the roles. Are you no longer going to use the t-code. If this is the case then you can lock the transaction code in T-code SM01 so that no one can use it. But this would effect other users as well, it should only be locked if no one should use the particular T-code.
Another alternative is to write a program to remove the particular T-Code from the table AGR_TCODES where the relation ship between the role and t-code is stored.
Thanks. -
How to restrict a user from using the transaction code SU01?
How can I grant a profile to a user with the profile SAP_ALL except running the transaction code SU01?
I know how to lock the transaction code using SM01 but is there any other way to do it.Go to S_TCODE
Double click on it and give the combinations like A* - X*
SU00
SU02 - Z*
Try this one definately it will work. -
Transaction Code to determine the Names of Lock boxes
Hi ,
Is there any Transaction Code to determine the names of Lock boxes and to which Co-Code they belongs to?OB10
-
Error exec. Background Mode a Batch-Input using KP26 Transaction Code
I have a program that build a Batch-Input based on transaction code KP26.
I encounter the following error :
Field Z-BDC02(1) is not an input field (Program : SAPLKPP2 Screen : 0112)
When executing in background I got the error and when executing in Foreground, it is OK.
I use SHDB to look at the field needed and it gave me the same field to use.
Here is an extract of my program for the field I have the issue on :
PERFORM F100_BDC_FIELD USING 'Z-BDC02(01)' I_T01-LST.
PERFORM F100_BDC_FIELD USING 'Z-BDC05(01)' I_T01-SPRED.
PERFORM F100_BDC_FIELD USING 'Z-BDC07(01)' I_T01-TOV.
PERFORM F100_BDC_FIELD USING 'Z-BDC08(01)' I_T01-TOF.
Any one have an hint to solve this ?Hi,
Just one remark: batch input is always executed in synchronous mode (hopefully, otherwise we would get many lock issues during mass updates!) Or is there something I missed?
Same thing when you use BDC_INSERT, CTU_PARAMS is ignored ([SAP note 1437811 (Batch input: BDC_INSERT parameter CTUPARAMS)|https://service.sap.com/sap/support/notes/1437811 ])
About the issue, I don't know, so maybe explain more about the context: for instance, do you run the session under a different user? (for instance, the user could be assigned a transaction/screen variant with table control variant, that protects some fields) Do you have one transaction in the batch input session or are there several ones. Try with one only to see if it works. If yes, then maybe it's something in memory that changes the "input-capability" of the field after the first transaction.
Sandra -
What are the transaction codes we use for LSMW in MM, SD, PP & FI/CO gnrly
Hi all,
What are the transaction codes we use for LSMW in MM, SD, PP & FI/CO generally?
Help will be surely rewarded.
Thanks and Regards,
Creasy> What are the transaction codes we use for LSMW in MM, SD, PP & FI/CO generally?
General threads about LSMW in MM, SD, PP, FICO will be locked and deleted generally.
> Help will be surely rewarded.
&********************** Please read "the rules" if found usefull... ************************&
Cheers,
Julius -
Reg : Restriction of creation of transaction code
hi all,
I want to restrict creation and deletion of transaction codes (Y or Z).
How to get done it.
We use SE93 and SE80 to create T-Code, ( Is there any t-code to create y or z t-code)
We can restrict SE93 to create or delete t-code, but we cant restrict SE80 as we create many other objects in SE80.
Suggestions reg this.Jean,
When you do screen debugging the tcode se93 while creating/deletion of a tcode it takes us to
Program SAPLSEUK
Include LSEUKI01
process after input.
module exit_tcode_menu at exit-command.
field tstc-tcode
module xcode_390.
Under this module xcode_390 we have the code which performs the creation/deletion of the tcode
when 'ADD'.
call function 'RS_TRANSACTION_ADD'
exporting
objectname = tstc-tcod
exceptions
already_exists = 01
permission_failure = 02.
if sy-subrc = 1.
message id sy-msgid type 'E' number sy
with sy-msgv1 sy-msgv2 sy-msgv
else.
when 'DELE'.
call function 'RS_TRANSACTION_DELETE'
exporting
objectname = tstc-tcode
exceptions
not_excecuted = 01.
if sy-subrc ne 0.
message id sy-msgid type 'E' number
with sy-msgv1 sy-msgv2 sy-ms
endif.
The same for CHANGE too.Try to put a validation here
if sy-tcode ne 'SE80' and also the SY-MANDT in the if condition.In addition to this lock SE93 using SM01 too.
But when we debug through SE80, it is taking us to
Progrm SAPLWB_INITIAL_TOOL
Under this program we have an INCLUDE LWB_INITIAL_TOOLO01
form set_status_0100.
data:
l_disabled_functions type ui_functions.
call method g_initial_tool_ref->if_wb_program~wb_manager->get_status
importing
P_DISABLED_FUNCTIONS = l_disabled_functions.
SET PF-STATUS 'INITIAL_TOOL' excluding l_disabled_functions.
SET TITLEBAR 'WBM'.
clear g_fcode.
endform. " SET_STATUS_0100
Or just try to disable the option CREATE and DELETE in the above program.Just try these options,may be you will get some lead.Mind you both are SAP Standard Programs and needs accesskey.Also check whether your requirement is worth enough to tamper with SAP Standard code
K.Kiran. -
How to create a transaction code for a function group with screen 100 as st
Hello ,
I have requirement where I need to create a function group and create screen 100, 200, 300 and include the function in the screens.
Customer asked me to create a transaction with the screen 100 as the starting screen.
Can you please let me know how to create a transaction code for a function group with screen 100 as starting screen.
[ It is not a module pool program ].
Thanks
Prashanth.
Moderator message - Please ask a specific question and do not ask the forum to do your work for you - post locked
Edited by: Rob Burbank on Jun 2, 2009 11:49 AMGo to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
Name of screen field: Value
D_SREPOVARI-REPORTTYPE RW
D_SREPOVARI-REPORT ZPCA
Save and transport accordingly. -
Hi, all transactions codes are saved in which table?some transaction codes?
hi,
all transactions codes are saved in which table?i want some transaction codes?All transaction codes are stored in table TSTC. Their texts are displayed in TSTCT.
Here are some T-CODE's..
OSS1 SAP Online Service System
OY19 Compare Tables
S001 ABAP Development Workbench
S002 System Administration.
SA38 Execute a program.
SCAT Computer Aided Test Tool
SCU0 Compare Tables
SE01 Old Transport & Corrections screen
SE09 Workbench Organizer
SE10 Customizing Organizer
SE10 Customizing organizer requests for user (To release for transport enter user name, press Enter. Select changed object and select ReleaseSE10 New Transport & Correction screen
SE11 ABAP/4 Dictionary Maintenance SE12 ABAP/4 Dictionary Display SE13 Maintain Technical Settings (Tables)
SE11 ABAP/4 Dictionary.
SE12 Dictionary: Initial Screen enter object name
SE13 Access tables in ABAP/4 Dictionary.
SE14 ABAP/4 Dictionary: Database Utility.
SE14 Utilities for Dictionary Tables
SE15 ABAP/4 Repository Information System
SE15 ABAP/4 Repository Information System.
SE16 Data Browser
SE16 Data Browser: Initial Screen.
SE16 Display table contents
SE17 General Table Display
SE30 ABAP/4 Runtime Analysis
SE30 ABAP/4 Runtime Analysis: Initial Screen.
SE30 Run Time Analysis (press Tips and Tricks button for good stuff)
SE32 ABAP/4 Text Element Maintenance
SE35 ABAP/4 Dialog Modules
SE36 ABAP/4: Logical Databases
SE37 ABAP/4 Function Library.
SE37 ABAP/4 Function Modules
SE38 ABAP Editor
SE38 ABAP/4 Editor.
SE38 ABAP/4 Program Development
SE39 Splitscreen Editor: Program Compare
SE41 Menu Painter
SE43 Maintain Area Menu
SE51 Screen Painter
SE51 Screen Painter: Initial Screen.
SE54 Generate View Maintenance Module
SE61 R/3 Documentation
SE62 Industry utilities
SE63 Translate Short/Long Text.
SE63 Translation
SE64 Terminology
SE65 R/3 documents. Short text statistics SE66 R/3 Documentation Statistics (Test!)
SE68 Translation Administration
SE71 SAPscript layout set
SE71 SAPscript Layouts Create/Change
SE72 SAPscript styles
SE73 SAPscript font maintenance (revised)
SE74 SAPscript format conversion
SE75 SAPscript Settings
SE76 SAPscript Translation Layout Sets
SE77 SAPscript Translation Styles
SE80 ABAP/4 Development Workbench
SE80 Repository Browser: Initial Screen.
SE81 SAP Application Hierarchy
SE82 Customer Application Hierarchy
SE84 ABAP/4 Repository Information System
SE85 ABAP/4 Dictionary Information System
SE86 ABAP/4 Repository Information System
SE87 Data Modeler Information System
SE88 Development Coordination Info System
SE91 Maintain Messages
SE92 Maintain system log messages
SE93 Maintain Transaction Codes
SE93 Maintain Transaction.
SEU Object Browser
SHD0 Transaction variant maintenance
SM04 Overview of Users (cancel/delete sessions)
SM04 Overview of Users.
SM12 Deletion of lock entries (in the event you have you are locked out).
SM12 Lock table entries (unlock locked tables)
SM21 View the system log, very useful when you get a short dump. Provides much more info than short dump
SM30 Maintain Table Views.
SM31 Table Maintenance
SM32 Table maintenance
SM35 View Batch Input Sessions
SM37 View background jobs
SM50 Process Overview.
SM51 Delete jobs from system (BDC)
SM62 Display/Maintain events in SAP, also use function BP_EVENT_RAISE
SMEN Display the menu path to get to a transaction
SMOD/CMOD Transactions for processing/editing/activating new customer enhancements.
SNRO Object browser for number range maintenance.
SPRO Start SAP IMG (Implementation Guide).
SQ00 ABAP/4 Query: Start Queries
SQ01 ABAP/4 Query: Maintain Queries
SQ02 ABAP/4 Query: Maintain Funct. Areas
SQ03 ABAP/4 Query: Maintain User Groups
SQ07 ABAP/4 Query: Language Comparison
ST05 Trace SQL Database Requests.
SU53 Display Authorization Values for User.
Human Resources
PA03 Change Payroll control record
PA20 Display PA Infotypes
PA30 Create/Change PA Infotypes
PP02 Quick Entry for PD object creation
PU00 Delete PA infotypes for an employee. Will not be able to delete an infotype if there is cluster data assigned to the employee.
Sales and Distribution (SD)
OLSD Config for SD. Use Tools-Data Transfer-Conditions to setup SAP supplied BDC to load pricing data
VA01 Create Sales/Returns Order Initial Screen
VB21 Transaction for Volume Lease Purchases (done as a sales deal)
VK15 Transaction used to enter multiple sales conditions (most will be entered here)
VL02 Deliveries
SAP Office
SO00 send a note through SAP, can be sent to Internet, X400, etc
Financial Accounting (FI)
FGRP Report Writer screen
FM12 View blocked documents by user
FST2 Insert language specific name for G/L account.
FST3 Display G/L account name.
KEA0 Maintain operating concern.
KEKE Activate CO-PA.
KEKK Assign operating concern.
KL04 Delete activity type.
KS04 Delete a cost centre.
KSH2 Change cost centre group delete.
OBR2 Deletion program for customers, vendors, G/L accounts.
OKC5 Cost element/cost element group deletion.
OKE1 Delete transaction data.
OKE2 Delete a profit centre.
OKI1 Determine Activity Number: Activity Types (Assignment of material number/service to activity type)
OMZ1 Definition of partner roles.
OMZ2 Language dependent key reassignment for partner roles.
Material Management (MM)
MM06 Flag material for deletion.
OLMS materials management configuration menu, most of the stuff under this menu is not under the implementation guide
MM configuration transactions
OLMB Inventory management/Physical Inventory
OLMD MM Consumption-Based Planning
OLME MM Purchasing
OLML Warehouse Management
OLMR Invoice Verification
OLMS Material Master data
OLMW MM Valuation/Account Assignment
Configuration related
OLE OLE demo transaction
OLI0 C Plant Maintenance Master Data
OLI1 Set Up INVCO for Material Movements
OLI8 Set Up SIS for Deliveries
OLIA C Maintenance Processing
OLIP C Plant Maintenance Planning
OLIQ New set-up of QM info system
OLIX Set Up Copying/Deleting of Versions
OLIY Set Up Deletion of SIS/Inter.Storage
OLIZ Stat Set Up INVCO: Invoice Verify
OLM2 Customizing: Volume-Based Rebates
OLMB C RM-MAT Inventory Management Menu
OLMD C RM-MAT MRP Menu
OLME C MM Menu: Purchasing
OLML C MM Menu for Warehouse Management
OLMR C RM-MAT Menu: Invoice Verification
OLMS C RM-MAT Master Data Menu
OLMW C RM-MAT Valuation/Acct. Asset. Menu
OLPA SOP Configuration
OLPE Sales order value
OLPF SPRO Start SAP IMG (Implementation Guide).
OLPK Customizing for capacity planning
OLPR Project System Options
OLPS Customizing Basic Data
OLPV Customizing: Std. Value Calculation
OLQB C QM QM in Procurement
OLQI Analysis OLVD C SD Shipping Menu
OLVF C SD Billing Menu
OLQM Customizing QM Quality Notifications
OLQS C QM Menu Basic Data
OLQW C QM Inspection Management
OLQZ Quality Certificates
OLS1 Customizing for Rebates
OLSD Customizing: SD
OLVA C SD Sales Menu
OLVS C SD Menu for Master Data
Regards,
Pavan -
Authorization access Issue for Transaction Codes PA10 to PA40
Hi Experts,
I have created Custom role for accessing ALL HR Transaction codes in IDES System and added to the user & Tested.
All transactions codes are working fine except PA10,PA20,PA30 &PA40
We have new installation of ECC6.0 (HR) IDES System.
I am new to HR Security.
Here anything needs to configure in HR System for accessing transaction code PA10 to PA40.
Please help me regading this.
Advance Thanks,
BBCI have checked in SM01, Transaction codes PA10 to PA40 are not locked.
We are facing two issues
1) when accessing T- Codes PA10 to PA40, System showing message: You are not authorized to use Transaction code.
Thatz the reason i suggested you to check with basis consultant. Becuas he is the power user he can only see that from his window all the autharizations
May be you checked from your user your user might have autharization. that user might be end user who getting msg might not have authorizatoins.
2) function module : HR_READ_INFOTYPE.
When Debuging this, It calls internal FM
HR_CHECK_AUTHORITY_INFTY and returns exception
no_authorization=1
See this means that that user have NO autharizatoins
Best Regards -
Check Transaction Code in Status Profile Config
Dear,
Has anyone knows how to check or what tcode can check the availability of Transaction Code for a certain transaction when setting status profile?
Example :
For complaint, FINI or INPR or else...
I want to use the transaction for Campaign.
Please help me
Thx in advance
RobinDear,
thanks for your reponds, but I think I give you a false description.
I have set the status profile using SPRO --> IMG etc.
When we config the user status profile, we will find the most right coloumn called "Transaction".
I want to know which code I can use for Campaign or Marketing. With this, I might control the accessability of the transaction. Which status will the transaction enable or disable.
I found the tCode is BS13, there we can find which transaction allowed to be set at the status profile.
But, has anyone succeed to set the transaction?
I have tried many transactions, but nothing can lock the transaction.
BR,
Robin
Maybe you are looking for
-
I recently instaled mavericks and the new premier upgrade, there seems to be a permisions issue going on, all of my adobe programs seem broken, the import/ export does not work, dont know what to do, is there anyway that I can re instal snow leoopard
-
Calendar events do not appear in List view
My events do not show up in List view, but are there in the Day and Month view. What could be causing this problem? (I used to be able to see all my events in List view.)
-
Enable video file and image file thumbnails WITHOUT enabling thumbnails for other filetypes
Hello. I am new to Mac and pulling my hair out at some of the limited UI options I am wanting my image-files and video-files to appear in Finder (desktop etc) as thumbnails However, I DON'T want PDFs, Excel, Word, PowerPoint files to have a preview t
-
Reclaim free space in datafiles
Hello: I have taken over management of one of our test servers with Oracle 9i on Windows2000 and have noticed that there are two files that are much larger than the space that is actually being used: D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF - 17964M - (Us
-
Hi all, when should i use WebDynpro and when PDK ? What is the prefered Environment to write Internet Apps for SAP ? Will PDK have a future or is it old style development and we should use WebDynpro for our future Development ?