In this Blog I would like to share on certifying a notification without giving Login Credentials. Before actually entering into the Subject let me explain clearly the requirement for this. Though i have serched for the solution i could not find a remedy for this, so thought it would be worth sharing to you all.
Actually we are coding an RFC function module where user when he clicks on a certain button after entering the notification Number should be able to certify the notification number. We usually use the method CERTIFY_COMPLETION of class CL_NOTIFICATION_WPS to achieve this requirement. But one challenge with this requirement is that when we certify using this method we will be getting an POP-UP for getting the login credentials as shown Below.
Practically this cannot be supported when we want to use this method at the backend. We came up with the below solution to overcome this drawback. In the custom function module we called this Method, through debugging we found out the point where the Pop up Is called. It was in the FM SIGN_SHOW_SCREEN where the pop is triggered, also for surprise this notification will be certified even when we skip this pop up. This encouraged us in finding the solution for suppressing the POP UP.
The solution is simple Just create an Enhancement point in this FM and copy all the PAI events of the popping up screen, at the end of the enhancement just use EXIT command to come completely out of the screen. This will ensure that the POP up screen does not commence and also your requirement of certifying the notification is achieved.
Important Prerequisite: As most of us Know before certifying the notification, all the tasks of the notification must be completed also the notification must be completed.
Hope this information will be helpful to all. Thanks for reading my Blog 🙂
Thanks and Regards,
Satish Kumar Balasubramanian.