Please suggest for copy the node 1 from 2 (both are same elements)

Hi,
how to copy the values from NODE 1 to NODE 2. all the elemets are same.
pl possible give steps.
DATA: nd_Z type  ref to IF_WD_CONTEXT_NODE,
      el_Z type ref to  IF_WD_CONTEXT_ELEMENT,
      nd_Z_ORG type ref to IF_WD_CONTEXT_NODE,
      el_Z_ORG type ref to IF_WD_CONTEXT_ELEMENT.
nd_z = wd_context->get_child_node( name = wd_this->wdctx_z ).
  get element Z
  el_z = nd_z->get_element(  ).
nd_Z_ORG = wd_context->get_child_node( name = `Z_ORG` ).
  nd_Z_ORG->bind_table( el_z ).
how to get as internal table of NODE1 and how to bind it in the VIEW.
thanks in advance
sri

Hi,
I don't no how to use the component variables.
my code is
NODE1 is the editted data
node 2 is the orginal data.
DATA: nd_node1 type  ref to IF_WD_CONTEXT_NODE,
      el_node1 type ref to  IF_WD_CONTEXT_ELEMENT,
      nd_node2 type ref to IF_WD_CONTEXT_NODE,
      el_node2  type ref to IF_WD_CONTEXT_ELEMENT,
      itab_node2 TYPE IF_V_VIEW=>elements_node2.
      nd_node1 = wd_context->get_child_node( name = 'NODE1').
      CALL METHOD nd_node1->bind_table
      EXPORTING
        new_items = itab_node2.
kindly correct it.
thanks
sri

