How can i add selected element from one node to other node

Hi All
I have below requirement.
Say In the view leftside Available Languages ItemList Box  Rightside Available Languages ItemList Box and Add & Remove Buttons in the middle.
User selects languages from Available Languages ItemList Box clicks on add it will adds to the Available Languages Item List box and ViceVersa with Remove Button.
1) I have created 2 nodes 1) AvlLang 2) SelLang both contains two attributes Key and Value.
2) For AvlLang node,  Property : Data Dictonary binded with table. Values are coming fine in Available Languages ItemList Box.
3) How can i add selected language into the node Available Languages.
Please provide the code snippet how to achieve this.
BR
X- CW

Hi Carlin,
Find below code to copy selected record from one node to another.
Here I am copying it_lips node into pack_mat node.
DATA: wa_temp TYPE REF TO if_wd_context_element,
            lt_temp TYPE wdr_context_element_set,
            count type c.
      DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,
             lo_el_it_lips TYPE REF TO if_wd_context_element,
             ls_it_lips TYPE wd_this->Element_it_lips,
             lt_it_lips TYPE wd_this->Elements_it_lips,
             ls_unpack TYPE wd_this->Element_unpack,
             lt_unpack TYPE wd_this->Elements_unpack.
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
      lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
      CALL METHOD lo_nd_it_lips->get_selected_elements
        RECEIVING
          set = lt_temp.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
      lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
      LOOP AT lt_temp INTO wa_temp.
        CALL METHOD wa_temp->get_static_attributes
          IMPORTING
            static_attributes = ls_it_lips.
              ls_pack_mat-vgbel = ls_it_lips-vgbel.
              ls_pack_mat-vgpos = ls_it_lips-vgpos.
              append ls_pack_mat to lt_pack_mat.
              CLEAR ls_pack_mat.
      endloop.
        lo_nd_pack_mat->bind_table( new_items = LT_PACK_MAT
                                    SET_INITIAL_ELEMENTS = abap_true ).
Cheers,
Kris.

