Hi Kalyan,
We have done similar requirement in our current project and here is how you can do it.
You can implement this interface IF_UI_LINK_PARAMETER_CLASS in a z class and use this class as a parameter class in the customizing of your logical links.
Then pass different parameter values for both logical links and in the parameter column and using this value you can differentiate which link is clicked.
Then store some flag in any tools class attributes you have to read it later and decide which config has to be loaded based on the link clicked.
Something like what you see in the below screen shot.
Probably I will blog on this shortly where you should get the complete details.
Regards
Vinod