cancel
Showing results for 
Search instead for 
Did you mean: 

Set a Variant in FPM Configuration

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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` .

yesrajkumar
Active Participant
0 Kudos

Hello Anita,

You need to change the iview properties apart from creating the new Component and Application Configurations.

Go to the Content administration in the portal, select the iview which creates requisition, change the Application name as what you have created under WD component FPM_OIF_COMPONENT, Application parameters as "PARAM=CREATE" and configuration name as "Your newly created Application configuration". Perform the above steps and test the application.

Regards,

S.Rajkumar.

Former Member
0 Kudos

Hi Raj,

Thanks for your Reply.

I changed the PARAM to CREATE and test.

But there is no action is triggered when click the SAVE button. While debug i got the Failed value in the Raise event of Process_event method.

Regards,

Anita Vizhi Arasi B

Former Member
0 Kudos

Hallo Anita,

It is still puzzling me why set variant is not working. my questions are

1. During the FPM_START event which configuration is called ? does this configuration has the VARINAT_2 ?

You can use the method GET_VARIANTS to get the all the variants of this configuration. loop through the variant and find out if it has VARIANT_2. and then call the set_variant method.

yesrajkumar
Active Participant
0 Kudos

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.

Answers (1)

Answers (1)

0 Kudos

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