How to define a parameter in a method of type com.sap.tc.webdynpro.progmode

Hi All,
I want to define a parameter in a method, type of parameter is com.sap.tc.webdynpro.progmodel.api.IWDNode,
But when I browse on type and tehn in local dictionary, I do not find this type of datatype, please suggest how to assign this data type to any method's parameter.
Thanks in Advance.

Hello Amit,
Please include  webdynproprogmodel.jar to build path, which can be found at    /sap/eclipse/plugins/com.sap.tc.webdynpro.runtime/lib
Then you could able to user datatype IWDNode in your code
Let me know if you need the jar file 
Regards,
Madhu

Similar Messages

  • How to use the com.sap.tc.webdynpro.progmodel.api.IWDView?

    hi,
       In every view, the "com.sap.tc.webdynpro.progmodel.api.IWDView view" is the parameter of the mothed wdDoModifyView(). I wonder, if we can make type com.sap.tc.webdynpro.progmodel.api.IWDView parameter in other methods which are designed by ourself. Thank you!

    Hi Daniel,
    This method wdDoModifyView will be raised every time the view is changed or refreshed (i.e. button pressed, drop down selected). This should cover all cases where you need IWDView, personally I can't think of another case where you need this parameter.
    As far as I know it is not possible but even if it is it's not recommended.
    But perhaps I'm wrong, I'll be happy to hear more opinions from more experienced SDNers...
    Roy

  • How toadd com.sap.tc.webdynpro.programmodel.api.IWDNode returntype tomethod

    Hi,
    can u tell me how to create supply function???
    i just gone through the PDF(Advanced Input Help - The Object Value Selector (OVS))
    In that he created supplufunction and 4 methods
    1)getOVSInputNode-com.sap.tc.webdynpro.programmodel.api.IWDNode
    2)getOVSListener-com.sap.tc.webdynpro.programmodel.api.IWDOVSContextNotificationlistener
    3)getOVSOutputtNode-com.sap.tc.webdynpro.programmodel.api.IWDNode
    4)SwithchOVSListener-String
    Can u plz tell me how to get these return types and how to create supply function just by clicking new in methods tab

    Hi Padma
    Follow These Steps of Implementing <i>Object Value Selector</i>
    <u><b>Component Controller</b></u>
    Create the Following Contexts in Component Controller
    Node1(Name,Location)
    Node2(Name,Age,Location)
    Source(Name,Age,Location)
    /*All are Type String*/
    Add the Following Code in Component Controller
    public void wdDoInit()
        //@@begin wdDoInit()
        String name[] = {"Arun","Boopathi","Bala"};
        String age[] = {"24","22","24"};
        String location[] = {"Erode","Gobi","Gingee"};
        IPublicOVS_Model_Comp.ISourceElement ele;
        for(int i=0;i<name.length;i++)
             ele = wdContext.nodeSource().createSourceElement();
             ele.setName(name<i>);
             ele.setAge(age<i>);
             ele.setLocation(location<i>);
             wdContext.nodeSource().addElement(ele);
        //@@end
    <b>Create a inner Class called ovslist between the begin and others in the Component controller which is found at the end of the code. If you created somewhere the coding will be lost. After creating the class type app and pres ctrl space you will be shown the list of api's with apply input values, on querry and apply result</b>
    //@@begin others
      public class ovslist implements IWDOVSContextNotificationListener
           /* (non-Javadoc)
          * @see com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener#applyInputValues(com.sap.tc.webdynpro.progmodel.api.IWDNodeElement, com.sap.tc.webdynpro.progmodel.api.IWDNodeElement)
         public void applyInputValues(IWDNodeElement applicationNodeElement,IWDNodeElement queryInputNodeElement)
              // TODO Auto-generated method stub
              queryInputNodeElement.setAttributeValue("Name",applicationNodeElement.getAttributeAsText("Name"));
              queryInputNodeElement.setAttributeValue("Location",applicationNodeElement.getAttributeAsText("Location"));
         /* (non-Javadoc)
          * @see com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener#onQuery(com.sap.tc.webdynpro.progmodel.api.IWDNodeElement, com.sap.tc.webdynpro.progmodel.api.IWDNode)
         public void onQuery(IWDNodeElement queryInputNodeElement,IWDNode queryOutputNode)
              // TODO Auto-generated method stub
              IPublicOVS_Model_Comp.INode1Element input = (IPublicOVS_Model_Comp.INode1Element)queryInputNodeElement;
              IPublicOVS_Model_Comp.INode2Node output = (IPublicOVS_Model_Comp.INode2Node)queryOutputNode;
              String str_name = queryInputNodeElement.getAttributeAsText("Name");
              String str_location = queryInputNodeElement.getAttributeAsText("Location");
              String name_str = " ";
              String location_str = " ";
              String age_str = " ";
              boolean one,two;
              for(int i=0;i<wdContext.nodeSource().size();i++)
                   one = two = true;
                   name_str = wdContext.nodeSource().getSourceElementAt(i).getName();
                   location_str = wdContext.nodeSource().getSourceElementAt(i).getLocation();
                   age_str = wdContext.nodeSource().getSourceElementAt(i).getAge();
                   if(str_name.length()!=0)
                        one = str_name.matches(name_str);
                   if(str_location.length()!=0)
                        two = str_location.matches(location_str);
                   if(one && two)
                        IPublicOVS_Model_Comp.INode2Element ele = output.createNode2Element();
                        ele.setName(wdContext.nodeSource().getSourceElementAt(i).getName());
                        ele.setAge(wdContext.nodeSource().getSourceElementAt(i).getAge());
                        ele.setLocation(wdContext.nodeSource().getSourceElementAt(i).getLocation());
                        wdContext.nodeNode2().addElement(ele);
         /* (non-Javadoc)
          * @see com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener#applyResult(com.sap.tc.webdynpro.progmodel.api.IWDNodeElement, com.sap.tc.webdynpro.progmodel.api.IWDNodeElement)
         public void applyResult(IWDNodeElement applicationNodeElement,IWDNodeElement queryOutputNodeElement)
              // TODO Auto-generated method stub
              IPrivateOVS_Model_View.IView_DisplayElement disp = (IPrivateOVS_Model_View.IView_DisplayElement)applicationNodeElement;
              IPublicOVS_Model_Comp.INode2Element out = (IPublicOVS_Model_Comp.INode2Element)queryOutputNodeElement;
              disp.setAttributeValue("Name",out.getAttributeAsText("Name"));
              disp.setAttributeValue("Age",out.getAttributeAsText("Age"));
              disp.setAttributeValue("Location",out.getAttributeAsText("Location"));     
      //@@end
    <b>Create a method ovslistener with the return type , while creating the method chosse return type in that select java native type and click browse,you will be showned a window Java Native Type Selection in that type IWDovscontextnotificationlistener and select that return type displayed click ok</b>.
    public com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener ovs_listener( )
        //@@begin ovs_listener()
        ovslist ovslist_obj = new ovslist();
        return ovslist_obj;
        //@@end
    <u><b>View Controller</b></u>
    Create the Following Context
    View_Display(Name,Age.Location)  /* All are type String only */
    Create the UI Elements for the Name age location
    public void wdDoInit()
        //@@begin wdDoInit()
        IWDAttributeInfo info[] = {wdContext.nodeView_Display().getNodeInfo().getAttribute("Name"),wdContext.nodeView_Display().getNodeInfo().getAttribute("Location")};
        IWDOVSContextNotificationListener obj = wdThis.wdGetOVS_Model_CompController().ovs_listener();
        WDValueServices.addOVSExtension(" ",info,wdThis.wdGetOVS_Model_CompController().wdGetContext().nodeNode1(),wdThis.wdGetOVS_Model_CompController().wdGetContext().nodeNode2(),obj);
        //@@end
    public static void wdDoModifyView(IPrivateOVS_Model_View wdThis, IPrivateOVS_Model_View.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        IWDAttributeInfo name = wdThis.wdGetOVS_Model_CompController().wdGetContext().nodeNode1().getNodeInfo().getAttribute("Name");
        name.getModifiableSimpleType().setFieldLabel("Name");
        IWDAttributeInfo location =wdThis.wdGetOVS_Model_CompController().wdGetContext().nodeNode1().getNodeInfo().getAttribute("Location");
        location.getModifiableSimpleType().setFieldLabel("Location");
        //@@end
    <b>Let me know You Understand My Code or Not
    Regards
    Chandran</b>

  • How to define a BW/BI system in Portal using BI SAP Query Connector.

    Hi,
      How to define a BW/BI system in Portal using BI SAP Query Connector.
    Portal>System Administration>System Configuration-->Portal Content >New System (from PAR)>com.sap.portal.systems.bi-->
    How to retrive the parameters required from a BI 7.0 System.
    Thanks

    Hi,
    You can refer to this link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/c9/b0c8ce704d40fbb18312f8e65b4b0b/content.htm
    Hope it will be helpful.
    Best Regards,
    Assaf Klieger

  • DoInit() Method error - java.lang.NoSuchMethodError: com.sap.tc.webdynpro.m

    Hello,
       Im having trouble running a Web Dynpro Application. When running, the application is showing me the following exception,
    java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
      at pe.com.minsur.wd_po_ws.wd_po_ws_model.Wd_po_ws_Model.<init>(Wd_po_ws_Model.java:124)
      at pe.com.minsur.wd_po_ws.wd_po_ws_app.comp.Wd_po_ws_Comp.wdDoInit(Wd_po_ws_Comp.java:120)
      at pe.com.minsur.wd_po_ws.wd_po_ws_app.comp.wdp.InternalWd_po_ws_Comp.wdDoInit(InternalWd_po_ws_Comp.java:195)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
    This is in the DoInit() method, In the line,
    Wd_po_ws_Model wd_po_ws_ModelModel = new Wd_po_ws_Model();
      It could be the METADATA or MODELDATA destination configuration?
    Thanks
    SU

    Hello,
    The problem is solved following these steps,
    "NWDS IDE is in SP04 whereas the WebDynpro Runtime is in SP01. So yo have to upgrade your WebDynpro in WebAS to SP04.
    All WebDynpro for Java patches are available on SAP Service Marketplace.Note 330793 explains how to download patches from SAP Service Marketplace. Note 1395865 explains how to find the Web Dynpro for Java related SCAs.
    Update your system via JSPM.
    Please refer the link to the official documentation for JSPM
    http://help.sap.com/saphelp_nwpi711/helpdata/en/1f/c45b4211aac353e10000000a1550b0/frameset.htm
    From WebDynpro perspective, we recommend you to apply both WD-RUNTIME.SCA and FRAMEWORK.SCA. So if any one of the archive is not mentioned in the 'SP Patch Level' tab, it is recommended to apply the same which is available in the service market place."
    Regards
    SU

  • How to get a "com.sap.tc.webdynpro.progmodel.api.IWDView" object

    hi,everybody,
         As we all know, there is a com.sap.tc.webdynpro.progmodel.api.IWDView object in wdDoModifyView() parameters.We can use the IWDView object in the method or after the method.But in my project, I want to use the IWDView object before wdDoModifyView() method.I don't know how to create a IWDView object. Would you please help me.Thank you!

    Hi daniel,
                   wdModifyView is called by framework while rendering the view &  IWDView is used for it. Before wdDoModifyView its not possible according to me , may be u can check with armin.
    Hi Manoj,
                   First of all, even if u declare a variable , u can't initializae it before weDoModifyView. Apart from that its always suggested , not to access the IWDView outside the wdModifyView . i think that's why wdDoModifyView is static & called everytime ,u do anything with the view.
    regards
    Sumit

  • How to define Lexical Parameter in Oracle report.

    Dear all,
    I need to know that how i will define lexical parameter in query of report builder
    i have like this
    SELECT R.EXCEPTION_MESSAGE EXP_MESSAGE,
    ER.PROD_ID PRODUCT,
    ER.TNAME SEGMENT1 ,
    DECODE(R.STATUS,'Y','ROW',
    'L','TABLE',
    'Z','CIB LEVEL',
    NULL) STATUS,
    NVL(COUNT(*),0) CNT
    FROM EXCEPTION_RECORDS ER,CIB_PROC_TABLES_RULES R
    WHERE ER.TABLE_ID=R.CIB_TABLE_ID
    AND ER.EXP LIKE '%'||R.EXCEPTION_MESSAGE||'%'
    AND ER.BRWR=:v_brwr
    &v_where
    GROUP BY R.EXCEPTION_MESSAGE,ER.PROD_ID,ER.TNAME,R.STATUS
    ORDER BY 2
    It is giving an error

    V_WHERE should be defined same way as regular parameter. It should acquire certain value that makes the query syntaxically correct bofore the sql is run, usually in the After Param Form trigger, e.g.
    v_where := 'WHERE 1=1';
    ...

  • How can I open the packages with examples (e.g. com.sap.caf.eu.gp.example)?

    Good day! I wanted to view the example 'com.sap.caf.eu.gp.example.timeoff.wd.create.CCreate' how can I achive it? Is it possible?

    not answered

  • How to use oJavaScript parameter in SubmitForm method?

    Hello,
    I have some difficulties to use the oJavaScript parameter in the submitForm method of document object.
    What I want to do is having a program filling some fields of my form from data the user write in some other fields.
    Then the updated fields will also send a request to get more information from the result of the first request.
    The process works on version 9.x and 8.x of Acrobat, but not for version 7.
    Therefore, I would like to know exactly what happens and add some alert messages, just as it's explained in Acrobat JavaScrit Scripting Reference. Here is what I do :
    this.submitForm({
                    cURL : "http://" + this.getField("serveur").value + "/cgi-bin/acrobat/reqldap#FDF",
                    cSubmitAs :"FDF",
                    bEmpty : false,
                    aFields : tab_champs_requete_infos_LDAP_responsable,
                    oJavaScript : {Before :'app.alert("Start")',
                                         After : 'app.alert("done")'}               
    But even if the script reqldap is succefully executed, I get no alert message...
    I hope someone can explain me why...

    Oh, so THAT's how it works... Thanks for your help! I was expecting to have them displayed before to submit the form and, most important, once the "reqldap" has finished to process the data, as some kind of callback function.
    I would like to be sure the different request doesn't prevent eachother to be processed correctly...There is no apparent reason why I can only make one request to that specific file on the server. All the next call to it will just be ignored when opening the calling form in Acrobat 7 while it will be just fine using Acrobat 9...
    Would you know anything about that?

  • How to define Export parameter as Import parameter in next test script.

    Hi Experts,
    We have defined Purchase order no. as export parameter in ME21N transaction test script.
    Test configuration for ME21N transaction executed succesfully and the Purchase order No. appeared in the last message
    is the export parameter for next test script i.e. MIGO transaction.
    However I am unable to define this export parameter as Import parameter in next test script for MIGO transaction.
    Please suggest me the method to define the same.
    Please Help...
    Thanks in Advance
    Vikas

    Vikas,
    You need to create super script which is nothing but having the both the steps (Po creation & MIGO ) in this eCatt script. This can be achieved by using the REF command as ex. below.
    Create PO
    REF ( Z_CREATE_PO , Z_CREATE_PO_1 ).
    Create MIGO
    REF ( Z_CREATE_MIGO , Z_CREATE_MIGO_1 ).
    Z_Create_PO is the actual eCatt script that you recorded to create the PO. Z_CREATE_QUOTE_1 is the interface created by SAP. Similarly you have use the REF command to call the MIGO script inside this super script.
    To pass the export parameter from PO step to MIGO, double click the Z_CREATE_PO_1and define the export variable for PO number. And do the same on the interface for MIGO step.
    Follow the instructions if you need in this help document posted by another user in this forum
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID0134775250DB00634934533836311611End?blog=/pub/wlg/3497
    Note : Cut & paste the entire link above to view the document.
    thanks
    Venkat

  • Struts - How not to lose parameter after validate() method

    Hi
    I have following problem. When I submit a form(action= sendMessage.do) from site generated in writeMessage.do?id=1 action and validate method find errors it forwards to writeMessage.do I need to forward to writeMessage.do?id=1
    <action path="/sendMessage"
    type="SendMessageAction"
    name="writeMessageForm"
    scope="request"
    validate="true"
    input="/writeMessage.do">
    <forward name="ok" path="/info.jsp"/>
    </action>
    I need something like input="/writeMessage.do?id=xx" , but xx will be changing in runtime. How to solve that problem?

    Swap input="/writeMessage.do" with input="/sendMessage.jsp" (or whatever the name of the input JSP was). If I remember rightly this will fix it for the automatic validation errors, however you'll still get this problem if you need to test business rules/custom validation rules from within your application. To fix this copy the following class and specify a className attribute for your action element in the struts config
    i.e. <action ... className="com.whatever.CustomActionMapping" ... />
    package com.whatever
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class CustomActionMapping extends ActionMapping
        public ActionForward findForward(String forwardName, HashMap requestParams)
            ActionForward fwd = findForward(forwardName);
            Iterator iter1 = requestParams.keySet().iterator();       
            if (iter1.hasNext())
                StringBuffer basePath = new StringBuffer(fwd.getPath());           
                basePath.append("?");
                 while (iter1.hasNext())
                     String paramName = (String) iter1.next();
                     ArrayList paramValues = (ArrayList) requestParams.get(paramName);
                     Iterator iter2 = paramValues.iterator();
                     while (iter2.hasNext())
                         String paramValue = String.valueOf(iter2.next());
                          basePath.append(paramName);
                          basePath.append("=");
                          basePath.append(paramValue);
                          if (iter2.hasNext())
                              basePath.append("&");
                     if (iter1.hasNext())
                         basePath.append("&");
                 fwd = new ActionForward(fwd);
                 fwd.setPath(basePath.toString());
            return fwd;
    }Then in the execute method of your action do something like
    // Creates a map to store the request parameters in
    HashMap requestParams = new HashMap();
    // Helper method to extract a request parameter for 'teamId'
    Integer teamId = RequestHelper.getTeamIdParam(request);       
    // Adds the teamId parameter to the hash map
    setRequestParam(RequestHelper.TEAM_ID, teamId, requestParams);
    // Creates a new forward with the required request parameters dynamically appended to the forward path
    return ((CustomActionMapping) mapping).findForward(forwardName, requestParams);

  • How to define IE-parameter EO_OUTBOUND_PARALLEL

    Hi,
    we are using PI 700, SP11.
    I have a file-receiver adapter in my scenario and I wanna define the IE-parameter
    EO_OUTBOUND_PARALLEL
    for this receiver with a value of "1".
    The reason is, that adapters of the j2ee-engine work serial and so a parallel outbound queue is not necessary.
    I read, that I have to define it in SXMB_ADM:
    Tuning / EO_OUTBOUND_PARALLEL
    with a subparameter = ???
    How can I define this subparameter?
    I tried to define it via sender/receiver-ID , but it doesn't work.
    Please help.
    Thanx
    Regards
    Wolfgang

    Hi Wolfgang,
    wollte nur Bescheid geben, dass ich das auch nicht weiss
    Gruss Mario

  • How to define sequence parameter by default as 'Use Default'

    Hello
    Is there a way to define sequence parameters so, that in every instance of this sequence the default checkmark of the parameters is set to 'Use Default' ?
    If this is possible is it only for all parameters of an sequence, or for can it be changed for any of the parameters individualy.
    Thanks
    Olli

    Dear Olli
    I don't think there's a way of automatically checking the "Default" option for several sequence parameters. You will have to do it for each item individually.
    Best regards
    Philipp Roessler

  • How to define a separate virtual host for each client in ICF for WebDynpro

    Hi,
    We have an ERP system with multiple clients running on it. The WebDynpro ABAP applications once developed are available on all clients, as standard. However, this is not our desired behavior. We want:
    1. The WebDynpro ABAP applications should be managed separately in SICF depending on the client
    2. The URL for accessing the WebDynpro application should have a own host name for each client. e.g.
    A WebDynpro application on client 100 should be accessed by http://host1:5000/sap/bc/... and the same application on client 200 should be accessed by http://host2:5000/sap/bc/...
    After a while researching I find out that creating a virtual host for each client in SICF would be a possible solution to fulfill the above mentioned requirments:
    1. Set the profile parameter is/HTTP/virt_host_* with corresponding host name and port number
    2. Create a new virtual host in SICF assigning the profile paramter to it
    3. Assign a client to this virtual host
    My question is how to specify a client to a virtual host? I didn't find any possibilities in SICF!
    Anyone can help me? Thanks a lot in advance!
    Best Regards
    Di Li

    Hi Srikishan,
    thanks for your reply. Your suggested way is certainly a potential, and also my preferred option for solving the multiple-client-capable URL access to WebDynpro / BSP applications.
    However, for some reasons, based on the customer requirements, the client should not be visible in the URL. The URL for accessing the WebDynpro / BSP applications on different client should have different host name, as if they are different companies. Besides that, we want to manage each WebDynpro / BSP application on different clients in SICF separately.
    Therefore, at least on my opinion, we need to introduce a virtual host for each client in SICF. But how do I make it happen?
    Regards
    Di

  • How to define a Recur. Paymeny/Ded wage type for an Emp Subgroup

    I have created a Recur. Payment/Deduction (0014) wage type of "Fixed Amount" value 9say, Rs.2000). I want all the employees of an Employee Group to get this amount in salary, periodically (say in periods 2, 4 & 6). I know, thru "Personnel Actions-Maintain", I can set up the "1st Payment Period", "Interval in Periods" etc. for this infotype for a particular employee. But I want the same setting to be applicable for all employees of an employee subgroup. How to acheive this? Because, doing the same setting for all the employees is difficult and also error prone.
    Please help.

    Hi,
    You can do this through User Exit.Ask your ABAPER to do this logic in SMOD->PBAS0001->Components->EXIT_SAPFP50M_002
    INCLUDE ZXPADU02.Do the coding here.
    Manoj.

Maybe you are looking for

  • Extracting a Photo and Printing through ABAP Report

    Hi, How to extract a picture of an employee from PA30 or PA20. After extracting the picture how to print it in ABAP report. Waiting for help. Thanks in Advance with Regards.   MAM

  • How can i use office work in iMac?

    I want have microsoft work in Imac and relate to my Ipad, which one is the better one should I choise? because it have a lot difference choice in app store

  • Editing html files using Contribute

    I have just purchased the tracking software ProspectFinder from Enecto.com that lets me see the names and details of the companies visiting our website. In order for the tracking to function, I need to paste some lines of html code to the respective

  • FB3 plug-in install into Eclipse 3.3 does not install editors

    I just decided to upgrade to Eclipse 3.2 as it has been suggested in the forums that could improve stability on Windows Vista. I installed Eclipse 3.3, then ran the FB3 Beta1 install to install into the new eclipse installation. Install completed suc

  • Automatic Sleep solved

    Hope this helps someone For several weeks the G4 would not go to sleep automatically per the settings in the energy saver pane. Trashing plists and other remedies suggested in this forum did no good. I could put the Mac to sleep without problems incl