Lock the Tcode through program
Hi All,
I has write a program for lock the tcode for that I am using FM:-RSAU_WRITE_SM01_LOG,When I pass Input for FM like below
Tcode and lock ,
It will run correct but the database updation is not takes place..
Can any one guide to resolve the Issue..
Please tell me if there is any fm to lock the tcode ..
Thanks In advance.
Regards,
Nagesh
Hi,
If your ultimate motive is to update database,then why you are trying to lock a Tcode? You should lock the database table instead,then do your update work and then release the lock. That's it. I think it would be better if you create lock object from SE11 of your particular database table. Call ENQUEUE function module. Update DB table. Then call DEQUEUE function module and you are done.
Let me know if you face any problems.Hope this would help.
BR,
Atanu
Similar Messages
-
How to check who locked the Tcode in SM01
Hi to all experts,
Is there a way to check who locked the Tcode in SM01 or in table TSTC?
Thanks in advance.
BR,
NancyDear Nancy,
Check the thread,
[sm01 transaction logs;
Regards, -
How to lock the rows in program
how to lock the rows in program
Do not create a duplicate thread.
many had already answered your query here.
how to lock the rows in program
Regards,
Prazy -
Assigning iViews to the Page through Program
Hi,
I have a page, which is already contains few iViews and set the layout. These all iViews are visible.
Now I have assigned one more iView and aligned but it is invisible.
Now I would like to change the property of this iView to make it visible and at the same time i have to make invisible for another iView.
This I need to implement through program. Please let me know how to achive this .
ThanksThanks for your reply.
This page will be visible for all users and all users having this role.
The present requirement is that the content manager should able to decide which iView has to be displayed for the user.
I hope it is clear
Thanks -
How to enhance the Tcode(F871) program to create new payment request ?
Hi
My requirement is that create new payment request (F871)
I want to copy the standard tcode(F871) program and make some change like invisible the field and change the level of the field .
But when I copy the standard program of the tcode(F871) and create a zprogram with a ztcde......execute the tcode(ztcode)....it is showing error before doing any chance in the progam.
So what change I will do in my zprogram so that when I execute the ztcode It will work...........
Regards
DeboWhen I execute the above message coming below the blank screen.
-
How to mass cancel the requisitions through program
How to mass cancel the requisitions through program
Check this...you should get good idea
http://docs.oracle.com/cd/E18727_01/doc.121/e13410/T446883T443951.htm#4021290
Mahendra -
hi
any one can help me out in locking the Transaction codes.
please send your views to '[email protected]'.
Thanks in advance.
-Muralythanks
-
Change of status/updation of the status through program
Hi
Is there any program to change of status of doucments(Orders or delvieries or billing).
Thankshi ,
use tcode MASS, select object sales order, then u can choose the concerned table.Now u can change the values in the fields
thanks -
How to unloack the service through the program
Hi ,
In Portal i am using certain services in ESS , like address . while in display mode how i can unloack the service through program.
with regards
RKMHI experts ,
I have a issue in Portal . I am viewing my personal data through Portal . But when i tried to access my personal no through PA30 , it shows as pernr is locked. But in Portal only in display mode, then pernr should not be locked. any setting is required to solve this issues.please suggest.
with regards
RKM -
How to lock the program in User exits
Hi Guru's
I have a problem with user exits. for suppose I am doing enhancement for particular TCODE, the other user is doing some changes to the same TCODE. My problem is where should i use the lock. Is it possible to lock the TCODE? How it can be done? please do needful............
Regards,
KrisnaHi Shiva,
What do you exactly mean by locking the T-COde.
Do you want that the other person should not be able to see the changes you have made. Then you can use your code in the Condition for "SY-UNAME = your user id".
Or do you want that the other person should not made the change. Then you need not worry because the User Exit does not have multiple instances.
Please let us know, if you have any query.
Hope it helps.
Regards,
Manish -
FM to Lock and Unlock the Tcode CJ02
Hi,
I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
loop at it_src into wa_src.
Lock the Tcode 'CJ02'.
Perform BDC Recording to Create Settlement Rule.
Unlock the Tcode 'CJ02'.
endloop.
Regards,
Deepthi.Hi, you can block the Subproject with Lock Object, you can create this under SE11
after you have created this, use these FM for Enqueue/Dequeue,
call function 'ENQUEUE_EZ_ODAPROF_PO'
exporting
mode_ztma_odaprof_po = 'E'
mandt = sy-mandt
ebeln = cod_oda
ebelp = cod_pos
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
call function 'DEQUEUE_EZ_ODAPROF_PO'
exporting
mode_ztma_odaprof_po = 'E'
mandt = sy-mandt
ebeln = cod_oda
ebelp = cod_pos -
Tcode or program in which exit EXIT_SAPLCK21_002 is used
Hi all,
Can anyone please tell the Tcode or Program in which exit
EXIT_SAPLCK21_002 ( enhancement COPCP005) is being used.
Regards,
sudhaHi,
Check CO01, CO02, COR1, COR2
Please see the documentation below,
Develop Enhancements for Material Costing
The following SAP enhancements are available for the area Cost Estimate with Quantity Structure:
Costing Reports (SAPLXCKA)
Costing Production Resources and Tools (COPCP003)
Material Valuation with Cross-Company Costing (COPCP001)
Costing Bulk Materials (COPCP004)
Valuation Price for Materials from User Exit (COPCP005)
1. Costing Reports: SAPLXCKA
Here you can create your own reports for displaying cost estimates with quantity structure or activate the example reports in the standard system.
This enhancement contains the following components:
EXIT_SAPLCKAZ_001 Display/print itemization
This enhancement contains example program code from SAP that you can modify and use for your own enhancement, or activate directly as a report for the itemization.
EXIT_SAPLCKAZ_002 Display/print cost components
This enhancement contains example program code from SAP that you can either modify and use for your own enhancement, or activate as a report for the cost components.
EXIT_SAPLCKAZ_003 Display/print cost components and itemization
This enhancement does not contain example program code.
In the cost estimate with quantity structure you access the reports with Costs -> Display user exit. The report refers to the first cost component view listed. If you want to see the costs with reference to another cost component view, choose Settings -> Cost display and choose the desired report under Select view.
You can display your own reports in the information system by adding them to the report list for product costing.
See also:
Check report list for material cost estimate
2. Costing production resources/tools: COPCP003
This enhancement contains the component EXIT_SAPLCK01_001.
The costs for production resources and tools are calculated as a flat rate within production overhead.
This enhancement enables you to plan the costs for production resources in costing with quantity structure in different ways. Here you can specify how the production resources are to be costed.
In the cost component structure, the production resources can be shown in separate cost components.
This enhancement contains example program code from SAP that you can modify or use as is.
3. Material valuation with cross-company costing:
COPCP001
This enhancement contains the component EXIT_SAPLCK21_001.
Here you can enter the prices for valuation of a material that is transferred between company codes.
You have the following options for the valuation of materials that are transferred between company codes:
You are using the standard system without cross-company costing. In this case the system uses a price in the material master record in accordance with the valuation strategy. The material is treated as if it were externally procured.
You activate cross-company costing. In this case the material is recosted in the other company code or transferred according to the transfer control ID.
If you have not activated cross-company costing, you can use this enhancement to define alternative prices for valuation of a material that is transferred between company codes. That is, this enhancement allows you to specify which price should be used instead of the price from the material master record.
In include LXCKAF)) you can find an example program code. However, this code example can not be directly copied and used
4. Costing Bulk Materials: COPCP004
This enhancement contains the component EXIT_SAPLKKEX_001.
You can use this enhancement to plan the costs for bulk materials and show in the cost element itemization.
If the indicator Bulk material is set in the material master, the indicator Relevant to costing in in the BOM does not accept input for the item. The enhancement allows you to determine the costing relevancy. The items with the bulk materials indicator at item level of BOM are also included as relevant to costing.
This enhancement contains example program code from SAP that you can modify or use as is.
5. Valuation Price with Valuation Strategy U: COPCP005
This enhancement contains the component EXIT_SAPLCK21_002.
You can use this enhancement to specify prices for valuation of materials if you want to use valuation strategy U (valuation with USER EXIT) for material valuation to find a price for the materials.
This enhancement does not contain any example program code from SAP.
Activities
To activate the SAP example reports (the procedure is similar forthe other enhancements):
1. Create a new project or use an existing one.
2. Set the indicator SAP enhancements and choose Change.
3. Enter SAPLXCKA as the SAP enhancement and choose Save.
4. Set the indicator Enhancement components and choose Change.
5. Position the cursor on the enhancement component EXIT_SAPLCKAZ_001 and choose Edit -> Use SAP source code.
6. The system asks whether you want to create ZXCKAU01. Answer Yes.
7. Maintain the attributes.
8. Save the program and choose Back.
9. Position the cursor on the enhancement component EXIT_SAPLCKAZ_002 and choose Edit -> Use SAP source code.
10. The system asks whether you want to create ZXCKAU02. Answer Yes.
11. Maintain the attributes.
12. Save the program and choose Back.
13. Activate the project.
14. To display the reports, you must perform costing again.
Further notes
Unlike modifications, enhancements are always upgrade-compatible because they are implemented in a name range reserved for the customer rather than in the SAP original.
The general procedures for creating enhancements can be found in the enhancement transaction CMOD under Goto -> Online Manual. This takes you to the SAP library where you can find detailed information on customer exits.
For more information on the above enhancements, see the associated function module documentation.
Edited by: krishna reddygari on Mar 6, 2008 9:24 AM -
How to inser data in database through programming
hi
if some one try to insert data directly in the data base that was displayed through programming then how can database will be updated
byehi
thanx 4 ur reply
but the tutorial is abt manullay changing the database through programming
but wat if user of the prgram change it and it will be change at the place of the database
bye -
How to find the tcode throuch which the PO was created
Dear Experts ,
There are various transactions through which the PO is created . Where can i know the tcode through which the PO has been created ? somthing like i can see in the material document .
Regards '
AnisHello Anis,
One way is to look directly at the change log tables using SE16. The table is CDHDR and you need to enter the following:
OBJECTCLAS = EINKBELEG
OBJECTID = PO Number to report on
The earliest record will show the transaction code used to generate the PO.
I can't think of a nicer way to do it but with the selection criteria above it should be quite quick.
Actually, if you also enter CHANGE_IND = "I" you will only see the record for creating the PO and not any changes.
Hope that helps,
John.
Edited by: John Cameron on Aug 6, 2010 5:38 PM -
I just purchased a album and one or more of the tracks does not play all the way through. One track which is a 13 minute track will only play for the first 3 minutes. Larry
Delete the songs from your iTunes library and redownload them by clicking "Purchased", under Quick Links at the top right of the iTunes store.
Download past purchases:
http://support.apple.com/kb/HT2519
If this doesn't work contact iTunes support here:
http://www.apple.com/support/itunes/contact/
Maybe you are looking for
-
Hi all, We are looking to extracting CO-PA data into BW for use in reporting. I understand that the COPA utilises four tables namely: CE1XXXX-Actual line items CE2XXXX-Plan line items CE3XXXX-Summary table CE4XXXX-Segment table Some of our reports re
-
How to get Test Utility for PI 7.3 Single Stack JAVA only.
Hi All, We are having PI 7.31. Single Stack JAVA only. we want to test some scenario. Can anybody tell me how can i test the scenario in PI 7.3 is there any test utility by which i can send some test messages to PI 7.3. from where to download this
-
having problems updating my itunes so i can update my iphone4 it wont install itunes i already have itunes on my pc but it wont update it. ive tried uninstalling it and reinstalling it but to no success
-
How to call the custom code in Seeded OA pages when an event Occured.
Hi, I need to call a Oracle Create Task API when User saves the data from Seeded OA Page(Sales OA Page).When User Pressed on the Save button,based on Value he selected in " Sales Methodology" Field ,I need to call Call API. How can I achieve it.Is it
-
Install_Check_1.6 tool and Solaris 10 5/09 panics after GRUB on Dell T7400
Hello anybody! Apparently the Solaris 10 5/09 drop panics after the GRUB menu, for Solaris Installation. Similarly the Install_Check_1.6 Tool for Hardware Compatablity seems to do the same. I can't capture the Kernel messages that appear on the scree