cancel
Showing results for 
Search instead for 
Did you mean: 

lock ip data using data slice

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

0 Kudos

To lock the data when the planning is send for approval in sts

Former Member
0 Kudos

Hi.

Have you tried to do suitable customization in STS (I think it is in "define header chars for planning session") ?

It should lock the data when you send for approval ...

Regadrs.

0 Kudos

Hi,

I have tried that and it did not work.

Regards

Lerato

Former Member
0 Kudos

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.

0 Kudos

Hi Guys,

I am using the following exit variable CL_UPS_LOCK_DATASLICE for IP STS. I only want to lock the data for 0profit_ctr that is send for approval or approved but now all the 0profit_ctr's are locked. Pls assist how to rectify this.

Regards

Lerato

Former Member
0 Kudos

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.