cancel
Showing results for 
Search instead for 
Did you mean: 

Adding GAF sub-step event data error

Former Member
0 Kudos

Hi, this is my first try in creating a GAF FPM application. I followed the steps in the eLearning Tutorials - Floorplan Manager for Web Dynpro ABAP (FPM_Tutorial_GAF_T2.zip) and when I get to the wirting of the method "on_user_details_show" (minute 1 in tutorial) I get this error when i check the code :

"

Field "CL_FPM_EVENT" is unknown. It is neither in one of the specified

tables nor defined by a "DATA" statement. "DATA" statement.
"

this is what i wrote:

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

CREATE_BY_ID is a static method and hence you shall call it like this.

LR_EVENT = CL_FPM_EVENT=>CREATE_BY_ID( ... parameters .. ).

Replace -> with =>. Your error will get resolved.

Thanks,

Khushboo.

Former Member
0 Kudos

Yes! That's it! Thanks a lot. Foolish of me not to notice.

There is one last thing though now. It says: "Field "FPM" is unknown. It is neither in one of the specified tables.. " .

Former Member
0 Kudos

This error would be because you would not have declared and initialized the GAF FPM instance.

Follow the steps.

1. Go to Attributes tab of the view.

2. Declare an attribute 'FPM' of type ref to IF_FPM ( Remember to mark the TYPE REF TO check box )

3. Write the following code in WDDOINIT method of the view  

  wd_this->fpm = cl_fpm_factory=>get_instance( ).

Cheers.

Former Member
0 Kudos

Thank you very much. You were really helpfull.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Andu,

I haven`t watched tutorial yet and I am not 100% sure. I guess, you need to handle events in method "PROCESS_EVENT" in Component controller - it contains already a reference for events.

Cheers

Dieter