on 10-02-2010 12:35 PM
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
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` .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.