Skip to Content
0
Former Member
Apr 10, 2009 at 10:00 AM

FM to Lock and Unlock the Tcode CJ02

318 Views

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.