You are on page 1of 44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


Getting Started New sletters Store

Welcome, Guest

Login

Register

Search the Community

Products Industries Lines of Business

Services & Support Training & Education University Alliances

About SCN Partnership Events & Webinars

Downloads Developer Center Innovation


Activity Brow se Communications Actions

4 Replies Latest reply: Jun 20, 2013 7:43 AM by Manishekhar Singh

Share

Tw eet

Like

Pappu Mehta

Nov 18, 2011 9:39 AM

Create Wire Model in webdynpro FPM.


This question has been Answered. Hi Friends, Please , Help Me How to create Wire Model by Webdynpro FPM. Please Give me Step by Step process. i have done Form, list, search and Tree but i am not geting how to do Wire Model. So Please Give me Step by step Review to create Wire Model with FPM. it's Urgent.

Thanks. Pappu Mehta Edited by: Pappu Kumar Mehta on Nov 18, 2011 3:38 AM

Correct Answer by Manishekhar Singh on Nov 26, 2012 7:48 AM

Wire Model
The wire model can be used to create running FPM application by pure configuration or at least with minimal coding effort. The runtime interdependencies between UIBBs are defined by configuration entities called wires which are based on reusable connector classes implementing the dependency semantics. The primary use cases for the wire model are object models with generic access interfaces (for example, ESF, BOPF, or BOL). A wire controls the runtime interdependencies between two UIBBs; that is, they determine the data content of the target UIBB depending on user interaction changing the outport of the source UIBB. Outports can be of type lead selection, selection or collection. For example, the execution of a search on a Search GUIBB will change its collection outport and may therefore change the data content of a result list displayed in a separate List GUIBB. Similarly, changing the lead selection in a list of sales orders may change the data content of another list displaying the associated sales order items. In order to be part of a wire model, a UIBB needs to implement a certain Web Dynpro interface which in turn provides a feeder model implementation. The FPM GUIBBs are automatically integrated if their feeder classes implement the feeder model interface. Application areas or object models define their own namespaces for which their connector classes, feeder model classes can be reused. Moreover, they typically need to provide a transaction handler class which manages transaction events like save, modify
scn.sap.com/message/10768608#10768608 1/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

or check and global message handling. Wires are defined on the level of the floorplan configuration. For each model UIBB contained in the floorplan configuration, a source UIBB with specified outport can be defined. Furthermore, a connector class and, potentially, connector parameters must be maintained. If the floorplan contains composite components (tabbed components), the model UIBBs contained in the tabbed components can also be wired. However, in order to provide better reusability of composite components, it is also possible to define intrinsic wiring for tabbed components. A tabbed component can define a model UIBB as a wire plug (this is usually a master UIBB), which serves as an entry point for the wiring of the tabbed component from the enveloping floorplan component. If a wire plug is configured for a tabbed UIBB, only the wire plug UIBB can be wired from outside.

Transaction Handler class


The transaction interface provides methods for handling global and transactional events. In the FPM configuration editor, one transaction handler implementation can be assigned on the level of the wire model. However, it is not mandatory to specify. But it can be used for wring some specific logic for Application level events. Interface IF_FPM_WIRE_MODEL_TRANSACTION is implemented for creating transaction handle class.

Method
START

Method description
It is called at the starting of FPM application. It provides 3 things FPM Massage manger instance, Property bag of FPM Application, and Runtime information of FPM. Here, we can also specify application commit capability.

AFTER_FLUSH

This method is called after FLUSH has been called for all current UIBBs. It can be used to flush buffers.

AFTER_PROCESS_EVENT

This method is called after PROCESS_EVENT has been called for all current UIBBs. It can be used for handling transactional events for example SAVE or CHECK. Moreover, it can be used to collect messages which here not handled inside UIBBs and to forward them to the FPM message handler.

AFTER_PROCESS_BEFORE_OUTPUT

This method is called after PBO has been called for all current UIBBs. It can be used to collect messages at the latest possible point in time before screen output.

AFTER_NEEDS_CONFIRMATION

This

method

is

called

after

NEEDS_CONFIRMATION has been called for all UIBBs. It can be used to analyze and add confirmation requests. IS_DIRTY This method can be used to indicate a dirty state for the work protection mode.

Connector Class
scn.sap.com/message/10768608#10768608 2/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

The IF_FPM_CONNECTOR connector interface comprises an interface, IF_FPM_CONNECTOR_DEF, defining the access by the FPM framework and an interface IF_FPM_CONNECTOR_RUN for runtime access by the application feeder model. The definition interface possesses a static attribute, SV_NAMESPACE, which should be filled with the namespace (ex. FPM_DEMO or BOL or user specific) in the class constructor of a connector implementation (for example in a common superclass). Method for IF_FPM_CONNECTOR_DEF

Method
GET_PARAMETER_LIST

Method description
Connector classes can be parameterized to flexibly control their runtime behavior. The parameter values are maintained for the wires in the FPM configuration editor. A parameter is defined by a name, its data type and a descriptive text.

INITIALIZE

With this method the connector is initialized with the parameter values. This method is called by the FPM runtime upon UIBB instantiation.

GET_PARAMETER_VALUE_SET

With this method, a connector implementation can provide a value set for each parameter. For example, in an object model a parameter may carry the association name. For a wire between specified UIBBs, the method may provide a list of all associations between the source and target business object node.

SET_INPUT

Receives an object reference carrying the actual data of the connected outport. This method is called before the UIBB s PBO by the FPM runtime.

Method for IF_FPM_CONNECTOR_RUN

Method
GET_OUTPUT

Method description
Returns an object reference carrying the actual data to be displayed by a UIBB. This method can be called by the UIBB at PBO for example in the GET_DATA method of a feeder class.

IS_CREATE_ALLOWED

Returns a Boolean indicator whether entity creation is allowed. This method can be called by the UIBB at PBO to dynamically control the activation of create buttons for example to maintain the action usage parameter in the GET_DATA method of a feeder class.

CREATE_ENTITY

Creates and returns a data entity which can be arbitrarily typed. This method can be called by an action handler of the UIBB for example in the PROCESS_EVENT method of a feeder class.

There are total seven methods in connector interface IF_FPM_CONNECTOR that should be implemented in connector class. We should also create class constructor for setting Namespace. SET_OUTPUT and GET_OUTPUT is bridge between FPM components, so these methods should be implemented properly.
scn.sap.com/message/10768608#10768608 3/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

Wire for Free UIBBs


Wire model is implemented on Web Dynpro component by implementing IF_FPM_UIBB_MODEL Web Dynpro interface. It contains only one method GET_MODEL_API which is used to set FPM Feeder Model for Free GUIBBs. It contains only one parameter RO_FEEDER_MODEL. So, we have to create a FPM Feeder Model class and assign to that parameter. FPM Feeder Model Class Interface IF_FPM_FEEDER_MODEL is implemented for creating Feeder Model Class. Method for IF_FPM_ FEEDER_MODEL

Method
GET_NAMESPACE SET_CONNECTOR

Method description
Returns the namespace of the underlying application area. Method is called at design time. Called upon instantiation of a UIBB. It hands over the connector (reference IF_FPM_CONNECTOR_RUN) which accessed for data retrieval at PBO. can to be

GET_INPORT_KEY

Returns a reference to an object key which characterizes the meta data type expected at the import (for example the business object node). Method is called at design time. Provides a table of outports comprising the object key, the port type an identifier and a descriptive text. Method is called at design time. Returns an object reference carrying the actual data identifier for a certain port. Method is called at runtime.

GET_OUTPORTS

GET_OUTPORT_DATA

Assistance class can also be used as Feeder Model Class and reference WD_ASSIT can used as Feeder model instance. Ex: M E T H O Dg e t _ m o d e l _ a p i.
r o _ f e e d e r _ m o d e l=w d _ a s s i s t . E N D M E T H O D .

Wire for GUIBBs


Nothing special we need to do that. Interface IF_FPM_FEEDER_MODEL is also implemented on feeder class for getting port support. We need to set port manually using structure IF_FPM_FEEDER_MODEL=>CS_PORT_TYPE. It contains three constants COLLECTION, SELECTION LEAD_SELECTION. It should be properly configured. and

Source Codes: Code for Transaction handler class:


c l a s sZ C L _ M Y _ T R A N _ H A N D L E Rd e f i n i t i o n p u b l i c c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ M Y _ T R A N _ H A N D L E R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ M Y _ T R A N _ H A N D L E R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ M Y _ T R A N _ H A N D L E R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ M S G _ M A Nt y p er e ft oI F _ F P M _ M E S S A G E _ M A N A G E R.

scn.sap.com/message/10768608#10768608

4/44

12/9/13
E N D C L A S S .

Create Wire Model in webdynpro FPM. | SCN

C L A S SZ C L _ M Y _ T R A N _ H A N D L E RI M P L E M E N T A T I O N .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ F L U S H * + + * + < / S I G N A T U R E > m e t h o dI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ F L U S H . r e t u r n . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ N E E D S _ C O N F I R M A T I O N * + + *|[ > ] I O _ E V E N T C L _ F P M _ E V E N T *|[ > ]I T _ U I B B S F P M _ T _ U I B B _ C O M P O N E N T S * | [ < > ] C T _ C O N F I R M A T I O N _ R E Q U E S T S F P M _ T _ C O N F I R M A T I O N _ R E Q U E S T S T Y P ER E FT O T Y P E T Y P E

* + < / S I G N A T U R E > M E T H O D i f _ f p m _ w i r e _ m o d e l _ t r a n s a c t i o n ~ a f t e r _ n e e d s _ c o n f i r m a t i o n . * -w h i c he v e n t C A S Ei o _ e v e n t > m v _ e v e n t _ i d . * -s t a r to v e r W H E Ni f _ f p m _ c o n s t a n t s = > g c _ e v e n t s t a r t _ o v e r . * -r a i s ec o n f i r m a t i o nr e q u e s ti fs t a t ei sd i r t y C H E C K i f _ f p m _ w i r e _ m o d e l _ t r a n s a c t i o n ~ i s _ d i r t y ( ) = a b a p _ t r u e . A P P E N D c l _ f p m _ c o n f i r m a t i o n _ r e q u e s t = > g o _ d a t a _ l o s s T O c t _ c o n f i r m a t i o n _ r e q u e s t s . E N D C A S E . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ B E F O R E _ O U T P U T * + + * + < / S I G N A T U R E > m e t h o d I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ B E F O R E _ O U T P U T . R E T U R N . e n d m e t h o d .

* < S I G N A T U R E > +

scn.sap.com/message/10768608#10768608

5/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


* | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ E V E N T * + + *|[ > ] I O _ E V E N T C L _ F P M _ E V E N T *|[ < ( ) ]R V _ R E S U L T F P M _ E V E N T _ R E S U L T T Y P ER E FT O T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ E V E N T . C A S Ei o _ e v e n t > m v _ e v e n t _ i d . W H E N' ' . W H E N' ' . W H E NO T H E R S . E N D C A S E . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ I S _ D I R T Y * + + *|[ < ( ) ]R V _ I S _ D I R T Y B O O L E _ D T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ w i r e _ m o d e l _ t r a n s a c t i o n ~ i s _ d i r t y . r v _ i s _ d i r t y = c l _ f p m _ w i r e _ m o d e l _ c o l _ f a c t o r y = > w o r k _ p r o t e c t i o n _ i s _ d i r t y () . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ S T A R T Z C L _ M Y _ T R A N _ H A N D L E R -

* + + * | [ > ] I O _ M E S S A G E _ M A N A G E R I F _ F P M _ M E S S A G E _ M A N A G E R * | [ > ] I O _ A P P _ P A R A M E T E R I F _ F P M _ P A R A M E T E R *| [ > ]I S _ R U N T I M E _ I N F O F P M _ S _ R U N T I M E _ I N F O * | [ < ] E V _ A L L O W _ F P M _ C O M M I T B O O L E _ D T Y P E R E F T O T Y P E R E F T O T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ S T A R T . m o _ m s g _ m a n=i o _ m e s s a g e _ m a n a g e r . e v _ a l l o w _ f p m _ c o m m i t=a b a p _ f a l s e . e n d m e t h o d . E N D C L A S S .

Code for Connector Class:


c l a s sZ C L _ M Y _ W I R E _ C O N N E C T O Rd e f i n i t i o n p u b l i c c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ M Y _ W I R E _ C O N N E C T O R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ C O N N E C T O R.

scn.sap.com/message/10768608#10768608

6/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


