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

How to limit the code changes per user id.

Former Member
0 Likes
1,116

Hi All,

I am new to ABAP and I need to implement this functionality

I want to limit this changes as per now to only my user id.

So I want the release action to use this BADI only when I try to release a transport and not all the users in the system.

Can you please advice?

Thank you and appreciate your help.

Best regards,

Elena

Hi All,

I am new to ABAP and I need to implement this functionality

I want to limit this changes as per now to only my user id.

So I want the release action to use this BADI only when I try to release a transport and not all the users in the system.

Can you please advice?

Thank you and appreciate your help.

Best regards,

Elena

3 REPLIES 3
Read only

former_member1716
Active Contributor
0 Likes
945

Hi Elena,

In blog mentioned by you, just add the code below before the start of code in the method CHECK_BEFORE_RELEASE.

IF Sy-uname = 'YOUR LOGIN USERNAME IN CAPITAL LETTERS'.

** The entire code in the method.

ENDIF.

Hope this helps, Please let us know on the progress.

Regards,

Satish

Read only

0 Likes
945

Thank you Satish.

It worked.

Have a wonderful day!

Elena

Read only

0 Likes
945

Glad that it worked. Thank you and have a wonderful day.

If you are fine with solution please close the thread

Regards,

Satish