Context from Web-Dynpro-Component-Interface & Customer Extention Fields

Hello all,
A main component uses a Web-Dynpro-Component-Interface and defines an external maping to it. Web-Dynpro-Component-Interface has a context and a window. At runtime implementaion of Web-Dynpro-Component-Interface is provided.
All works fine, but how can i create an implementation with view which contains customer extention fields? Unfortunately only fields from context of Web-Dynpro-Component-Interface are visible. I can not even extend the context of Web-Dynpro-Component-Interface via enchancement framework.
I assume, it is possible with dynamic programming, but why is it not possible in declarative way?
thanks
regards
Paul

Hello,
I found this documentation:
Implementation of Interfaces for Customer Developments
Using interfaces in a Web Dynpro component benefits customers by giving them a clean basis for their own further developments. When creating a local development, you can implement a used interface in a separate component and add your own aspects to an application delivered by SAP.
http://help.sap.com/saphelp_nw70/helpdata/en/a9/19eebc1e2943dbb2d443095d017ae9/content.htm.
I think it must be a correct way to extend SAP programms with customer fields. Please reply, issue is very important.
Regards
Paul

Similar Messages

  • Doubts while doing  example on WDJ-Using Web Dynpro Component Interface

    Hi
    I am doing the example mentioned in the PDF file WDJ - Using Web Dynpro Component Interface Definition.
    In the PDF file its mentioned the following code inside onActionCreateDC1:
    g_Usage.createComponent("com.sap.wd.childdc1comp.ChldDC1Comp");
    wdThis.wdGetWDCompInterfInstInterface().passInfo(
    "Created Child DC 1");
    I have one query that what is com.sap.wd.childdc1comp.ChldDC1Comp?Is it the component name of DC or the package name of DC?
    I have deployed the application.When i click on button Create Child DC1 i am getting follwing exception:
    com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to load deployable object part 'com.wartsila.test.ChileDC1Comp', type 'Component' of deployable object 'wartsila.com/DP_TutWDInterfaces'.
    When i click on Create Child DC2 i am getting follwing exception:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException:Failed to create delegate for custom controller com.wartsila.test1.ChildDC2CompInterfaceCfg. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
    Can anybody tell how can i solve it?
    Is it required to deploy the two child component also that is ChildDC1Comp and ChildDC2Comp?If yes then how to deploy these two child DC as when i am tryng to create application for these two component then default plug is showing blank thats why i am unable to deploy these child Dcs.
    Thanks
    Susmita

    Hi Susmita,
                      Is it required to deploy the two child component also that is ChildDC1Comp and ChildDC2Comp?
    Yes , u have to deploy both the components.
    when i am tryng to create application for these two component then default plug is showing blank thats why i am unable to deploy these child Dcs.
    U need not create an Application for deploying the component .Right Click on ur project --> Deploy.
    The problem is with ur Component, while creating a Component u should have created a Interface view and default StartUp plug.
    Just check whether u have Created the startup plug for ur interface view.
    Open the controller editor of ur interface view --> Select Plugs Tab .
    and in the plug tab , check whether u have Default Start plug (in Inbound Plugs Table).
    if there is no Default Start Plug , then click the Button New to create a Default Plug .
    in the pop up window -- select Stsrt Up and Give the name of the plug as "Default".
    After doing this , select the default plug and Right click on the plug -->copy  and Open the window Controller editor -- > select Plugs Tab --> check whether u have default plug (in Inbound plugs) in the Window controller .
    if the plug is not there , then paste the plug in the Window's Inbound Plug Table .
    Hope it helps
    Thanks and Regards

  • Web dynpro component interface, can't create a instance

    Hi guru,
    I have created a web dynpro component interface, and implemented it through some components.
    But when I use the interface in another component, there comes a runtime error. The following is the error message.
    Error when Creating Component YHREFM_OBJSEL_INTERFACE. YHREFM_OBJSEL_INTERFACE Is a Component Interface, Therefore, an Instance Cannot Be Created. Name of Component May Not Be Specified. (Using Component: YHREFM_PRINT_FORM_SE, Component Usage: USAGE1)
    Need your help!
    Best Regards,
    Guo Guo Qing

    Hi,
    I have found the cause of the problem. I have mapped some context in the component interface to componenet_A. Then I active component_A, and test it. Then the exception on the top of the Thread is raised.
    What's wrong with it? Could someone give me a solution?
    Thank you very very much.
    Best Regards,
    Guo Guo Qing

  • SRM 7.0 find transparent table name from Web dynpro Component

    Hi ,
    I am trying to find the transparent table name from Web dynpro component dictionary structure. I am working in SRM 7.0. Please let me know how to find the transpartent table for a field.
    Thanks,
    Monica

    hi,
    your question is very unclear and does not relate to performance.
    SRM uses webdynpro ABAP so the recommendation will not help.
    Do you need a technical UI element?
    Or the application table where the business data of an UI is stored???
    If it is the later, then you can use the SQL trace, change to element you are interested in, and trace it. The table should appear in the trace in connection which an UPDATE command. Still a bit cimbersome.
    Siegfried

  • Access files from Web Dynpro component

    Hi,
    I need to access files from a Web Dynpro component but I couldn't find any information. Has anyone done this?
    My questions are:
    1. Can I pack these files into the WD component so they can be deploy together?
    2. And what API should I use to access these files?
    Thanks,
    Kizza

    Hi,
    You can follow the Creating the JCO connections in the Content Administrator section in the following
    help.sap.com [link|http://help.sap.com/saphelp_nw70/helpdata/EN/f8/bdfe80d9a3b048a5fb32a7d149774e/content.htm].
    For the RFC_ERROR_COMMUNICATION error, you can check if the system sapmsR3D is defined in your
    SAP Logon pad or in the hosts file under Drivers -> etc folder.
    Regards,
    Alka.

  • How to use the Web Dynpro Component Interface

    Hi, All
    Error when processing your request
    What has happened?
    The URL http://erp2005.besuretech.com:8000/sap/bc/webdynpro/sap/zz_test5/ was not called due to an error.
    Note
    The following error text was processed in the system E05 : Error when Creating Component ZZ_TEST6. ZZ_TEST6 Is a Component Interface, Therefore, an Instance Cannot Be Created. Name of Component May Not Be Specified. (Used Component: ZZ_TEST5, Component Usage: MYCOMPUSAGE)
    The error occurred on the application server erp2005_E05_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_COMPONENT_USAGE~CREATE_COMPONENT of program CL_WDR_COMPONENT_USAGE========CP
    Method: RESOLVE_MAPPING of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: MAP of program CL_WDR_CONTEXT_NODE_MAP=======CP
    Method: MAP of program CL_WDR_CONTEXT_NODE_MAP=======CP
    Method: IF_WD_CONTEXT_NODE~GET_ELEMENT of program CL_WDR_CONTEXT_NODE_MAP=======CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system E05 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server erp2005_E05_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server erp2005_E05_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 600 -u: LIPEI -l: E -s: E05 -i: erp2005_E05_00 -w: 0 -d: 20070120 -t: 212436 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    How can i do?
    Thanks

    Hi,
    There is something wrong in the definition of component usage in your component. Maybe you forgot to instantiate the use component, maby the name you are using is not correct. Try to find it in that direction.
    Good Luck,
    Ben

  • Map context node  web dynpro to context DATA of  interface controller ALV

    Hi Experts,
    I have started creating simple ALV by following the example in the below mentioned link.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d
    I have completed 95% development but stuck with last bit of
    Set data to ALV for display (via reverse context mapping).
    When Click on the Controller Usage button. The component controller of your Web Dynpro component DOES NOT appears on the right side of the screen.
    Therefore I can not  Map context node NODE_FLIGHTTAB of your Web Dynpro component to context DATA of the interface controller of the ALV component.
    Could you please shed me light on this.
    Your time and help much appreciated.
    Best Regards
    CB

    Hi Chandra,
    You need to add component controller first. Just go to the property tab of interface controller of the alv component and click on create button and then add the component controller. After that you'll be able to see the node in the context tab.
    Regards
    Arjun

  • Create Callable object of Web Dynpro Component (GP interface) giving error

    Hi All,
    We are facing a strange error in Guided Procedure.
    While trying to create a new callable object of Web Dynpro Component (GP interface) after selecting the type and click on Next it is throwing below error.
    *javax.xml.stream.FactoryConfigurationError: Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located. Classloader =com.sap.engine.services.deploy.server.ApplicationLoader 3995fdb9 sap.com/cafeugpuidt
        at javax.xml.stream.FactoryLocator.loadFactory(FactoryLocator.java:120)
        at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:109)
        at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:54)
        at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
        at org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:311)*
    Also while running the GP processses which are created in the past and working fine till few days back are also giving the same above error.
    Please help us in resolving the issue.
    Regards,
    Satish

    Hi Peter,
    Check this link.It may be helpful.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/netweaver%252bdeveloper%252bstudio%252b(NWDS)
    Regards,
    Sumangala

  • Errot at creation of callable object (Web Dynpro Component (GP Interface))

    Hi,
    I have made a Web Dynpro component and it has been built and deployed without problems.
    However, when I go to the Design Time in the portal to create the callable object, it dumps with this message:
    500 Internal server error
    The initial exception that caused the request to fail was:
    java.lang.UnsupportedClassVersionError: bad  version number in .class file
    Any ideas to what this is about ?

    Hi Peter,
    Check this link.It may be helpful.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/netweaver%252bdeveloper%252bstudio%252b(NWDS)
    Regards,
    Sumangala

  • Is it possible to serialize a web dynpro component controller?

    Hi,
    Is it possible to serialize a web dynpro component controller and deserialize it for use?
    I have one web dynpro application WDA1 for web dynpro component WDC1. And  another web dynpro application WDA2 for WDC2 will be opened in a new window triggered by a button action in WDC1.
    Iu2019d like to pass the object reference of WDC1 component controller to WDC2.
    I first tried to use a static member of a class object but found out that even the static member is initialized and set in WDC1, itu2019s still initial when I access it in WDC2.
    Then I searched the forum and found one article Passing Object ref to Webdynpro Application while calling from BSP screen .
    The recommended way is to serialize the object reference and store in a DB table, later on read it out and deserialize it for use.
    I tried serialization using the following code, but when itu2019s deserialized, the result is initial.
    Can anyone share some ideas on this?
    Serialize
      data: ostream type string,
               xslt_err type ref to cx_xslt_exception.
    ***** serialize model class
      try.
          call transformation id
          source model = wd_comp_controller
          result xml ostream.
        catch cx_xslt_exception into xslt_err.
      endtry.
    Deserialize
        data: istream type string,
              xslt_err type ref to cx_xslt_exception.
        istream = ls_db_sel-obj.
        data lr_wdc type REF TO ZIWCI_BY_WDC_SERIALIZE.
        try.
            call transformation id
            source xml istream
            result model = lr_wdc.
          catch cx_xslt_exception into xslt_err.
        endtry.

    When you say new window, I assume you mean new browser window. This is a separate user session then.  This is why the singleton pattern doesn't work.  Have you considered using a new dialog window instead of a new browser window.  It will be modal, but will share the same user session as the parent window.
    >Why do you choose this approach over cross-component usage ? component usage is the way webdynpro components are >to be reused.
    >You can also consider using Singleton OO pattern class to share data between these two components.
    Neither of these approaches will work if you are using separate browser windows. Such an approach results in two separate user sessions (perhaps even running on different application servers depending upon how you have load balancing setup) and therefore can't share data using either of these approaches.
    In general the idea of serialization and then writing the string ito a server cookie or other database table is sound.  I don't think you should try and serialize the component controller, however.  Serialization only saves and restores public attributes - not protected or private ones.  So in general a class has to be designed for serialization.  The component controller is much too complex and wasn't designed for such an operation. 
    I would suggest instead extracting the data you want to share out of component controller or context and serializing it into a custom class and passing that to the other component.

  • CAF DB Update for CAF Entity Service from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailID.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
    Within the context of component controller of  Web Dynpro the structure is like
    APerson
         |_ personId
         |_ personName
         |_ personAddr
         |_ contactsRef       
                    |_ phoneNo (Under contactsRef)
                    |_ cellNo (Under contactsRef)
                    |_ emailID (Under contactsRef)
    So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
    java.util.List ls = new ArrayList();
    for(int i=0; i<4;i++)
    AContacts contact = ContactsServiceProxy.create();
    contact.setCellNo("9092130156");
    contact.setEmailID("[email protected]");
    contact.setPhoneNo("432258");
    contact.getAspect().sendChanges();
    ls.add(contact);
    person.setRelatedModelObjects("contactsRef",ls);
    person.setPersonID("9999");
    person.setPersonName("xyz");
    person.setPersonAddr("ABC, KOL");
    wdContext.nodeAPerson().bind(person);
    person.getAspect().sendChanges();
    CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan
    Message was edited by:
            Chandan Jash

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • No component usage created in enhanced web dynpro component

    Hi experts,
    I am facing the following problem:
    I'd like to enhance a web dynpro component in order to add a popup window. The popup is triggered by the process_event method. So far everything works just fine.
    But the popup needs to know some context attributes from the main component, and I cannot create a component usage in order to set the context mapping.
    Does anybody know how to solve this issue?
    Thanks and regards
    Jan Phillip Höft

    Hi!
    Thanks for your answers first of all.
    I need the popup to be a stand alone web dynpro component, so I guess the assistant class doesn't do the trick because I can not access it in the popup component.
    The popup is called when the business object is saved. So that the user is asked to notify other users that the document has changed. In this popup the user should fill in the message and click a button to send it and close the popup.
    So I tried the OBN approach as well but with two problems :
    1. I cannot close the popup component by coding (button click) because it has no direct parent component
    2. The save event is not run through properly so the document stays locked by the user. But I didn't look into this yet.
    So it would be perfect to have an embedded popup component which is based on a stand alone web dynpro application so it can be closed properly but it need at least access to the guid of the main component.
    Anybody got an idea for this?
    Thanks and regards
    Jan Phillip Höft

  • Calling session bean's business method through web dynpro component

    Hi All,
    Can anybody tell me how to call a session bean's methods through a web dynpro WITHOUT java-model or web service model ??
    I have following scenario:-
    1. Stateless Session bean having two business methods
    2. Web Dynpro component
    3.Now i want to call business methods without using any model. I have got following piece of code but I dont know how to go about it.
    4.Where do i have to set JNDI name for session bean? which interface will be looked for?
    5. Do I have to declare public part for EJB DC? If yes, how?
    //This is inside web dynpro component
    InitialContext   context = new InitialContext();
    o = context.lookup(JNDIName);
    TestSessionbeanHome homeRef = (TestSessionbeanHome) PortableRemoteObject.narrow( o,                                                                               
    TestSessionbeanHome.class);
    TestSessionbean beanRef = homeRef.create();
    <returnValue> = beanRef.<ejb method name>
    Please help to get a step-by-step approach to this case.
    Thanks and regards,
    Amey Mogare

    Hi,
    If  I comment out the part that is using session bean's business method, DC is building fine.
    And if I uncomment, then compiler is unabl eto resolve business method(s).
    And i would like to mention that my EJB + J2EE App DC is building properly, but it havent yet deployed properly as I am waiting for data-source-alias name prefix to be configured by ERP team. So will this be a reason why Web Dynpro DC is not able to resolve business methods ??
    Because Web Dynpro DC is able to resolved all interfaces of Session bean and entity bean. But when it comes to business method, its not able to resolve.
    Any more ideas why it is not happening?
    Pls help.
    Now i went through some forum posts regarding this and found that we also need to add EJB DC to Java Build Path for WebDynproDC>Properties>Java Build Path.
    I did this and now it is able to resolve business methods and DTOs as well. So to summarize I did following:-
    1. Added EJB DC (complete DC) as a Used DC to Web Dynpro DC with Buid-n-Deploy-n-Run time dependency
    2. Added Sharing reference of J2EE application DC to Web Dynpro DC -->Properties
    This reference I constructed as follows:-
    <vendorname>/<name of j2ee application as appearing under display name tag in application.xml (replacing '/' with '~')>
    So my Sharing Reference becomes:- <vendorname>/reqpstapscreqpstapja_reqid
    3. Added EJB DC to Java Build Path in Web Dynpro DC's properties
    4. Then I added following piece of code to get object of SessionBean class
    InitialContext context = new InitialContext();
    Object o = context.lookup("java:comp/env/ejb/SessionRequestIDBean");
    SessionRequestIDHome homeRef = (SessionRequestIDHome) PortableRemoteObject.narrow(o, SessionRequestIDHome.class);
    SessionRequestID beanRef = homeRef.create();
    beanRef.<business method>
    But After doing this I am facing another problem :-
    The build fails saying it is not able find the package for DTOs. But when I see the Component Controller's code it is not showing any red or yellow marks.
    Can anybody pls help me out here?
    Thanks and regards,
    Amey Mogare

  • Transport issue when copying a web dynpro component

    Hello All.
    I have a web dynpro component lets say ZTest and now I want to copy this, I gave the new one a different name i.e. ZFINAL, now when I copied, it asked me for the trasnport and when I asked to create a new transport I got this message "Class ZIWCI_ZFINAL does not exist" and then I clicked the green arrow again and it created a transport for me. After this process I activated my web dynpro component successfully, my web dynpro component has 3 views and 3 windows. When I looked at my new transport (for ZFinal),  I only saw three tasks attached to teh transport i.e. 1. Interface 2. Info Object from the MIME Repository and 3. Web Dynpro Component but I didn't see Controller (Web Dynpro), Definition (Web Dynpro) and View (Web Dynpro) attached to my transport. Now I wonder when I release my transport to Q I may have issues.
    Note: My old trasnport (which has Ztest)has all the missing objects: (Web Dynpro), Definition (Web Dynpro) and View (Web Dynpro)

    I resolved it myself.. I had to write the transport entry manually for the views and windows and even the component controller definition.

  • The Web Dynpro component cannot be generated due to serious (syntax) errors

    Hi everybody,
    While I was developing a web dynpro application, I had an error but I couldn't understand this error. Before I took this error message, only I changed bound one context node to another context node in a RadioButtonGroupByKey.Therefore, when I pushed activate button, I took an error message.This error message said "The Web Dynpro component cannot be generated due to serious (syntax) errors". What does it mean ? How can I find out where is the error in the application. Also, I think the reason of this error message is about a BC problem. I am waiting for your comment urgently.

    Hi ,
    Just delete the context (by using the context binding) and bind the field with the correct node and try to activate .
    One more suggestion is that after deleting the binding and before binding to other node check it that whether that binding was properly deleted or not.Some times its not deleting the binding.
    Hopely my suggestion may work.
    Regards,
    Satya

