on 06-17-2010 6:35 AM
Hi guys,
I am using IP and need to lock data when sts data is approved. The standard exit class CL_UPS_LOCK_DATASLICE does not work. I have realised that many have experienced this problem, do i need to create my own exit class? Please assist how.
Regards
Lerato
Hi.
What do you mean by "when sts data is approved" ?
Does it mean that sts approved on higher level and you want to lock data ?
When you finally approve the data you can execute sequence that activates dataslice.
You can find more information about dataslice with custom class [here|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18655] [original link is broken] [original link is broken] [original link is broken];.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest to create a variable for the data-slice, which gets depending on the planning version you are working on.Variable should return the planning version example "WP" once you send the plan for approval if not it should be blank.
You can maintain the control parameter in TVARV table, it should get updated in the planning sequence while copying from WP version to approval Version like "OP"..
You can build you logic depending in your business need.
Try creating a data slice in IP based on an exit class. Use CL_RSPLS_DS_EXIT_BASE as template. When setting e_noinput = 'X' data is locked.
e.g. code in IF_RSPLS_DS_METHODS~IS_PROTECTED
FIELD-SYMBOLS:
<version> TYPE ANY.
ASSIGN COMPONENT 'VERSION' OF STRUCTURE i_s_data TO <version>.
if <version> = 'XYZ'.
e_noinput = 'X' .
endif.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.