How to create UI element in VC

Hi,
     I want to create UI element in VISUAL COMPOSER like text field, input field, button etc.How we can develop in VC iView?
Thanks,
Kundan

Hi,
Refer
http://www.sdn.sap.com/irj/sdn/nw-vc;jsessionid=(J2EE3417200)ID1217882450DB11101197022981941087End?rid=/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e
Regards,
Manivannan P

Similar Messages

  • How to create cost element in controlling

    how to create cost element in controlling for Direct meterail.
    i have to create for each materail or on rm consumption is enough
    please give me replay
    thanks

    Hi Nagaraju,
    First you create the required account as cost element through FS00 and select your gl account and edit cost element and give 1 in cost element category.
    Afterwards in OKB9 You create the cost element whether it is required for Bus Area mandatory, profit centre mandatory and Valuation area is mandatory.  Based on your selection you have to assign 1, 2 or 3.  Ex. You have selected for consumption account profit centre is mandatory.  You give 3.  and you have to assign the cost centre against profit centre.  Then automatically your consumption will post to the cost centre.
    BSR

  • How to create dynamic elements in action of a view?

    hi all,
    I created 2 buttons dynamically in WdDoModifyView(). I created  action1, and parameter for that action i.e, id of type string.
    when i click on button1, some ui elements must be displayed.....
    can anyone tell me how to dynamically add UI elements in onAction() of view.....
    i wrote the following code to create & map dynamically in WdDoModifyView()........
    if(firstTime)
        IWDButton b1=(IWDButton)view.createElement(IWDButton.class,"button1");
        b1.setText("Button1");
        IWDButton b2=(IWDButton)view.createElement(IWDButton.class,"button2");
        b2.setText("Button2");
        IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
        tc.addChild(b1);
        tc.addChild(b2);
         IWDButton butt1 = (IWDButton)view.getElement("button1");
         IWDParameterMapping pm1a = butt1.mappingOfOnAction();
         pm1a.addParameter("id1","link1a");
         IWDButton butt2 = (IWDButton)view.getElement("button2");
         IWDParameterMapping pm1b = butt2.mappingOfOnAction();
         pm1b.addParameter("id1","link1b");
    after writing this..... in onAction().........of view... i wrote like this...
    if (id1.equals("link1a"))
    else{
    in the if & else condition, i have to create UI elements dynamically.
    when i am trying to create Ui elements dynamically, but i am unable to create dynamically here.
    pls give me suggestion how to proceed this
    regards,
    vila

    Hi Vila,
    Are you trying to create UI elements dynamically in the action? If yes then you won't be able to do so because you can only create UI elements dynamically in WDDoModifyView().
    Always WDDoModifyView() would be called after your action. So, you can handle it as you want in your WDDoModifyView() itself.
    But if you want that those elements should be created everytime when you fire an event then don't write it within if(firstTime) clause as this would be true only when WDDoModifyView() is called for the first time when the page intially loads.
    Regards,
    Murtuza

  • How to create an element in component controler

    Hi Experts,
    I need to validate the data of a model node in component controler and add those validated records in other value node.  For that I need to write a loop where in i can repeat the records for validation.
    How can i create the element in the loop ?  I tried with below code as we do in View controler , but ! this is not allowing in compoent controler. Is there any way to do this ?
    IPrivateFinalTRAView.IFirstOutputElement FFM = wdContext.createFirstOutputElement();
    Regards,
    Suresh

    Hi,
    i am trying to copy all the resords from a model node to the value node which is available in the component controller,.
    after executing the model i am doing this copy operation, for the requirement i ahve converted some of the data into STRING type.
    int SalHistSize = wdContext.nodePt_Salhistory().size();
    // Populate Salary_History Table
    ArrayList arlQuotaTable = new ArrayList();
    // Creating the element for our Salary History Node
    IPublicFcCompHistory.ISalary_HistoryElement objsalhistnode = null;
    if(SalHistSize > 0){
    for (int k=0;k<SalHistSize;k++) {
    IWDNodeElement elementSalHist = wdContext.nodePt_Salhistory().getElementAt(k);
    objsalhistnode = wdContext.createSalary_HistoryElement();
    objsalhistnode.setAction_Date(elementSalHist.getAttributeValue("Action_Date").toString());
    objsalhistnode.setAction_Reason(elementSalHist.getAttributeValue("Action_Reason").toString());
    objsalhistnode.setAction_Type(elementSalHist.getAttributeValue("Action_Type").toString());
    objsalhistnode.setAnnual_Salary(elementSalHist.getAttributeValue("Annual_Salary").toString()+"  (CAD)");
    objsalhistnode.setCompensation_Sal(elementSalHist.getAttributeValue("Compensation_Sal").toString()+"  (CAD)");
    objsalhistnode.setPay_Area(elementSalHist.getAttributeValue("Pay_Area").toString());
    //          Adding the record to array List          
    arlQuotaTable.add(objsalhistnode);
    //          Bind the populated Array List to the View Table for Data population
    wdContext.nodeSalary_History().bind(arlQuotaTable);
    Try this dear,
    Cheers,
    APPARAO

  • How to create Data Element TPLNR

    Hello
    I want to use TPLNR to create data element in Operating Concern but I am not able to because of length of TPLNR (30) in Operating Concern we can create data element only upto 18 char. If i want to create new data element YTPLNR.
    I did following steps
    1. SE11
    2. Data Element
    3. and settings of particular data element what ever is required.
    My question is how can I use YTPLNR as characteristic as same value of TPLNR. I want all data that is available in TPLNR. I am creating new element because of data length issue.
    Table: IFLOT has data element TPLNR. I want all information of TPLNR in YTPLNR how it is possible to use that info in that.
    I tried to create user defined characteristics for operating concern
    i want to use with reference to existing value option in user define
    How can I do that
    thank you

    Hi,
    just a small addition for the Binary Search: The table must be sorted by the field(s) you are looking for:
    Symbolic code:
    read table <itab> with key <field> = <value> binary search.
    will take a record in the middle of the internal table first. If <field> < <value> the next try will be in the middle of the first half and the same procedure is repeated until the searched record is found or not found.
    If the table is not sorted correctly, you will probably miss the matching records.
    The fastest way is to use HASHED tables with unique key. The binary search will take more time when the table grows; hashed table access is (nearly) stable.
    Regards,
    Clemens

  • How to create cost element in mass

    Hi All
    I want to create cost element in mass. i created to new GLs . and now i want to create there cost elements in more than 60 company codes . is there any way to create it in mass . please suggest with t.code
    Thanks in Advance
    Nikhil

    Yes you can create cost elements in a batch session automatically.
    Please use tcode OKB2 for default settings. 
    Define batch input session - OKb3
    Execute batch session : SM35
    Regards

  • How to create a element that contain a element generated in another document

    Hi,anybody.
    I want to create a element that contained a element generated in another document.The following is my coding:
    doc1 = new XMLDocument();
    ele1 = (XMLElement)doc1.createElement("AAA");
    doc2 = new XMLDocument();
    ele2 = (XMLElement)doc2.createElement("BBB");
    ele2.appendChild(doc2.createTextNode("bbb"));
    XMLNode ele = (XMLNode)ele2.cloneNode(true);
    ele1.appendChild(ele);
    but there is a DOMException,Node doesn't belong to the current document.
    Thanks in advance.
    null

    Hi Marc,
    it is currently not possible to check for values in other tables within different repositories (main tables).
    If you want to check for values in flat lookup tables, use the "Fields" menu in the expression editor. You will get sth like this:
    IS_NULL(Category.Item)
    whereas "Category" could be a lookup table (flat, hierarchy, taxonomy) and "Item" a field in it.
    Checking across qualified lookup tables is only possible in a very restricted manner.
    Hope that helps.
    Christian

  • How to create an element and doesn't want to import an entry of schema in W

    Hi All,
    I have a requirement where if I'm creating a variable of Element Type in BPEL Process it is importing an entry of the schema location in wsdl also. How to
    get rid of adding the entry of a schema location in wsdl. So that we can have a secure webserivce.
    How to acheive this.
    If possible kindly share me a link on this.
    Regards.
    CH

    CH,
    As I know, when you define a variable of Element Type you do not need to attach it to wsdl. You do need an XSD.
    When you define a variable of MessageType you need to attach it to wsdl.
    I don't think you can avoid attaching the variable into wsdl file.
    Arik

  • How to create Invisible Element Dynamically?

    Dear All,
    I am trying to create a Form dynamically and for aligment prupose i need to create one InvisbleElement also dynamically.But i dont know why that is not reflecting in the Screen .The code is deploying properly without error but the Invisible Element is not getting created .The code i used is
    IWDInvisibleElement Invis1=(IWDInvisibleElement)view.createElement(IWDInvisibleElement.class,null);
    Invis1.setEnabled(true);
    Invis1.setVisible(WDVisibility.VISIBLE);
    thetransparent.addChild(Invis1);
    Can anyone please tell me if i need to set any property or if the method i am creating is wrong .Please guide me in the correct way.
    Thanks and Regards,
    Nishita Salver

    Hi,
    check "Dynamic Programming" part in below library file
    http://help.sap.com/saphelp_nw70/helpdata/EN/0f/f08841e3af1609e10000000a155106/frameset.htm
    or else,
    still you are getting Problem, create any other ui element and set its visibility to false. (dont know how far it will help you)
    regards,
    Pradeep
    Edited by: pradeep bondla on Jun 25, 2008 3:20 PM

  • How to create an element with an ID attribute ?

    Hi,
    first i need to say i searched the web for ~one week now, and couldn't find any good solution.
    Lastly i searched into this forum and, unfortunaly, i couldn't find any good answers to the problem.
    Here are the reference :
    http://forum.java.sun.com/thread.jsp?forum=34&thread=290862 < it's exactly the pb, no answers
    http://forum.java.sun.com/thread.jsp?forum=34&thread=338022 < no answers
    http://forum.java.sun.com/thread.jsp?forum=34&thread=67747 < answer is false
    http://forum.java.sun.com/thread.jsp?forum=34&thread=67683 < same pb, wrong answer
    http://forum.java.sun.com/thread.jsp?forum=34&thread=470003 < a bit far form the initial subject
    so i'll be quick :
    - when you load ur xml DOM, u can use the 'getElementById()' method, and it works very well
    - but when u create a new Element, u can't use the simple 'setAttribute()' method because as said in the doc : "Because the DOM Core is not aware of attribute types, it treats all attribute values as simple strings, even if the DTD or schema declares them as having tokenized types.", therefore, the 'getElementById()' can't work with those newly created Element.
    - same pb arise when u try to modify an ID attribute...
    so, with my investigation, i found that u need to specify to the DOM that the attribute you just set is an 'ID'.
    and that's where i have problems, i tried creating EntityReference and binding that node to the attribute node, the element node and even to the Textnode but couldn't find anything to work...
    Here is my method (which doesn't work) :
    public void setIdAttribute(Element element,String nameAttribut, String dataAttribut)
                    System.out.println("setIdAttribute() : nameAttribut="+nameAttribut+" dataAtribut="+dataAttribut+" user="+element.toString()); //DEBUG
                    Attr attributRef = document.createAttribute(nameAttribut);
                    EntityReference er = document.createEntityReference(nameAttribut); //creating an Reference for the attribute named 'nameAttribut'
                    Text data = document.createTextNode(dataAttribut);
                    //link to the main DOM tree
                    attributRef.appendChild(data); //adding the String data
                    attributRef.appendChild(er); //...then telling DOM that the attribute 'nameAttribut' is an ID
                    //at last linking the attribute node
                    element.setAttributeNode(attributRef);
            }I'm totally lost :/ (help !)
    AciD

    After thinking about it some more, I find that adding a setIdAttribute() method in a DOM level 3 conformant way while at the same time keeping it independent of a particular DOM implementation would take quite some effort. It's easier to add similar functionality into a Document wrapper along these lines:
    public class MyDocument implements Document {
       private Document _doc;
       private Map _eltsById = new TreeMap();
       public MyDocument(Document doc){
          _doc = doc;
       public Element getElementById(String id){
          Element foundElt = _doc.getElementById(id);
          if (foundElt == null)
             foundElt = (Element)_eltsById.get(id);
          return foundElt;
       public void setIdAttribute(String attrName, Element elt){
          String attrValue = elt.getAttribute(attrName);
          if (attrValue != null)
               _eltsById.put(attrValue, elt);
       //...implement all the other Document methods by forwarding to _doc
    test(){
       MyDocument myDoc = new MyDocument(parse(...));
       Element elt = myDoc.createElement(...);
       elt.setAttribute("id", "123");
       myDoc.getDocumentElement().appendChild(elt);
       myDoc.setIdAttribute("id", elt);
       Element foundElt = myDoc.getElementById("123");
       assert elt == foundElt;
    }Unfortunately this simple implementation breaks down if an ID attribute value is later changed, so this is probably a rather dirty hack.
    Some DOM implementations allow you to search for nodes using implementation specific methods or XPath. Oracle's XML does it like this:
    XMLDocument doc = parse(...);
    Element elt = (Element)doc.selectSingleNode("//*[@id='123']");
    Or like this with Xalan:
    CachedXPathAPI xpath = new CachedXPathAPI();
    Element elt = (Element)xpath.selectSingleNode(doc, "//*[@id='123']");
    The XPath based ways of searching for nodes have the benefit of not being dependent on schema validation in the first place (as the ID based mechanisms are). And of course you have many more search options than just attribute values. On the other hand XPath evaluation is hugely slower than most getElementById implementations if it doesn't use some kind of index. So if you want fast (that is index based) XPath queries for in memory XML data, you should probably look at something like XQEngine http://xqengine.sourceforge.net/
    -Alexander

  • How to create XML element with out creating a document

    I ve been looking for hours for a method to create an XML element without the need for the Document. I am trying to create objects that access the database, and I need in each of these objects a method that returns only an element (ie. getXMLData()). And in the class that created these object, I nee to call the getXML() methods and construct a document. However, I am not looking to create the document if I am not going to use it. In the component class I need to be able to traverse the xml element and read and modify the values. Is there a way to do so with sun's JDK ?

    I ve been looking for hours for a method to create an
    XML element without the need for the Document.
    ... I am not looking to create the document if I
    am not going to use it.Hi M-A,
    Though you have been told the solution, let's stick to your original issue, just for the sake of interest. I gather what you have in mind is finding the answer to the following question: is there a way of creating a document without having to bind it to any data source? The answer is yes. What you might need is the createDocument() method of the DOMImplementation interface which offers lightwight document handling by obviating the need to construct a particular DOM instance. (You could also use the getDOMImplementation() method of the DOMImplementationRegistry interface, but it has bugs.) Here's a sample code:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder parser = factory.newDocumentBuilder();
    DOMImplementation domImpl = parser.getDOMImplementation();
    Document doc = domImpl.createDocument(null, "rootnode", null);The above code produces the following document:<?xml version="1.0" encoding="UTF-8"?>
    <rootnode/>You can make this document even skinnier if you pass null values to all three parameters of the createDocument() method, in which case the document will only contain the prolog. I think both the creation and the structure of this document are simple enough for you to use it as some sort of utility (e.g. by putting the code in a separate class) for creating elements.

  • How to create tab element in a jsp

    hi all
    is there anyone who has experience with using tab in jsp? thanks.

    I'm with Dr Clap here - you're likely looking for a way to do this in HTML/DHTML - but you could look into Java Server Faces (JSF), as I think some vendors are producing components now, and I think a Tabbed Pane is out there:
    http://www.otrix.com/
    (This is likely more than you care to get into, but I thought I'd throw it out for consideration)
    Good Luck
    Lee

  • Create XML element without closing tag using Visual C++

    I know how to create xml element with closing tag (using WriteStartElement and WriteEndElement methods)
    <tag id="1234">
    </tag>
    but is there a way in Visual C++ to produce xml element like this
    <tag id="1234"/>
    i.e. without closing tag?

    Hi adamay,
    Please refer to this thread.
    http://stackoverflow.com/questions/8182245/create-xml-element-without-closing-tag-using-xslt
    I think you could try the way of write your own class derived from XmlWriter.
    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.

  • How can I create an element in the model node?

    Hi, Experts,
    I create a model node that name is containerNode in the contxt. Cadinility is: 1..n
    I write the code in the method:
      private String getDataForOutputTable( IWDNode wageTypePayslip, IWDNode containerNode ){
           String betrgSumStr = "";
         int index = 0;
         Vector containerVector = new Vector();
         int size = wageTypePayslip.size();
         IWDNodeElement element = containerNode.createElement();// The system report error when I run the application.
         BigDecimal betrgSum = new BigDecimal( 0 );
    I try to create a element in the containerNode, But the system report error when I run the application.
    java.lang.IllegalArgumentException: model object must not be null
         at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:66)
         at besuretech.com.wdp.IPrivatePayDataDispView$IOContainerElement.<init>(IPrivatePayDataDispView.java:1537)
         at besuretech.com.wdp.IPrivatePayDataDispView$IContextNode.doCreateElement(IPrivatePayDataDispView.java:88)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:884)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1351)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElement(Node.java:1370)
         at besuretech.com.PayDataDispView.getDataForOutputTable(PayDataDispView.java:251)
         at besuretech.com.PayDataDispView.getAllData(PayDataDispView.java:196)
         at besuretech.com.PayDataDispView.onPlugPayListViewIn(PayDataDispView.java:154)
         at besuretech.com.wdp.InternalPayDataDispView.wdInvokeEventHandler(InternalPayDataDispView.java:391)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    How can I create an element in the model node ?
    Best regards,
    tao

    Hi,
    You need to execute the model before creating the element.
    Regards
    Ayyapparaj

  • How to create a group of cost element

    Hi,
    i want to integrate a group of cost element in KP06, but i don't know how to create it.
    please what is the transaction to do that ?
    Regards.

    Hello,
    To create the Group of Cost Element
    Go to transection code KAH1 Give any name or number to your cost element group then make the proper standerd hirerchey as you need or simply click on the cost elemt and add all cost element which you want to make a group.
    Hope it will solve you probem,
    Regards
    Ravi

Maybe you are looking for

  • SRM 7.0 - Unable / How to get into DEBUGGING mode in BADI

    Hello SAPions, I am unable to get into debugging mode from WebDynpro Portal screen to R/3 BADI in SRM 7.0 . I placed a breakpoint in the BADI, and logged into the portal screen. However, in SRM5.0, to get into debugging mode from ITS, we place a brea

  • How can i connect my ipod nano 7th gen to my car?

    Hi, how can I connect my ipod nano 7th gen to my car with bluetooth? Since I only have onstar device on my car but no bluetooth device, do I need to buy extra device to connect my ipod ? And what kind of device I shall choose? Thank you!

  • Linksys WRT54G: wireless issue

    Hi. So I just got this version 1 router, running cable modem, 1 LAN connection, and a few Wireless connections in a hidden network. It is fine when it is running. But EVERY MORNING I have to change the Wireless Security settings back and forth for th

  • How to navigate to different page with different user name

    Hi, I have created a DB application.... My application consist of 4 pages....... But if the first user logs into an application means, he needs to see only 3rd page If the second user logs into an application means, he needs to see only 4th page.....

  • Tcode: SALE

    Dear ABAP'ers, How to Assign two Logical systems to One client? First of all, is this possible? and if yes, then how to assign. I have 800 client in R/3 system and 800 client in SAP-BW system I want to transfer data from both the systems. Points will