cancel
Showing results for 
Search instead for 
Did you mean: 

How to check lock status of field in current document?

Former Member
0 Kudos

Hi,

How to check the status of field in current document(master agreement), that is whether its locked or not.

I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.

IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.

Is there any way to get current document field status?

Thanks,

Saloni

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Saloni,

The locking information about a field is maintained in a seperate table (FCI_DOC_LOCK_FIELD). It not maintained against the field which you are locking.

AFAIK, SAP has not exposed APIs to handle the data in that table. So, I dont think it is possible to know, via script, whether a field is locked or not.

Thanks

Devesh

Former Member
0 Kudos

Hi,

If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:

isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();

Meaning, if the box is checked, it will return a value = true and if not then false.

Hope this helps,

Regards,

Vikram Shukla