on 12-14-2014 8:51 PM
Hi experts,
I need to add some controls before saving a marketing object and i used IF_EX_CRM_MKTPL_OL_OBJ~CHECK_BEFORE_SAVE badi for it.
An error message occured but the object saved even the exporting parameter ev_reject_save = abap true. When i checked the codes i realesed et_failed_objects is initial and i couldn't found why. How can i stop saving when there is an error message appears in badi or ev_reject_save = abap true?
Regards.
Hi Seda,
In this above mentioned method both the export parameter needs to be updated with value to prevent save.
Set EV_REJECT_SAVE = ABAP_TRUE and fill the appropriate ERROR message in ET_MESSAGE_LOG and try.
I think your data should not be saved if both above parameters are correctly passed.
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Johannes,
Thanks all for replies.
I set reject_save = abap_true and msgtype = 'E'.
I fill msgtype, msgid, msgno fields and my object still saved. I cant use check before save for reject saving object. I just can give some alert messages. It always saves the object eventhough there are error messages or reject_save = abap_true.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.