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

to lock a tcode dynamically...

Former Member
0 Likes
362

hi frnds

my requirement is to lock a particular tcode at certain time.

is there any function module or SAP program that can be used to acheive the purpose?

2 REPLIES 2
Read only

former_member222860
Active Contributor
0 Likes
318

Hi,

Pl. check, this code helps you

tables: tstc.

* To lock the Tcode
update tstc SET cinfo = 'A0'
          WHERE tcode = 'VA01'.

IF sy-subrc = 0.
  COMMIT WORK.
endif.

  *** perform some .

*  To unlock

write:/ tstc-tcode.

.

Mahesh

Edited by: Mahesh Reddy on May 22, 2009 10:39 AM

Edited by: Mahesh Reddy on May 22, 2009 10:41 AM

Read only

0 Likes
318

the thing is that, we cannot use a standard table to be updated directly...

so only i am looking for function module or sap standard prog.