Skip to Content
Jun 27, 2016 at 02:17 PM

Derive Data Upon Custom Event MDG-M 7



I have created a custom button. When it is pressed it uses the sales org currently selected to add data to another type 4 entity.

Ideally I would like this custom button to trigger the cross entity derivation BADI. Is there any way to do this? If not.....

Having not found a way to trigger the cross derivation BADI I have instead tried to add the data to the custom entity type 4 within the Get_Data method of the feeder class (this is where custom buttons are processed)

I've flagged EV_DATA_CHANGED as 'X' and changed EO_ITAB_CHANGE_LOG to reflect the changes as well as changing CT_DATA fr the correct entity.

The data is visibly added to the UIBB on the screen. However in the back end this data is not being created - which means it is lost on any other event. eg. manually adding a value to the type 4 entity, submitting/approving the CR The values I added in get_data disappear. Adding the data to the feeder class only seems to do so to the UI and not the tables where it is stored...what am I missing?