Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign authorization S_RFC ?

Former Member
0 Kudos

Hi all,

Can someone tell me how to assign authorization S_RFC for any function group (In my case,PWP2)?

What's the exact procedure? I am very much new to ABAP programming.

I have looked at the follwoing threads :

Answers will be rewarded.

Thanks,

M.Subathra

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You should insert the authority-check in the Function modules of your function group:

AUTHORITY-CHECK OBJECT 'S_RFC'

ID 'RFC_TYPE' FIELD <value>

ID 'RFC_NAME' FIELD <value>

ID 'ACTVT' FIELD <value>

This object has to assign to profile of all users who'll use those fms.

You can manage the profile by trx PFCG.

12 REPLIES 12

Former Member
0 Kudos

You should insert the authority-check in the Function modules of your function group:

AUTHORITY-CHECK OBJECT 'S_RFC'

ID 'RFC_TYPE' FIELD <value>

ID 'RFC_NAME' FIELD <value>

ID 'ACTVT' FIELD <value>

This object has to assign to profile of all users who'll use those fms.

You can manage the profile by trx PFCG.

0 Kudos

Hi Mukesh,

Thanks for that reply. that is what given in the thread I had referred. I could not get what exactly it means.

1. How should the authority-check be inserted?

2. How should the object be assigned to the profile of an user using PFCG?

Please help.

Thanks,

M.Subathra

0 Kudos

Hi all,

I just got the following document regarding assigning authorizations.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f33...

Let me go through & shall post back in case of any queries.

Regards,

M.Subathra

Former Member
0 Kudos

Hi,

I am confused a little, the authorizations are given to the user id's and to the objects / function groups.

If you want to make a function module to be remote enabled, go to the attributes of the function and there will be a radio button REMOTE ENABLED, just select that and activate the function.

If you want to give the authorization to a user you can do that in SU01 transaction profiles tab.

Regards,

Ravi

Former Member
0 Kudos

Hi

You would give authority to all users who have use this transaction

The below code should be used....

AUTHORITY-CHECK OBJECT 'S_RFC'

ID 'RFC_TYPE' FIELD <value>

ID 'RFC_NAME' FIELD <value>

ID 'ACTVT' FIELD <value>

Kindly reward points

Former Member
0 Kudos

Hi Subathra,

Just go through the following links :

/message/1652676#1652676 [original link is broken]

Reward points if helpful,

Thanks & Regards,

Sumana

Former Member
0 Kudos

Hi all,

I have gone through the document.

This is what I've inferred. Correct me if I go wrong anywhere..

--> The authorization object S_RFC is already available in the SAP R/3 system in the class <b>AAAB</b>.

-->To assign the object to the user:

Create a role & change the authorization data for the role.To do this, after creating a role,

press the <b>Authorizations</b> tab & click <b>Change authorization data</b>.Now,press Ctrl + shift + F9 and enter S_RFC.Generate the authorization.

A profile will automatically be created & assigned to the role.

Now,using tcode SU01, assign the role to the user.

I have some doubts in this:

I need to assign the S_RFC for function group PWP2 to an user. Where do I specify the function group? Should I edit the S_RFC somewhere?

If am not clear, please mention which part u want me to explain.

Any help will be greatly rewarded.

Thanks & regards,

M.Subathra

0 Kudos

Hi,

Have a look at this post :

Best regards,

Guillaume

0 Kudos

Hi,

I have gone thru the thread already.

I just want to ensure that the procedure that I have mentioned in my previous post in this thread is correct.

Please help.

Regards,

M.Subathra

0 Kudos

The procedure looks ok to me!

I was referring to your question about S_RFC and function group PWP2: you just need to specify FUGR in the type and the name 'PWP2' in the related field.

Best regards,

Guillaume

Message was edited by: Guillaume Garcia

0 Kudos

Hi,

Thanks for that immediate reply. Do u mean to say that While assigning the authorization object to the role itself, I'll be asked to specify the type and name?

At present, I don't have rights to change the authorization data. That's why I have the doubt.

Regards,

M.Subathra

0 Kudos

You assigned the authorization object to a profile. And this profile is bound to the role.

Regarding the authorization object itself, you should definitely fill the 3 fields.

-> the traffic light should <b>turn green</b> and then you generate the profile

Best regards,

Guillaume