Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Lock the Tcode through program

Former Member
0 Likes
643

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

4 REPLIES 4
Read only

atanu_mukherjee
Explorer
0 Likes
554

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

Read only

0 Likes
554

Hi Atanu,

I am triying that also but ,while update database table whatever field get's updated is diffrent for diffirent tcodes, so how can i update

and

My requirement is Lock the tcode based on time and release the tcode base some time.

Read only

0 Likes
554

I suggest you read and understand the LUW concept - it's explained in SAP help. I think you may have a fundemental misunderstanding.

Read only

Former Member
0 Likes
554

Hi,

can you please share your requirement?

Regards,

Kiran