Similar Messages

  • Copy the nodes from one Document obj to another Document Obj.

    Hi All,
    I have two Document Objects created out of the same InputStream source.Both of them have the same DTD, namely SourceDoc and TargetDoc.
    Now when I try to replace a node in TargetDoc with that in SourceDoc, it is giving me the below exception.
    *org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node
    in a context where it does not exist.*
    I then tried with TargetDoc.importNode(), even this function resulted in the same above error. How can I make the Parser get to know that , both the SourceDoc and the TargetDoc belong to the same XSD...
    Thanks,
    Sabarisri. N

    Hi Sabarisri, I have to downplay a bit the drama that might appear in the response above. After looking at my notes, I think if the schema document is properly made (in particular, not itself invalid---that's important), you can normally proceed with in-memory revalidation. That I have renew the checking using a demo, like this.
    Let the xsd look like this.
    <?xml version="1.0" encoding="UTF-8"?> 
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> 
    <xs:element name="root" type="roottype" /> 
    <xs:complexType name="roottype"> 
      <xs:sequence>
        <xs:element name="child" type="xs:string" maxOccurs="2"/> 
      </xs:sequence> 
    </xs:complexType> 
    </xs:schema>This is a correct xsd in itself.
    Suppose you've an xml doc like this.
    <root>
      <child>child-1</child>
      <child>child-2</child>
    </root>If you proceed with append another child to the dom tree and do an in-memory revalidation, it can be done without complication. For this category of problems, you should not encounter the problem I mentioned.
    //suppose the doc be the xml document loaded into the dom-tree
    //suppose the validator being the Validator instance with the xsd document loaded
    //this would lead to no error before doing anything else
    validator.validate(new DOMSource(doc));
    //then you start make another child to make the doc invalid
    Element elem=doc.createElement("child");
    elem.setTextContent("child-3");
    doc.getDocumentElement().appendChild(elem);
    //do an in-memory revalidation, using the same validator in the memory already
    validator.validate(new DOMSource(doc));
    //this time it will result in error in the error handler of the validator as expected --- normal behaviourFor this kind of re-validation, which belongs to a very large category of problems to encounter, you should be able to do it like the above. (Just bearing in mind, on some fringe cases, oddity might result.) Hence, I should not encourage a temporary intermediate xml file approach, which all can understand very clumnsy and inefficient.

  • My partner has my former iPad 1, I have an iPhone 5 and iPad Gen III.  I want to copy my contacts list to his iPad.  We both have Apple ID's and we share a PC.  How do i copy the contacts from my iPhone, iCloud or iPad to his iPad 1?

    copy my contacts list to his iPad.  We both have Apple ID's and we share a PC.  How do i copy the contacts from my iPhone, iCloud or iPad to his iPad 1?

    The problem is that all services are bundled with your Apple ID ([email protected]):
    Your iCloud account (Mail, Contacts, Calendars, Reminders, Notes, Backups, etc.),
    also iTunes & App Store purchases (Music, Movies, TV Shows, etc.),
    and the iTunes Match services.
    (I guess that all your devices - yours and your wife's are connected to one iTunes library, right?)
    If you want that your wife gets her own iCloud account for Mail, Contacts, Calendars, etc. but gets also access to your media then you have two set up two things on her device:
    iCloud (Settings > iCloud) with her account (e.g. [email protected])
    and
    iTunes & App Stores (Settings > iTunes & App Stores) with your account (e.g. [email protected]).
    In this case she gets access to your library and could use the same iTunes Match account.
    (See also: Using one Apple ID for iCloud and a different Apple ID for Store Purchases http://support.apple.com/kb/HT4895)

  • Help me in resolving "No authority for the node from characteristic"

    Hello Friends
    I am trying to implement hierarchy on ocostcenter.
    i am able to create analsys authorization .but when i am trying to create hierarchy ,i am able to select the hierarchy name,
    when selecting the node from the push button i get the error message
    "<b>No authority for the node from characteristic
    0PROFIT_CTR, hierarchy 1000hirarchy (00000000,)"</b>
    Please help me in resolving this proble.
    Thanks
    Ram

    Ram,
    Try running ST01, set an authorization trace and then run your specified transaction code.
    After the failure return to ST01, turn off the trace and hit Analyze. Then check analyze authorization trace and give your User ID and any other relevant criteria.
    Look for return codes on the left which are not 0, these should indicate possible issues with authorizations.
    Regards
    Ashley

  • How to copy the text from textfield to jlist(please help me)..

    hi to all,i am making chat application , in my program user enters ip in the text field to connect to other computer.whenever user wants to send the message ,he has to enter ip in the text field , all i want to do is to copy the ip from text field to jlist , so user does'nt enter same ip every time , he can just select from the jlist . please help me in this ,can u tell me code for that , i would be thankful to u
    Thankyou
    Naresh

    You've asked a lot of questions the last few days. I think its time you do some reading. The Swing tutorial titled "Creating a GUI Using JFC/Swing: has sections on every component and example code of how to use them. You can even download the entire tutorial and all the example from the following link:
    http://java.sun.com/docs/books/tutorial/
    Here's the link specific link to the section on "Using Lists"
    http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

  • How can I copy the titles from a project volume one use them for the rest?

    I'm editing a four DVD set, and would like to use the same opening titles and credits for each. How can I copy the titles from volume one and use them for the rest? Thank you.

    Open the project that has the titles you want to use. Select (highlight) all the title clips you want, then right-click and choose COPY.
    Open the new project(s), then paste the titles onto the Timeline.
    Done.
    -DH

  • Dear sir thanks for new ios7;please see the calendar in hijri shamsi and compare it with original calendar! Why this difrence? Please compatible start of the years from 1st of farvardin month.

    Dear sir thanks for new ios7;please see the calendar in hijri shamsi and compare it with original calendar! Why this difrence? Please compatible start of the years from 1st of farvardin
    1392/01/01 = 21/march/2013

    Apple does not participate in this forum, it's only used by users like you.

  • I can see other accounts on home share and play the songs, but not drag them to my account.  Home share is on "on" on both accounts and both computers are authorized.  What can I do to copy the song from account to account?

    I can see other accounts on home share and play the songs, but not drag them to my account.  Home share is on "on" on both accounts and both computers are authorized.  What can I do to copy the song from account to account?

    okasy if you want to move the music from the other comptuer into your comptuer you can > but if they were purchased with a different APPLE id then you need to authorize the comptuer to play them .
    http://support.apple.com/kb/HT4527
    click homesharing > shows how to move the song onto your comptuer

  • How to copy the Data From Oracle Table To SAP Table

    Hi Friends,
    We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
    I appreciate any suggestions regarding this.
    Regards
    CSM Reddy

    Hi,
    since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
    To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
    Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement. 
    Regards
             Frank

  • How to copy a node from one dom document to another?

    I have one dom document that I have to split up into multiple dom documents. I am able to get the inividual nodes that I want to put into seperate documents.
    My problem occurs when I create a new dom document and try to add the node from the parent document. I get an exception saying (copied from api: WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. )
    How can I make it so that I can copy a node from one document and add it to another.

    Have you checked out the API called importNode in the DOM Document. It lets you move nodes between different documents.
    This api lets you simply copy the existing node from one document into another. without creating any new nodes for it.
    I have done a small example please have a look.
    Book.xml
    <?xml version="1.0"?>
    <books>
      <book>
        <name>Inside Corba</name>
      </book>
      <book>
        <name>Inside RMI</name>
      </book>
    </books>------------------------
    Book2.xml
    <?xml version="1.0"?>
    <books>
      <book>
        <name>Core Java </name>
      </book>
      <book>
        <name>Core JINI</name>
      </book>
    </books>-------------------
    MoveNode.java (copies nodes from doc2 into doc1)
    import java.io.*;
    import javax.xml.parsers.*;
    // structures
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class MoveNode
      public static void main(String[] args)
        // step1. create a factory and configure it
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        // step2. set various configurations
        factory.setValidating(false); // do not need validation at this time.
        factory.setIgnoringComments(false); // do not ignore comments
        factory.setIgnoringElementContentWhitespace(false); // do not ignore element content whitespace.
        factory.setCoalescing(false);
        factory.setExpandEntityReferences(true);
        // step 3 create a document builder
        DocumentBuilder builder = null;
        try
          builder = factory.newDocumentBuilder();
        catch(ParserConfigurationException e)
          e.printStackTrace();
        try
          Document doc1 = builder.parse(new File("book.xml"));
          Document doc2 = builder.parse(new File("book2.xml"));
          if (doc1 == null || doc2 == null)
            System.out.println("doc1 is null or doc2 is null");
            System.exit(1);
          } // if
          // fetch books from doc2
          NodeList list = doc2.getElementsByTagName("book");
          System.out.println("number of books found " + list.getLength());
          Node node1 = list.item(0);
          Node node2 = list.item(1);
          // get the root node of doc1
          Node root = (Node) doc1.getDocumentElement();
          root.appendChild(doc1.importNode(node1, false));
          root.appendChild(doc1.importNode(node2, false));
          //now doc1 should have 4 nodes
          System.out.println(doc1.getElementsByTagName("book").getLength());
        } // try
        catch(SAXException se)
          se.printStackTrace();
        catch(IOException ie)
          ie.printStackTrace();
    hope this helps.
    regards,
    Abhishek.

  • My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my com

    My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my computer and load them in my LR. The photos appear but witthout any editing or tagging. We need to be able to have her working on the photos on her computer with her copy of LR and me on my computer with my version of LR being able to access what is already tagged and given back to me. This seems hard. We need advice on if it is at all possible to have two computers simultaneously working on LR . I bought her her own version because I was told at the time of purchasing that that was the only way to share. Please advise urgently! Thanks.

    Sounds like your assistant isn't instructing Lightroom to write the tagging and editing to the files themselves, so wehn the files return to you, they don't have editing and tagging information. She need to select the photos in Lightroom and then Ctrl-S (Cmd-S on Mac). Or alternatively turn on the option to autmoatically write this information to the files.
    If you are using RAW photos, then this information will be written to a sidecar XMP file, and your assistant must provide you with the sidecar file. If these photos are not RAW photos, then the information is written directly into the photo file itself.
    Lightroom wasn't designed to be a multi-user program, and so it is truly not possible to have two people working on the same catalog at once. The way you are doing things, as modified above, is probably the way to go.
    As an alternative, you can transfer (portions of) catalogs as well as photos back and forth and then all of these issues disappear, but a catalog might be rather large for a flash drive (or maybe not, it depends)

  • How to include X-IDSSessi​onID in every header and copy the AuthToken from the previous response

    Hello,
    The business process is to login  and logout using Web HTTP/HTML protocol in LR 11.52; while I am trying to login to the website and after several attempts keep getting  error-500. One of the suggestion was to  copy the X_IDXSessionID to each request.  Also applied correlation but keep getting the authentication error in the session.
    My concern:How to include X-IDSSessionID in every header and copy the AuthToken from the previous response into the current request header? 
    I got the X-IDXSessionID and X-Allscripts-AuthToken from the snapshot response and request tab. Thanks.

    are you looping of this input with a for each?
    /yourdata/details[1] should return always the first detail element.
    or before the for each do an assing of this first detail element to "generic_details_var"
    and use this var in every looping iteration (in an assign or as input for xquery)

  • Is there a way for preventing the placeholder from appearing if there is not content for it?

    I am creating a structure with tags and place holders.  However, not all my entries have all the same information. For example, my first entry has a 3 line address (123 West Street, Suit 23, Lincoln NE 68521) but my second entry only has 2 line address (456 North Street, Lincoln NE 68521).  When imported into my structure, the second address reads 456 North Street, <address2>, Lincoln NE 68521. My question for you is, is there a way for preventing the placeholder from appearing if there is not content for it?

    IJWAA,
    A work-around if you don't already use XSLT (to avoid having to) is to not have placeholder text, just use empty tags in your text layout that correspond to your incoming XML structure (any unused by the incoming structure IN ORDER, will be skipped). So long as you don't mind the blank line (rather than left over placeholder copy).
    If you had placeholder copy in your text box (<address2> for example) look at it using the story editor window (edit > edit in story editor, or command-y/control-y) so you can see the surrounding tags... style the surrounding tags by selecting them with the cursor and applying character or paragraph styles (with text in between the tags at the time) and then delete only the placeholder text from the middle of the sandwich, leaving the tags in tact. Trying to do this without being in the story editor will not work.
    Also, when importing the XML, I believe you'll still need to use "merge content" and "don't import empty white space" as you have been in order to replace placeholder text in any areas you had it.
    For situations when you have a mixture of dynamic and static text in the same text block and you are merging data (more so when the placeholder text has been deleted as I've suggested above but the dynamic tags for the possible incoming text are still there), you can use a tag you've created (I call mine "staticText") in your layout to wrap ANY bits of text you don't want to accidentally delete when the surrounding tags get populated or not, using the merge option upon importing your XML. Just be sure never to use "staticText" as an actual tag in your structure or surrounding incoming data. The text contained within staticText tags in your layout will be ignored by incoming data, and won't accidentally get deleted when it's sandwiched between two sets of tags that are dynamically populated when merge content is the import option.
    In my example below I'm using brackets/carats with the tag name instead of the color coded tag icon you see in the story editor, also I've used LB here to indicate a regular line break in Indesign and SP a regular space character in indesign:
    [staticText>Name:<staticText][firstName>Abc<firstName][staticText>SP<staticText][lastName>Xyz<firstName][staticText>LB<staticText]
    [staticText>Address:<staticText][address1><address1][staticText>LB<staticText]
    [address2><address2][staticText>LB<staticText]
    all other tags on following lines...
    This should just leave a blank line for address2 when no data comes in for it. I'm assuming you have line breaks, if not, all the better.

  • SCM APO can we copy the data from client 001 to client 002???

    Hi Guru's
    SCM APO can we copy the data from client 001 to client 002???
    If it is possibulity please let me know?
    Regards,
    Sree

    Yes you can do.
    Tcode SCCL.
    Options :
    When copying clients, you can select what you want to transfer from the source client to the target client:
    User masters: You select this option, for example, if you want to give all users of an existing client the same authorizations in the target client.
    Client-specific Customizing: You select this option, for example, if you want to set up a new client in an existing system.
    Client-specific Customizing and master/transaction data:
    You select this option, for example, if you want to set up a test client that is identical to the production client (in the same system).
    Client-specific and cross-client Customizing: You select this option, for example, if you want to set up a quality assurance system based on the production client of another system.
    Client-specific and cross-client Customizing and master/transaction data: You select this option, for example, if you want to set up a test client based on the production client of another system.
    http://help.sap.com/saphelp_46c/helpdata/EN/69/c24c4e4ba111d189750000e8322d00/frameset.htm

  • Error while copy the plant from 0001 ref available.

    Dear All,
    when i am copy the plant from 0001 ref plant i am getting the following warning message.
    can you please tell me how can i avoid this warning & whats the impact.
    and tell me if any other setting i has to do for plant creation through 0001 plant code.
    Plant 0001 copied to 7102 without 4 number range
    objects
    regards,
    Dinesh

    Hi Dinesh,
                You need not change any setting in the 0001 plant as this is the Standard SAP Plant.
    Regarding the error you are getting you need not worry, i do not think it will have impact on the apllication objects.
    You can ignore this message but make sure that you record the Error somewhere in case of any future references.
    Thanks
    Sunil Kumar

Maybe you are looking for

  • Why does Itunes keep opening every 30 seconds?

    When I have Itunes minimized on my toolbar it keeps popping up in front of all my other windows and programs about every 30 seconds. It is making it impossible to listen to music in Itunes while I play a game or work on my writing. Any help would be

  • How to get the Page Number in CS3 with VB?

    Hi, Everybody I use the Visual Basic to read the words and their page number where the Words are at. I want to do it according to Story. Some TextFrame of the Story waw placed in other pages: How can I get the Page number according to the Word that i

  • PL/SQL --forall clause

    <div class="jive-quote"> CREATE OR REPLACE PROCEDURE IND_MONITOR(P_tab VARCHAR2) is type ind_table is table of varchar2(20); p_ind ind_table; v_sql varchar2(2000); begin select index_name bulk collect into P_Ind from user_indexes where table_name=upp

  • How does one identify a 2nd genration device and a 3rd gen device

    How does one identify a 2nd genration device and a 3rd gen device

  • Workgroup internet clients issue

    Hey guys, I got https management point and I created couple machines not domain joined. These are workgroup clients all with one the same certificate from our CA. I can see only one of them in console and when i check on them all of them got the same