Maybe you are looking for

  • Key value pair error

    Hello how can I fix this problem ? SAPNW2004sJavaSP9_Trial\SAP_NetWeaver_2004s_SR_1 jdkversion 142_09 . ERROR 2008-07-09 23:56:30 CJS-30051  Cannot insert a key value pair into the secure store fails; see output of log file SecureStoreInsert.log: SAP

  • Credit limit sharing main customer and sub customers

    Dear all Credit limit sharing main customer and sub customers. we have hierarchy to identified main cutomer and sub customers and different account groups. now in system we are using main customer payer for all sub customers also. in future we are go

  • SAP BW-Bank Analyzer

    Hello All, Could anybody let me know what is Bank Analyzer and how it is related to sap bw. I could see from the help portal that Bank Analyzer is comprised of Bank Analyzer Core+SAP BW. As a SAP BW consultant I am new to Bank Analyzer and its relati

  • Three questions: new songs, two devices, organizing albums

    I have searched and searched and still have three questions that I can't find an answer to. I hope you guys can help. 1) I have a few albums that are not organized with each other and are duplicates and such, when I upload to itunes match, will those

  • How to setup consolidation environment in BPC 7.0MS SP05

    Hi  I am completely new to the MS version of BPC7.0. We have to implement the Consolidations for our client. I would like to know how can we setup consolidations environemnt in BPC7.0MS. I have a document on the same for NW7.0. Could you guys have an