cancel
Showing results for 
Search instead for 
Did you mean: 

Messages in FPM

Former Member
0 Kudos

Hi,

I am enhancing std wd component which is using FPM .

My Req is : I have to put a field by name HOURS on a view and check the no the of hours to be less than 12 .

If the no.of hours exceeds 12, I have to raise error message .

I have raised error message in WDDOBEFOREACTION and its working also.

Now the question is : When ever I raise error message , the ramaining mothods of std component are executed and the data is saved as per standard code. Here what I want is, whenever the message is raised,the std component process should be stooped and then whenever the user enters less than 12 hours,then the data should be saved.

Plz let me know how to stop the process of saving whever error msg is raised?

Thanks,

Ganga

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You have changed the webdynpro component, which would not stop the FPM phase model when error occurs. As already suggested move your check to the process_event method and return ev_result as failed. This will do the trick.

Former Member
0 Kudos

Hi,

As the application is FPM driven component, I think you need to handle the validation of the UIBB and the message raising in the process_event of the FPM.

PROCESS_EVENT Implementation of your UIBB.

IF io_event->mv_event_is_validating = abap_true.
Do local checks and report messages if needed
ENDIF
CASE io_event->mv_event_id.
WHEN XYZ
Handle event and fill EV_RETURN accordingly with a value from IF_FPM_CONSTANTS~GC_EVENT_RESULT
ENDCASE.

Thanks,

Shailaja Ainala.