Skip to Content
avatar image
Former Member

How to Set a Variant in Web dynpro using FPM

Dear Experts,

I have created two variants in my FPM Configuration.

I need to set default the variant in my Web Dynpro Component based on some condition.

I have used the Implemented interface IF_FPM_GAF_CONF_EXIT to get the method OVERRIDE_EVENT_GAF which has a functionality to set the Default Variant ( set variant ,method ).

But this event is not getting triggered when the Web dynpro Component is getting initiated.

Kindly give some suggestion where can i set the Variant in the Web dynpro Component during the initialization itself.


Nalla B.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 24, 2013 at 10:25 AM
    Add comment
    10|10000 characters needed characters exceeded

    • HI Nalla,

      Once you create a new variant, create a implicit enhancement at beginning  in method OVERRIDE_EVENT_START of class /SAPSRM/CL_FPM_OVRIDE_HDLR

      use the below code

      mo_fpm->mo_app_parameter->set_value( EXPORTING iv_key   = 'SAPSRM_VARIANT_ID'

                                                          iv_value = 'Your variant' )