Component and custom controllers

Hi! Can someone tell me the difference between custom and component controllers? and any guidelines as when to use what?

Hi,
Majority Component/Coustom controllers resembles same. Still I found following differences
There will be only one default <b>Component controller</b> (called global) in a particular project but there can be any number of coustom controllers (we can create depending upon the requirement).
Component controller has the follwing methods apart from <b>wdDoInit(), wdDoExit()</b>
<b>public void wdDoPostProcessing(boolean isCurrentRoot)</b>[
This method is called to handle data retrieval errors before rendering.After doModifyView(), the Web Dynpro Framework gets all context data needed
*for rendering by validating the contexts (which in turn calls the supply
functions and supplying relation roles). In this hook, the application
should handle the errors which occurred during    validation of the contexts.
<b>public void wdDoBeforeNavigation(boolean isCurrentRoot)</b>[This allows you to flush the model queue and handle any
errors that occur. Firing outbound plugs is allowed.]
Genarally all the coustom code is coded in coustom controller for example if you want to add additional methods of your own, in case if you want to validate webdynpro UI elements input this validation code is coded in coustom controllers
go through the following URL
http://help.sap.com/saphelp_webas630/helpdata/en/eb/e1cb5eea012b4481f8077c6023a70e/content.htm
I hope  it helped you
RK

Similar Messages

  • Is  Creating a Custom Component and Custom UIComponent are same in Flex ??

    Hi ,
    I am getting confusion in the terminology of words  with respect to Custom  Components .
    Please let me know whether  Creating a Custom Component and Custom UIComponent are same in Flex ??
    Because i have created some  Custom Components based on Form Container based on my business screens .
    Does they both Custom Component and Custom UIComponent mean the same ??
    Please tell me .
    Thanks in advance

    There seems to be a little confusion here. Think of it this way:
    A basic UIComponent by itself is not visible; you can add something you can see to it to make a visual custom component. For example, a ComboBox component is a UIComponent with a ComboBox added to it.
    The UIComponent is the lightest weight component available from which you can create other components. I use it as the base for custom components that the user cannot see, like a data manager.
    HTH,
    Carlos

  • Custom component and custom event problem

    hello , i have a strange problem since one week , is that i can't handle the events becoming from my custom component , here is my code :
    Event Class :
    package events
         import flash.events.Event;
         public class Ev extends Event
              public static const UPDATE:String="update";
              public var data:String;
              public function Ev(type:String,data:String)
                   super(type);
                   this.data=data;
              override public function clone():Event
                   return new Ev(type,data);
    MXML component :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Metadata>
              [Event(name="onMenuChange",type="events.Ev")]
         </fx:Metadata>
         <fx:Script>
              <![CDATA[
                   import events.Ev;
                   import mx.events.IndexChangedEvent;
                   protected function accordion1_changeHandler(event:IndexChangedEvent):void
                        dispatchEvent(new Ev(Ev.UPDATE,event.newIndex.toString()));
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
         </fx:Declarations>
         <mx:Accordion width="200" height="200" change="accordion1_changeHandler(event)">
              <s:NavigatorContent label="Menu 1" width="100%" height="100%">
              </s:NavigatorContent>
              <s:NavigatorContent label="Menu 2" width="100%" height="100%">
              </s:NavigatorContent>
              <s:NavigatorContent label="Menu 3" width="100%" height="100%">
              </s:NavigatorContent>
         </mx:Accordion>
    </mx:VBox>
    the main container :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:local="*">
         <fx:Script>
              <![CDATA[
                   import events.Ev;
                   import mx.controls.Alert;
                   protected function comp1_onMenuChangeHandler(event:Ev):void
                        Alert.show(event.data,"notice");
              ]]>
         </fx:Script>
         <local:Comp onMenuChange="comp1_onMenuChangeHandler(event)"/>
    </s:Application>
    any help will be welcome !

    hi,
    Not sure why your custom event is not working, I tend not to worry about 'custom' events unless I need to transfer a lot of information.
    Here is a way to 'simplify' event management.
    I just declare a new event in the meta data and then send it to notify that a change has been made. Although the parent can find the index value easily enough I also use two-way bind the navigators index so that it is directly available for the application to manipulate/read .
    http://gumbo.flashhub.net/events/  source included
    David.

  • Difference between Component Controller and Custom Controllet...?

    Hi
    Can any one tell me Difference between Component Controller and Custom Controllet...?
    Best Regards
    Ravi Shankar B

    Hi RaviShankar B,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web%20dynpro%20sample%20applications%20and%20tutorials.htm
    Also refer to the below link
    Component and custom controllers
    Component Controller:-
    For each component of yours there will be a component controller, were in you can define context variables and methods, events etc.. This usefull while using models.
    Simple example where we can see this is, when you create global context variable in this controller and map this variable to the view controller context variable of different view, which enables you to pass the value of the variable from one view to another.
    Custom Controller:-
    They also have the same the function but as the name suggest there function can be customised. That is we can have more than one custom controller for a component. This is usefull when we need to create seperate execute methods for inputs from model import( Both webservice and rfc call).So you can seperate each other. Example is there in the more sample codes and application section.
    regards
    Anil Dichpally

  • Diff between Component controller,Custome controller and  View controller

    hi,
        Can any body tell me the following details,
    1.difference between the Component controller,Custome controller and  View controller in WD-ABAP.?
    2.what is Lead Selection?   
    Regards,
    Ravi

    Hi Ravi.
    The component controller is visbile to all views in a component. So all context nodes and methods you create here can be accessed from all views in the component. This way you can share data between the views by mapping context nodes or thru method calls. You can also mark methods and nodes as interface so that they are acessable from other components that define component usages to this cmponent.
    Custom controller is quiet similar to the component controller. You can define it if you want to group some views with a custom controller for a certain functionality.
    If you want to access a custom controller in a view you have to define the usage first on the properties tab of the view.
    A view controller is only visible in the view itself. So all methods or context nodes you define here are only accesable by the current view.
    The lead selection is in most cases the current selected element in a context node. The lead selection is used by many UI elements to determine which element has to be shown (e.g drop down).
    If you have a table with single selection the current selected table row is the lead selection element of the bound context node.
    SO you can get the lead selection element easily in any mthod by calling context_node->get_element( ).
    Hope this clears your questions.
    Cheers,
    Sascha

  • A Custom Component and the JSP source that get's generated

    I'm writing a Custom Component library and I'm at a point where I need to understand how the JSP source that gets generate when my component is dragged from the palete is created and how it relates to the properties I define in the Metadata files.
    In particular I have a component that is an extension of the DataTable component and I'd like to control what get's dropped onto the page when the user drags over my component.
    Don

    See the "Building and Customizing JavaServer Faces Technology Components" technology theme page at http://developers.sun.com/prodtech/javatools/jscreator/reference/themes/buildingjsf/index.html. The Hands-On Examples and "Design-Time API User Guide (pdf)" linked from that page should help.

  • How to get an event both in custom component and into its instance

    I have a custom component that extends a Jtree
    I want to know when a node is clicked both , into my component and after into the component sited into Jpanel
    now, I can only detect it into the component, but I dont know how to detect it at the component I have in my Jpanel
    I have 'addTreeSelectionListener' in both places ...
    xxxxx.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
    public void valueChanged(javax.swing.event.TreeSelectionEvent e) { .....
    Any help ?
    Thanks

    tonnot wrote:
    Thank you.
    I think that a good answer can be ' Revise your code, because there must be a problem' Well, that's the life of a programmer. If you want to post an SSCCE, I'm sure somebody can help if you get stuck.
    And ...
    Why are you extending JTree? I'd bet you shouldn't be.Why not ? ....
    Why SUN develop the 'extends' functionality ? You should use extends if you're changing the behavior of an existing class. An example of this is extending JPanel and overriding the paintComponent() method to do some custom painting.
    You should not use extends if you just need an instance of an existing class. An example of this is extending JFrame instead of simply creating a JFrame instance.
    Without seeing your code, I can't be sure you're misusing extends. But many people do.
    Here's an example.
    Bad:
    public class MyProgram extends JFrame{
       public MyProgram(){
          setSize(200, 200);
          setVisible(true);
       public static void main(String [] args){
          new MyProgram();
    }Better:
    public class MyProgram{
       public MyProgram(){
          JFrame frame = new JFrame();
          frame.setSize(200, 200);
          frame.setVisible(true);
       public static void main(String [] args){
          new MyProgram();
    }

  • Why we need Custom controllers in Model Applications

    Hi Friends
    In Adaptive RFC Model Application we can use both the controllers for creating contex structure
    wat is the main aim for using custom controller
    it has any special feature in custom conrollers
    i read both the controllers have same functionality n flexibility
    any body differentiate these two controllers
    n which one is efficient for connecting Model applications
    Regards
    Narayana

    Hi Narayana,
    There are many situations when you need custom controllers over component controller.
    Suppose you have one DC and you want to make some part of this DC as Public which may include Local context nodes, elements, methods or model context with specified methods to process some functionality. By Interfacing a custom controller with all the exportable methods and context you reach to a certain level of security.
    In this case you are distributing your module in multiple custom controllers which ultimately reduces complexity of programming, code and obviously execution time.
    This is up to  the developer, if he/she wants to create custom controllers or not, but yes in certain situations you should go for custom controllers. It is always good to have multiple custom controllers when you are using single DC for different modules.
    Regards,
    Amol

  • HR LDB PNP and customer infotypes in 640

    Hello,
    I encountered the following problem during an upgrade from 4.6C to SAP ERP Central Component 5.0. When using logical database PNP and customer infotypes the syntax check produces the following syntax error:
    - INCLUDE report "%_HR9731" not found
    I have added an example program below. Prerequisite for this program is that the cutomer infotype 9731 exists in the system.
    Has anyone experienced this problem before? And if so, is there a solution? I can program some workarounds, but I prefer a solution, which does not involve changing my code.
    Regards,
    Marcel
    REPORT ZTESTINFOTYPES.
    tables: pernr.
    infotypes: 0000,
    0001,
    0002,
    9731 mode n.
    start-of-selection.
    get pernr.
    write / p0002-pernr.
    end-of-selection.

    Hi all,
    "You will have to run report RPUMS40CCI (XPRA for generation of
    infotype include) for existing customer-defined infotypes.
    If you have not run this report then please do so.
    The report RPU40CCI creates the infotype include %_HRnnnn (nnnn =
    infotype number) and the additional data structure Pnnnn_AF (nnnn =
    infotype number) for the given infotype, provided that the correspondin parameter ("generate infotype include" or "generate additional data
    structure") are set on the selection screen. If the parameter "maintain only T77ID" is set, no infotype include or additional data structure is maintained, only those entered in table T77ID."
    Best Regards
    Silvio Galery

  • Difference between component controller & Custom controller

    Hi all
    what is the main difference b/w component controller , custom controller & interface controller.
    i want to know the difference of these three in the real time environment.
    if anybody explains me with any simple example then it is great help to me....
    Thanks
    Suresh babu.

    Hi Suresh,
    Component Controller and Custom Controller are more or less the same. Both are related to a particular component in the webdynpro application you create.
    Component Controller:-
    For each component of yours there will be a component controller, were in you can define context variables and methods, events etc.. This usefull while using models.
    Simple example where we can see this is, when you create global context variable in this controller and map this variable to the view controller context variable of different view, which enables you to pass the value of the variable from one view to another.
    Custome Controller:-
    They also have the same the function but as the name suggest there function can be customised. That is we can have more than one custom controller for a component. This is usefull when we need to create seperate execute methods for inputs from model import( Both webservice and rfc call).So you can seperate each other. Example is there in the more sample codes and application section.
    Interface Controller:
    There is only one interface controller for a component. It is mainly used when we need to communicate between two components.There is sample application for communication between two components in the sample codes and application section.
    Regards
    Sreedhar.

  • Significance of IBase, Component and Product ID while creating Change Reque

    Hello,
    When we create a change request via SOLMAN_WORK_CENTER, we are supposed to provide values for
    1) IBase
    2) Component
    3) Product ID
    Ibase can be defined as the way SAP differentiates in a multiple system (APO, CRM, ECC) environment, the corresponding environment.
    The values corresponding to IBase can be obtained via IB51,52 and 53 tcodes.
    Can the value for IBase obtained via SMSY t code also?
    What does component and Product ID signify?
    Where can we get values for Component and Product ID?
    Is Product ID the same as value we get from menu Option System->Status->Installation Number
    Is it necessary to provide all 3 values (i.e. IBase, Component , Product ID) while creating change request?
    If Not, how will SolMan identify which system the change should point to?
    Or only value for Ibase is enough?
    Thanks,
    Vikas

    Ibase can be defined as the way SAP differentiates in a multiple system (APO, CRM, ECC) environment, the corresponding environment.
    The values corresponding to IBase can be obtained via IB51,52 and 53 tcodes.
    Can the value for IBase obtained via SMSY t code also?
    No
    What does component and Product ID signify?
    Product ID is not mandatory. I actually hide it in the CRMD_ORDER screen.
    Where can we get values for Component and Product ID?
    Is Product ID the same as value we get from menu Option System->Status->Installation Number
    Component  - IB52 as you already mentioned
    Product ID - in a customizing table, I've seen it once but can't remember where honestly. As stated, I don't bother with the field
    Is it necessary to provide all 3 values (i.e. IBase, Component , Product ID) while creating change request?
    The iBase and component are mandatory, odd thing is if you enter the component without entering 1 in the iBase, SolMan will fill the 1 in for you.
    If Not, how will SolMan identify which system the change should point to?
    By the logical components assigned to your maintenance project. You can actually have transports for more than one production assigned to your change document. For instance you could have a BI and ECC transport assigned to the sane change document. Your tak list will have the dev, testing and production systems for each logical component assigned.
    Or only value for Ibase is enough?
    I was having this discussion with someone the other day. Since the logical components assigned to the mianteance project really determines what systems you can create transports for, what is the value of the component field? Best I could determine was when you use the Logon on to System action, it points to the one listed in the component field only. other than that, I'm not sure.

  • To update vendor and customer details in BP transaction

    I have created a donor in the BP transaction . i need to update the vendor and customer details for the reated donor.
    please can someone suggest some BAPI's or FM's which are available to do the same.

    Hello Om,
    You can get vendor/costumer number and their names in FBL3N when you get bank ledger's line item.
    You must use BTE functions.
    I don't your techinal skills about SAP but if you don't know ABAP or ABAP dictionary details, you can get help your ABAPer.
    I will explain step by step.
    First of all, if you don't use BTE before, You must create a product on FIBF.
    Call FIBF transaction -> Settings -> Products -> ...of a customer
    Create a new line,
    Product : ZFI
    Text : BTE Products for FI Exit
    Product active : tick check fro activation.
    Then you must call SE11 for structure RFPOS.
    You must use append structure function for this structure and you can define ZFI_RFPOS append structure.
    Define 4 fields.
    Component : KUNNR - Component type : KUNNR
    Component : NAMED - Component type : NAME1
    Component : LIFNR - Component type : LINFR
    Component : NAMEK - Component type : NAME1
    Then save and active your RFPOS structure.
    After that, you must do same step for structure RFPOSX.
    Then go to SE37 and copy from SAMPLE_INTERFACE_00001650 to ZFI_INTERFACE_00001650 FM.
    After copy action, you must uncomment this line on ZFI_INTERFACE_00001650 FM's source code. It's very very important;
    E_POSTAB = I_POSTAB.
    Then you should add some ABAP code for getting customer & vendor details.
    I give you some examples, you can use it. (next message on this thread, please check)
    Then save and active FM.
    Call FIBF transaction again.
    FIBF -> Settings -> Process Modules -> ...of a customer
    Define a new line.
    Process : 00001650
    Function Module : ZFI_INTERFACE_00001650
    Product : ZFI
    and this customizing.
    Then you go to SE38 transaction.
    start report RFPOSXEXTEND. After starting, a pop-up appears, you must click YES.
    After those operations, you can see customer/vendor code and their names on FBL3N.
    I hope it helps to you.
    Regards,
    Burak.

  • How to use  or call component in custom script expression

    i want to use component in custom script expression .(custom script expression is located at :
    when yow will click on one of the steps in criteria workflow
    1)there is a tag named as event on clicking the event tag,there are two buttons named edit and clear on clicking edit.there is a screen having custom as a tag,on clicking that tag there is written custom script expression, here i hav to write a code to include a component).

    you can define code in a component (a service or an IDOC Include) that you can then call from the workflow "custom" tab.
    So if your component has an include like this:
    <@dynamichtml myInclude@>
    <$do Some Stuff$>
    <@end@>
    Then in your workflow step event "custom" tab you can write:
    <$include myInclude$>
    The workflow event will then execute the <$do Some Stuff$> line.
    With a service, you would define the service in your component then call <$executeService("MYService")$> in the step event custom code.
    You cannot define includes or services in the custom script tab for workflow.

  • Can we get  reference of WD component in custom class of enhanced View cont

    Dear Member,
    We are enhancing WD component. We need to get a reference of WD component in custom class of enhanced View controller (post exit) so that popups can be triggered or URLs can be called?. How should we get reference of WD component? I need to know cons of our approach.
    ...Naddy

    Hi,
    Create one static attribute in your custom class with type ref to of your component and populate this attribute in webdynpro enhancement and then use this reference in your custom class.
    Regards,
    Pon Murugesh

  • Customer Material Stock Summary Component vise & Customer Vise.

    Dear friends,
    plz give a report name where we can see material as.Customer Material Stock Summary Component vise & Customer Vise.
    thanks
    zara

    hi G. Lakshmipathi,
    thanks for your valuable reply. and need again help. plz see my new requirement and suggest the solution.
    thanks
    zara

Maybe you are looking for

  • What's New in Illustrator CS6 | Visual Design CS6 | Adobe TV

    Adobe Design evangelist Rufus Deuchler provides an overview of what's new in Illustrator CS6 http://adobe.ly/I7OPj9

  • How do you choose what opens at start up!

    I don't know what my son did, but skype, imovie, messenger and iphoto all open when I turn my computer on. How do I shut it off. I know it is something simple. I just don'w know what it is?

  • Even Based XML Parsing in ABAP

    Hi all ,   Currently i am using DOM Based Parsing to parse XML in my ABAP program. i am planning to change the code by using Event based parsing which is recommended for perfomance when we parse large xml document Any one have the Example program for

  • Option Activate Applications in Client not found in GRC 10.0

    Hi Experts, Have installed SAP GRC NW Plug-in and I was not getting options to activate access Controls.  I am only getting options for Access Controls are Maintain Plug-in Exits Settings and Maintain Plug-in Configuration Settings. As per the instal

  • TCP socket I/O from the kernel

    We've been working on extending our filesystem support from UDP to TCP, and have run into an apparent roadblock. We'd like to know whether Sun is aware of the problem that we're seeing, and if so, if there is something else we should be doing to avoi