Skip to Content

No Variant is selected in FPM


I am just getting Dump as NO VARIANT IS SELECTED and my code is and Please resolve this Problem.

lv_variant = wa_cfp-variant_name.

CALL METHOD io_gaf->get_mainsteps


iv_variant_id = lv_variant


et_mainstep = t_mainstep.

*loop at t_mainstep into wa_mainstep.

* lv_variant = wa_mainstep-id

* if lv_variant1 = 'dependent'.

READ TABLE t_mainstep INTO wa_mainstep INDEX 2.

IF sy-subrc EQ 0.

lv_variant1 = wa_mainstep-id.

CALL METHOD io_gaf->hide_mainstep


iv_variant_id = lv_variant

iv_mainstep_id = lv_variant1.

CALL METHOD io_gaf->enable_mainstep(


iv_variant_id = lv_variant

iv_mainstep_id = lv_variant1

iv_enabled = abap_false ).





* wd_this->io_gaf = io_gaf.

IF sy-subrc EQ 0.

lv_variant = wa_cfp-variant_name.

CALL METHOD io_gaf->set_variant


iv_variant_id = lv_variant."'ZHELV_ML_VARIANT' .



Sadiq K

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 07, 2014 at 09:25 AM

    Hello Sadiq,

    it seems that you mix up variant and mainstep-ID, e.g. lv_variant1 = wa_mainstep-id......

    Please check whether the variant you use also exist within your floorplan configuration.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.