cancel
Showing results for 
Search instead for 
Did you mean: 

FPM: How to add an Event ID to my custom button

Former Member
0 Kudos

In the FPM Configuration Screen I have added a customer button (to trigger a GAF-substep).

I have given my button a name and according to the:

Floorplan Manager

for Web Dynpro ABAP

- Developer's Guide -

page 36, I should add an Event ID (beside a Label Name).

But where/how do I enter the Button's Event ID?

Thanks

Kim Brandt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

if  you add this button in configuration editor then you will see a event_id input_field .

but if you use code to add button then in method of creating button you will get paramter to add even_id

if helpful reward point

Former Member
0 Kudos

Hi Jitendra

I can see and FPM Event ID input field.

When I fill this field a ZSUBSTEP Event ID i got an error message at runtime:

Method call failed; the method WIP_ZSUBSTEP_HDL of the class CL_PRS_ASSISTANCE does not exist???

Thanks

Kim Brandt

Former Member
0 Kudos

you just need to enter event id and save configuration and test

Former Member
0 Kudos

I entered Event ID: ZSUBSTEP.

When testing I got the following errror message:

Method call failed; the method WIP_ZSUBSTEP_HDL of the class CL_PRS_ASSISTANCE does not exist

???

Thanks

Kim Brandt

Former Member
0 Kudos

is button have EVENT ACion Type is standard

Former Member
0 Kudos

Yes Event Action Type is Standard.

In meantime I have enhanced class CL_PRS_ASSISTANCE with the missing method and now I get no error message. Thus, can I call my substeb WDC view from within this method?

Thanks

Kim

Former Member
0 Kudos

you have to put your  logic in process_event in component controller for this event

Former Member
0 Kudos

Where do I find the component controller name for my Event?

Former Member
0 Kudos

UIBB  field with view and componnent name in configuration editor.

you can use this information

Former Member
0 Kudos

So, this is my Z-WDC, but how to catch my Z-Event ZSUBSTEP from the FPM configuration???

I not sure to do more coding in my Z_WDC.

At runtime I now coded the missing method WIP_ZSUBSTEP_HDL of the class CL_PRS_ASSISTANCE to raise my Event. But now i get a new error message:

Method call failed; the method WIP_FPM_CHANGE_STEP_HDL of the class CL_PRS_ASSISTANCE does not exist.

How to encode this method???

Thanks

Kim

Former Member
0 Kudos

There is no connection from my FPM z-button and to my s-wdc - only an Event name and Event ID is set.

So how to catch this Event raised by the button?

Former Member
0 Kudos

FPM Docu: 

Button choices: buttons which offer the user a dropdown menu with a list of further

options. You can define the individual menu options in a button-choice and attach

events to them. FPM provides no predefined events for these menu options but allows

you to attach your own events instead. To attach your own predefined event to a

button, enter a menu option name (Label) and the event ID.

When the menu option is selected during run-time, the FPM will call up the attached event.

The z-button is defined on the FPM menu.

I have defined the event for the conponent controller of my z-wdc substep screen and flagged it as interface.

I have defined an event handler method at  the conponent controller but it is not called at rumtime by FPM whne the z-button is pressed??

Thanks

Kim

Answers (1)

Answers (1)

Former Member
0 Kudos

Where is the button defined? In a UIBB?

Former Member
0 Kudos

The Button is defined in The enhanced PRS_GAF_COMP_CONF in step 2 WIP Selection.