cancel
Showing results for 
Search instead for 
Did you mean: 

FPM event Handling

Former Member
0 Kudos

Hi everyone,


I've created a Log on screen in a webdynpro component and integrated that into FPM (GAF Component) as a main step 1. Now I need to validate the screen if the details entered are valid it should move to the next GUIBB that is, next main step 2.


In the log on screen I've written the code for validation at the web dynpro component level. if the details are valid how can trigger the main step 2 ( i.e Next GUIBB ) from the web dynpro component level.


Please Suggest me.


Thank you


Regards,

Nagendra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

on click of Next button, it navigates from Step-1 to Step-2. In step-1, you need to validate the fields and if any error occurs,stop the navigation while raising the error message.

You can stop the navigation by setting "cancel_navigation=abap_true" .

Thanks

KH

Former Member
0 Kudos

Hi KH,

Thanks for your reply, But my requirement is not about handling the fpm standard buttons, the buttons present at the wd component level you can see the screen shot below,

Former Member
0 Kudos

Hi,

On click of SIGN IN button, just raise this below event shown in code and check.


cl_fpm_factory=>get_instance( )->raise_event_by_id(

  EXPORTING

    iv_event_id   = 'FPM_NEXT_STEP'    " This defines the ID of the FPM Event



).

Thanks

KH

ulrich_miller
Active Participant
0 Kudos

Hi Nagendra,
in this case you have to raise the fpm event IF_FPM_CONSTANTS=>GC_EVENT- next_step.

Kind regards,

Ulrich

Former Member
0 Kudos

Hi,

You can try raising fpm event for the next step.

DATA: lo_fpm TYPE REF TO if_fpm.

lo_fpm = cl_fpm_factory=>get_instance( ).

CALL METHOD LO_FPM->RAISE_EVENT_BY_ID( 'FPM_NEXT_STEP' ).

The above code will raise the next step event, so automatically next step will be enabled.

Former Member
0 Kudos

Hi thank you every one for the reply It worked :-).

How can we stop the navigation if the user details are invalid.

regards,

Nagendra.

Former Member
0 Kudos

Hi,

pls close the thread if your issue is resolved.

Check if it has any errors. If in case of any errors, just stop the navigation.Else, raise the event.

Hope this helps you.

Thanks

KH

Answers (1)

Answers (1)

Former Member
0 Kudos

Anybody ????