Skip to Content
author's profile photo Former Member
Former Member


Hi Guys,

I need to add a new assignment block to loyalty cards. As AET does not allow to add new Tables under loyalty Card object( AET supports this for many objects like Accounts, One order objects), so I am planning to do a bespoke development for this requirement. One of the requirement is delete all entries from this table if the status of the card is changed to invalid. I had a look into the system and came across the badi LOY_CRD_CARD_SAVE. The badi has a method called DO_AFTER_SAVE. Is this recommended to delete entries(dependent objects) from this method ?

Should we do a database committ in this method ?

Kind regards,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 03, 2016 at 12:58 AM

    Hi Manas,

    As per your requirement, the functionality is custom Functionality. So, the BadI implementation is the best way to go forward. You can use the method which you mentioned here to remove the entries from the custom table. You need to ensure that the entries are locked properly before deleting them from the database.

    Also, you need not call the COMMIT WORK from the badI. As, this is the responsibility of the framework to ensure that the data is saved in the database correctly.

    Let me know if you need any more technical inputs from my end.

    Hope this helps.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.