Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Check WBS Element Lock

flvia_s
Participant
0 Likes
7,606

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
5,019

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.)

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

6 REPLIES 6
Read only

former_member513101
Active Contributor
0 Likes
5,019

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

Read only

0 Likes
5,019

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
5,020

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.)

Read only

0 Likes
5,019

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

Read only

0 Likes
5,019

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)

  • Set the BYPASS_BUFFER parameter in this case.


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)

  • Clear the BYPASS_BUFFER parameter in this case.
Read only

former_member348872
Active Contributor
0 Likes
5,019

hi

Use table JEST filter by I0043 & Active