on 06-27-2016 3:17 PM
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?
Did you manage to find a way to do this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.