Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

No Variant is selected in FPM

$
0
0

Hi,

 

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

      EXPORTING

        iv_variant_id = lv_variant

      IMPORTING

        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

        EXPORTING

          iv_variant_id  = lv_variant

          iv_mainstep_id = lv_variant1.

 

    CALL METHOD io_gaf->enable_mainstep(

       exporting

          iv_variant_id  = lv_variant

          iv_mainstep_id = lv_variant1

          iv_enabled     =  abap_false  ).

 

 

 

    ENDIF.

*ENDLOOP.

******************************************************************

 

**************************************************

*  wd_this->io_gaf = io_gaf.

    IF sy-subrc EQ 0.

      lv_variant = wa_cfp-variant_name.

      CALL METHOD io_gaf->set_variant

        EXPORTING

          iv_variant_id = lv_variant."'ZHELV_ML_VARIANT' .

    ENDIF.

 

Regards,

Sadiq K


Viewing all articles
Browse latest Browse all 9159

Trending Articles