cancel
Showing results for 
Search instead for 
Did you mean: 

STS: Why data can't be locked when status is sent to approval.

former_member187400
Active Contributor
0 Kudos

Hi All,

I'd like to ask about STS, I have a problem on it. I'm working in IP.

Why data can't be locked though the status is already in "send to approval" ?

I've setup data slice under the corresponding cube based on exit class: CL_UPS_LOCK_DATASLICE.

Is it because I've yet to assign R_STS_PT authorization to the planner ? So when I'm opening the data using planner user id, data is still not locked yet.

Could you kindly help me to resolve this problem please ?

Thanks a lot all,

Have a good day,

Best regards,

Daniel N.

Accepted Solutions (1)

Accepted Solutions (1)

sven_mader2
Active Contributor
0 Kudos

Hi Daniel,

I have done the same yesterday.

What is the function of the class CL_UPS_LOCK_DATASLICE? I think, it doesn't work. You can delete the dataslice, you have the same result.

nobody need the online help http://help.sap.com/saphelp_nw2004s/helpdata/en/43/548bafbc0f357ee10000000a11466f/frameset.htm.

Is this a oss message? How did STS worked in 3.5?

I want that the button "Open Planning" is inactiv and the query not inputable, when the status is locked or the Statustext is "Approved".

Sven

Former Member
0 Kudos

HI There,

I found that the exit class does work.

You define the exit class in the data slice area of the planning modeller. You use those characteristics in the data slice definition that you will be restricting on in the STS customising header characteristics.

Then I had 5 users set up (basis) one was super user having the authorisation R_STS_SUP and R_STS_PT.

The rest 4 users were created having the authorisation object R_STS_PT.

I included the users in a basic cost centre dummy hierarchy and found that when the lower levels submit for approval, the data is locked for them, of course they can retrieve data but an email is automatically sent to their superiors when this is done.

Good luck to you.

SMS

sven_mader2
Active Contributor
0 Kudos

Hi,

the data slice options: this is an idea.

I changed it. Now only ProfitCenter is marked - not all characteristics.

=> it's doesn't work. the planning is finished, but it's always allowed to change data.

Sven

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

Does it work with your user ?

Regards.

[Uryukin Andrey|http://il.linkedin.com/in/andreyuryukin]

SAP-BI Consultant, [Advantech|http://advantech.co.il/en/index.asp]

[SCN Blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/252016769] [original link is broken] [original link is broken];

former_member187400
Active Contributor
0 Kudos

Hi Andrey,

Your question is meaning I use my user id, correct ?

Yes, for this testing, I use my user-id.

Or is it because I have authorization of development so that I cannot have locked data.

Right now, I'm requesting security team to grant me R_STS_PT to my user id. So that, I assume I'm a planner.

Will it work ?

Or do you have any other idea ? What should I try in order to make the STS scenario work ??

Thanks a lot Andrey,

Really need you guidances.

Best regards,

Daniel N.

Former Member
0 Kudos

Hi.

A'm trying to understand how you designed your workflow process ...

How you customized STS ?

Do you run any planning sequences within STS status change ?

Could you plz ellaborate and provide data example ?

Regards.

[Uryukin Andrey|http://il.linkedin.com/in/andreyuryukin]

SAP-BI Consultant, [Advantech|http://advantech.co.il/en/index.asp]

[SCN Blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/252016769] [original link is broken] [original link is broken];

former_member187400
Active Contributor
0 Kudos

Hi Andrey,

Appreciate for your prior reply.

Btw, finally I successfully locked the data using selection data slice. I created data slice selection, then I setup if the version is approved and asking for approval, data slice is active.

And it works.

I also created Planning Sequences to change the version.

But my Question is what's the purpose of this class: CL_UPS_LOCK_DATASLICE ???

I got that class after reading this: http://help.sap.com/saphelp_nw04s/helpdata/en/43/548bafbc0f357ee10000000a11466f/frameset.htm

I thought using CL_UPS_LOCK_DATASLICE, it will lock automatically after the planner gets status : "sending for approval".

If you have anything about my doubt & question in your mind, could you please kindly share it ?

Thanks a lot Andrey and have a good day,

Best regards,

Daniel N...

Former Member
0 Kudos

Hi there,

You said in your reply - "Btw, finally I successfully locked the data using selection data slice. I created data slice selection, then I setup if the version is approved and asking for approval, data slice is active.

And it works. "

Can you tell me exactly how you did this please, as it is not clear from the above. I am having the same problem. I have set up headrer characteristic and using the exit class as you mentioned. But my users still can change data even though they have submitted it for approval.

Many thanks

former_member187400
Active Contributor
0 Kudos

Hi Sulman,

You can create function and planning sequence to copy the status.

Then you create dataslice based on particular status to block data from data entry.

You can embed the planning sequence to STS using t-code: BPS_TC.

Thanks a lot .

Best regards,

Daniel N.

Former Member
0 Kudos

Hi Daniel,

Thanks for the response, much appreciated, a bit of good fortune that I ran into someone in April 2010 who is having the same problem as me on the obscure STS!

I have some queries about your response;

1) You say to create planning a function within a sequence to copy the status., did you mean to copy the version?

2) So the basic principle is, when a user submits data for approval, they use the STS monitor's 'Approval' button, this then triggers the planning sequence to copy data which they just planned to a certain version, this version is hard coded into the data slice, is this correct?

3) What happens then when the higher level manager approves the data, is this then unlocked by copying to another version?

If you could please break it down for me.

Appreciate your time & help.

Regards

SS

Hi Sulman,

You can create function and planning sequence to copy the status.

Then you create dataslice based on particular status to block data from data entry.

You can embed the planning sequence to STS using t-code: BPS_TC.

Thanks a lot .

Best regards,

Daniel N.