cancel
Showing results for 
Search instead for 
Did you mean: 

ProfitCenter restricting

sumanth_naidu
Participant
0 Kudos

Hi Gurus,

We are restricting two users for profitcenters in Tcode:FB60. For this i have grouped the two users in Tcode GS01 as ZUSERSPC_RS And also we grouped profit Centers in Tcode GS01 as ZPC1000_RS and GL accounts as "ZGLALL "

And in Tcode:OB28 i have created a new set under that prerequisite i gave

"BKPF-TCODE = 'FB60' AND BKPF-USNAM IN ZUSERSPC_RS AND BSEG-HKONT IN ZGLALL"

and in Check

BSEG-PRCTR IN ZPC1000_RS

With this i am unable to restrict those users to that particular Profitcenters and also others to post in to those profit centers.

Please help me in giving solution as that no other users are able to post and only those two users have to post in that particular profit center.

Kind Regards,

Sumanth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

when displaying your validation rule in OB28 use "extras / expert trace / set breakpoint". Make your test postings again and see the field content for your validation to trace whats the problem.

Best regards, Christian

sumanth_naidu
Participant
0 Kudos

Hi Christian Ortner and Gaurav,

I tried with expert trace and found that in the back ground it is not checking the profit center it checking space.

Please help me to solve this issue.

Thanks,

nandu

Former Member
0 Kudos

HI,

so if profit center is "space" it seems that it is not available at the time your validation is processed. Which call-up-point do you use?

best regards, Christian

Former Member
0 Kudos

HI,

so if profit center is "space" it seems that it is not available at the time your validation is processed. Which call-up-point do you use?

best regards, Christian

sumanth_naidu
Participant
0 Kudos

Hi,

My ABAP consultant tried and said at break point test, profit center is not picking up. All others are ok.

Thanks,

nandu

former_member581688
Active Contributor
0 Kudos

When running in debug, make sure that the breakpoint has stopped for the GL line and not the vendor line. In addition to looking at bseg-prctr, look at bseg-koart, for example. Make sure the koart value is 'S' (GL Account). If the value is 'K' (Vendor), press F8 to continue and the debugger should stop on the breakpoint again - this time for the offsetting line. The vendor/K line will not have a profit center value, but the GL account/S line should.

Regards,

Shannon

Answers (4)

Answers (4)

former_member581688
Active Contributor
0 Kudos

If you want to block all users except two from posting to particular profit centers, then I would suggest the following:

Prerequisite:

SYST-TCODE = 'FB60' and BSEG-PRCTR IN ZPC1000_RS and BSEG-HKONT IN ZGLALL

Check

SYST-UNAME in ZUSERSPC_RS

Regards,

Shannon

Former Member
0 Kudos

You forgot something the field SYST-UNAME User Name

BKPF-TCODE = 'FB60' AND

SYST-UNAME in ZUSERSPC_RS.BSEG

BSEG-PRCTR IN ZPC1000_RS.BSEG

Have you created the set in BSEG with GS01

sumanth_naidu
Participant
0 Kudos

Hi Paul and Shannon.

Thanks. I tried in both ways but could not able to restrict those profit centers. I am able to post in it where the set doest have my id in it through FB60.

Please help in finding the solution in high priority.

Kind Regards,

nandu

Former Member
0 Kudos

Hi Nandu,

You need to define two steps in the validation as below:-

First Step:-

Prerequisits:-

SYST-TCODE = 'FB60' AND BSEG-HKONT IN ZGLALL AND

BSEG-PRCTR IN ZPC1000_RS

Check:-

SYST-UNAME IN ZUSERSPC_RS

Message:-

Your custom error message to show that current user is not allowed for this profit center.

Second Step:-

Prerequisits:-

SYST-TCODE = 'FB60' AND BSEG-HKONT IN ZGLALL AND

SYST-UNAME IN ZUSERSPC_RS

Check:-

BSEG-PRCTR IN ZPC1000_RS

Message:-

Your custom error message to show that current user is not allowed for this profit center.

In above ZGLALL = List of the relevant G/L account, ZUSERSPC_RS = List of the users allowed for posting to the specific profit centers, ZPC1000_RS = List of that specific profit centers.

Also activate this validation for your company code in OB28.

Let me know in case you need anymore help on this.

Regards,

Gaurav

Former Member
0 Kudos

Hi Nandu,

You need to define two steps in the validation as below:-

First Step:-

Prerequisits:-

SYST-TCODE = 'FB60' AND BSEG-HKONT IN ZGLALL AND

BSEG-PRCTR IN ZPC1000_RS

Check:-

SYST-UNAME IN ZUSERSPC_RS

Message:-

Your custom error message to show that current user is not allowed for this profit center.

Second Step:-

Prerequisits:-

SYST-TCODE = 'FB60' AND BSEG-HKONT IN ZGLALL AND

SYST-UNAME IN ZUSERSPC_RS

Check:-

BSEG-PRCTR IN ZPC1000_RS

Message:-

Your custom error message to show that current user is not allowed for this profit center.

In above ZGLALL = List of the relevant G/L account, ZUSERSPC_RS = List of the users allowed for posting to the specific profit centers, ZPC1000_RS = List of that specific profit centers.

Also activate this validation for your company code in OB28.

Let me know in case you need anymore help on this.

Regards,

Gaurav

sumanth_naidu
Participant
0 Kudos

Hi Gaurav,

Its is not working.

Thanks,

nandu

Former Member
0 Kudos

Hi Nandu,

Just check that you have defined the set using the reference field as below:-

ZUSERSPC_RS with reference as table SYST field UNAME

ZPC1000_RS with reference as table BSEG field PRCTR

ZGLALL with reference as table BSEG FIELD HKONT

I have checked this in IDES and it is working.

Regards,

Gaurav

sumanth_naidu
Participant
0 Kudos

Hi Gaurav,

i have done the same but still not happening.

Thanks,

nandu

Former Member
0 Kudos

Go to your validation step in DISPLAY mode and put breakpoint from "extras > expert trace > set breakpoint".

Do a test posting again and check what the validation is doing. This way you can see that what is going wrong in your validation.

Regards,

Gaurav

sumanth_naidu
Participant
0 Kudos

Hi Gurus,

Please help me how to restrict user postings in profir center through FB60

Former Member
0 Kudos

Hello,

Authorization to post to certain Profit Center can even be done through User Roles. Kindly restrict all othe users through Authorization Object. Add the PC in the role of the user.

Hope it works.

Regards,

Jaymin R. Bhatt

sumanth_naidu
Participant
0 Kudos

Hi Jaymin,

Could you Please explain me in breif about authorisations as per my specifications.

Thanks,

nandu

Former Member
0 Kudos

Hello,

The Users to whom you need to restrict the Profit Center Posting, in the roles assigned to Users added Profit Center Object at organizational level, Add all the Profit Centers excluding those you need to restrict.

Add Profti Center as authorization object.

Regards,

Jaymin R,. Bhatt

daksh_pawar
Participant
0 Kudos

can you tell me the object to be used in Role?