Skip to Content
author's profile photo Former Member
Former Member

Set a Variant in FPM Configuration

Dear Experts,

We are facing problem while configuring the variant_2 in FPM.

In Component configuration we create a Variant_1 & Variant_2. Variant_1 calls the standard Requisition screen. The variant_2 has to call our customized configuration.

In Override_event_oif method of component controler we added the code to set the varaint_2 based on the role. In Set_variant method of class CL_FPM_OIF we get the dump. And that shows "variant_2 doesnot exist".

The following error text was processed in the system SED : Variant VARIANT_2 does not exist

The error occurred on the application server EQEREDEV_SED_00 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: IF_FPM_OIF~SET_VARIANT of program CL_FPM_OIF====================CP

Method: PSTD8XCO8MBR6PMVM0GWSS95DYIQ of program /1BCWDY/8NPG7QYS0H52C1JQ3AP6==CP

Method: IWCI_IF_FPM_OIF_CONF_EXIT~OVERRIDE_EVENT_OIF of program /1BCWDY/8NPG7QYS0H52C1JQ3AP6==CP

Method: GET_UIBBS_FOR_EVENT of program /1BCWDY/8NPG6W1DC1UPCMIB0G1S==CP

Method: IWCI_IF_FPM_FLOORPLAN_COMP~GET_UIBBS_FOR_EVENT of program /1BCWDY/8NPG6W1DC1UPCMIB0G1S==CP

Method: IF_FPM_FLOORPLAN~GET_UIBBS_FOR_EVENT of program CL_FPM_OIF_INTERNAL===========CP

Method: GET_NEXT_UIBBS of program CL_FPM========================CP

Method: PROCESS_EVENT of program CL_FPM========================CP

Method: RUN_EVENT_LOOP of program CL_FPM========================CP

Method: IF_FPM~RAISE_EVENT of program CL_FPM========================CP

Whether it needs any configuration of variant? Can anyone give the suggestion regard this?

Thanks in advance,

Anita Vizhi Arasi B

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 07:44 AM

    HAllo Anita,

    Please check if you have not misspelled the variant id. Remember to supply the variant id and not the variant name.

    Check the variant parameters for the correct variant id. for example `VARIANT_1` OR `VARIANT_2` .

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Anita,

      As i can see you are trying to set the variant in the method(post) OVERRIDE_EVENT_OIF of the interface IF_FPM_OIF_CONF_EXIT.

      Try to add the following sample code in the same place and check for the variant display.

      if sy-uname eq 'raj'.

      wd_this->io_oif->set_variant( 'VARIANT_1' ).

      else.

      wd_this->io_oif->set_variant( 'VARIANT_2' ).

      endif.

      Thanks,

      S.Rajkumar.

  • Posted on Oct 12, 2010 at 02:40 AM

    HI,

    I was able to set a different Variant for Lean Order ( Sales ) using BADI BADI_SLS_LO_OIF_FPM_VARIANT ( ES_BADI_SLS_LO_OIF ). May be you can check , if there is any BADI

    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.