i n t e r f a c e sI F _ F P M _ C O N N E C T O R _ D E F. i n t e r f a c e sI F _ F P M _ C O N N E C T O R _ R U N. c l a s s m e t h o d sC L A S S _ C O N S T R U C T O R. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ M Y _ W I R E _ C O N N E C T O R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ C O L L E C T I O Nt y p er e ft oZ C L _ C O L L E C T I O N _ S U P P O R T. d a t aM V _ P O R T _ T Y P Et y p eF P M _ M O D E L _ P O R T _ T Y P E. p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ M Y _ W I R E _ C O N N E C T O R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! E N D C L A S S .

C L A S SZ C L _ M Y _ W I R E _ C O N N E C T O RI M P L E M E N T A T I O N .

* < S I G N A T U R E > + * | S t a t i c P u b l i c Z C L _ M Y _ W I R E _ C O N N E C T O R = > C L A S S _ C O N S T R U C T O R M e t h o d

* + + * + < / S I G N A T U R E > m e t h o dC L A S S _ C O N S T R U C T O R . i f _ f p m _ c o n n e c t o r ~ s v _ n a m e s p a c e=' F P M _ D E M O ' ." _ B Y _ S I M I ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ W I R E _ C O N N E C T O R > I F _ F P M _ C O N N E C T O R _ D E F ~ G E T _ P A R A M E T E R _ L I S T * + + *|[ < ] E T _ P A R A M E T E R F P M _ T _ P A R A M E T E R _ D E F T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ C O N N E C T O R _ D E F ~ G E T _ P A R A M E T E R _ L I S T . * -n op a r a m e t e r s R E T U R N . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ W I R E _ C O N N E C T O R > I F _ F P M _ C O N N E C T O R _ D E F ~ G E T _ P A R A M E T E R _ V A L U E _ S E T * + + * |[ > ] I V _ P A R A M E T E R _ N A M E F P M _ P A R A M E T E R _ N A M E *|[ > ]I R _ O B J E C T _ K E Y _ S O U R C E *|[ > ]I R _ O B J E C T _ K E Y _ T A R G E T *|[ < ] E T _ V A L U E _ S E T F P M _ T _ P A R A M E T E R _ V A L U E _ S E T T Y P E T Y P ER E FT OD A T A T Y P ER E FT OD A T A T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ d e f ~ g e t _ p a r a m e t e r _ v a l u e _ s e t . * -n op a r a m e t e r s R E T U R N . E N D M E T H O D .

scn.sap.com/message/10768608#10768608

7/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ D E F ~ I N I T I A L I Z E Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + * | [ > ]I T _ P A R A M E T E R _ V A L U E F P M _ T _ P A R A M E T E R _ V A L U E *|[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ C O N N E C T O R _ D E F ~ I N I T I A L I Z E . m v _ p o r t _ t y p e=i v _ p o r t _ t y p e . i f _ f p m _ c o n n e c t o r _ d e f ~ m v _ w i r e _ l a b e l=' M yI d e n t i t y ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ D E F ~ S E T _ I N P U T Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + *|[ > ]I O _ I N P U T T Y P ER E FT OO B J E C T * + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ d e f ~ s e t _ i n p u t . m o _ c o l l e c t i o n? =i o _ i n p u t . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ R U N ~ C R E A T E _ E N T I T Y Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + *| [ > ]I _ I N I T I A L _ D A T A A N Y ( o p t i o n a l ) *|[ < ( ) ]R O _ R E S U L T T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ r u n ~ c r e a t e _ e n t i t y . * -n oc r e a t i o n R E T U R N . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ R U N ~ G E T _ O U T P U T Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + *| [ > ]I _ F I L T E R _ D A T A A N Y ( o p t i o n a l ) *|[ < ( ) ]R O _ O U T P U T T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ r u n ~ g e t _ o u t p u t . r o _ o u t p u t=m o _ c o l l e c t i o n . E N D M E T H O D .

scn.sap.com/message/10768608#10768608

8/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ W I R E _ C O N N E C T O R > I F _ F P M _ C O N N E C T O R _ R U N ~ I S _ C R E A T E _ A L L O W E D * + + *| [ > ]I _ I N I T I A L _ D A T A A N Y ( o p t i o n a l ) *|[ < ( ) ]R V _ A L L O W E D A B A P _ B O O L T Y P E T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ r u n ~ i s _ c r e a t e _ a l l o w e d . * * -n oc r e a t i o na l l o w e d * r v _ a l l o w e d=a b a p _ f a l s e . E N D M E T H O D . E N D C L A S S .

Code for Feeder Class (List GUIBB):


c l a s sZ C L _ G U I B B _ L I S Td e f i n i t i o n p u b l i c f i n a l c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ G U I B B _ L I S T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ G U I B B. i n t e r f a c e sI F _ F P M _ G U I B B _ L I S T. i n t e r f a c e sI F _ F P M _ F E E D E R _ M O D E L. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ G U I B B _ L I S T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ C O N N E C T O Rt y p er e ft oI F _ F P M _ C O N N E C T O R _ R U N. d a t aM O _ C O L L E C T I O Nt y p er e ft oZ C L _ C O L L E C T I O N _ S U P P O R T. d a t a : m s _ o b j e c t _ k e yT Y P EcL E N G T H1v a l u e' A ' ." # E CN O T E X T. i n t e r f a c eI F _ F P M _ F E E D E R _ M O D E Ll o a d. d a t aM T _ O U T P O R Tt y p eI F _ F P M _ F E E D E R _ M O D E L = > T Y _ T _ P O R T. d a t aM V _ P O R T _ D E S C R I P T I O Nt y p eF P M _ M O D E L _ P O R T _ D E S C R I P T I O N. m e t h o d sS E T _ U P _ P O R T S. m e t h o d sS E T _ U P _ P O R T i m p o r t i n g ! I V _ P O R T _ T Y P Et y p eF P M _ M O D E L _ P O R T _ T Y P E. p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ G U I B B _ L I S T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! t y p e s : B E G I NO Fs d i s p l a y , u s e r i d T Y P Ez d e _ u s e r i d , p a s s w o r d T Y P Ez d e _ p a s s , n a m e T Y P Ez d e _ e m p n a m e , r o l e T Y P Ez d e _ r o l e , d o b T Y P Ez d e _ d o b , d o j T Y P Ez d e _ d o j , g e n d e r T Y P Ez d e _ g e n d e r , a d d r e s s T Y P Ez d e _ e m p a d d r e s s , p h o n e T Y P Ez d e _ p h o n e n o , m a n a g e r i dT Y P Ez d e _ m a n a g e r i d , r a t i n g T Y P Ez d e _ r a t i n g , E N DO Fs d i s p l a y. t y p e s : t d i s p l a yT Y P ET A B L EO Fs d i s p l a y.

scn.sap.com/message/10768608#10768608

9/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


d a t aM S _ D I S P L A Yt y p eS D I S P L A Y. d a t aM T _ D I S P L A Yt y p eT D I S P L A Y. d a t aM S _ C H A N G Et y p eF P M G B _ S _ C H A N G E L O G. d a t aM T _ C H A N G Et y p eF P M G B _ T _ C H A N G E L O G. d a t aF L A Gt y p eB O O L E A Nv a l u e' X ' ." # E CN O T E X T. m e t h o d sG E T _ C O L L E C T I O N. E N D C L A S S .

C L A S SZ C L _ G U I B B _ L I S TI M P L E M E N T A T I O N .

* < S I G N A T U R E > + *|I n s t a n c eP r i v a t eM e t h o dZ C L _ G U I B B _ L I S T > G E T _ C O L L E C T I O N * + + * + < / S I G N A T U R E > M E T H O Dg e t _ c o l l e c t i o n . I Fm o _ c o n n e c t o rI SB O U N D . m o _ c o l l e c t i o n? =m o _ c o n n e c t o r > g e t _ o u t p u t () . E N D I F . I Fm o _ c o l l e c t i o nI SB O U N D . I Fm o _ c o l l e c t i o n > m v _ l e a d _ s e l e c t i o n _ i n d e xI SI N I T I A L . m o _ c o l l e c t i o n > s e t _ l e a d _ s e l e c t i o n _ i n d e x (1) . E N D I F . E N D I F . *I n i n t i a lt i m e I Fm o _ c o l l e c t i o nI SI N I T I A L . C R E A T EO B J E C Tm o _ c o l l e c t i o n . m o _ c o l l e c t i o n > s e t _ l e a d _ s e l e c t i o n _ i n d e x (1) . E N D I F . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ I N P O R T _ K E Y Z C L _ G U I B B _ L I S T -

* + + *|[ < ( ) ]R R _ O B J E C T _ K E Y T Y P ER E FT OD A T A * + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ I N P O R T _ K E Y . F I E L D S Y M B O L S : < l s _ o b j e c t _ k e y >L I K Em s _ o b j e c t _ k e y .

C R E A T ED A T Ar r _ o b j e c t _ k e yL I K Em s _ o b j e c t _ k e y . A S S I G Nr r _ o b j e c t _ k e y > *T O< l s _ o b j e c t _ k e y > . < l s _ o b j e c t _ k e y >=m s _ o b j e c t _ k e y . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E Z C L _ G U I B B _ L I S T -

* + +

scn.sap.com/message/10768608#10768608

10/44

12/9/13
*|[ < ( ) ] R V _ N A M E S P A C E F P M _ M O D E L _ N A M E S P A C E

Create Wire Model in webdynpro FPM. | SCN


T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E . r v _ n a m e s p a c e=' F P M _ D E M O ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T S Z C L _ G U I B B _ L I S T -

* + + *|[ < ]E T _ O U T P O R T T Y _ T _ P O R T T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T S . e t _ o u t p o r t=m t _ o u t p o r t . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T _ D A T A Z C L _ G U I B B _ L I S T -

* + + *|[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E * | [ > ]I V _ P O R T _ I D E N T I F I E R F P M _ M O D E L _ P O R T _ I D E N T I F I E R *|[ < ( ) ]R O _ D A T A T Y P E T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T _ D A T A . r o _ d a t a=m o _ c o l l e c t i o n . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ S E T _ C O N N E C T O R Z C L _ G U I B B _ L I S T -

* + + * |[ > ] I O _ C O N N E C T O R I F _ F P M _ C O N N E C T O R _ R U N T Y P ER E F T O

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ S E T _ C O N N E C T O R . m o _ c o n n e c t o r=i o _ c o n n e c t o r . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ C H E C K _ C O N F I G M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ > ] I O _ L A Y O U T _ C O N F I G I F _ F P M _ G U I B B _ L I S T _ C O N F I G *|[ < ]E T _ M E S S A G E S F P M G B _ T _ M E S S A G E S T Y P E R E F T O T Y P E

scn.sap.com/message/10768608#10768608

11/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ C H E C K _ C O N F I G . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ F L U S H M e t h o d Z C L _ G U I B B _ L I S T -

* + + *| [ > ]I T _ C H A N G E _ L O G F P M G B _ T _ C H A N G E L O G *|[ > ]I T _ D A T A *| [ > ]I V _ O L D _ L E A D _ S E L I ( o p t i o n a l ) *| [ > ]I V _ N E W _ L E A D _ S E L I ( o p t i o n a l ) T Y P E T Y P ER E FT OD A T A T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ F L U S H . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ G E T _ D A T A M e t h o d Z C L _ G U I B B _ L I S T -

* + + *| [ > ]I V _ E V E N T I D C L _ F P M _ E V E N T * | [ > ]I T _ S E L E C T E D _ F I E L D S F P M G B _ T _ S E L E C T E D _ F I E L D S ( o p t i o n a l ) * | [ > ] I V _ R A I S E D _ B Y _ O W N _ U I B O O L E _ D ( o p t i o n a l ) *| [ > ]I V _ V I S I B L E _ R O W S I ( o p t i o n a l ) *|[ < ]E T _ M E S S A G E S F P M G B _ T _ M E S S A G E S *| [ < ]E V _ D A T A _ C H A N G E D B O O L E _ D * | [ < ] E V _ F I E L D _ U S A G E _ C H A N G E D B O O L E _ D * | [ < ] E V _ A C T I O N _ U S A G E _ C H A N G E D B O O L E _ D * | [ < ] E V _ S E L E C T E D _ L I N E S _ C H A N G E D B O O L E _ D *|[ < > ]C T _ D A T A *| [ < > ]C T _ F I E L D _ U S A G E F P M G B _ T _ F I E L D U S A G E *| [ < > ]C T _ A C T I O N _ U S A G E F P M G B _ T _ A C T I O N U S A G E * |[ < > ] C T _ S E L E C T E D _ L I N E S R S T A B I X T A B *| [ < > ]C V _ L E A D _ I N D E X S Y T A B I X *|[ < > ]C V _ F I R S T _ V I S I B L E _ R O W T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E I T Y P E R E FT O T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E D A T A

* + < / S I G N A T U R E > M E T H O DI F _ F P M _ G U I B B _ L I S T ~ G E T _ D A T A . D A T A :l v _ s e l _ i n d e x T Y P Ei , l v _ c o l T Y P Es t r i n g . * -g e td a t a g e t _ c o l l e c t i o n () .

scn.sap.com/message/10768608#10768608

12/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


c t _ d a t a=m o _ c o l l e c t i o n > g e t _ t a b l e () . e v _ d a t a _ c h a n g e d=a b a p _ t r u e . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F A U L T _ C O N F I G Z C L _ G U I B B _ L I S T -

* + + * | [ > ] I O _ L A Y O U T _ C O N F I G I F _ F P M _ G U I B B _ L I S T _ C O N F I G T Y P E R E F T O

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F A U L T _ C O N F I G . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F I N I T I O N Z C L _ G U I B B _ L I S T -

* + + * | [ < ] E O _ F I E L D _ C A T A L O G C L _ A B A P _ T A B L E D E S C R * | [ < ] E T _ F I E L D _ D E S C R I P T I O N F P M G B _ T _ L I S T F I E L D _ D E S C R * | [ < ] E T _ A C T I O N _ D E F I N I T I O N F P M G B _ T _ A C T I O N D E F * |[ < ] E T _ S P E C I A L _ G R O U P S F P M G B _ T _ S P E C I A L _ G R O U P S *|[ < ]E S _ M E S S A G E F P M G B _ S _ T 1 0 0 _ M E S S A G E * | [ < ] E V _ A D D I T I O N A L _ E R R O R _ I N F O D O K U _ O B J * |[ < ] E T _ D N D _ D E F I N I T I O N F P M G B _ T _ D N D _ D E F I N I T I O N T Y P E R E F T O T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F I N I T I O N . D A T A :l s _ f i e l d _ u s a g eT Y P Ef p m g b _ s _ l i s t f i e l d _ d e s c r , l t _ f x d v a lT Y P EW D R _ C O N T E X T _ A T T R _ V A L U E _ L I S T , l s _ f x d v a lT Y P Ew d r _ c o n t e x t _ a t t r _ v a l u e . e o _ f i e l d _ c a t a l o g? =c l _ a b a p _ s t r u c t d e s c r = > d e s c r i b e _ b y _ d a t a ( m t _ d i s p l a y) . * * f i e l dd e s c r i p t i o n * l s _ f i e l d _ u s a g e n a m e=' T E X T R E F ' . * l s _ f i e l d _ u s a g e t e c h n i c a l _ f i e l d=' X ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * C L E A Rl s _ f i e l d _ u s a g e t e c h n i c a l _ f i e l d . * * l s _ f i e l d _ u s a g e n a m e=' L I N K T O U R L ' . * l s _ f i e l d _ u s a g e t e x t _ r e f=' T E X T R E F ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' l i n k T o U R L ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' T E X T V I E W ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' T e x t V i e w ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' I N P U T F I E L D ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' I n p u t F i e l d ' .

scn.sap.com/message/10768608#10768608

13/44

12/9/13
*

Create Wire Model in webdynpro FPM. | SCN


* A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * l s _ f i e l d _ u s a g e n a m e=' L I N K T O A C T I O N ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' L i n k T o A c t i o n ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' B U T T O N ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' B u t t o n ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' I M A G E ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' I m a g e ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' D R O P D O W N ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' D r o p d o w n ' . * * l s _ f x d v a l t e x t=' P r i n t e r ' . * l s _ f x d v a l v a l u e=' P R I N T E R ' . * A P P E N Dl s _ f x d v a lt ol t _ f x d v a l . * * l s _ f x d v a l t e x t=' L o p t o p ' . * l s _ f x d v a l v a l u e=' L O P T O P ' . * A P P E N Dl s _ f x d v a lt ol t _ f x d v a l . * * l s _ f x d v a l t e x t=' W e b c a m ' . * l s _ f x d v a l v a l u e=' W E B C A M ' . * A P P E N Dl s _ f x d v a lt ol t _ f x d v a l . * * l s _ f i e l d _ u s a g e f i x e d _ v a l u e s=l t _ f x d v a l . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ P R O C E S S _ E V E N T M e t h o d Z C L _ G U I B B _ L I S T -

* + + *|[ > ] I O _ E V E N T C L _ F P M _ E V E N T * | [ > ] I V _ R A I S E D _ B Y _ O W N _ U I B O O L E _ D ( o p t i o n a l ) *| [ > ]I V _ L E A D _ I N D E X S Y T A B I X *| [ > ]I V _ E V E N T _ I N D E X S Y T A B I X * |[ > ] I T _ S E L E C T E D _ L I N E S R S T A B I X T A B *|[ < ]E V _ R E S U L T F P M _ E V E N T _ R E S U L T *|[ < ]E T _ M E S S A G E S F P M G B _ T _ M E S S A G E S T Y P ER E FT O T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ P R O C E S S _ E V E N T . * -w h i c he v e n t ? C A S Ei o _ e v e n t > m v _ e v e n t _ i d . * -l e a ds e l e c t i o n W H E Ni f _ f p m _ g u i b b _ l i s t = > g c _ f p m _ e v e n t _ o n _ l e a d _ s e l . * -m a n a g eo w nl e a ds e l e c t i o nc h a n g e C H E C Ki v _ r a i s e d _ b y _ o w n _ u i=a b a p _ t r u e .

scn.sap.com/message/10768608#10768608

14/44

12/9/13
) . * -a l lo t h e re v e n t s W H E NO T H E R S . E N D C A S E . e n d m e t h o d .

