Reusing notes wrapper component FPM_NOTES_WRAPPER in FPM

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.

1

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.

2

The first thing we need a list uibb feeder class and a button.

345

Create an OVP application by using Tcode- FPM_WB

6

Add a freestyle uibb.

7

Make the use of FPM_NOTES_WRAPPER Component and create a configuration for this.

89

 

Provide storage type as ECM and a top folder name. Create a list uibb configuration with the created feeder class.

101112

13

Create a button on the List UIBB toolbar.

28.png

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.

14

Now go the the feeder class process_event method. 

here we have to raise the event FPM_OPEN_NOTES event to display the popup.

15

test the application . So here the notes popup appear by clicking the create notes button.

16

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. 

17

 Create an attribute in the feeder class.

18.png

Go to the feeder class get_data method. raise an event “FPM_NOTES_TYPE ” and pass the note type as event parameter.

1819

Now test the application. So here the note type appears.

20

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.

21

Click on OK button.

22

Check the event parameter.

23

Check MT_PARAMETER

242526

So here the details. Which can be read/retrieved and stored as per desired.

27


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s