on 06-16-2016 2:54 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.
In debugging I can see that it is adding the data to the table perfectly but after that a Short Dump is created:
cx_salv_source_table_modifeid
It basically goes into a class which checks if the content of the source data table was changed without notice.
My problem is - how do I give it notice that some data was inserted?
I've already tried to flag EV_DATA_CHANGED as 'X'.
And the parameter EO_ITAB_CHANGE_LOG only has retrieval capabilities - so I can't add to it.
How can I add data to a type 4 entity within the feeder class without it dumping?
Hi Benjamin,
Perhaps , you would have to adjust Flush method as well?
Regards,
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for this.
There's a slight issue. The sequence of events for feeder class is:
As the flush method comes before get_data (where I am deriving data) adjusting it would not make much difference.
I have tried to create the change log and call the flush method using the below code. But it still get the same error about source data changed.
get reference of <FIELD> into ls_change_log-new_value.
ls_change_log-name = 'FIELDNAME'.
insert ls_change_log into table lt_change_log.
clear:ls_change_log.
create data lr_data like <lt_data>.
assign lr_data->* to <lt_data_ch>.
<lt_data_ch> = <lt_data>.
call method me->if_fpm_guibb_list~flush
exporting
it_change_log = lt_change_log
it_data = lr_data.
EDIT***
Also tried calling the simpler:
mo_controller->flush(
EXPORTING ig_data = <lt_data>
it_change_log = lt_change_log ).
still no luck
I've managed to update the change log using the documentation for the ABAP developers guide to FPM.
New problem.
The table is updated but on screen it only shows blank lines (read only). As soon as I press 'insert' on the entity table it inserts a new line but also brings in the data (previously blank read only lines) already entered.
I tried to call a roundtrip event after defaulting to try to force it to display the data on screen but this didn't work either.
Any ideas?
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.