Create Wire Model in webdynpro FPM. | SCN


m o _ c o l l e c t i o n > s e t _ l e a d _ s e l e c t i o n _ i n d e x (i v _ l e a d _ i n d e x

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B ~ G E T _ P A R A M E T E R _ L I S T M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ < ( ) ]R T _ P A R A M E T E R _ D E S C R F P M G B _ T _ P A R A M _ D E S C R T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B ~ G E T _ P A R A M E T E R _ L I S T . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B ~ I N I T I A L I Z E M e t h o d Z C L _ G U I B B _ L I S T -

* + + *|[ > ] I T _ P A R A M E T E R F P M G B _ T _ P A R A M _ V A L U E * | [ > ] I O _ A P P _ P A R A M E T E R I F _ F P M _ P A R A M E T E R ( o p t i o n a l ) * |[ > ] I V _ C O M P O N E N T _ N A M E F P M _ C O M P O N E N T _ N A M E ( o p t i o n a l ) *| [ > ]I S _ C O N F I G _ K E Y W D Y _ C O N F I G _ K E Y ( o p t i o n a l ) T Y P E T Y P E R E F T O T Y P E T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ g u i b b ~ i n i t i a l i z e . s e t _ u p _ p o r t s () . E N D M E T H O D .

* < S I G N A T U R E > + *|I n s t a n c eP r o t e c t e dM e t h o dZ C L _ G U I B B _ L I S T > S E T _ U P _ P O R T * + + *|[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dS E T _ U P _ P O R T . F I E L D S Y M B O L S : < l s _ p o r t >L I K EL I N EO Fm t _ o u t p o r t , < l s _ o b j e c t _ k e y >L I K Em s _ o b j e c t _ k e y . * -c o l l e c t i o no u t p o r t A P P E N DI N I T I A LL I N ET Om t _ o u t p o r tA S S I G N I N G< l s _ p o r t > . < l s _ p o r t > t y p e=i v _ p o r t _ t y p e . C R E A T ED A T A< l s _ p o r t > o b j e c t _ k e yL I K Em s _ o b j e c t _ k e y . A S S I G N< l s _ p o r t > o b j e c t _ k e y > *T O< l s _ o b j e c t _ k e y > . < l s _ o b j e c t _ k e y >=m s _ o b j e c t _ k e y . < l s _ p o r t > i d e n t i f i e r=m s _ o b j e c t _ k e y . < l s _ p o r t > d e s c r i p t i o n=m v _ p o r t _ d e s c r i p t i o n .

scn.sap.com/message/10768608#10768608

15/44

12/9/13
e n d m e t h o d .

Create Wire Model in webdynpro FPM. | SCN

* < S I G N A T U R E > + *|I n s t a n c eP r o t e c t e dM e t h o dZ C L _ G U I B B _ L I S T > S E T _ U P _ P O R T S * + + * + < / S I G N A T U R E > M E T H O Ds e t _ u p _ p o r t s . m v _ p o r t _ d e s c r i p t i o n=' s e l e c t i o no u t p o r t ' . * -s e l e c t i o no u t p o r t s e t _ u p _ p o r t ( i f _ f p m _ f e e d e r _ m o d e l = > c s _ p o r t _ t y p e s e l e c t i o n ) . m v _ p o r t _ d e s c r i p t i o n=' l e a ds e l e c t i o no u t p o r t ' . * -l e a ds e l e c t i o no u t p o r t s e t _ u p _ p o r t ( i f _ f p m _ f e e d e r _ m o d e l = > c s _ p o r t _ t y p e l e a d _ s e l e c t i o n) . E N D M E T H O D . E N D C L A S S .

Code for Assistance Class also working as Feeder Model Class:


c l a s sZ C L _ F R E E G U I B B _ A S S I Td e f i n i t i o n p u b l i c i n h e r i t i n gf r o mC L _ W D _ C O M P O N E N T _ A S S I S T A N C E c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ F R E E G U I B B _ A S S I T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ F E E D E R _ M O D E L. m e t h o d sB E F O R E _ P B O. m e t h o d sI N I T i m p o r t i n g ! I O _ A T T R _ N O D Et y p er e ft oI F _ W D _ C O N T E X T _ N O D E. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ F R E E G U I B B _ A S S I T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ F R E E G U I B B _ A S S I T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ C O N N E C T O Rt y p er e ft oI F _ F P M _ C O N N E C T O R _ R U N. d a t aM O _ A T T R _ N O D Et y p er e ft oI F _ W D _ C O N T E X T _ N O D E. d a t aM O _ C O L L E C T I O Nt y p er e ft oZ C L _ C O L L E C T I O N _ S U P P O R T. E N D C L A S S .

C L A S SZ C L _ F R E E G U I B B _ A S S I TI M P L E M E N T A T I O N .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ F R E E G U I B B _ A S S I T > B E F O R E _ P B O * + + * + < / S I G N A T U R E > M E T H O Db e f o r e _ p b o . D A T A :

scn.sap.com/message/10768608#10768608

16/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


l s _ d a t aT Y P EZ C L _ C O L L E C T I O N _ S U P P O R T = > t y _ d a t a , l o _ r t t iT Y P ER E FT Oc l _ a b a p _ s t r u c t d e s c r , l r _ d a t aT Y P ER E FT Od a t a , l t _ p r o pT Y P Ew d r _ c o n t e x t _ p r o p _ f o r _ n o d e _ t a b . F I E L D S Y M B O L S : < l s _ d a t a >T Y P Ea n y , < l s _ p r o p >L I K EL I N EO Fl t _ p r o p . C H E C Km o _ a t t r _ n o d eI SB O U N D . I Fm o _ c o n n e c t o rI SB O U N D . m o _ c o l l e c t i o n? =m o _ c o n n e c t o r > g e t _ o u t p u t () . E N D I F . I Fm o _ c o l l e c t i o nI SB O U N D . l s _ d a t a=m o _ c o l l e c t i o n > g e t _ l e a d _ s e l e c t i o n () . E N D I F . l o _ r t t i = m o _ a t t r _ n o d e > g e t _ n o d e _ i n f o ( ) > g e t _ s t a t i c _ a t t r i b u t e s _ t y p e () . C R E A T ED A T Al r _ d a t aT Y P EH A N D L El o _ r t t i . A S S I G Nl r _ d a t a > *T O< l s _ d a t a > . M O V E C O R R E S P O N D I N Gl s _ d a t aT O< l s _ d a t a > . m o _ a t t r _ n o d e > s e t _ s t a t i c _ a t t r i b u t e s ( s t a t i c _ a t t r i b u t e s = < l s _ d a t a >) . C H E C Km o _ c o l l e c t i o nI SI N I T I A L . m o _ a t t r _ n o d e > g e t _ a t t r i b u t e _ p r o p s _ f o r _ n o d e ( I M P O R T I N G p r o p e r t i e s=l t _ p r o p) . L O O PA Tl t _ p r o pA S S I G N I N G< l s _ p r o p > . < l s _ p r o p > e n a b l e d=a b a p _ f a l s e . E N D L O O P . m o _ a t t r _ n o d e > s e t _ a t t r i b u t e _ p r o p s _ f o r _ n o d e (l t _ p r o p) . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ I N P O R T _ K E Y Z C L _ F R E E G U I B B _ A S S I T -

* + + *|[ < ( ) ]R R _ O B J E C T _ K E Y T Y P ER E FT OD A T A * + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ g e t _ i n p o r t _ k e y . F I E L D S Y M B O L S : < l s _ o b j e c t _ k e y >T Y P Ea n y .

C R E A T ED A T Ar r _ o b j e c t _ k e yT Y P EcL E N G T H1 . A S S I G Nr r _ o b j e c t _ k e y > *T O< l s _ o b j e c t _ k e y > . < l s _ o b j e c t _ k e y >=' A ' . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E Z C L _ F R E E G U I B B _ A S S I T -

* + + *|[ < ( ) ] R V _ N A M E S P A C E F P M _ M O D E L _ N A M E S P A C E T Y P E

scn.sap.com/message/10768608#10768608

17/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E . r v _ n a m e s p a c e=' F P M _ D E M O _ S I M I ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T S Z C L _ F R E E G U I B B _ A S S I T -

* + + *|[ < ]E T _ O U T P O R T T Y _ T _ P O R T T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ g e t _ o u t p o r t s . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T _ D A T A Z C L _ F R E E G U I B B _ A S S I T -

* + + *|[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E * | [ > ]I V _ P O R T _ I D E N T I F I E R F P M _ M O D E L _ P O R T _ I D E N T I F I E R *|[ < ( ) ]R O _ D A T A T Y P E T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ g e t _ o u t p o r t _ d a t a . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ S E T _ C O N N E C T O R Z C L _ F R E E G U I B B _ A S S I T -

* + + * |[ > ] I O _ C O N N E C T O R I F _ F P M _ C O N N E C T O R _ R U N T Y P ER E F T O

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ s e t _ c o n n e c t o r . m o _ c o n n e c t o r=i o _ c o n n e c t o r . E N D M E T H O D .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ F R E E G U I B B _ A S S I T > I N I T * + + * |[ > ] I O _ A T T R _ N O D E I F _ W D _ C O N T E X T _ N O D E T Y P ER E F T O

* + < / S I G N A T U R E > M E T H O Di n i t . m o _ a t t r _ n o d e=i o _ a t t r _ n o d e . E N D M E T H O D . E N D C L A S S .

Code for Collection support class (Used for Providing Data):


scn.sap.com/message/10768608#10768608 18/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


c l a s sZ C L _ C O L L E C T I O N _ S U P P O R Td e f i n i t i o n p u b l i c c r e a t ep r i v a t e g l o b a lf r i e n d sZ C L _ G U I B B _ L I S T. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ C O L L E C T I O N _ S U P P O R T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! t y p e s : B E G I NO Ft y _ d a t a , u s e r i d T Y P Ez d e _ u s e r i d , p a s s w o r d T Y P Ez d e _ p a s s , n a m e T Y P Ez d e _ e m p n a m e , r o l e T Y P Ez d e _ r o l e , d o b T Y P Ez d e _ d o b , d o j T Y P Ez d e _ d o j , g e n d e r T Y P Ez d e _ g e n d e r , a d d r e s s T Y P Ez d e _ e m p a d d r e s s , p h o n e T Y P Ez d e _ p h o n e n o , m a n a g e r i dT Y P Ez d e _ m a n a g e r i d , r a t i n g T Y P Ez d e _ r a t i n g , E N DO Ft y _ d a t a. t y p e s : t _ d a t aT Y P ES T A N D A R DT A B L EO Ft y _ d a t a W I T HD E F A U L TK E Y. d a t aM V _ L E A D _ S E L E C T I O N _ I N D E Xt y p eIr e a d o n l y. m e t h o d sG E T _ T A B L E r e t u r n i n g v a l u e ( R T _ D A T A )t y p eT _ D A T A. m e t h o d sG E T _ L E A D _ S E L E C T I O N r e t u r n i n g v a l u e ( R S _ D A T A )t y p eT Y _ D A T A. m e t h o d sS E T _ T A B L E i m p o r t i n g ! I T _ D A T At y p eT _ D A T A. m e t h o d sS E T _ L E A D _ S E L E C T I O N _ I N D E X i m p o r t i n g ! I V _ I N D E Xt y p eI. m e t h o d sS E T _ A T T R I B U T E i m p o r t i n g ! I V _ A T T R I B U T Et y p eN A M E _ K O M P ! I _ V A L U Et y p eA N Y ! I V _ I N D E Xt y p eIo p t i o n a l. m e t h o d sG E T _ T O T A L _ C O U N T r e t u r n i n g v a l u e ( R V _ C O U N T )t y p eI. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ C O L L E C T I O N _ S U P P O R T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! m e t h o d sC O N S T R U C T O R. p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ C O L L E C T I O N _ S U P P O R T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM T _ D A T At y p eT _ D A T A. t y p e p o o l sA B A P. d a t a M V _ I S _ D I R T Y t y p e A B A P _ B O O L v a l u e A B A P _ F A L S E . " # E C N O T E X T. m e t h o d sC R E A T E _ D A T A. E N D C L A S S .

scn.sap.com/message/10768608#10768608

19/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


C L A S SZ C L _ C O L L E C T I O N _ S U P P O R TI M P L E M E N T A T I O N .

* < S I G N A T U R E > + * | I n s t a n c e > C O N S T R U C T O R P r o t e c t e d M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + * + < / S I G N A T U R E > M E T H O Dc o n s t r u c t o r . c r e a t e _ d a t a () . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e > C R E A T E _ D A T A P r i v a t e M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + * + < / S I G N A T U R E > M E T H O Dc r e a t e _ d a t a . S E L E C T*I N T OC O R R E S P O N D I N GF I E L D SO FT A B L E m t _ d a t aF R O MZ P M S _ E M P L O Y E E . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > G E T _ L E A D _ S E L E C T I O N M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + *|[ < ( ) ]R S _ D A T A T Y _ D A T A T Y P E

* + < / S I G N A T U R E > m e t h o dG E T _ L E A D _ S E L E C T I O N . R E A DT A B L Em t _ d a t aI N D E Xm v _ l e a d _ s e l e c t i o n _ i n d e x I N T Or s _ d a t a . e n d m e t h o d .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ C O L L E C T I O N _ S U P P O R T > G E T _ T A B L E * + + *|[ < ( ) ]R T _ D A T A T Y P E T _ D A T A * + < / S I G N A T U R E > m e t h o dG E T _ T A B L E . r t _ d a t a=m t _ d a t a . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e > G E T _ T O T A L _ C O U N T P u b l i c M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + +

scn.sap.com/message/10768608#10768608

20/44

12/9/13
*|[ < ( ) ]R V _ C O U N T

Create Wire Model in webdynpro FPM. | SCN


T Y P E I * + < / S I G N A T U R E > m e t h o dG E T _ T O T A L _ C O U N T . r v _ c o u n t=l i n e s (m t _ d a t a) . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e > S E T _ A T T R I B U T E P u b l i c M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + *|[ > ] I V _ A T T R I B U T E N A M E _ K O M P *|[ > ]I _ V A L U E *|[ > ]I V _ I N D E X I ( o p t i o n a l ) T Y P E T Y P E T Y P E A N Y

* + < / S I G N A T U R E > M E T H O DS E T _ A T T R I B U T E . D A T A : l v _ i n d e xT Y P Ei . F I E L D S Y M B O L S : < l s _ d a t a >L I K EL I N EO Fm t _ d a t a , < l v _ v a l u e >T Y P Ea n y .

C H E C Km t _ d a t aI SN O TI N I T I A L . I Fi v _ i n d e xI SI N I T I A L . l v _ i n d e x=m v _ l e a d _ s e l e c t i o n _ i n d e x . E L S E . l v _ i n d e x=i v _ i n d e x . E N D I F . R E A DT A B L Em t _ d a t aI N D E Xl v _ i n d e xA S S I G N I N G< l s _ d a t a > . C H E C Ks y s u b r c=0 . A S S I G N C O M P O N E N T i v _ a t t r i b u t e O F S T R U C T U R E < l s _ d a t a > T O < l v _ v a l u e > . C H E C Ks y s u b r c=0 . < l v _ v a l u e >=i _ v a l u e . m v _ i s _ d i r t y=a b a p _ t r u e . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > S E T _ L E A D _ S E L E C T I O N _ I N D E X M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + *|[ > ]I V _ I N D E X T Y P E I * + < / S I G N A T U R E > m e t h o dS E T _ L E A D _ S E L E C T I O N _ I N D E X . m v _ l e a d _ s e l e c t i o n _ i n d e x=i v _ i n d e x . e n d m e t h o d .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ C O L L E C T I O N _ S U P P O R T > S E T _ T A B L E * + +

scn.sap.com/message/10768608#10768608

21/44

12/9/13
*|[ > ]I T _ D A T A

Create Wire Model in webdynpro FPM. | SCN


T Y P E T _ D A T A * + < / S I G N A T U R E > m e t h o dS E T _ T A B L E . m t _ d a t a=i t _ d a t a . I Fl i n e s (m t _ d a t a)>0 . m v _ l e a d _ s e l e c t i o n _ i n d e x=1 . E N D I F . e n d m e t h o d . E N D C L A S S .

Code in WD Components for Feeder Support:


Component controller methods:
m e t h o dG E T _ M O D E L _ A P I. r o _ f e e d e r _ m o d e l=w d _ a s s i s t . e n d m e t h o d . m e t h o dP R O C E S S _ B E F O R E _ O U T P U T. w d _ a s s i s t > b e f o r e _ p b o () . e n d m e t h o d . m e t h o dW D D O I N I T. D A T A : l o _ n o d eT Y P ER E FT Oi f _ w d _ c o n t e x t _ n o d e .

* -n a v i g a t ed a t an o d e l o _ n o d e = w d _ c o n t e x t > g e t _ c h i l d _ n o d e ( n a m e = w d _ t h i s > w d c t x _ d a t a) . w d _ a s s i s t > i n i t (l o _ n o d e) . e n d m e t h o d .

2466 View s

Average User Rating (0 ratings)

Manishekhar Singh Nov 26, 2012 7:48 AM (in response to Pappu Mehta) Correct Answer Re: Create Wire Model in webdynpro FPM.

Wire Model
The wire model can be used to create running FPM application by pure configuration or at least with minimal coding effort. The runtime interdependencies between UIBBs are defined by configuration entities called wires which are based on reusable connector classes implementing the dependency semantics. The primary use cases for the wire model are object models with generic access interfaces (for example, ESF, BOPF, or BOL). A wire controls the runtime interdependencies between two UIBBs; that is, they determine the data content of the target UIBB depending on user interaction changing the outport of the source UIBB. Outports can be of type lead selection, selection or collection. For example, the execution of a search on a Search GUIBB will change its collection outport and may therefore change the data content of a result list displayed in a separate List GUIBB. Similarly, changing the lead selection in a list of sales orders may change the data content of another list displaying the associated sales order items. In order to be part of a wire model, a UIBB needs to implement a certain Web Dynpro interface which in turn provides a feeder model implementation. The FPM GUIBBs are automatically integrated if their feeder classes implement the feeder model interface.
scn.sap.com/message/10768608#10768608 22/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

Application areas or object models define their own namespaces for which their connector classes, feeder model classes can be reused. Moreover, they typically need to provide a transaction handler class which manages transaction events like save, modify or check and global message handling. Wires are defined on the level of the floorplan configuration. For each model UIBB contained in the floorplan configuration, a source UIBB with specified outport can be defined. Furthermore, a connector class and, potentially, connector parameters must be maintained. If the floorplan contains composite components (tabbed components), the model UIBBs contained in the tabbed components can also be wired. However, in order to provide better reusability of composite components, it is also possible to define intrinsic wiring for tabbed components. A tabbed component can define a model UIBB as a wire plug (this is usually a master UIBB), which serves as an entry point for the wiring of the tabbed component from the enveloping floorplan component. If a wire plug is configured for a tabbed UIBB, only the wire plug UIBB can be wired from outside.

Transaction Handler class


The transaction interface provides methods for handling global and transactional events. In the FPM configuration editor, one transaction handler implementation can be assigned on the level of the wire model. However, it is not mandatory to specify. But it can be used for wring some specific logic for Application level events. Interface IF_FPM_WIRE_MODEL_TRANSACTION is implemented for creating transaction handle class.

Method
START

Method description
It is called at the starting of FPM application. It provides 3 things FPM Massage manger instance, Property bag of FPM Application, and Runtime information of FPM. Here, we can also specify application commit capability. This method is called after FLUSH has been called for all current UIBBs. It can be used to flush buffers. This method is called after PROCESS_EVENT has been called for all current UIBBs. It can be used for handling transactional events for example SAVE or CHECK. Moreover, it can be used to collect messages which here not handled inside UIBBs and to forward them to the FPM message handler. This method is called after PBO has been called for all current UIBBs. It can be used to collect messages at the latest possible point in time before screen output. This method is called after NEEDS_CONFIRMATION has been called for all UIBBs. It can be used to analyze and add confirmation requests. This method can be used to indicate a dirty state for the work protection mode.

AFTER_FLUSH

AFTER_PROCESS_EVENT

AFTER_PROCESS_BEFORE_OUTPUT

AFTER_NEEDS_CONFIRMATION

IS_DIRTY

Connector Class
scn.sap.com/message/10768608#10768608 23/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

The IF_FPM_CONNECTOR connector interface comprises an interface, IF_FPM_CONNECTOR_DEF, defining the access by the FPM framework and an interface IF_FPM_CONNECTOR_RUN for runtime access by the application feeder model. The definition interface possesses a static attribute, SV_NAMESPACE, which should be filled with the namespace (ex. FPM_DEMO or BOL or user specific) in the class constructor of a connector implementation (for example in a common superclass). Method for IF_FPM_CONNECTOR_DEF

Method
GET_PARAMETER_LIST

Method description
Connector classes can be parameterized to flexibly control their runtime behavior. The parameter values are maintained for the wires in the FPM configuration editor. A parameter is defined by a name, its data type and a descriptive text. With this method the connector is initialized with the parameter values. This method is called by the FPM runtime upon UIBB instantiation. With this method, a connector implementation can provide a value set for each parameter. For example, in an object model a parameter may carry the association name. For a wire between specified UIBBs, the method may provide a list of all associations between the source and target business object node. Receives an object reference carrying the actual data of the connected outport. This method is called before the UIBB s PBO by the FPM runtime.

INITIALIZE

GET_PARAMETER_VALUE_SET

SET_INPUT

Method for IF_FPM_CONNECTOR_RUN

Method
GET_OUTPUT

Method description
Returns an object reference carrying the actual data to be displayed by a UIBB. This method can be called by the UIBB at PBO for example in the GET_DATA method of a feeder class.

IS_CREATE_ALLOWED

Returns a Boolean indicator whether entity creation is allowed. This method can be called by the UIBB at PBO to dynamically control the activation of create buttons for example to maintain the action usage parameter in the GET_DATA method of a feeder class. Creates and returns a data entity which can be arbitrarily typed. This method can be called by an action handler of the UIBB for example in the PROCESS_EVENT method of a feeder class.

CREATE_ENTITY

There are total seven methods in connector interface IF_FPM_CONNECTOR that should be implemented in connector class. We should also create class constructor for setting Namespace. SET_OUTPUT and GET_OUTPUT is bridge between FPM components, so these methods should be implemented properly.

Wire for Free UIBBs


scn.sap.com/message/10768608#10768608 24/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

Wire model is implemented on Web Dynpro component by implementing IF_FPM_UIBB_MODEL Web Dynpro interface. It contains only one method GET_MODEL_API which is used to set FPM Feeder Model for Free GUIBBs. It contains only one parameter RO_FEEDER_MODEL. So, we have to create a FPM Feeder Model class and assign to that parameter. FPM Feeder Model Class Interface IF_FPM_FEEDER_MODEL is implemented for creating Feeder Model Class. Method for IF_FPM_ FEEDER_MODEL

Method
GET_NAMESPACE SET_CONNECTOR

Method description
Returns the namespace of the underlying application area. Method is called at design time. Called upon instantiation of a UIBB. It hands over the connector (reference to IF_FPM_CONNECTOR_RUN) which can be accessed for data retrieval at PBO. Returns a reference to an object key which characterizes the meta data type expected at the import (for example the business object node). Method is called at design time. Provides a table of outports comprising the object key, the port type an identifier and a descriptive text. Method is called at design time. Returns an object reference carrying the actual data identifier for a certain port. Method is called at runtime.

GET_INPORT_KEY

GET_OUTPORTS

GET_OUTPORT_DATA

Assistance class can also be used as Feeder Model Class and reference WD_ASSIT can used as Feeder model instance. Ex: M E T H O Dg e t _ m o d e l _ a p i.
r o _ f e e d e r _ m o d e l=w d _ a s s i s t . E N D M E T H O D .

Wire for GUIBBs


Nothing special we need to do that. Interface IF_FPM_FEEDER_MODEL is also implemented on feeder class for getting port support. We need to set port manually using structure IF_FPM_FEEDER_MODEL=>CS_PORT_TYPE. It contains three constants COLLECTION, SELECTION and LEAD_SELECTION. It should be properly configured.

Source Codes: Code for Transaction handler class:


c l a s sZ C L _ M Y _ T R A N _ H A N D L E Rd e f i n i t i o n p u b l i c c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ M Y _ T R A N _ H A N D L E R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ M Y _ T R A N _ H A N D L E R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ M Y _ T R A N _ H A N D L E R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ M S G _ M A Nt y p er e ft oI F _ F P M _ M E S S A G E _ M A N A G E R. E N D C L A S S .

scn.sap.com/message/10768608#10768608

25/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


C L A S SZ C L _ M Y _ T R A N _ H A N D L E RI M P L E M E N T A T I O N .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ F L U S H * + + * + < / S I G N A T U R E > m e t h o dI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ F L U S H . r e t u r n . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ N E E D S _ C O N F I R M A T I O N * + + * |[ > ] I O _ E V E N T C L _ F P M _ E V E N T *| [ > ]I T _ U I B B S F P M _ T _ U I B B _ C O M P O N E N T S * | [ < > ] C T _ C O N F I R M A T I O N _ R E Q U E S T S F P M _ T _ C O N F I R M A T I O N _ R E Q U E S T S T Y P ER E F T O T Y P E T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ w i r e _ m o d e l _ t r a n s a c t i o n ~ a f t e r _ n e e d s _ c o n f i r m a t i o n . * -w h i c he v e n t C A S Ei o _ e v e n t > m v _ e v e n t _ i d . * -s t a r to v e r W H E Ni f _ f p m _ c o n s t a n t s = > g c _ e v e n t s t a r t _ o v e r . * -r a i s ec o n f i r m a t i o nr e q u e s ti fs t a t ei sd i r t y C H E C K i f _ f p m _ w i r e _ m o d e l _ t r a n s a c t i o n ~ i s _ d i r t y ( ) = a b a p _ t r u e . A P P E N D c l _ f p m _ c o n f i r m a t i o n _ r e q u e s t = > g o _ d a t a _ l o s s T O c t _ c o n f i r m a t i o n _ r e q u e s t s . E N D C A S E . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ B E F O R E _ O U T P U T * + + * + < / S I G N A T U R E > m e t h o d I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ B E F O R E _ O U T P U T . R E T U R N . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ T R A N _ H A N D L E R > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ E V E N T * + + * |[ > ] I O _ E V E N T T Y P ER E F T O

scn.sap.com/message/10768608#10768608

26/44

12/9/13
C L _ F P M _ E V E N T *| [ < ( ) ]R V _ R E S U L T F P M _ E V E N T _ R E S U L T

Create Wire Model in webdynpro FPM. | SCN


T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ A F T E R _ P R O C E S S _ E V E N T . C A S Ei o _ e v e n t > m v _ e v e n t _ i d . W H E N' ' . W H E N' ' . W H E NO T H E R S . E N D C A S E . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ I S _ D I R T Y Z C L _ M Y _ T R A N _ H A N D L E R -

* + + *|[ < ( ) ]R V _ I S _ D I R T Y T Y P E B O O L E _ D * + < / S I G N A T U R E > M E T H O Di f _ f p m _ w i r e _ m o d e l _ t r a n s a c t i o n ~ i s _ d i r t y . r v _ i s _ d i r t y = c l _ f p m _ w i r e _ m o d e l _ c o l _ f a c t o r y = > w o r k _ p r o t e c t i o n _ i s _ d i r t y () . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ S T A R T Z C L _ M Y _ T R A N _ H A N D L E R -

* + + * | [ > ] I O _ M E S S A G E _ M A N A G E R I F _ F P M _ M E S S A G E _ M A N A G E R * | [ > ] I O _ A P P _ P A R A M E T E R I F _ F P M _ P A R A M E T E R * | [ > ] I S _ R U N T I M E _ I N F O F P M _ S _ R U N T I M E _ I N F O *|[ < ]E V _ A L L O W _ F P M _ C O M M I T T Y P E T Y P E R E F T O T Y P E R E F T O T Y P E B O O L E _ D

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ W I R E _ M O D E L _ T R A N S A C T I O N ~ S T A R T . m o _ m s g _ m a n=i o _ m e s s a g e _ m a n a g e r . e v _ a l l o w _ f p m _ c o m m i t=a b a p _ f a l s e . e n d m e t h o d . E N D C L A S S .

Code for Connector Class:


c l a s sZ C L _ M Y _ W I R E _ C O N N E C T O Rd e f i n i t i o n p u b l i c c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ M Y _ W I R E _ C O N N E C T O R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ C O N N E C T O R. i n t e r f a c e sI F _ F P M _ C O N N E C T O R _ D E F. i n t e r f a c e sI F _ F P M _ C O N N E C T O R _ R U N. c l a s s m e t h o d sC L A S S _ C O N S T R U C T O R. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ M Y _ W I R E _ C O N N E C T O R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! !

scn.sap.com/message/10768608#10768608

27/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


d a t aM O _ C O L L E C T I O Nt y p er e ft oZ C L _ C O L L E C T I O N _ S U P P O R T. d a t aM V _ P O R T _ T Y P Et y p eF P M _ M O D E L _ P O R T _ T Y P E. p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ M Y _ W I R E _ C O N N E C T O R * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! E N D C L A S S .

C L A S SZ C L _ M Y _ W I R E _ C O N N E C T O RI M P L E M E N T A T I O N .

* < S I G N A T U R E > + * | S t a t i c P u b l i c Z C L _ M Y _ W I R E _ C O N N E C T O R = > C L A S S _ C O N S T R U C T O R M e t h o d

* + + * + < / S I G N A T U R E > m e t h o dC L A S S _ C O N S T R U C T O R . i f _ f p m _ c o n n e c t o r ~ s v _ n a m e s p a c e=' F P M _ D E M O ' ." _ B Y _ S I M I ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ W I R E _ C O N N E C T O R > I F _ F P M _ C O N N E C T O R _ D E F ~ G E T _ P A R A M E T E R _ L I S T * + + * |[ < ] E T _ P A R A M E T E R F P M _ T _ P A R A M E T E R _ D E F T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ C O N N E C T O R _ D E F ~ G E T _ P A R A M E T E R _ L I S T . * -n op a r a m e t e r s R E T U R N . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ W I R E _ C O N N E C T O R > I F _ F P M _ C O N N E C T O R _ D E F ~ G E T _ P A R A M E T E R _ V A L U E _ S E T * + + * | [ > ] I V _ P A R A M E T E R _ N A M E F P M _ P A R A M E T E R _ N A M E *|[ > ]I R _ O B J E C T _ K E Y _ S O U R C E *|[ > ]I R _ O B J E C T _ K E Y _ T A R G E T * |[ < ] E T _ V A L U E _ S E T F P M _ T _ P A R A M E T E R _ V A L U E _ S E T T Y P E T Y P ER E FT OD A T A T Y P ER E FT OD A T A T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ d e f ~ g e t _ p a r a m e t e r _ v a l u e _ s e t . * -n op a r a m e t e r s R E T U R N . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ D E F ~ I N I T I A L I Z E Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + -

scn.sap.com/message/10768608#10768608

28/44

12/9/13
* | [ > ] I T _ P A R A M E T E R _ V A L U E F P M _ T _ P A R A M E T E R _ V A L U E * |[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E

Create Wire Model in webdynpro FPM. | SCN


+ T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ C O N N E C T O R _ D E F ~ I N I T I A L I Z E . m v _ p o r t _ t y p e=i v _ p o r t _ t y p e . i f _ f p m _ c o n n e c t o r _ d e f ~ m v _ w i r e _ l a b e l=' M yI d e n t i t y ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ D E F ~ S E T _ I N P U T Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + *|[ > ]I O _ I N P U T T Y P ER E FT OO B J E C T * + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ d e f ~ s e t _ i n p u t . m o _ c o l l e c t i o n? =i o _ i n p u t . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ R U N ~ C R E A T E _ E N T I T Y Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + * | [ > ] I _ I N I T I A L _ D A T A A N Y ( o p t i o n a l ) *|[ < ( ) ]R O _ R E S U L T T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ r u n ~ c r e a t e _ e n t i t y . * -n oc r e a t i o n R E T U R N . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ C O N N E C T O R _ R U N ~ G E T _ O U T P U T Z C L _ M Y _ W I R E _ C O N N E C T O R -

* + + * | [ > ]I _ F I L T E R _ D A T A A N Y ( o p t i o n a l ) *|[ < ( ) ]R O _ O U T P U T T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ r u n ~ g e t _ o u t p u t . r o _ o u t p u t=m o _ c o l l e c t i o n . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d Z C L _ M Y _ W I R E _ C O N N E C T O R > I F _ F P M _ C O N N E C T O R _ R U N ~ I S _ C R E A T E _ A L L O W E D * + + * | [ > ] I _ I N I T I A L _ D A T A T Y P E

scn.sap.com/message/10768608#10768608

29/44

12/9/13
A N Y ( o p t i o n a l ) * |[ < ( ) ] R V _ A L L O W E D A B A P _ B O O L

Create Wire Model in webdynpro FPM. | SCN


T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ c o n n e c t o r _ r u n ~ i s _ c r e a t e _ a l l o w e d . * * -n oc r e a t i o na l l o w e d * r v _ a l l o w e d=a b a p _ f a l s e . E N D M E T H O D . E N D C L A S S .

Code for Feeder Class (List GUIBB):


c l a s sZ C L _ G U I B B _ L I S Td e f i n i t i o n p u b l i c f i n a l c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ G U I B B _ L I S T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ G U I B B. i n t e r f a c e sI F _ F P M _ G U I B B _ L I S T. i n t e r f a c e sI F _ F P M _ F E E D E R _ M O D E L. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ G U I B B _ L I S T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ C O N N E C T O Rt y p er e ft oI F _ F P M _ C O N N E C T O R _ R U N. d a t aM O _ C O L L E C T I O Nt y p er e ft oZ C L _ C O L L E C T I O N _ S U P P O R T. d a t a : m s _ o b j e c t _ k e yT Y P EcL E N G T H1v a l u e' A ' ." # E CN O T E X T. i n t e r f a c eI F _ F P M _ F E E D E R _ M O D E Ll o a d. d a t aM T _ O U T P O R Tt y p eI F _ F P M _ F E E D E R _ M O D E L = > T Y _ T _ P O R T. d a t aM V _ P O R T _ D E S C R I P T I O Nt y p eF P M _ M O D E L _ P O R T _ D E S C R I P T I O N. m e t h o d sS E T _ U P _ P O R T S. m e t h o d sS E T _ U P _ P O R T i m p o r t i n g ! I V _ P O R T _ T Y P Et y p eF P M _ M O D E L _ P O R T _ T Y P E. p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ G U I B B _ L I S T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! t y p e s : B E G I NO Fs d i s p l a y , u s e r i d T Y P Ez d e _ u s e r i d , p a s s w o r d T Y P Ez d e _ p a s s , n a m e T Y P Ez d e _ e m p n a m e , r o l e T Y P Ez d e _ r o l e , d o b T Y P Ez d e _ d o b , d o j T Y P Ez d e _ d o j , g e n d e r T Y P Ez d e _ g e n d e r , a d d r e s s T Y P Ez d e _ e m p a d d r e s s , p h o n e T Y P Ez d e _ p h o n e n o , m a n a g e r i dT Y P Ez d e _ m a n a g e r i d , r a t i n g T Y P Ez d e _ r a t i n g , E N DO Fs d i s p l a y. t y p e s : t d i s p l a yT Y P ET A B L EO Fs d i s p l a y. d a t aM S _ D I S P L A Yt y p eS D I S P L A Y. d a t aM T _ D I S P L A Yt y p eT D I S P L A Y. d a t aM S _ C H A N G Et y p eF P M G B _ S _ C H A N G E L O G. d a t aM T _ C H A N G Et y p eF P M G B _ T _ C H A N G E L O G. d a t aF L A Gt y p eB O O L E A Nv a l u e' X ' ." # E CN O T E X T. m e t h o d sG E T _ C O L L E C T I O N.

scn.sap.com/message/10768608#10768608

30/44

12/9/13
E N D C L A S S .

Create Wire Model in webdynpro FPM. | SCN

C L A S SZ C L _ G U I B B _ L I S TI M P L E M E N T A T I O N .

* < S I G N A T U R E > + *|I n s t a n c eP r i v a t eM e t h o dZ C L _ G U I B B _ L I S T > G E T _ C O L L E C T I O N * + + * + < / S I G N A T U R E > M E T H O Dg e t _ c o l l e c t i o n . I Fm o _ c o n n e c t o rI SB O U N D . m o _ c o l l e c t i o n? =m o _ c o n n e c t o r > g e t _ o u t p u t () . E N D I F . I Fm o _ c o l l e c t i o nI SB O U N D . I Fm o _ c o l l e c t i o n > m v _ l e a d _ s e l e c t i o n _ i n d e xI SI N I T I A L . m o _ c o l l e c t i o n > s e t _ l e a d _ s e l e c t i o n _ i n d e x (1) . E N D I F . E N D I F . *I n i n t i a lt i m e I Fm o _ c o l l e c t i o nI SI N I T I A L . C R E A T EO B J E C Tm o _ c o l l e c t i o n . m o _ c o l l e c t i o n > s e t _ l e a d _ s e l e c t i o n _ i n d e x (1) . E N D I F . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ I N P O R T _ K E Y Z C L _ G U I B B _ L I S T -

* + + *|[ < ( ) ]R R _ O B J E C T _ K E Y T Y P ER E FT OD A T A * + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ I N P O R T _ K E Y . F I E L D S Y M B O L S : < l s _ o b j e c t _ k e y >L I K Em s _ o b j e c t _ k e y .

C R E A T ED A T Ar r _ o b j e c t _ k e yL I K Em s _ o b j e c t _ k e y . A S S I G Nr r _ o b j e c t _ k e y > *T O< l s _ o b j e c t _ k e y > . < l s _ o b j e c t _ k e y >=m s _ o b j e c t _ k e y . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E M e t h o d Z C L _ G U I B B _ L I S T -

* + + * |[ < ( ) ] R V _ N A M E S P A C E F P M _ M O D E L _ N A M E S P A C E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E . r v _ n a m e s p a c e=' F P M _ D E M O ' . e n d m e t h o d .

scn.sap.com/message/10768608#10768608

31/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T S M e t h o d Z C L _ G U I B B _ L I S T -

* + + * |[ < ] E T _ O U T P O R T T Y _ T _ P O R T T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T S . e t _ o u t p o r t=m t _ o u t p o r t . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T _ D A T A Z C L _ G U I B B _ L I S T -

* + + * |[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E * | [ > ] I V _ P O R T _ I D E N T I F I E R F P M _ M O D E L _ P O R T _ I D E N T I F I E R *|[ < ( ) ]R O _ D A T A T Y P E T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T _ D A T A . r o _ d a t a=m o _ c o l l e c t i o n . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ F E E D E R _ M O D E L ~ S E T _ C O N N E C T O R M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ > ] I O _ C O N N E C T O R I F _ F P M _ C O N N E C T O R _ R U N T Y P E R E F T O

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ S E T _ C O N N E C T O R . m o _ c o n n e c t o r=i o _ c o n n e c t o r . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ C H E C K _ C O N F I G M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ > ] I O _ L A Y O U T _ C O N F I G I F _ F P M _ G U I B B _ L I S T _ C O N F I G * |[ < ] E T _ M E S S A G E S F P M G B _ T _ M E S S A G E S T Y P E R E F T O T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ C H E C K _ C O N F I G . e n d m e t h o d .

* < S I G N A T U R E > -

scn.sap.com/message/10768608#10768608

32/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


+ * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ F L U S H M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ > ]I T _ C H A N G E _ L O G F P M G B _ T _ C H A N G E L O G *|[ > ]I T _ D A T A * | [ > ] I V _ O L D _ L E A D _ S E L I ( o p t i o n a l ) * | [ > ] I V _ N E W _ L E A D _ S E L I ( o p t i o n a l ) T Y P E T Y P ER E FT OD A T A T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ F L U S H . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ G E T _ D A T A M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ > ] I V _ E V E N T I D C L _ F P M _ E V E N T * | [ > ] I T _ S E L E C T E D _ F I E L D S F P M G B _ T _ S E L E C T E D _ F I E L D S ( o p t i o n a l ) * | [ > ] I V _ R A I S E D _ B Y _ O W N _ U I B O O L E _ D ( o p t i o n a l ) * | [ > ] I V _ V I S I B L E _ R O W S I ( o p t i o n a l ) * |[ < ] E T _ M E S S A G E S F P M G B _ T _ M E S S A G E S *|[ < ]E V _ D A T A _ C H A N G E D *|[ < ]E V _ F I E L D _ U S A G E _ C H A N G E D *|[ < ]E V _ A C T I O N _ U S A G E _ C H A N G E D *|[ < ]E V _ S E L E C T E D _ L I N E S _ C H A N G E D *|[ < > ]C T _ D A T A * | [ < > ] C T _ F I E L D _ U S A G E F P M G B _ T _ F I E L D U S A G E * | [ < > ] C T _ A C T I O N _ U S A G E F P M G B _ T _ A C T I O N U S A G E * | [ < > ] C T _ S E L E C T E D _ L I N E S R S T A B I X T A B *|[ < > ]C V _ L E A D _ I N D E X *|[ < > ]C V _ F I R S T _ V I S I B L E _ R O W T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E T Y P E S Y T A B I X I T Y P E R E F T O T Y P E T Y P E T Y P E T Y P E B O O L E _ D B O O L E _ D B O O L E _ D B O O L E _ D D A T A

