cancel
Showing results for 
Search instead for 
Did you mean: 

Derive Data Upon Custom Event MDG-M 7

benjamin_allsopp
Active Participant
0 Kudos

Hi

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Did you manage to find a way to do this?

benjamin_allsopp
Active Participant
0 Kudos

Not in any elegant way.

I ended up directly changing/inserting data into the database staging table in the get_data method. I haven't looked at it for 6 years so I'm sure I may be able to find a better way using standard calls but the direct update has worked for those 6 years so I haven't had a need to look back into it.

benjamin_allsopp
Active Participant
0 Kudos

So apparently GET_DATA only changes the UI and not the tables that actually matter.

How can I trigger derivations for a custom button on the UI?