2015 Jan 27 10:50 AM
Hi,
I have enhanced the BOPF and added a new node. I have configured the feeder class and enhanced UI to display a custom tab.
The issue I am facing is that when I click on a button, I am generating values for this node. I have used change_mode = 'C' , created new GUI id and passed parent_guid.
After calling modification method, the screen doesnt display the new values. The feeder class doesnt get the updated value.
But after saving the application, if I open the same document I am able to view the data on the screen.
May I know what is going wrong here?
Regards,
Niyaz
2015 Jan 27 11:10 AM
Hi Niyaz,
The refresh of the UI is depending on the change notification raised by BOPF framework.
The change notification are raised for nodes, and associations, and are raised per instance.
there could be several reasons for the issue you describe:
- if you are displaying an existing root, and you add a new node under the same root instance, then you should be in change_mode = 'U' (update mode) and not change_mode = 'C'.
- could be that your BOPF implementation is not raising change notification correctly (the change notification should be raised also to the association used in the wire model)
if these to hints do not help, then the way you call the modification from the UI should be checked (where is it implemented, and in which way)
BR,
Matan.
2015 Jan 27 11:10 AM
Hi Niyaz,
The refresh of the UI is depending on the change notification raised by BOPF framework.
The change notification are raised for nodes, and associations, and are raised per instance.
there could be several reasons for the issue you describe:
- if you are displaying an existing root, and you add a new node under the same root instance, then you should be in change_mode = 'U' (update mode) and not change_mode = 'C'.
- could be that your BOPF implementation is not raising change notification correctly (the change notification should be raised also to the association used in the wire model)
if these to hints do not help, then the way you call the modification from the UI should be checked (where is it implemented, and in which way)
BR,
Matan.
2015 Jan 28 3:01 AM
Thanks Matan. If I change it to U, it results in short dump.
As far what I have debugged, SAP standard has created determination and in execute method they have generated a new guid. In the validation class(FLUSH method) they are retrieving by means of association and updating this node.
If changes are done to existing data, updated data is shown. So shouldnt be event problem.
Any other input
2015 Jan 29 11:08 AM
Hi Niyaz,
To be able to help further in this case, I would need more details.
please describe the UI you are trying to create.
which UIBBs you have included.
do you have an initial screen to select the instance you display and edit?
did you configure a bootstarp UIBB in your application?
are you using FBI standard feeder classes?
are you using FBI standard controller?
where did you place the code to call the modifications?
BR,
Matan.
2015 Jan 30 9:53 AM
Thanks Matan for showing interest. You can find the details in my below link. The initial issue was with wiring which was sorted. Now UI is not displaying data unless saved.
http://scn.sap.com/thread/3634955
When I debug the feeder class, the key internal is not getting populated. I created a determination and raised event for change. But still no luck.
I tried passing mode as "U". But it results in short dump.
PS: if i read the node in my determination, the values are being retrieved in internal table.
2015 Feb 01 9:16 AM
Hi Niyaz,
Sadly this information is not enough for me to make a guess as to what is the issue.
To better know what is missing I would need to look at the actual implementation...
BR,
Matan.
2015 Feb 02 6:12 AM
I believe the issue is because I am not passing the association, source node and source key. Let me try again and will get back to you.