* + < / S I G N A T U R E > M E T H O DI F _ F P M _ G U I B B _ L I S T ~ G E T _ D A T A . D A T A :l v _ s e l _ i n d e x T Y P Ei , l v _ c o l T Y P Es t r i n g . * -g e td a t a g e t _ c o l l e c t i o n () . c t _ d a t a=m o _ c o l l e c t i o n > g e t _ t a b l e () . e v _ d a t a _ c h a n g e d=a b a p _ t r u e . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F A U L T _ C O N F I G Z C L _ G U I B B _ L I S T -

* + +

scn.sap.com/message/10768608#10768608

33/44

12/9/13
* | [ > ] I O _ L A Y O U T _ C O N F I G I F _ F P M _ G U I B B _ L I S T _ C O N F I G

Create Wire Model in webdynpro FPM. | SCN


T Y P E R E F T O

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F A U L T _ C O N F I G . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F I N I T I O N M e t h o d Z C L _ G U I B B _ L I S T -

* + + * | [ < ] E O _ F I E L D _ C A T A L O G C L _ A B A P _ T A B L E D E S C R * | [ < ] E T _ F I E L D _ D E S C R I P T I O N F P M G B _ T _ L I S T F I E L D _ D E S C R * | [ < ] E T _ A C T I O N _ D E F I N I T I O N F P M G B _ T _ A C T I O N D E F * | [ < ] E T _ S P E C I A L _ G R O U P S F P M G B _ T _ S P E C I A L _ G R O U P S * |[ < ] E S _ M E S S A G E F P M G B _ S _ T 1 0 0 _ M E S S A G E *|[ < ]E V _ A D D I T I O N A L _ E R R O R _ I N F O * | [ < ] E T _ D N D _ D E F I N I T I O N F P M G B _ T _ D N D _ D E F I N I T I O N T Y P E T Y P E T Y P E R E F T O T Y P E T Y P E T Y P E T Y P E D O K U _ O B J

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ G E T _ D E F I N I T I O N . D A T A :l s _ f i e l d _ u s a g eT Y P Ef p m g b _ s _ l i s t f i e l d _ d e s c r , l t _ f x d v a lT Y P EW D R _ C O N T E X T _ A T T R _ V A L U E _ L I S T , l s _ f x d v a lT Y P Ew d r _ c o n t e x t _ a t t r _ v a l u e . e o _ f i e l d _ c a t a l o g ? = c l _ a b a p _ s t r u c t d e s c r = > d e s c r i b e _ b y _ d a t a ( m t _ d i s p l a y) . * * f i e l dd e s c r i p t i o n * l s _ f i e l d _ u s a g e n a m e=' T E X T R E F ' . * l s _ f i e l d _ u s a g e t e c h n i c a l _ f i e l d=' X ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * C L E A Rl s _ f i e l d _ u s a g e t e c h n i c a l _ f i e l d . * * l s _ f i e l d _ u s a g e n a m e=' L I N K T O U R L ' . * l s _ f i e l d _ u s a g e t e x t _ r e f=' T E X T R E F ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' l i n k T o U R L ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' T E X T V I E W ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' T e x t V i e w ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' I N P U T F I E L D ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' I n p u t F i e l d ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' L I N K T O A C T I O N ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' L i n k T o A c t i o n ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' B U T T O N ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' B u t t o n ' . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * * l s _ f i e l d _ u s a g e n a m e=' I M A G E ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' I m a g e ' .

