cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk Change failed for Locked documents in V10

Former Member
0 Kudos

Hi Experts,

We recently upgraded to SAP E-Sourcing V10 from V7. We have created a customized module. While trying to change the some field value for these customized documents through Import, we faced an issue wherein most of the import failed because the documents were locked.

We got below error:

# Failed: object 157: You cannot edit the document because you do not have sufficient permissions. Contact the document owner to request access to it.

We were not getting this issue in version 7. Is there some parameter setting that we have missed.

Kindly help us to resolve this issue.

Thanks

Rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Experts,

I have noted that this issue exists for Standard modules as well.

For example if we try to change Project document that is in Locked state through Import sheet, we are getting same error.

Please provide any comments on this issue.

Thanks

Rahul

Former Member
0 Kudos

Can you confirm that the "Break Document Locks" is set under the Super Admin rights for the user that is importing.  Please see below.  It must be set to Allow.  Not Set or Deny will not allow the lock to be broken.  If this is set and it is still not working, you can submit a ticket to the Support team and we can look at it further.

Best Regards,

Nicole Fong

Former Member
0 Kudos

Hi Nicole,

We are aware of this feature but we don't want to unlock these documents. We just want to do bulk import to modify a field for documents without unlocking them. But there are some thousand records that are locked and we are not able to change them. We were able to do bulk import for locked documents in version 7 without any error. We are facing this issue only after upgrading the system to Version 10.

Has SAP upgraded some security feature in Version 10 that is preventing us from changing locked documents?

Regards,

Rahul

former_member89217
Contributor
0 Kudos

The behaviour in V7 was not correct. A document lock should block any change to the document.

Gary

former_member190023
Contributor
0 Kudos

Hello Rahul,

Does the 'Break Document Locks' option actually unlocks the document and leaves it unlocked? Or just bypasses the lock and updates the document, keeping it locked?

If it leaves the document unlocked it will be a bit complicated to achieve your requirement but still possible:

  1. create hidden extension field - boolean - "post_import_lock" - default false
  2. create pre-import script:
    • check if document locked
    • unlock (if locked)
    • flag post_import_lock - true
  3. create post-import script:
    • check if post_import_lock is true
    • lock document (if true)
    • flag post_import_lock - false

Regards,

Bogdan Toma

Former Member
0 Kudos

Hi Bogdan Toma,

I created a script with context Import Life-cycle Event and Target Pre-Process Row. But this script is not triggered at all while doing the import.

Also I tried unlocking the document in a script that has context Import Life-cycle Event and Target Process Row. Even this is not working.

Kindly suggest some other way.

Thanks

Rahul

former_member89217
Contributor
0 Kudos

This is most likley do to improvements in the security model.  You will need to review what security profile access the import user has in regards to these documents and that the import user has edit rights as a collaborator.

Regards,

Gary

Former Member
0 Kudos

Hi Gary,

The security profiles assigned to the user and the edit rights seems to be correct. I guess we are missing some new feature of V10 that is stopping us from changing Locked Documents.

Thanks

Rahul