cancel
Showing results for 
Search instead for 
Did you mean: 

Developing Web dynpro FPM application

Former Member
0 Kudos

Hi All

I need to implement "Exit" functionality in my component similar to the standard ESS components which uses IFPM interface.

1) I created a view

2) Added a button

3) On click of button i called a method say "<b>cancel</b>" of Component Cntroller

4) Added xssutils and xssfpm in used DCs

5) I have declared a variable <b>fpm</b> of type <b>IFPM</b>

6) The "cancel: method contains

fpm.navigate(wdThis.wdGetFcNavigationInterface().getNavigationTargetExitApplication());

When i deployed this application, it gives me

NullPointerException

at com.sap.pcuigp.xssutils.navi.FcNavigation.getNavigationTargetExitApplication

Please let me know where do i have to initialize the variable fpm ?

Does it get initialize on its own by the framework ?

Please help in solving the problem

Thanks in advance

Regards

Sonal Mangla

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

When you called the traget application in your application, in the ess application it will navigate to the home page screen, but that is declared in the ESS home page frame work in the backend ECC, under SPRO code.

Please find the process:

SPRO Tcode then - Click on SAP reference IMG then expand personal management then Employee self service - Genereal settings - Home page for selfservice - there you can find all this things,

you will find all the stuff here, when you implementing this in your application, you need to confire the link as service right?

you need to specify the target there it self, it will work fine,

Cheers,

Apparao

Former Member
0 Kudos

Hi,

In your interface controller./controllers. you will have function Init.. which has an argument fpm..

you have use this.fpm = function argument fpm inside this function.. (store the reference locally) and then work on it..

Regards

Bharathwaj,,.

Former Member
0 Kudos

Hi Bharathwaj,

Thanks for your response.

As per the standard components, there is a method called onInit() which does exactly what you have specified.

From where is the onInit() function of controller being called ?

Regards

Sonal

Former Member
0 Kudos

Hi ,

Yes . Thats the one.. What happens is , when you implement these interfaces of FPM in your component..

whenever you start your component.. its goes to FPM component .. xssfpm .. i guess.. this looks at ur app properties.. see what your Cc is .. what configuration is mentioned in your Cc and loads them appropriately.. for you to access the functions of fpm.. it gives you a handle of it thru the onInit method of the controllers..

Hope this answers solves your problem.

Do also go ERP - ECC 6.0 section in help.sap and search for Floor Plan manager for a better understanding.

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bharathwaj

In my component controller

1) I have created onInit() method.

public void onInit( com.sap.pcuigp.xssfpm.java.IFPM fpm )

{

//@@begin onInit()

this.fpm = fpm;

//@@end

}

2) Created a method Cancel() which is called on the click of button.

public void cancel( )

{

//@@begin cancel()

fpm.navigate(wdThis.wdGetFcNavigationInterface().getNavigationTargetExitApplication());

//@@end

}

It still giving NullPointerException.

Also i have put a debug message in onInit() method. But it is not getting printed. So i that means the method is not at all called.

Have i missed anything ? Please help.

Regards

Sonal

Message was edited by:

Sonal Mangla

Former Member
0 Kudos

Hi ,

have you declared the variable fpm inside

//@begin others

//@end

at the end of controller class..

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/42b70c8eba2a21e10000000a422035/frameset.htm">FPM variable declaration</a>

Are you running this application as an FPM app ?

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/3b6dd0af501bcce10000000a1553f7/frameset.htm">Making a WD application a self service app</a>

And go to used components and FcNavigation in the list ,

make the lifecycle manual..

and define component usage..

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/42b7eb8eba2a21e10000000a422035/frameset.htm">Sample for component usage definition</a>

Regards

Bharathwaj

Message was edited by:

Bharathwaj