scn.sap.com/message/10768608#10768608

34/44

12/9/13
*

Create Wire Model in webdynpro FPM. | SCN


* A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . * l s _ f i e l d _ u s a g e n a m e=' D R O P D O W N ' . * l s _ f i e l d _ u s a g e h e a d e r _ l a b e l=' D r o p d o w n ' . * * l s _ f x d v a l t e x t=' P r i n t e r ' . * l s _ f x d v a l v a l u e=' P R I N T E R ' . * A P P E N Dl s _ f x d v a lt ol t _ f x d v a l . * * l s _ f x d v a l t e x t=' L o p t o p ' . * l s _ f x d v a l v a l u e=' L O P T O P ' . * A P P E N Dl s _ f x d v a lt ol t _ f x d v a l . * * l s _ f x d v a l t e x t=' W e b c a m ' . * l s _ f x d v a l v a l u e=' W E B C A M ' . * A P P E N Dl s _ f x d v a lt ol t _ f x d v a l . * * l s _ f i e l d _ u s a g e f i x e d _ v a l u e s=l t _ f x d v a l . * A P P E N Dl s _ f i e l d _ u s a g et oe t _ f i e l d _ d e s c r i p t i o n . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B _ L I S T ~ P R O C E S S _ E V E N T M e t h o d Z C L _ G U I B B _ L I S T -