Similar Messages

  • How can I pass variable's from one frame to other

    //This is the first frame where the value in the TextField
    //tf1 and tf2 are to be passed to 2nd Frame
    import java.awt.*;
    import java.awt.event.*;
    public class del extends Frame implements ItemListener,ActionListener
    public Panel p,p1,p2;
    public Button b,n;
    public Label l1,l2;
    public TextField tf1,tf2;
    public del()
    setLayout(new FlowLayout(FlowLayout.LEFT));
    Panel p=new Panel();
    n=new Button("Submit");
    p.add(n);
    add(p);
    l1=new Label(" Enter the Temperature : ");
    tf1=new TextField(5);
    p.add(l1);
    p.add(tf1);
    add("South",p);
    l2=new Label(" Enter the Compund ");
    tf2=new TextField("N-OCTANE",15);
    p1=new Panel();
    p1.add(l2);
    p1.add(tf2);
    add("South",p1);
    setSize(600,700);
    setVisible(true);
    public void itemStateChanged(ItemEvent ie)
    repaint();
    public void actionPerformed(ActionEvent a)
    if(a.getSource()==n)
    this.setVisible(false);
    new Finalput1();
    repaint();
    public static void main(String[]args)
    del d=new del();
    //2nd Frame which will appear on clicking submit button
    import java.awt.*;
    class del1 extends Frame
    public static double T;//value in 1st text field has to be stored in variable T
    String compd=" ";//value in 2nd textField has to be stored in this string
    TextField tf;
    public del1()
    setLayout(new FlowLayout());
    setSize(800,700);
    setVisible(true);
    public void paint(Graphics g)
    g.drawString(" INPUT DATA : - ",30,120);
    g.setColor(Color.black);
    g.drawString(" Component Name ="+compd,20,160);
    g.drawString(" Temperature of the Mixture ="+T,30,250);
    public static void main(String[]args)
    new del1();
    Pls help me.
    I will be happy if anyone help's me!

    Both your classes seem to be independent applications. (they are public, and they have their public static void main)
    Is this your intention? If so, your question is how to pass data from one application to another. That can be done in many ways, and it is a complicated issue. (if one application wants to pass data to another, you first have to find the other one, and if it isnt running you might want to start... - lots of things to think about.)
    If what you want to do is simply to pass data from one Frame to another, the matter is quite more simple.
    Here is a sample:
    import java.awt.event.*;
    import java.awt.*;
    public class F1 extends Frame implements ActionListener
    private F2 theOtherFrame;
    public F1()
    Button b;
    b=new Button("Action");
    b.addActionListener(this);
    add(b);
    setSize(100,100);
    setVisible(true);
    public void actionPerformed(ActionEvent e)
    if (theOtherFrame == null)
         theOtherFrame = new F2();
         theOtherFrame.setSize(100, 100);
    theOtherFrame.setSomeData("Her you have som data");
    theOtherFrame.setVisible(true);
    public static void main(String[] args)
    new F1();
    class F2 extends Frame
    private String strData;
    private Label lab;
    public void setSomeData(String str)
    lab.setText(str);
    repaint();
    public F2()
    lab = new Label();
    add(lab);

  • HT2688 How can I add a playlist from one computer to another in my home sharing network?

    I have a playlist set up on my static PC and I would like to transfer it to my Ipod and also my laptop. I have "dragged" it but I deget the "denied" icon. Surely I can do this?
    any help would be fab!
    Thanks

    Right click the playlist and select "Export Song List". In the next screen that comes up, change the type from a TXT file to an XML file, and save the XML playlist. Copy that XML file to the other machine, and import it into iTunes. Voila. Even saves your Smart Playlist rules.

  • How can I move selected photos from one iPhoto Library to another?

    When I set up a new iPhoto Library and copied photos into it, only the thumbnails transferred.  I want to combine the two libraries now and have the master photos in the combined library.  How do I do that in iPhoto 11 and how do I then remove duplicates?

    The only way to merge libraries is with the paid ($20) version of iPhoto Library Manager
    Regards
    TD

  • Numbers '09: How can I display selected data from one cell in another cell?

    Hello.
    I have a Numbers document that contains a table that looks a little like this:
    Amount;Code
    Amount
    Code
    10;12B
    12;8A
    14;16E
    16;3C
    18;5A
    I'd like to have Numbers 09 automatically separate the "Amount;Code" data in the coloumns to the right.
    Do you know the right function and/or equation to make this happen? Any help would be greatfully appreciated.
    Cameron168

    Formula for Amount:
    =LEFT(A2,FIND(";",A2,1)-1)
    Formula for Code
    =RIGHT(A2,LEN(A2)-FIND(";",A2,1))
    I just modified the equation for separting first and last names from:
    http://www.bluemoosetech.com/microsoft-excel-functions.php?jid=32
    You will have to put in your correct cell names
    Tested it and it works!
    Have fun!

  • How can I move a clip from one movie to another

    How can I move a clip from one movie to another?

    If it's just a clip, you can simply go to the other project and Add Media/From Files and Folders.
    But if it's a part of your movie -- say a sequence of clips or a clip that's had effects added to it -- you technically can't cut and paste betweeen projects in Premiere Elements. However, some people have been able to do it using the third party program ClipMate, available online.

  • How can I add the content from a iPod Nano to a new iTunes account

    how can I add the content from a iPod Nano to a new iTunes account

    On the computer in iTunes log into her Apple ID and then see if recent purchases are shown by clicking on her name in iTunes, entering her password and then selecting the option. If there is nothing there then she bought that music with a different Apple ID.
    You can use TouchCopy to move all the songs on the iPod to the computer. Then try to play one of the purchase songs and it should show the account used to purchase it and ask for the password.

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?

    Carefully select the objects of interest in one image and then copy, scale and position them into the other image. Then touch up the composite.
    Have to Love Photoshop for Retouching Images!

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • How do I move selected photos from one event to another in iPhoto

    Using iPhoto 9.5.1, how to I move selected items from one event into another event. I do not wish to merge both events. Thanks.

    select the photos and flag them - then select the target event and use the add flagged photos to selected event command
    LN

  • HT201269 I have new iphone and all data were restored but my music! How can I add my music from Itunes and new iphone?

    I have new iphone and all data were restored but my music! How can I add my music from Itunes and new iphone?

    Connect the old phone to your computer, right click on it in iTunes, and choose Transfer Purchases. That should put all of your music in iTunes except any tracks that were not purchased from iTunes. If you have any such you will have to retrieve them from the original source, or see: https://discussions.apple.com/docs/DOC-3141.
    Apple also has this tip for copying data from an old phone to a new one.

  • HT204053 How can I transfer my apps from one account to another

    How can I transfer my apps from one account to another

    Apple will not permit transfer of applications from one account to another. Suppose your mom has presented an iPad to you and before presenting she has downloaded some Apps with her account. If you want to update those Apps, you must know her pass word or send the iPad to her and request her to update and give back. If you feel it is time consuming and difficult, the best way is purchase new iPad and down load  the latest version of App. Whenever you come across you go on purchasing new iPad. This will help you to have latest version of iPad with you.
      Ramanujam, Hyderabad.

  • How can I move purchased apps from one itunes account to another account?

    How can I move purchased apps from one itunes account to another account?

    You can't. The apps must be purchased separately.

  • How do I transfer selected photos from one iPhoto library to another?

    How do I transfer selected photos from one iPhoto library to another?

    iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -
    Generally it is not advised to have multiple Photo libraries - but if you do you need IPLM to manage them
    LN

  • I have no problems copying iMovie Events from one Mac to another, however, how can I copy iMovie Projects from one Mac to another?

    I have no problems copying iMovie Events from one Mac to another, however, how can I copy iMovie Projects from one Mac to another?  Any help will be appreciated.  Thank you.

    This should give you some good insight, I'd probably store them on an External HD on the old machine and then just drag and drop to the new machine.
    https://discussions.apple.com/docs/DOC-4141

Maybe you are looking for