cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel saving in EXIT_SAPMF02D_001

Former Member
0 Kudos

Hi,

I have created a popup message in user exit EXIT_SAPMF02D_001. The user get a question if they really want to save and a choice 'Yes' or 'No'. My problem is that I do not know how I can handle this if the user answers 'No'. I do not want to just set an error message, because then they loose all information entered. I would just like to go back to the screen again.

I saw that if I try to exit without saving in XD01 I get a popup that handles it with setting the OK_CODE variable to 'CANC', but in the user exit, that variable is not available.

Have anyone experienced the same problem?

Best regards

Andreas

Accepted Solutions (0)

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Try the BADI 'CUSTOMER_ADD_DATA'. In method CHECK_ALL_DATA perhaps you can write warning messages before saving. If the end-user goes on, mantain the error messages in the enhancement EXIT_SAPMF02D_001.

Regards,

Eduardo