abapOpenChecks
abapOpenChecks copied to clipboard
error if "editor lock" is set
is It to check de Editor lock at Program Attributes (REPOSRC-EDTX)?
yes
I'm looking for objects types that have this attribute. I found only FUGR and PROG. Anyone know if has more?
I already make a new class for check FUGR and PROG. I'll looking for more objects type and make a PR later.
I dont know of any more objects with the editor lock
You can also set editor lock for single methods.
I don't know how you get the include name (dy_0203-incname
), but this is the logic to set the lock:
select single for update * from progdir
into wa_progdir
where name = dy_0203-incname
and state = 'A'.
if sy-subrc = 0.
wa_progdir-edtx = 'L'.
wa_progdir-unam = sy-uname.
update progdir
from wa_progdir.
endif.
can the lock be set in SE24 or ADT?
You can try cl_oo_classname_service=>get_method_include( ).
I'll update to check class methods.
@larshp For CLASS I couldn't find this in ADT, only in SE24.
@larshp in SE80: select the method in the class builder and click on the details button. There you can set the lock
I already update de check, I'll make more test and send PR.
is Issue #155 duplicate this?
thanks, I've closed it