* + + * |[ > ] I O _ E V E N T C L _ F P M _ E V E N T * | [ > ] I V _ R A I S E D _ B Y _ O W N _ U I B O O L E _ D ( o p t i o n a l ) *|[ > ]I V _ L E A D _ I N D E X *|[ > ]I V _ E V E N T _ I N D E X * | [ > ] I T _ S E L E C T E D _ L I N E S R S T A B I X T A B *| [ < ]E V _ R E S U L T F P M _ E V E N T _ R E S U L T * |[ < ] E T _ M E S S A G E S F P M G B _ T _ M E S S A G E S T Y P E T Y P E T Y P E T Y P E T Y P E T Y P ER E F T O T Y P E S Y T A B I X S Y T A B I X

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B _ L I S T ~ P R O C E S S _ E V E N T . * -w h i c he v e n t ? C A S Ei o _ e v e n t > m v _ e v e n t _ i d . * -l e a ds e l e c t i o n W H E Ni f _ f p m _ g u i b b _ l i s t = > g c _ f p m _ e v e n t _ o n _ l e a d _ s e l . * -m a n a g eo w nl e a ds e l e c t i o nc h a n g e C H E C Ki v _ r a i s e d _ b y _ o w n _ u i=a b a p _ t r u e . m o _ c o l l e c t i o n > s e t _ l e a d _ s e l e c t i o n _ i n d e x ( i v _ l e a d _ i n d e x ) . * -a l lo t h e re v e n t s W H E NO T H E R S . E N D C A S E . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B ~ G E T _ P A R A M E T E R _ L I S T M e t h o d Z C L _ G U I B B _ L I S T -

