Application Development and Automation 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: 
Read only

Adding Transaction into S_TCODE

arindam_samanta
Participant
0 Likes
8,466

Hi,

I need to add my custom transaction to standard authorization object 'S_TCODE'. But when I saving with this, its showing one error message:

"check object has not been maintained (press enter to reset)".

How to overcome this situation?

Any ideas will be gratefully accepted and paid for with thanks.

Thanks & Regards,

Arindam Samanta.

10 REPLIES 10
Read only

Former Member
0 Likes
4,273

Hello,

You can use "SU21" for Creating Custom Auth Objects and all the editing work of authorization can be done through PFCG or

SU24. Please consult a basis guy and they advice you well.

Give authorizatin fields as

ACTION - Action of the Authorization

Activity -  Document Destribution.

STEP3:  Basis will create a role using transaction  PFCG and assign this authorization object to that role.

STEP4:  Call the AUTHORITY-CHECK Object in your code.

AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.

IF sy-subrc 0.
MESSAGE e000(zzpp) WITH 'No Authorization'.
ENDIF.

Read only

0 Likes
4,273

Hi Krishna,

Thanks for your reply.

But what is the check object for the authorization object 'S_TCODE'?

Thanks & regards,

Arindam Samanta.

Read only

gouravkumar64
Active Contributor
0 Likes
4,273

Hi,

This type of scenario solved by BASIS consultant.

Follow this steps.

1)Every user has some roles ,that maintained in

AGR_USERS : this is for user wise roles

AGR_1251: Role wise Assignment of tcodes.

AGR_Tcodes also helpful.

2) So You just contact your basis person ,with this requirement.

They will add that tcode in That role by  PFCG .

3)then login again.

If some authorization issues come contact basis person with SU53 Screenshots.

then just run standard report RSUSR405 .

It will works.

Hope it will solve your problem.

Thanks

Gourav.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,273

What can we understand when you try to "add my custom transaction to standard authorization object 'S_TCODE'"

The S_TCODE object (transaction SU21, group AAAB) use field TCD (transaction SU20). this field refers data element TCODE and control table TSTC, so your transaction is already known, since you have created the transaction via transaction SE93 ?

What are you exactly trying to do ?

Regards,

Raymond

Read only

0 Likes
4,273

Hi Raymond,

The standard S_TCODE object will need to hold my own custom transaction code . In SE93, I created my TCODE. When I click save button with below screen text, one error message is coming :
"check object has not been maintained (authorization object S_TCODE)."


Why this error message is coming? How to solve this?

Thanks & Regards,

Arindam Samanta.

Read only

0 Likes
4,273

S_TCODE is checked by the SAP kernel at start of the transaction.

What you are doing is adding the check again for a second time to the additional start transaction object check. This is intended more for plausibility checks to be able to also use the transaction than to force another S_TCODE check.

Probably you have left the field value empty in the authorization data values table (TSTCA), so SE93 is asking you to maintain at least a value which exists in TSTC table.

Cheers,

Julius

Read only

0 Likes
4,273

This option is useful to add a second authority-check, no interest in checking s_tcode a second time (or if you test another transaction code)

And also you seem to either have forgotten to get a value to check OR you put your transaction code, but as you have not saved it yet to database, an error is raised...

Regards,

Raymond

Read only

0 Likes
4,273

Read only

0 Likes
4,273

Hi Julius,

I have not maintained data in the table TSTCA. So error is coming for that. I need to maintain it.

Thanks for your reply.

Read only

0 Likes
4,273

Hi Julius,

I gave the value in the field value. Table TSTCA contain the entry also. Now error is not coming.

Thanks for your suggestion.