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: 

How to put validation for the t-code COR6N

uzair_1234
Explorer
0 Kudos
1,156

Hi,

I have made a ZTable where the entries maintained should not have authorization to make any changes in the T-Code ZCOR6N. Whenever the user will make changes and tries to save, "You have no authorization to make any changes", this message should pop up. Can anyone please guide me on how to put the validation or which specific enhancement or BADI should I search so that I can add the code.

1 ACCEPTED SOLUTION

RaymondGiuseppi
Active Contributor
1,082

For standard transaction COR06n (and associated variant transactions) check

  • BAdI, WORKORDER_GOODSMVT and simliar
  • Also you can use the Enhancement like CONFPI02 or CONFPI07.
5 REPLIES 5

RaymondGiuseppi
Active Contributor
0 Kudos
1,082

ZCOR6N is a customer transaction, so we cannot help. Is this just a z-transaction calling same program than COR6N?

1,082

To implement this validation in T-Code ZCOR6N, you can use an authorization check using the Function Module "AUTHORITY_CHECK_TCODE". Here are the steps to implement this validation:

Identify the user roles that should not have authorization to make changes in T-Code ZCOR6N.

Create a custom authorization object and assign it to these roles.

Implement the authorization check using the Function Module "AUTHORITY_CHECK_TCODE" in a user exit, BADI or enhancement spot in T-Code ZCOR6N.

In the authorization check code, call the Function Module "AUTHORITY_CHECK_TCODE" and pass the T-Code and the user ID as parameters.

If the user does not have authorization to execute the T-Code, display the error message "You have no authorization to make any changes" using the Function Module "MESSAGE".

You can implement this validation using a user exit (SMOD), BADI or enhancement spot, depending on your specific requirements and the feasibility of each option.

Regards,

Rachel Gomez

RaymondGiuseppi
Active Contributor
1,083

For standard transaction COR06n (and associated variant transactions) check

  • BAdI, WORKORDER_GOODSMVT and simliar
  • Also you can use the Enhancement like CONFPI02 or CONFPI07.

uzair_1234
Explorer
0 Kudos
1,082

Hi ,

Thanks for the help. It's working

uzair_1234
Explorer
0 Kudos
1,082

Thanks for the help everyone. This particular issue was solved.