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

user exit or implicit enhancement

Former Member
0 Likes
749

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

4 REPLIES 4
Read only

Former Member
0 Likes
684

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

Read only

0 Likes
684

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.

Read only

0 Likes
684

Hi,

Aplogies first...the BADI is ADDRESS_UPDATE. .. and I'm out of answers..sorry

Read only

Former Member
0 Likes
684

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