on ‎2019 May 21 10:04 AM
Hi,
We are trying to update the work status through data manager packages via Badi.
basically we want to lock/unlock the data set using data manager package.
we are trying to set lock/unlock in Badi using standard class 'CL_UJW_WORK_STATUS_MGR' but we are not sure which below method to use to achieve this.
UPDATE_WORKSTATE
UPDATE_WORK_STATUS_LOCKS.
Can you please help us on this if anybody has done before or any thoughts on this.
Thanks in advance.
Regards,
Mahesh
Request clarification before answering.
Very easy!
For example you have parent member of some DIM1: P1DIM1
*XDIM_MEMBERSET DIM1 AS %P1BASE%=BAS(P1DIM1) //%P1BASE% will contain base members under parent
*FOR %B%=%P1BASE%
*START_BADI Z_LOCK_WS
QUERY = OFF
WRITE = OFF
DIM1 = %B%
//... other dimensions
STATUS=XXX
*END_BADI
*NEXTJust call badi multiple times for all base members under parent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Many thanks for the reply.
Current Status I'm able to change work state(Open-0,Submitted-1,Approved-2) With help of script logic by triggering BADI only for Base Levels.
Now,We are trying to change Work state(Open-0,Submitted-1,Approved-2) by selecting Node to look & change work State for all Base Levels.How can this overcome with help of Script Logic by Triggering BADI.
Can you please help us on this if anybody has done before or any thoughts on this.
Thanks & Regards,
Mahesh P.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please look on the sample: https://blogs.sap.com/2013/10/28/how-to-change-work-status-from-script-logic-using-badi/
UPDATE_WORK_STATUS_LOCKS has to be used
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.