The component FPM_NOTES_WRAPPER enables us to reuse the notes popup in a list uibb, to accept user comments/notes and stores in ECM or KPro or in may be in standard text table.
A notes Create button on the list uibb and when it is clicked.
A notes/comment box pop up would appear where the user can provide a note name and description and on click OK it would be saved some where may be in ECM or Kpro.
The first thing we need a list uibb feeder class and a button.
Create an OVP application by using Tcode- FPM_WB
Add a freestyle uibb.
Make the use of FPM_NOTES_WRAPPER Component and create a configuration for this.
Provide storage type as ECM and a top folder name. Create a list uibb configuration with the created feeder class.
Create a button on the List UIBB toolbar.
Now test the application. So here we have the list uibb with the Notes button. Now if you click on the button the notes popup should appear.
Now go the the feeder class process_event method.
here we have to raise the event FPM_OPEN_NOTES event to display the popup.
test the application . So here the notes popup appear by clicking the create notes button.
Now provide note name and some text and click on OK. Here we receive an error that note type has to be set. And this has to set very first time and only one when the list uibb appears.
Create an attribute in the feeder class.
Go to the feeder class get_data method. raise an event “FPM_NOTES_TYPE ” and pass the note type as event parameter.
Now test the application. So here the note type appears.
Now when the user provides the note name and description and on click OK we should be able to get the necessary information to store the data. by the event ‘FPM_NEW_NOTES’
In the process event method add the below code. Just put a breakpoint to see the details.
Click on OK button.
Check the event parameter.
So here the details. Which can be read/retrieved and stored as per desired.