‎2012 Feb 05 6:07 AM
Hello,
In SU01, is there any exit or any other ehancement possible to validate some fields , before the user get created .
ADDRESS_UPDATE is invoked from the SAVE subroutine. so it creates user and comes out . I does not want to create the user, i f my validation is not success.
Regards,
kselva
‎2012 Feb 05 9:40 AM
Hi,
Try using this BADI
In ADDRESS_SAVE use any of the ADDRESSX_SAVED based on your requirement.
Compare the old values and new values i.e IM_T_XADRP -New values IM_T_YADRP - Old values.
If based on your condition fails replace new with old. (or an error to stop processing)
Edited by: Ncvajja on Feb 5, 2012 11:37 AM
‎2012 Feb 05 8:45 PM
I checked ADDRESS_SAVE BADI is not available in SU01 , only ADDRESS_UPDATE is there .This BADI is executed from the SAVE subroutine. First it save all the data and inbetween it triggers the ADDRESS_UPDATE . I tried to delete the user using BAPI_USER_DELETE w hen my validation failed but this bapi dumps in inset duplicate record error.
‎2012 Feb 06 4:22 AM
Hi,
Aplogies first...the BADI is ADDRESS_UPDATE. .. and I'm out of answers..sorry
‎2012 Feb 05 2:10 PM
Hi Kavitha,
Put the breakpoint in GET INSTANCE method of CL_EXITHANDLER class.
Then create the user and click on SAVE, then the control will stop each time when a BADI is getting triggered.
Check the BADI names and create an implementation in the one which suits you.
This is the best way to trace the BADIs if you are unaware of it.
I hope this helps you in your future tasks as well.
Cheers,
Raja.D