Assistance class not instantiated in the component controller of an ABAP WD

I have a very weird problem when trying to launch an ABAP webdynpro I get a short dump, looking into it the assitance class does not get instantiated properly so it falls over.  It used to work, but I don't think I have substantially changed anything with the assitance class just on the layout, although something must have changed.
In the constructor of the component controller it trys to cast (I think that is the correct term)  the assistance class from the compoent controller as below, Me->f_Alter_Ego->assistance_class is initial so that fails, it then tries to create the assistance class and falls over on create object Me->f_Assist.
  try.
    Me->f_Assist ?= Me->f_Alter_Ego->assistance_class.
  catch cx_sy_move_cast_error.    "#EC NO_HANDLER
  endtry.
  if not Me->f_Assist is bound.
    create object Me->f_Assist.
  endif.
Extract from the short dump below.
What happened?
    Error in the ABAP Application Program
    The current ABAP program "/1BCWDY/4LYS0NWZ8L8ENKKA93YQ==CP" had to be
     terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
     "ZCL_WD_USER_MAINT=============CP " in include
     "ZCL_WD_USER_MAINT=============CM004 " in
    line 7:
    "You can only use "class=>method" with static methods."
Other ABAP web dynpros in our system are fine.
I have tried the obvious stuff like removing the assitance class from the WD component and putting it back in again.
There is obviously somehting I am missing can anyone point me in the right direction or has experienced this before?
Thanks,
Tim

Thanks Thomas,
I could not see the wood for the trees on that one, I had syntax checked the assitance class ZCL_WD_USER_MAINT, however, that error would have been raised at runtime.
Anyway all sorted now.
Cheers,
Tim

