cancel
Showing results for 
Search instead for 
Did you mean: 

Block an approved trip to edit in PR05 transaction

Former Member
0 Kudos

Hi gurus,

I want to know if that is possible to block an approved trip to edit in PR05 transaction with authorizations objects in PFCG?

Can you help me?

Thanks in advanced.

Cleiton Folster Eli.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

Of course it is possible

For doing so you can use object P_TRAVL

Regards

Mathieu

Former Member
0 Kudos

Thanks Mathieu!

Searching the object P_TRAVL i found a discussion () that says to put W21 in the field AUTHF.

Apparently works. I will make more tests.

Best regards,

Cleiton Folster Eli.

Former Member
0 Kudos

Hello

Authorization inSAP works by "allowing" user to some functions.

A user without W2* and W3* will not be allowed to modify such a trip

You should put W21 only for those that can access to an approved request (W31 for expense).

You shoud read carefully the following link :

http://help.sap.com/saphelp_erp60_sp/helpdata/en/b6/cda0db49e911d189060000e8322f96/content.htm

Regards

Mathieu

Former Member
0 Kudos

Very thanks Mathieu!


This is more complex that i think. I will read the help from SAP.


Best regards,

Cleiton Folster Eli.

Former Member
0 Kudos

Mathieu,


I have a doubt.

I did several tests and when I use the authorisation W11-W14, W21-W24, W31-W34, W41-W44, W51-W54, W61-W64, the user can edit a trip approved, but can't create a new trip too.

The scenario is as follows: The user can create a trip, and your boss approves the trip. But the user that create the trip can't edit this trip aproved.

Can the same user that creat a trip, don't edit a approved trip?

Best regards,

Cleiton Folster Eli.

Former Member
0 Kudos

Hello

If I understand well your question, yes you have to use AUTHP field = 'O' for your own and 'E' for the others.

So you could "approve" for all the others pernr (dont validate yourself) and "create" for your own pernr only.

A classic approval example would be :

P_TRAVL

AUTHF = R*, W31

AUTHP = E

AUHS = 10, 11, 20, 21, 23, 30, 31, 40, 41

...

Hope this helps

Mathieu

Former Member
0 Kudos

Hi Mathieu,

Thanks for the help!!!

Excuse my ignorance! But i never see this objects and this transaction PR05, this is the first time.

I copied the example and didin't work:

P_TRAVL

AUTHF = R*, W31

AUTHP = E

AUHS = 10, 11, 20, 21, 23, 30, 31, 40, 41

With the example above, the user can edit a approved travel (ok - that's what I want), but the user can't create a new trip (NOK -  i need that user create a new trip too).

Is there a way to make it so that the user can create a new travel request and, after another person has approved, the same user that created the travel request can't edit this travel request approved?

Best regards,

Cleiton Folster Eli.

Former Member
0 Kudos

Hello

The example was for an approver role ONLY

You need to separate things : one role for approval, one role for creation. And users who can do both will have both roles


Is there a way to make it so that the user can create a new travel request and, after another person has approved, the same user that created the travel request can't edit this travel request approved?

I cant do it completly for you but it would be something like this :

- approval role :

P_TRAVL

AUTHF = R*, W31

AUTHP = E

AUHS = 10, 11, 20, 21, 23, 30, 31, 40, 41

- creation role :

P_TRAVL

AUTHF =  D10, D11, D23, D30, D31, D43, R*, W, W10, W11, W23, W24, W30, W31, W43

AUTHP = O

AUHS =  10, 11, 30, 31

Former Member
0 Kudos

Its works!!!!!!

Very thanks!!!!!!!!

Answers (0)