cancel
Showing results for 
Search instead for 
Did you mean: 

Need help to write code on toolbar button click

Former Member
0 Kudos

Hi Friends,

I have a FPM based UIBB list.

On the toolbar there is a SUBMIT button and as per that Standard Code is executed.

When the button is clicked i need to write additional code to update a Ztable with the values on the screen.

Can anyone please guide me as i am new to FPM and need to figure this out.

Thanking You In Advance.

Navin Fernandes

Accepted Solutions (1)

Accepted Solutions (1)

rohit3611
Contributor
0 Kudos

Hi NAvin,

See the FPM developer guide, You will get required information after page 40.

Every Action in FPM will be triggering a EVENT ID, Please put the breakpoint in PROCESS_EVENT and do your logic, IF you can doing custom code, please see some exit point is there or you need to do modifications.

Rohit

Answers (1)

Answers (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Navin,

Goto PROCESS_EVENT of the feeder class, and capture the event triggered initially  and write the required logic within the block of that code.

IF IV_EVENTID->MV_EVENT_ID EQ  'ACTION_NAME'.


-----------------------------------

-----------------------------------

-----------------------------------

Your code

-----------------------------------


ENDIF.


Regards,

Harsha

Former Member
0 Kudos

Would I need to create a post-exit for the method PROCESS_EVENT and write code as you mentioned.

Thanks and Regards,

  Vanessa

harsha_jalakam
Active Contributor
0 Kudos

Yes if it is a standard method, we need enhance on pre-exit,post-exit or overwrite exit based on your requirement.In case of overwrite method, we need to copy all original code and paste in overwrite exit and then do the modifications there.

Former Member
0 Kudos

Hi Harsha,

Can you give a small code snippet for fetching data from the FPM UIBB on Event.

Thanking You,

Navin Fernandes.

harsha_jalakam
Active Contributor
0 Kudos

Hi Navin,

Incase if you are looking all the data in the list table, then the parameter CT_DATA will contain the same.

Regards,

Harsha