Similar Messages

  • Assistance Class is instantiated two times

    Hi at all,
    i´ve git a problem with using the assistance class. I declared the usage of an assistance class in my compoonent. But however, the framework is instantiating it two times. I don´t call the Create Object Method - nowhere. Can anybody help?
    Kind regards
    Armin Dizdarevic

    Hi, i have done the following and it is not coming 2 times in the constructor of Assistance class.
    Components Comp-1 ,Comp-2 are created with respective assistance classes.
    assit_1 and assist_2 and both classes have the  constructor.
    Each component has a view and window init.
    Comp-1->view_1- has a button 'Popup'.
    on action popup
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_usage_popup( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      lo_cmp_usage->create_component( ).
    endif.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window_for_cmp_usage(
                       interface_view_name    = 'W_MAIN'
                       component_usage_name   = 'USAGE_POPUP'
    *                  title                  =
    *                  close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
    lo_window->open( ).
    when i run this code, the assist classes are called only once and not twice as you posted.
    Please explain me where are you differing in the above process.

  • Web Dynpro Tree in the Component Controller

    Hi!!!
    I made a tree in the view. But to separating the view and the model I would like to create the tree in the component controller. Therefor I copy the code from the view to the controller and adapt them, but it doesn`t work. I get the first node and that`s it. I can`t add children, although I called the responsible method.
    Some ideas????
    Greets
    Roman

    Check your mapping between view & controller (actually, view controller & custom / interface / component controller) -- it seems that you have mapped only top-level node but not children.
    VS

  • Methods in the Component controller

    Hello,
    When is better call a method in the component controller, than run only a viewu2019s method?
    In other words, what kind of methods should to be in the component controller and what kind of methods should to be in the view?
    Could you give me some examples?
    Regards
    Janeth

    hi
    The EventHandler methods like on Action<actionname>() and methods to fire plugs we will generally used in view controllers.
    If we want to intialise any attributes we will do it in WdDoInit() method of view Controller.
    Generally its not preferrable to write business logic which is used by many components like service contoller generated methods in a view.
    Its a good way to use Service Controller methods like execute<bapiname> in Component Controller.
    For Dynamic Generation of UiElements we will use the WdDoModifyView(..) we use it in View.
    Regards
    sowmya.

  • How to work with the component controller.

    I Created a Z component.
    In that component controller i ceated a context node by using value node with BUT000 with the attribute NAME_ORG1.
    I created a view in the same component.
    In the view i created a Context Node BUT000 wiht NAME_ORG1.
    I bind this view context node with compnent controller context node.
    I want set the value from the view context node to component controller context node. How it is possible?
    I created another Z component.
    I created compoent controller like same context node above.
    I created the view also.
    I want display the first compoent controller data in the second component controller.
    How it is possible.
    For one component to another component we can pass the data based on component controller only?
    Please give me how i can set/display the component controller context node with the data?
    Thank You.
    Regards,
    B. Krishna.

    Hi Manish.
        Thank you for reply Manish. I need some more information.
    I created ZCOMP1 with view V1 and ZCOMP2 with view V2.
    In both component controllers I created Context node by usng NAME_ORG1 of BUT000.
    I provide the Navigation link from ZCOMP1 to ZCOMP2 as well as ZCOMP2 to ZCOMP1.
    In Run Time Repository I provied two components as a INTERFACE VIEWS and
    I provide ZCOMP2 as component Usage in ZCOMP1 as well as ZCOMP1 as a Component Usage in ZCOMP2.
    Now, what ever data I entered in ZCOMP1 like NAME_ORG1 is "HELLO" then
    This infomation I want display in ZCOMP2 - V2.
    In ZCOMP2 method  wd_usage_initialize
    I write like this.
    IF IV_USAGE->USAGE_NAME = 'CompUsage'.
        iv_usage->bind_context_node( iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                                       iv_target_node_name = 'BUT000'       
                                       iv_node_2_bind      = 'BUT000' ).    
      ENDIF.
    But it is displaying the Exception like this
    Cannot display view ZCOMP2/MainWindow of UI Component ZCOMP2
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - The view controller or custom controller "" was implemented incorrectly 
    Method:  CL_BSP_WD_COMPONENT_USAGE=>IF_BSP_WD_COMPONENT_USAGE~BIND_CONTEXT_NODE 
    Source Text Row:  24
    Please tell me how to solve this Problem.
    Regards,
    B. Krishna.

  • Calling a method in the view controller from the component controller

    Hi
    Is there anyway to call a method in the view implementation from the component controller??
    Thanks
    jack

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

  • Error "Test Agent could not connect to the test controller" while configuring the Test Agent on Client machine

    Hi,
    I am getting an Error “Test Agent could not connect to the test controller”
     while configuring The Test Agent on Client machine.
    Pre-requisite used:  
    VS2012 update 4, Test agent & Test controller of same version used
    User has TFS admin access.
    Same user id used for configuring Test Agent.
    Description:
    Test controller is installed on server A. I want to install test agent on client machine B.
    Windows Fire wall is OFF on both Machines A & B. While configuring Test Agent below error is occurred:
    “Test Agent could not connect to the test controller”
    In log file error was “I, 2015/04/02, 15:32:21.723, Could not get the status from the test agent. Exception: Failed to connect to an IPC Port: The system cannot find the file specified.”
    In Event viewer below error details given:
    Unable to connect to the controller on ‘My Server: 6901’. The agent can connect to the controller but the controller cannot connect to the agent because of following reason: The requested name is valid, but no data of the requested type was found.
    Make sure that the firewall on the test agent machine is not blocking the connection.
    Could you please help me to find solution?
    Thanks in advance!
    Kanchan M
    Kanchan

    Hi Kanchan,
    So on each computer, you create a local user account that is a member of the Administrators group, and use the same account and password on each machine(controller and Agent), am I right?
    Could you enable the detailed log message?
    http://blogs.msdn.com/b/aseemb/archive/2010/03/07/how-to-enable-test-agent-logs.aspx
    http://blogs.msdn.com/b/aseemb/archive/2009/11/28/how-to-enable-test-controller-logs.aspx
    >>In log file error was “I, 2015/04/02, 15:32:21.723, Could not get the status from the test agent. Exception: Failed to connect to an IPC Port: The system cannot find the file specified.”I
    met a similar issue before which was related to the Firewall exceptions, maybe you could refer to it here:
    http://stackoverflow.com/questions/12249093/test-agent-could-not-connect-to-the-test-controller-vs2012-agents
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Window W_WARNING_WINDOW does not exist in the component WDR_TEST_DDIC_SHLP

    Hello, I did not find any note regarding the WDR_TEST_DDIC_SHLP component. As the testing application can not be run this way (error thrown from the subject), is there any workaround anybody knows?
    I'm on ECC 6.0, kernel release 700, patch 236, ABAP 1563. In other words SAP_BASIS 700 / 0028, SAP_ABA 700 / 0028.
    (And yes, the W_WARNING_WINDOW really does not exist in the component, although the starting window of the application (WDR_TEST_DDIC_SHLP) is DDIC_SHLP). And there is no code in any of the hook methods of the window, so it has to be some call from the views that are counted over 30. Can anybody suggest how to over-piss this situation?

    Hi,
    The W_WARNING_WINDOW is available in later versions of Netweaver. I suggest you to raise an OSS message to SAP as this is a standard delivered component.
    Regards,
    Kiran

  • Reference to the component controller in the window

    Hello All,
    Can we get the reference of the component controller in the method of the window..
    Warm Regards,
    Smita

    Vinod..hard luck ...!!!...
    This is what i get..!!!...The interface IF_POWL_TABLE has no such method to retrieve the reference for the component controller...:-(....
    Web Dynpro Comp. / Intf. POWL_TABLE_COMP,Web Dynpro Window POWL_TABLE
    Pre-Exit PST46K50FS40BKOKLYAGE0SR3P6M for HANDLEDEFAULT
    Method "GET_COMPONENTCONTROLLER_CTR" is unknown or PROTECTED or
    PRIVATE.
    Web Dynpro Comp. / Intf. POWL_TABLE_COMP,Web Dynpro Window POWL_TABLE
    Pre-Exit PST46K50FS40BKOKLYAGE0SR3P6M for HANDLEDEFAULT
    Method "GET_COMPONENTCONTROLLER" is unknown or PROTECTED or
    PRIVATE.
    Web Dynpro Comp. / Intf. POWL_TABLE_COMP,Web Dynpro Window POWL_TABLE
    Pre-Exit PST46K50FS40BKOKLYAGE0SR3P6M for HANDLEDEFAULT
    Method "GET_COMPONENTCONTROLLE_CTR" is unknown or PROTECTED or
    PRIVATE.

  • Property or collection #comment was not found in the component interface

    Hi All,
    I am a Java developer trying to connect my java application to a peoplesoft webservice.
    I have been able to connect to the PS webservice and access "GET","FIND" methods successfully.
    But when i am trying to connect to the CREATE(insert) method, i get the following message text.
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>Component Interface API.</faultstring>
    <detail>
    <messages>
    <type>Error</type>
    <messagesetnumber>91</messagesetnumber>
    <messagenumber>74</messagenumber>
    <messagetext>Property or collection #comment was not found in the component interface at the given level.</messagetext>
    </messages>
    </detail>
    I dont have any access to peoplesoft or db logs, i started using SOAP UI to get the detail messages.
    Can anyone tell me what this message could be??
    Basically its an insert method which takes around 40 parameters out of which 2 are mandatory.
    The input that i send from my soap ui looks as follows
    +*<kcm:CASE_ID></kcm:CASE_ID>*+       
    <kcm:DISP_TMPL_ID>CRM_GOV</kcm:DISP_TMPL_ID>
    <!--Optional:-->
    <kcm:QUICK_CD>?</kcm:QUICK_CD>
    <!--Optional:-->
    <kcm:PROVIDER_GRP_NAME>City Manager Action</kcm:PROVIDER_GRP_NAME>
    <kcm:BUSINESS_UNIT>KCM01</kcm:BUSINESS_UNIT>
    <!--Optional:-->
    <kcm:PRODUCT_ID>?</kcm:PRODUCT_ID>
    When i dont send any parameter in case_id i get the above error and when i send +*<kcm:CASE_ID>?</kcm:CASE_ID>*+       
    i get a sql error
    <messages>
    <type>Error</type>
    <messagesetnumber>200</messagesetnumber>
    <messagenumber>0</messagenumber>
    <messagetext>SQL error. Stmt #: 650 Error Position: 123 Return: 1722 - ORA-01722: invalid number</messagetext>
    <explaintext/>
    </messages>
    <messages>
    <type>Error</type>
    <messagesetnumber>200</messagesetnumber>
    <messagenumber>0</messagenumber>
    <messagetext>SELECT /*+ FIRST_ROWS */ CASE_ID, DISP_TMPL_ID, BUSINESS_UNIT, RC_STATUS, RC_SUMMARY FROM PS_RC_ADD_CASE_VW WHERE CASE_ID=:1 AND DISP_TMPL_ID=:2 ORDER BY CASE_ID, DISP_TMPL_ID</messagetext>
    <explaintext/>
    </messages>
    <messages>
    <type>Error</type>
    <messagesetnumber>91</messagesetnumber>
    <messagenumber>48</messagenumber>
    <messagetext>Error accessing search record. {KCM_WEB_CASE_CI} (91,48)</messagetext>
    <explaintext>An error occurred while accessing the search record.</explaintext>
    </messages>
    <messages>
    <type>Error</type>
    <messagesetnumber>91</messagesetnumber>
    <messagenumber>61</messagenumber>
    <messagetext>Failed to create the Component Interface</messagetext>
    </messages>
    I am not understanding how do i debug this further as its very difficult for me to get any peoplesoft logs or db logs.
    Any help will be appreciated.
    Thanks
    Ash
    Edited by: ash81 on Jun 14, 2010 1:24 PM

    This will be very hard to troubleshoot without access to PeopleSoft.
    Ideally, the best way to test it would be replicate the steps you are performing in your code through the component interface/web service, and then on the actual PeopleSoft component to see if you get the same error.
    The second case where you haven't put in the parameters, make sure you clear out the ? marks and leave the value empty if you don't need to specify it.
    E.g.
    Instead of <kcm:QUICK_CD>?</kcm:QUICK_CD>
    Use: <kcm:QUICK_CD></kcm:QUICK_CD>
    I generally work backwards from soapUI -- look at the soapUI error, then test through the component interface tester in PeopleSoft application designer, then if required test in PeopleSoft.

  • [svn] 3787: Added FxTextArea, FxTextInput, and TextView class-level examples to the Component Explorer.

    Revision: 3787
    Author: [email protected]
    Date: 2008-10-21 12:16:28 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Added FxTextArea, FxTextInput, and TextView class-level examples to the Component Explorer.
    Modified Paths:
    flex/sdk/trunk/samples/explorer/explorer.xml

    One workaround is to turn off automation:
    File-->Options, Advanced tab, General Section, uncheck "Enable Automation Events"
    However, you will loose the ability to configure callouts, and all of the commands in the Process Engineering tab.
    Another workaround is to change the loop number of the shape you are editing before changing its type. Then change the loop number back to the correct loop number.
    This is another example of the pernicious philosophy of trying to help the user do what the programmers think the user is trying to do that started in Excel 2000 (where you can no longer tell excel that you want a scatter plot - it will force the plot
    to be a line plot under certain circumstances).
    I suppose another option would be to modify the master and swap the text and subtype shapes in the indicator to use the subtype property for the loop number and then use the text for the instrument type. I guess this is what MS was trying to implement, but
    didn't explain it well enough to their programmers.

  • Mapping one node in a view context to many nodes in the component controlle

    Hi guys,
    I need to map an element (attribute) of a node in the View Context to an attribute of multi nodes of the same type:
    Context View:
    customer_no
          |
          | -> KUNNR
    Component Controller Context having two nodes:
      - Node1
         RFC1
            |
            |->KUNNR
      - Node2
          RFC2
             |
             |->KUNNR
    Above I need to map the (KUNNR) in customer_no node to KUNNR in the RFC1 RFC2 before i execute the two RFCs services.
    Note:
    if this is not possible would you mention another solution.
    Thanks,

    Hi,
       As per MVC you cannot map context from view controller to component controller.Mapping can happen from component
    controller to view controller.
    You cannot create mapping for context attributes. You can map nodes if both source node and destination node both has same structure and same number of attributes. If they dont contain same number of attributes the extra attributes from the source node gets copied to the destination node.
    In your case before the RFC execution you can read the value of attribute Kunnr from view and set it the RFC attribute Kunnr before the Function module execution.
    Regards
    Bala Baskaran.S

  • SRM 7.0 New custom fields added to view do not appear in the component conf

    Hi
    I added two custom fields to the view V_QTE_DOFC_I_DESC of the WD componenet /SAPSRM/WDC_DODC_QTE_I_DS. This view gets called when bidder is trying to create a bid and clicks on add Substitute Item in the Item tab. This view is simply a popup window where we can enter ther substitute item.
    I added two custom fields to the context of the above view and placed on the layout of the view as input fields. Then I tried to modify the component configuration /SAPSRM/WDCC_DODC_QTE_I_DS_SUB. When I look in t he web dynrpo built-in for the view V_QTE_DOFC_I_DESC, I don't see the custom fields that I just added. As a result, these custom fields are not displayed when I try to substitute an item. Could anyone tell me how to brining in these two custom fields into the component configuration.
    Any help is greatly appreciated.

    Hi Prasuna,
    Sorry ..You are right..I was looking at some other WDC related to contract data..It you map the CUFs to /SAPSRM/S_CLL_CTR_ITEM which has the include structure INCL_EEW_PD_ITEM_CSF_CTR then it should work fine.
    If you do this, are you able to view the new fields on the screen?
    you mentioned that you are not able to save the data to the table.
    Include your fields in INCL_EEW_PD_ITEM_CSF as well because if you add CUF to any of those doc types, you also have to add those CUF to the global structure for CUF documents.
    Also Check if you fields are there in structures BBPS_CTR_CUF_ITEM,BBPS_CTR_UI_ITEM and BBPS_CTR_ITEM.
    Check whether you have implemented the BADI's like BBP_DOC_CHECK_BADI ,BBP_DOC_CHANGE_BADI and BBP_DOC_SAVE_BADI . check out the structures (whether they having the CUFS) used in those if you have implemented any of them .
    Regards
    Lavanya
    Edited by: LAVANYA CHAVA on Aug 25, 2010 10:10 AM

  • Problem in transporting the component Controller

    Hi Friedns,
    We had a problem when transporting a WD Componenrt controller. Til Quality it when ok. But when the transport reached to production we saw that from the attributes tab of the Componenrt controller the WD_ASSIST WAS MISSING . Due to which it was giving a dump. We recreated a new transport and sent it but that didnt worked to .
    Can anybody advise any solution. In the dump it is saying Component ZBASE_RATE CONTAINS SYNTAX ERRORS.
    THANKS
    Rohit

    Hi,
    It might be difference of the environments in ur quality and production systems.
    Check whether both systems are having the same level of webdynpro patches.
    You can check with ur basis people for this clarification.
    Regards,
    Veerendra Nath

  • CS3 action script 2.0: compiled clip components do not appear in the component panel

    Hi,
    I have a FLA file containing 3 compiled clip components.
    I use a MXP file to copy this file to the components panel,
    this works fine when using Macromedia Flash 8 or Macromedia MX
    2004, but when using CS# the components do not appear in the
    components panel, only if a use regular component or SWC component
    it appears in the panel, any reason why?any ideas?
    Thanks
    Maya

    I can use this code from html. I'm able to say where the swf
    and xml file are. I just don't know how to do this using action
    script.
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="768" height="576" id="tech" align="middle">
    <param name="movie"
    value="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
    />
    <param name="quality" value="high" />
    <embed
    src="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
    quality="high" width="768" height="576" name="tech" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>.

Maybe you are looking for

  • Problem in opening PDF or FDF in Firefox?

    Hi all,      I am using tomcat 5.5. In one of jsp code, I have used a hyperlink to open a PDF or FDF file placed in server .My requirement is while clicking the hyperlink the PDF or FDF file should be opened in browser window itself. The file is loca

  • Applet : How to use Images in Jar file

    I want to put all images into a jar file to improve speed of loading. But how to invoke images from Jar file? Thanks.

  • Photo stream not working

    Have just done a software update on MacBook Pro and I keep getting the message "can't access photo stream". When I go into iPhoto and try to turn photo streaming on it tells me I'm signed in, but won't enable phot stream. Has the update done somethin

  • No mapping found for '

    Hi, I am using JDeveloper 9.0.3.11.18(Build 1247) for WS. We have generated a stub from our web services. Generation and compilation is not a problem. I have tested the web service from the end point, its working properly. When I am calling the stub

  • SP1 does not get installed when the machine is set to Japanese Language, software push through sccm 2012

    Hi, Please help me with the below issue, iam trying to deploy Service pack 1 on Windows 7 , 32 Bit OS SP1 does not get installed when the machine is set to Japanese Language, software push through sccm 2012 , it does gets installed of installed manua