abapOpenChecks icon indicating copy to clipboard operation
abapOpenChecks copied to clipboard

error if "editor lock" is set

Open larshp opened this issue 10 years ago • 12 comments

larshp avatar Dec 17 '14 07:12 larshp

is It to check de Editor lock at Program Attributes (REPOSRC-EDTX)?

ibnbr avatar Oct 10 '19 17:10 ibnbr

yes

larshp avatar Oct 11 '19 00:10 larshp

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.

ibnbr avatar Oct 11 '19 12:10 ibnbr

I dont know of any more objects with the editor lock

larshp avatar Oct 12 '19 11:10 larshp

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.

pcf0 avatar Oct 16 '19 15:10 pcf0

can the lock be set in SE24 or ADT?

larshp avatar Oct 16 '19 15:10 larshp

You can try cl_oo_classname_service=>get_method_include( ).

creyj avatar Oct 16 '19 15:10 creyj

I'll update to check class methods.

@larshp For CLASS I couldn't find this in ADT, only in SE24.

ibnbr avatar Oct 16 '19 16:10 ibnbr

@larshp in SE80: select the method in the class builder and click on the details button. There you can set the lock

pcf0 avatar Oct 16 '19 18:10 pcf0

I already update de check, I'll make more test and send PR.

ibnbr avatar Oct 16 '19 18:10 ibnbr

is Issue #155 duplicate this?

ibnbr avatar Oct 17 '19 12:10 ibnbr

thanks, I've closed it

larshp avatar Oct 17 '19 13:10 larshp