scn.sap.com/message/10768608#10768608

35/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


* + + * | [ < ( ) ] R T _ P A R A M E T E R _ D E S C R F P M G B _ T _ P A R A M _ D E S C R T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ G U I B B ~ G E T _ P A R A M E T E R _ L I S T . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > I F _ F P M _ G U I B B ~ I N I T I A L I Z E M e t h o d Z C L _ G U I B B _ L I S T -

* + + * |[ > ] I T _ P A R A M E T E R F P M G B _ T _ P A R A M _ V A L U E * | [ > ] I O _ A P P _ P A R A M E T E R I F _ F P M _ P A R A M E T E R ( o p t i o n a l ) * | [ > ] I V _ C O M P O N E N T _ N A M E F P M _ C O M P O N E N T _ N A M E ( o p t i o n a l ) * | [ > ]I S _ C O N F I G _ K E Y W D Y _ C O N F I G _ K E Y ( o p t i o n a l ) T Y P E T Y P E R E F T O T Y P E T Y P E

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ g u i b b ~ i n i t i a l i z e . s e t _ u p _ p o r t s () . E N D M E T H O D .

* < S I G N A T U R E > + *|I n s t a n c eP r o t e c t e dM e t h o dZ C L _ G U I B B _ L I S T > S E T _ U P _ P O R T * + + * |[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E T Y P E

* + < / S I G N A T U R E > m e t h o dS E T _ U P _ P O R T . F I E L D S Y M B O L S : < l s _ p o r t >L I K EL I N EO Fm t _ o u t p o r t , < l s _ o b j e c t _ k e y >L I K Em s _ o b j e c t _ k e y . * -c o l l e c t i o no u t p o r t A P P E N DI N I T I A LL I N ET Om t _ o u t p o r tA S S I G N I N G< l s _ p o r t > . < l s _ p o r t > t y p e=i v _ p o r t _ t y p e . C R E A T ED A T A< l s _ p o r t > o b j e c t _ k e yL I K Em s _ o b j e c t _ k e y . A S S I G N< l s _ p o r t > o b j e c t _ k e y > *T O< l s _ o b j e c t _ k e y > . < l s _ o b j e c t _ k e y >=m s _ o b j e c t _ k e y . < l s _ p o r t > i d e n t i f i e r=m s _ o b j e c t _ k e y . < l s _ p o r t > d e s c r i p t i o n=m v _ p o r t _ d e s c r i p t i o n . e n d m e t h o d .

* < S I G N A T U R E > + *|I n s t a n c eP r o t e c t e dM e t h o dZ C L _ G U I B B _ L I S T > S E T _ U P _ P O R T S * + + * + < / S I G N A T U R E > M E T H O Ds e t _ u p _ p o r t s . m v _ p o r t _ d e s c r i p t i o n=' s e l e c t i o no u t p o r t ' . * -s e l e c t i o no u t p o r t

scn.sap.com/message/10768608#10768608

36/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


s e t _ u p _ p o r t (i f _ f p m _ f e e d e r _ m o d e l = > c s _ p o r t _ t y p e s e l e c t i o n) . m v _ p o r t _ d e s c r i p t i o n=' l e a ds e l e c t i o no u t p o r t ' . * -l e a ds e l e c t i o no u t p o r t s e t _ u p _ p o r t ( i f _ f p m _ f e e d e r _ m o d e l = > c s _ p o r t _ t y p e l e a d _ s e l e c t i o n) . E N D M E T H O D . E N D C L A S S .

Code for Assistance Class also working as Feeder Model Class:


c l a s sZ C L _ F R E E G U I B B _ A S S I Td e f i n i t i o n p u b l i c i n h e r i t i n gf r o mC L _ W D _ C O M P O N E N T _ A S S I S T A N C E c r e a t ep u b l i c. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ F R E E G U I B B _ A S S I T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! i n t e r f a c e sI F _ F P M _ F E E D E R _ M O D E L. m e t h o d sB E F O R E _ P B O. m e t h o d sI N I T i m p o r t i n g ! I O _ A T T R _ N O D Et y p er e ft oI F _ W D _ C O N T E X T _ N O D E. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ F R E E G U I B B _ A S S I T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ F R E E G U I B B _ A S S I T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM O _ C O N N E C T O Rt y p er e ft oI F _ F P M _ C O N N E C T O R _ R U N. d a t aM O _ A T T R _ N O D Et y p er e ft oI F _ W D _ C O N T E X T _ N O D E. d a t aM O _ C O L L E C T I O Nt y p er e ft oZ C L _ C O L L E C T I O N _ S U P P O R T. E N D C L A S S .

C L A S SZ C L _ F R E E G U I B B _ A S S I TI M P L E M E N T A T I O N .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ F R E E G U I B B _ A S S I T > B E F O R E _ P B O * + + * + < / S I G N A T U R E > M E T H O Db e f o r e _ p b o . D A T A : l s _ d a t aT Y P EZ C L _ C O L L E C T I O N _ S U P P O R T = > t y _ d a t a , l o _ r t t iT Y P ER E FT Oc l _ a b a p _ s t r u c t d e s c r , l r _ d a t aT Y P ER E FT Od a t a , l t _ p r o pT Y P Ew d r _ c o n t e x t _ p r o p _ f o r _ n o d e _ t a b . F I E L D S Y M B O L S : < l s _ d a t a >T Y P Ea n y , < l s _ p r o p >L I K EL I N EO Fl t _ p r o p . C H E C Km o _ a t t r _ n o d eI SB O U N D . I Fm o _ c o n n e c t o rI SB O U N D . m o _ c o l l e c t i o n? =m o _ c o n n e c t o r > g e t _ o u t p u t () . E N D I F .

scn.sap.com/message/10768608#10768608

37/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


I Fm o _ c o l l e c t i o nI SB O U N D . l s _ d a t a=m o _ c o l l e c t i o n > g e t _ l e a d _ s e l e c t i o n () . E N D I F . l o _ r t t i = m o _ a t t r _ n o d e > g e t _ n o d e _ i n f o ( ) > g e t _ s t a t i c _ a t t r i b u t e s _ t y p e () . C R E A T ED A T Al r _ d a t aT Y P EH A N D L El o _ r t t i . A S S I G Nl r _ d a t a > *T O< l s _ d a t a > . M O V E C O R R E S P O N D I N Gl s _ d a t aT O< l s _ d a t a > . m o _ a t t r _ n o d e > s e t _ s t a t i c _ a t t r i b u t e s ( s t a t i c _ a t t r i b u t e s = < l s _ d a t a >) . C H E C Km o _ c o l l e c t i o nI SI N I T I A L . m o _ a t t r _ n o d e > g e t _ a t t r i b u t e _ p r o p s _ f o r _ n o d e ( I M P O R T I N G p r o p e r t i e s=l t _ p r o p) . L O O PA Tl t _ p r o pA S S I G N I N G< l s _ p r o p > . < l s _ p r o p > e n a b l e d=a b a p _ f a l s e . E N D L O O P . m o _ a t t r _ n o d e > s e t _ a t t r i b u t e _ p r o p s _ f o r _ n o d e (l t _ p r o p) . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ I N P O R T _ K E Y Z C L _ F R E E G U I B B _ A S S I T -

* + + *|[ < ( ) ]R R _ O B J E C T _ K E Y T Y P ER E FT OD A T A * + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ g e t _ i n p o r t _ k e y . F I E L D S Y M B O L S : < l s _ o b j e c t _ k e y >T Y P Ea n y .

C R E A T ED A T Ar r _ o b j e c t _ k e yT Y P EcL E N G T H1 . A S S I G Nr r _ o b j e c t _ k e y > *T O< l s _ o b j e c t _ k e y > . < l s _ o b j e c t _ k e y >=' A ' . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E Z C L _ F R E E G U I B B _ A S S I T -

* + + * |[ < ( ) ] R V _ N A M E S P A C E F P M _ M O D E L _ N A M E S P A C E T Y P E

* + < / S I G N A T U R E > m e t h o dI F _ F P M _ F E E D E R _ M O D E L ~ G E T _ N A M E S P A C E . r v _ n a m e s p a c e=' F P M _ D E M O _ S I M I ' . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T S Z C L _ F R E E G U I B B _ A S S I T -

* + + * |[ < ] E T _ O U T P O R T T Y _ T _ P O R T T Y P E

scn.sap.com/message/10768608#10768608

38/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


* + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ g e t _ o u t p o r t s . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ G E T _ O U T P O R T _ D A T A Z C L _ F R E E G U I B B _ A S S I T -

* + + * |[ > ] I V _ P O R T _ T Y P E F P M _ M O D E L _ P O R T _ T Y P E * | [ > ] I V _ P O R T _ I D E N T I F I E R F P M _ M O D E L _ P O R T _ I D E N T I F I E R *|[ < ( ) ]R O _ D A T A T Y P E T Y P E T Y P ER E FT OO B J E C T

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ g e t _ o u t p o r t _ d a t a . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c M e t h o d > I F _ F P M _ F E E D E R _ M O D E L ~ S E T _ C O N N E C T O R Z C L _ F R E E G U I B B _ A S S I T -

* + + * | [ > ] I O _ C O N N E C T O R I F _ F P M _ C O N N E C T O R _ R U N T Y P E R E F T O

* + < / S I G N A T U R E > M E T H O Di f _ f p m _ f e e d e r _ m o d e l ~ s e t _ c o n n e c t o r . m o _ c o n n e c t o r=i o _ c o n n e c t o r . E N D M E T H O D .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ F R E E G U I B B _ A S S I T > I N I T * + + * | [ > ] I O _ A T T R _ N O D E I F _ W D _ C O N T E X T _ N O D E T Y P E R E F T O

* + < / S I G N A T U R E > M E T H O Di n i t . m o _ a t t r _ n o d e=i o _ a t t r _ n o d e . E N D M E T H O D . E N D C L A S S .

Code for Collection support class (Used for Providing Data):


c l a s sZ C L _ C O L L E C T I O N _ S U P P O R Td e f i n i t i o n p u b l i c c r e a t ep r i v a t e g l o b a lf r i e n d sZ C L _ G U I B B _ L I S T. p u b l i cs e c t i o n . * " *p u b l i cc o m p o n e n t so fc l a s sZ C L _ C O L L E C T I O N _ S U P P O R T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! t y p e s : B E G I NO Ft y _ d a t a , u s e r i d T Y P Ez d e _ u s e r i d , p a s s w o r d T Y P Ez d e _ p a s s , n a m e T Y P Ez d e _ e m p n a m e ,

scn.sap.com/message/10768608#10768608

39/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN


r o l e T Y P Ez d e _ r o l e , d o b T Y P Ez d e _ d o b , d o j T Y P Ez d e _ d o j , g e n d e r T Y P Ez d e _ g e n d e r , a d d r e s s T Y P Ez d e _ e m p a d d r e s s , p h o n e T Y P Ez d e _ p h o n e n o , m a n a g e r i dT Y P Ez d e _ m a n a g e r i d , r a t i n g T Y P Ez d e _ r a t i n g , E N DO Ft y _ d a t a. t y p e s : t _ d a t aT Y P ES T A N D A R DT A B L EO Ft y _ d a t a W I T HD E F A U L TK E Y. d a t aM V _ L E A D _ S E L E C T I O N _ I N D E Xt y p eIr e a d o n l y. m e t h o d sG E T _ T A B L E r e t u r n i n g v a l u e ( R T _ D A T A )t y p eT _ D A T A. m e t h o d sG E T _ L E A D _ S E L E C T I O N r e t u r n i n g v a l u e ( R S _ D A T A )t y p eT Y _ D A T A. m e t h o d sS E T _ T A B L E i m p o r t i n g ! I T _ D A T At y p eT _ D A T A. m e t h o d sS E T _ L E A D _ S E L E C T I O N _ I N D E X i m p o r t i n g ! I V _ I N D E Xt y p eI. m e t h o d sS E T _ A T T R I B U T E i m p o r t i n g ! I V _ A T T R I B U T Et y p eN A M E _ K O M P ! I _ V A L U Et y p eA N Y ! I V _ I N D E Xt y p eIo p t i o n a l. m e t h o d sG E T _ T O T A L _ C O U N T r e t u r n i n g v a l u e ( R V _ C O U N T )t y p eI. p r o t e c t e ds e c t i o n . * " *p r o t e c t e dc o m p o n e n t so fc l a s sZ C L _ C O L L E C T I O N _ S U P P O R T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! m e t h o d sC O N S T R U C T O R. p r i v a t es e c t i o n . * " *p r i v a t ec o m p o n e n t so fc l a s sZ C L _ C O L L E C T I O N _ S U P P O R T * " *d on o ti n c l u d eo t h e rs o u r c ef i l e sh e r e ! ! ! d a t aM T _ D A T At y p eT _ D A T A. t y p e p o o l sA B A P. d a t a M V _ I S _ D I R T Y t y p e A B A P _ B O O L v a l u e A B A P _ F A L S E . " # E C N O T E X T. m e t h o d sC R E A T E _ D A T A. E N D C L A S S .

C L A S SZ C L _ C O L L E C T I O N _ S U P P O R TI M P L E M E N T A T I O N .

* < S I G N A T U R E > + * | I n s t a n c e > C O N S T R U C T O R P r o t e c t e d M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + * + < / S I G N A T U R E > M E T H O Dc o n s t r u c t o r . c r e a t e _ d a t a () . E N D M E T H O D .

scn.sap.com/message/10768608#10768608

40/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

* < S I G N A T U R E > + * | I n s t a n c e > C R E A T E _ D A T A P r i v a t e M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + * + < / S I G N A T U R E > M E T H O Dc r e a t e _ d a t a . S E L E C T*I N T OC O R R E S P O N D I N GF I E L D SO FT A B L E m t _ d a t aF R O MZ P M S _ E M P L O Y E E . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > G E T _ L E A D _ S E L E C T I O N M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + *|[ < ( ) ]R S _ D A T A T Y P E T Y _ D A T A * + < / S I G N A T U R E > m e t h o dG E T _ L E A D _ S E L E C T I O N . R E A DT A B L Em t _ d a t aI N D E Xm v _ l e a d _ s e l e c t i o n _ i n d e x I N T Or s _ d a t a . e n d m e t h o d .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ C O L L E C T I O N _ S U P P O R T > G E T _ T A B L E * + + *|[ < ( ) ]R T _ D A T A T Y P E T _ D A T A * + < / S I G N A T U R E > m e t h o dG E T _ T A B L E . r t _ d a t a=m t _ d a t a . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e > G E T _ T O T A L _ C O U N T P u b l i c M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + *|[ < ( ) ]R V _ C O U N T T Y P E I * + < / S I G N A T U R E > m e t h o dG E T _ T O T A L _ C O U N T . r v _ c o u n t=l i n e s (m t _ d a t a) . e n d m e t h o d .

* < S I G N A T U R E > + * | I n s t a n c e > S E T _ A T T R I B U T E P u b l i c M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + * |[ > ] I V _ A T T R I B U T E T Y P E

scn.sap.com/message/10768608#10768608

41/44

12/9/13
N A M E _ K O M P *|[ > ]I _ V A L U E *| [ > ]I V _ I N D E X I ( o p t i o n a l )

Create Wire Model in webdynpro FPM. | SCN


T Y P E A N Y T Y P E

* + < / S I G N A T U R E > M E T H O DS E T _ A T T R I B U T E . D A T A : l v _ i n d e xT Y P Ei . F I E L D S Y M B O L S : < l s _ d a t a >L I K EL I N EO Fm t _ d a t a , < l v _ v a l u e >T Y P Ea n y .

C H E C Km t _ d a t aI SN O TI N I T I A L . I Fi v _ i n d e xI SI N I T I A L . l v _ i n d e x=m v _ l e a d _ s e l e c t i o n _ i n d e x . E L S E . l v _ i n d e x=i v _ i n d e x . E N D I F . R E A DT A B L Em t _ d a t aI N D E Xl v _ i n d e xA S S I G N I N G< l s _ d a t a > . C H E C Ks y s u b r c=0 . A S S I G N C O M P O N E N T i v _ a t t r i b u t e O F S T R U C T U R E < l s _ d a t a > T O < l v _ v a l u e > . C H E C Ks y s u b r c=0 . < l v _ v a l u e >=i _ v a l u e . m v _ i s _ d i r t y=a b a p _ t r u e . E N D M E T H O D .

* < S I G N A T U R E > + * | I n s t a n c e P u b l i c > S E T _ L E A D _ S E L E C T I O N _ I N D E X M e t h o d Z C L _ C O L L E C T I O N _ S U P P O R T -

* + + *|[ > ]I V _ I N D E X T Y P E I * + < / S I G N A T U R E > m e t h o dS E T _ L E A D _ S E L E C T I O N _ I N D E X . m v _ l e a d _ s e l e c t i o n _ i n d e x=i v _ i n d e x . e n d m e t h o d .

* < S I G N A T U R E > + *|I n s t a n c eP u b l i cM e t h o dZ C L _ C O L L E C T I O N _ S U P P O R T > S E T _ T A B L E * + + *|[ > ]I T _ D A T A T Y P E T _ D A T A * + < / S I G N A T U R E > m e t h o dS E T _ T A B L E . m t _ d a t a=i t _ d a t a . I Fl i n e s (m t _ d a t a)>0 . m v _ l e a d _ s e l e c t i o n _ i n d e x=1 . E N D I F . e n d m e t h o d . E N D C L A S S .

Code in WD Components for Feeder Support:


Component controller methods:
m e t h o dG E T _ M O D E L _ A P I. r o _ f e e d e r _ m o d e l=w d _ a s s i s t .

scn.sap.com/message/10768608#10768608

42/44

12/9/13
e n d m e t h o d . m e t h o dP R O C E S S _ B E F O R E _ O U T P U T. w d _ a s s i s t > b e f o r e _ p b o () . e n d m e t h o d . m e t h o dW D D O I N I T.

Create Wire Model in webdynpro FPM. | SCN

D A T A : l o _ n o d eT Y P ER E FT Oi f _ w d _ c o n t e x t _ n o d e .

* -n a v i g a t ed a t an o d e l o _ n o d e = w d _ c o n t e x t > g e t _ c h i l d _ n o d e ( n a m e = w d _ t h i s > w d c t x _ d a t a) . w d _ a s s i s t > i n i t (l o _ n o d e) . e n d m e t h o d .

Like (0)

Manishekhar Singh Nov 26, 2012 8:20 AM (in response to Manishekhar Singh) Re: Create Wire Model in webdynpro FPM.

Dear all, Wiring between components can be done mainly by two type of FPM class. Transaction Handler class : It is implemented globally for a FPM Application. However, it is not mandatory to specify. So, you can make an application without using any transaction handler. Use interface IF_FPM_WIRE_MODEL_TRANSACTION Connector Class: It is main and mandatory part for implementing wire model. Here you can specify the Namespace and this namespace plays big role for passing data. Namespace: The definition interface possesses a static attribute, SV_NAMESPACE, which should be filled with the namespace (ex. FPM_DEMO or BOL or user specific such as XYZ_NS) in the class constructor of a connector implementation. Wire for Free UIBBs Wire model is implemented on Web Dynpro component by implementing IF_FPM_UIBB_MODEL Web Dynpro interface. It contains only one method GET_MODEL_API which is used to set FPM Feeder Model for Free GUIBBs. It contains only one parameter RO_FEEDER_MODEL. So, we have to create a FPM Feeder Model class and assign to that parameter. FPM Feeder Model Class Interface IF_FPM_FEEDER_MODEL is implemented for creating Feeder Model Class. Assistance class can also be used as Feeder Model Class and reference WD_ASSIT can used as Feeder model instance. Ex: METHOD get_model_api . ro_feeder_model = wd_assist. ENDMETHOD.

Wire for GUIBBs: Nothing special we need to do that. Interface IF_FPM_FEEDER_MODEL is also implemented on feeder class for getting port support. We need to set port manually using structure
scn.sap.com/message/10768608#10768608 43/44

12/9/13

Create Wire Model in webdynpro FPM. | SCN

IF_FPM_FEEDER_MODEL=>CS_PORT_TYPE. It contains three constants COLLECTION, SELECTION and LEAD_SELECTION. It should be properly configured. In addition of this, create collection handler class that will be passed between components for retrieving and fetching data.

Like (0)

Custodio de Oliveira Jun 20, 2013 6:03 AM (in response to Manishekhar Singh) Re: Create Wire Model in webdynpro FPM. Hi Manishekhar Singh ,

While I appreciate the info you provided in a few discussions, I've found it a bit complicated to follow and understand. Why don't you write a nice Blog or How To Document on this subject? Cheers, Custodio

Like (0)

Manishekhar Singh Jun 20, 2013 7:43 AM (in response to Custodio de Oliveira) Re: Create Wire Model in webdynpro FPM. Dear Custodio de Oliveira, I was also thinking to make some document. I will surely share with you. Thanks, Mani

Like (1)

Share

Tw eet

Like

Site Index Privacy

Contact Us Terms of Use

SAP Help Portal Legal Disclosure

Copyright

Follow SCN

scn.sap.com/message/10768608#10768608

44/44

You might also like