01-05-2018 10:13 AM
Hello experts,
Is there a way to check wheter a WBS Element is locked or not?
I don't want to lock or unlock it, just check.
Any ideas?
Best regards,
Alm
01-05-2018 12:14 PM
Did you try FM of status function group BSVA like STATUS_CHECK, STATUS_CHECK_MULTI, STATUS_READ or STATUS_READ_MULTI (one/mutliple objects, one/multiple status)
Hint: Use BS23 to find internal codes of the 'locked' status of WBS (I0043 for LKD, I0065 for MDLK, etc.)
01-05-2018 10:52 AM
Hi,
You can check the WBS status via CN41. Execute the report and pull out the status column from layout option
LKC = All locked
MDLK = Master data locked
and so on.
Thanks
01-05-2018 11:36 AM
Hi KK.
Thanks from the information, but I wasn't clear as I should on my question: I need to do it in a Z report.
01-05-2018 12:14 PM
Did you try FM of status function group BSVA like STATUS_CHECK, STATUS_CHECK_MULTI, STATUS_READ or STATUS_READ_MULTI (one/mutliple objects, one/multiple status)
Hint: Use BS23 to find internal codes of the 'locked' status of WBS (I0043 for LKD, I0065 for MDLK, etc.)
01-08-2018 9:53 AM
Hi Raymond.
I'm at this moment editing a WBS Element in CJ20n. In another session, I'm executing STATUS_CHECK / STATUS_READ for the same object, but both FM don't return I0043 status.
Am I getting something wrong here?
Thanks,
Alm
01-08-2018 10:12 AM
As long as you don't save the WBS, the database table wont be updated, so another session will read previously saved data. (there can also be a delay, due to execution of update task and buffer refresh)
If you execute the FM in the same session (BAdI, Exit in validation rule) as the update you will read the same values (from function group memory) that is displayed at screen (You can even get list of changed status with STATUS_CHANGE_GET)
01-05-2018 9:17 PM