Write a comment
Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.
Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.
Thank you for the good examples
Before returning the following code is missing:
result = VALUE #( FOR ls_Currency IN lt_Currency
( %tky = ls_Currency-%tky %param = ls_Currency ) ).
Seems to be the rest from the tutorial, as this version was removed from the Repository and also later from the example.
Thanks a lot Xexer. You have created awesome Series
I have followed exactly the same and I am facing issue after uploading the file and performing loadexcel, The updated entires are not reflected back. for example the child entity Country is not getting updated with existing/new entires. Please let me know what I would I have missed.
Hello Kumar,
have you checked the next steps in this series? With the next article we implement Side Effects, to refresh UI automatically. Maybe therefore you should implement the Event.
I think then it should work with the refresh.
Greetings Björn
Hi Björn, thank for you quick reply. Yes I followed next articles as well, but the behaviour remained the same. The reason is clear that the modify entities statement not updating the transaction buffer and the values doesn't flow to save_modified. Please do let me know what could be the issue.
Have re-checked the implementation, looks fine for me. On which release you are working?
The MODIFY in the action fills the buffer and the values should be handled in the UNMANAGED save. There you should check the SQL statements and return values, maybe there is an error. The refresh of the UI is triggered through the side effect on consumption level, that's reacting to the action trigger.
Hello Björn,
I am on ABAP Cloud Developer Trial 2023. I have copied each object from Repository https://github.com/Xexer/abap_rap_blog.git, but still facing same issue. I also tried in BTP abap trial, there also faced the same issue. As of now I am leaving this, but thank you for the support and help.
That should be ok. Have re-checked the tutorial in our system and I had the same issue. The problem is, how the Excel content have to be structured. On line 104 (behavior implementation) we are only loading currencies from the current entity. When the entries in the Excel not matching no data is loaded and also not inserted.
Maybe in your excel file is not the right currency, when you are testing?
Hello Björn, I used the same file format used in this article. There is no issue in getting data and mapping to entities, but the problem is modify statement doesn't update the buffer it seems, even there are no failed or reported and there by it doens't update the screen with side effect and the values not flowing to save_modified.
Hi Kumar,
i mean not the format, more the content of the File. After loading the Excel, the data is filtered and prepared for the EML. When no data is going into the save sequence it was filtered before. Was in my case.
Sorry Björn, It's my mistake. the way I am doing is aftering editing the entity currency to upload the excel, I am performing load excel on the draft version due to which I was facing issue. My previous comment is incorrect there are entries in failed and reported, saying the entity is locked and can't edit. I realized and corrected my process of doing. first I upload the excel save the entity. and on active version I perform the load excel. It's works fine. Thank you Björn.
Ah ok, never thought about this. Good that it is working now.