cancel
Showing results for 
Search instead for 
Did you mean: 

FPM Example (SFlightExample)

Former Member
0 Kudos

Hi All,

I am doing FPM application, i followed the standard example in help.sap.com too.

Please suggest me, how to implement class SFlightConstants the names of the perspectives of the application SFlightExample and the name of the user defined event type USER_EVENT_DETAIL are defined.

Thanks

Karthi D.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sowmya

Thanks for your reply

Can provide me details for the below steps in the same example (http://help.sap.com/saphelp_erp2005/helpdata/en/43/3b8e8cb4ab1800e10000000a1553f6/frameset.htm)

3. Define two more member variables in the configuration component CcSFlight. One variable of type NavigationGraph stores the navigation graph of the application and one variable of type HashMap (Java standard class) stores a list of all known perspectives.

4. Declare the member variables for the Perspectives.

5. With the member variables of the configuration component defined, implement the method loadConfiguration(), which runs on startup of the application. The method performs the following actions:

¡ Initializes member variables (especially the VACs and the perspectives)

¡ Defines the navigation graph

¡ Creates a list of all perspectives.

The navigation paths and the navigation graph for the application contain five transitions between perspectives in the roadmap (see Specifying a Self-Service Application). In addition, you need one path to find the first perspective of the application.

Use the predefined event names of interface IFPM wherever possible. Only for the transition from perspective SELECT to perspective DETAIL should you use your own event name.

6. After defining the navigation graph, implement the two methods getStartPerspective() and getNextPerspective(). The purpose of these methods is to check the navigation graph of the application and return the required perspective to the FPM.

Thanks

Karthi D.

Former Member
0 Kudos

Declare private variables of type Hashmap and Navigation graph.

Declare private variables of type VAC(for all your VAC's),Perspective(for all your perspectives)and ROPstep(for all your perspectives.

In the loadconfiguration(..)

create all your Vac's.

vacSelect = new VAC( SFlightConstants.SFLIGHT_DC,

"com.sap.xss.fpm.sflight.example.vac.select.VcSFlightSelect" );

create all perspectives.

perSelect = new Perspective(

SFlightConstants.PERSPECTIVE_SELECT,

Perspective.LAYOUT_ROW,

new VAC[] { vacSelect, vacNavi } );

store all perspectives in hashmap.

allPerspectives = new HashMap();

allPerspectives.put(SFlightConstants.PERSPECTIVE_SELECT,

perSelect );

Define the Navigation Graph for all events.

sfGraph = new NavigationGraph(

new NavigationPath[] {

// EVENT_START

new NavigationPath( "", fpm.EVENT_START,

SFlightConstants.PERSPECTIVE_SELECT ),

Define Ropsteps.

ropDetail = new ROPStep( "1",

wdTextAccessor.getText(

SFlightConstants.PERSPECTIVE_DETAIL),

null );

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

create java clsss in src-->package folder.

File>New>other-->java ,a window will be opened.

browse your project folder,attach /src/packages to it ,

specify package(browse the package,attach .java) and class name.

add the following code in java class.

public class SFlightConstants {

public final static String SFLIGHT_DC =

"sap.com/fpmsflight"; //Dc name

// the Perspective names

public final static String PERSPECTIVE_SELECT = "SELECT";

public final static String PERSPECTIVE_DETAIL = "DETAIL";

public final static String PERSPECTIVE_REVIEW = "REVIEW";

public final static String PERSPECTIVE_CONFIRM = "CONFIRM";

// the user defined event types

public final static String USER_EVENT_DETAIL = "DETAIL";

}

you can utilise these constants directly in your components.

Regards

sowmya.

Former Member
0 Kudos

Hi,

You need to have SFlightConstants.java file in your local environment under the fpm project then you will be able to use these constants.

PradeepBondla
Active Contributor
0 Kudos