Can't add new element to model node from web service

Hi Folks,
we are using the old WebService (not adaptive one) for calling a service on XI. We are reusing the same service for loading the data and also sending them back to the backend to modify, delete or add new elements. Request and response tree structure consist basically of the same structure.
Now everything works fine so far except adding a new element to the model tree.
So what are we doing:
After calling the service for reading (and invalidate on the response), we copy the received data from response node into the request node. All the view forms are bound to the model elements in the request.
Modifying single attributes worked just fine (from dialog and programatically). A new element we add to the model tree shows up in the dialog and seems to work equally fine, but when we trigger the service call to send the collected data, every change to the model data is send except the new added element. It just won't be send.
What's the problem here? Seems to me this must be somehow related to the supplying relation role maybe.
What code do you need to look at and how do I mark code in the new forum editor so it gets displayed properly formatted?
Thanks,
  ok

Hi,
Can you tell me which code are you using currently for transferrring the data? It might help me to figure out what your problem is.

Similar Messages

  • Creation of new element in Model Node

    Dear All,
    I am facing one problem, I have two  model node. I want to copy one model node to other model node.while copying its giving error saying the you can bind the element, coz target node doesn't have valid parent.
    Pl don't suggest me work on Value node.
    Can i create a element in model node at run time.
    Thanks & Regards
    Manoj Sahoo

    Hi Manoj,
                   Model node properties :
    1.A context model node makes a model object look like any other context node.  I.E. it gives the model object an API that is very similar to a value node.
    2.  A model node is not considered valid until it is bound to a corresponding model object.  Therefore, a model node always inherits its metadata from the model object to which it is bound.
    3. The element collection in a model node does not hold the actual runtime data!   Instead, it holds a list of references to the relevant model object instances.
    If u check the 2nd property, u will find the cause of ur exception. As u have already told, don't suggest to use value nodes, i don't have any other comment.
    regards
    Sumit

  • Can we  add new attachment outside SC(like from custom page on SoCo PO)  to existing SC ?

    Hi Experts,
    Need your expert advice on the below requirement.
    We have created a custom view in SoCo PO page. There we have a New custom view called Notes&attachement.which contains same value from Notes & attachment of Shopping Cart.
    We are updating existing Notes of SC by FM 'bbp_pd_sc_update' and same is reflected in SC of same item guid & same header guid.
    Similarly trying to add a new Attachment to already existing attachment. New attachment is reflected in custom page and the describe link is working perfectly. but if come out of SoCo page , lets say in SC the new added attachment is shown but display_url,phio_size,disp_url etc are not stored properly in DB.
    in bbp_pd transaction every thing looks same for new and existing attachment. we are using same FM 'BBP_PD_SC_UPDATE' by passing new internal table of attachment in import statement. Even 'BBP_PROC_DOC_UPADTE' has same result that is new attachment is partially updated.
    Suppose, SC has one attachment at the time of creation. then adding a new attachment in custom view of SoCo PO page then every thing works fine in SoCo PO page but out of that SoCo PO or in SC the newly added attachment is not properly updated.
    I have added mime_type,phio_size,disp_url,file_name,file_ext,ev_content,phio_content of new attachment in existing attachment internal table and calling above FM for update.
    Can we  add new attachment outside SC to existing SC ? if yes , then how?
    Thanks,
    Partha

    Your attachments are saved in BBPCONT you can use below steps to check that , I think you can develop a solution inline to the standard architecture. 
    a) Run FM BBP_PD_XX_GETDETAIL
    b) Use GUID from the Export parameter ET_ATTACH-GUID
    c) Use table BBPCONT and pass ET_ATTACH-GUID in step (b) to PHIO_ID .
    d) Then you will have the document content.
    You will get the attachment
    Cheers
    Ankit Jain

  • How can i add new files to my ipod from a different computer  without losing the added files on my ipod?

    how can i add new files to my ipod touch from a diferent computer without losing the added files already on my ipod?

    Email them? Use DropBox?  What type of files?

  • How can I add new music to my iPhone from a new device without losing all the existing music?

    Hello! My personal laptob that I usually use to sync my iPhone to is broke at the moment so, I've been syncing to my work computer. I have some music, not downloaded from iTunes, on the new computer that I'd like to add to my iPhone but I can't see how without iTunes deleting all my existing playlists and music from my iPhone. I can click the menu arrow on a song and then select "Add to" from the pop-up menu, then choose from "Devices" - Nathan Swain's iPhone - and it lets me, but nothing ever get's added to my iPhone. I have also authorized this computer on my iTunes account. I'm stumped!

    By design, iPhone syncs or manually manages iTunes content with ONE computer at a time. Each time you switch computers, ALL iTunes content is first erased from your phone, to be replaced with the content from the new computer.
    No way around this fact, other than transferring your content to the computer you normally sync with.

  • Can i add new music to my ipod from a new computer without losing old music

    My laptop was stolen and I want to put music on my ipod from my new computer, however I do not want to lose all my music I already have on my ipod because some of it was not purchased from the itunes store. How can I put the new music I have purchased on my Ipod withot removing the old music?

    - Transer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Connect the iPod to the computer and make a backup by right clicking on the iPOd under Devices in iTunes and select backup
    - Restore the iPOd from that backup.
    Now the computer will be your syncing computer.

  • 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.

  • How can I add an attribute to a node?

    Hi,
    How can I add an attribute to a node of a DOM Document?
    I want to add attribute Maximum="6" for all Grade node as <Grade Maximum="6">.
    Grade is a third level node in my document.
    Thanks

    Hi,
    How can I add an attribute to a node of a DOM
    Document?
    I want to add attribute Maximum="6" for all Grade node
    as <Grade Maximum="6">.
    Grade is a third level node in my document.
    ThanksGet the father of "Grade" elements as an element. Then get all elements named "Grade", and for each one set attribute "Maximum" with value "6". If you read api documentation you will know which methods to use.
    But for helping you in getting the "Grade" parent.
    1) get the root element of the Dom Doc
    2)get the father of the "Grade" father: getElementsBytagName("his name") -> it will return a Node List get the first element casting as Element if there's only one, or elese if not case
    3)the same method in 2 get the "Grade" father
    4)getElementByTagName("Grade") over the "Grade" father -> for each "grade" element on nodelist do whatever you need
    i hope u understood...

  • Add an element to a node.

    Hi,
    Any help to add an element to a node.
    I have a node in a view context and I would like to add its content to a component controller context node which has the same structure ( subnodes and attributes) .
    Thanks in advance.

    Hi,
    Sorry , i think i misspoke. I'll try to be clearer.
    It's as simple as you have a registration screen of a game. and then players must register one by one in the same screen.
    So you have the same screen with the same structure behind and each time when a player press submit button after its registration you add a new entry in the table and clear all fields of the same screen for the next player.
    I want to do some thing like a table of node in the component controller.
    For this i just use a main node with cardinality 0..n.
    Then in each view i have the same node structure that i use.
    When the user press submit i want to add all what he has filled-in as a new entry in the principal node in the component controller context. And then pass to the next view which use the same structure.
    Here is the wrong code in the submit method to have an idea
    method ONACTIONSUBMIT .
    **   prepare Usage table
      DATA: lo_node_1 TYPE REF TO if_wd_context_node.
      DATA: l_prop_usage_tab  TYPE STANDARD TABLE OF bapi1077du,
            l_prop_comp_tab TYPE STANDARD TABLE OF bapi1077vp.
      DATA :  lo_component TYPE REF TO if_wd_component,
              lo_context TYPE REF TO if_wd_context,
              lo_controller TYPE REF TO if_wd_controller,
              lo_node TYPE REF TO  if_wd_context_node,
              lo_child TYPE REF TO if_wd_context_node.
      lo_component = wd_comp_controller->wd_get_api( ).
      lo_controller ?= lo_component.
    * get controller context node
      CALL METHOD lo_controller->get_context
        RECEIVING
          context = lo_context.
    * get root node component controller
      lo_node = lo_context->root_node.
    * get prop_component node of component controller
      lo_node = lo_node->get_child_node( 'GENERAL_COMPO' ).
      DATA lo_element type ref to IF_WD_CONTEXT_ELEMENT.
      lo_node_1 = WD_CONTEXT->get_child_node( name = 'GENERAL_COMPO' ).
      lo_element = lo_node->create_element( STATIC_ATTRIBUTE_VALUES = lo_node_1 ).
      lo_node->BIND_ELEMENT( new_item = lo_element set_initial_elements = abap_false ).
    *  lo_child = lo_node->get_child_node( 'COMPOSITION' ).
    *  lo_child->BIND_ELEMENT( l_prop_comp_tab ).
    *  lo_child = lo_node->get_child_node( 'USAGE' ).
    *  lo_child->BIND_ELEMENT( l_prop_usage_tab ).
    endmethod.
    General_comp is the main node. it is with 0..n cardinality in the controller context.
    And with 1..1 cardinality in the view context and there is no mapping between them.
    It contains 2 sub-node "usage" and composition.
    Hopefully it is clearer
    Thanks for help
    Edited by: dyngry on Apr 21, 2011 9:31 AM

  • How can I add new background on iweb?

    Dear all,
    somebody knows how can I add new backgroungs on iweb? and also how can I add my own themes?
    Cheers

    bobzhuman wrote:
    You can add new backgrounds in the "page"..."layout" section of the "inspector"...no limit to what you can add. Remember to use low resolution pics (72 dpi vs 300 dpi) and think of the size necessary for a "wallpaper" on your desktop. ex. http://www.desertmoon.net/Coryhamilton/Home.html done with a Jumsoft theme (baseball dark) as a core.
    The file used as a background on that site is located at http://www.desertmoon.net/Coryhamilton/Home_files/grunge.jpg
    It's dimensions are 1200px by 797px and 284k in file size. I guess there might be a reason to have the width set for 1200px even though file sizes could benefit from a smaller dimension repeating graphic, but running the file through Photoshop or even Elements would let the owner "Save For Web" as a .jpg - medium quality and get the file size down to about 108k so that the page would load quite a bit faster.

  • E-sourcing Add new Element in Actions dropdowmn list in Project Document

    Hi Evrybody ,
    I am trying to add new element in Actions dropdown list in Project document (in drop down already has Create Auction ,Create demand ,create agreement, Create RFx   elements ) .
    i am able to change the text of existing but not able to add new elements .
    Could you please help me on this .
    Thanks
    Pavan Reddy.

    Pavan,
    My understanding is that the Actions tab is used to execute scripting.  Some of the scripting is embedded in the system, like Create RFx or Create Auction.  This you can not change easily. 
    If you want to add a new item to the Actions for Projects create a Script Definition with Script Type: Toolbar and Class: Project (1100).  Keep in mind that you will also have to have a functioning Script Definiton.
    Regards,
    James

  • I am running 10.6.6 on my mac and 10.5.8 on my server and I can not add new people to Ical on my mac but if another user on a 10.5 version of mac can. What is the issue?

    I am running 10.6.6 on my mac and 10.5.8 on my server and I can not add new people to Ical on my mac but if another user on a 10.5 version of mac can. What is the issue?

    Set up iCloud
    Set up iCloud (2)

  • Can I add multiple elements on a single line?

    Can I add multiple elements on a single line?

    Not yet. But this is something we plan to support. You can vote on this idea here: http://forums.adobe.com/ideas/1046
    We use this to help prioritize our work.
    Randy

  • How can I add new content in iDVD to a DVD-RW disc which has ample remaining free space? After preparing the new video for burning and clicking on Burn to iDVD, I get a window saying the disc's already recorded and that I can either Erase or Eject.

    How can I add new content in iDVD to a DVD-RW disc with a video previously successfully recorded on it? (The disc has ample remaining free space.)
    After preparing the new video for burning and clicking in the File menu on Burn to iDVD, I get a window saying the disc's already recorded and that I can either Erase or Eject. My assumption has been that iDVD would automatically find the free space and continue with the new recording from there. I'd be grateful if anyone can shine light on this.

    There are, but not with a DVD written as a movie disk. It must be closed when completed, or it doesn't work.
    Apple's built in Burn utility also automatically closes any data CD, DVD or Blu-ray disk you burn. Doesn't matter how much space is unused, you can't use it. You'd have to use a more advanced disk creation app, such as Toast Titanium. I then have the option of choosing to write the data as a session:
    I can keep doing this until the disk is full. If I've written five sessions to the disk, when I put it in the drive, five CD/DVD icons will appear on the desktop since the OS will treat each session as if they are separate physical disks. At any point you choose Write Disk when writing a group of data, that means you're closing the disk, and again can't add anything after that. So if I had written two sessions, and the third was Write Disk, it's over. I can't put anything else on that disk.

  • My bookmarks have disappeared and I can't add new bookmarks.

    All my bookmarks have disappeared, including the defaults on the toolbar of most visited, etc. I can't add new bookmarks either. I have tried all the Help Topics on lost bookmarks. I tried restoring bookmark backups, but the backup from the date I lost bookmarks says "unable to process backup file." All the later dates will load, but they have no bookmarks saved in them. All of the other Help Topic attempts went fine but did not solve the problem.

    What I would say is that if you have any bookmarks at all at present that you make a manual backup of them, and then continue to make manual backups as any recovery efforts proceed.
    * see [[Backing up and restoring bookmarks]]
    There is a possibility that you had corrupt files, and may then have inadvertently overwritten any files that may have contained bookmarks. It is a good idea to make manual backups, for cases where the auto backups do not. work as expected.
    If you have already followed the instructions carefully about [[lost bookmarks]] and without resolving the situation, there may not be much you can do about your personal bookmarks. If they are important and you are willing to try there may be a possibility using file recovery software, &/or sqlite editors that something could be salvaged, but not something I can advise on, I am not currently a Mac user.
    The default bookmarks should be fairly easy to restore. You can probably also start the bookmarks working again. Trying the simplest options first:
    # work from [safe mode]
    #* at this stage when you see the first dialogue window with options do not make changes, press the continue button
    # use the customise / customize option from the toolbars and '''reset defaults'''
    #* Mac may differ from my Windows XP, I can right click bookmarks, or use the tools menu see [[How do I customize the toolbars?]]
    # if that has failed to resolve the problem go back to safe mode as in step 1 but this time use reset toolbars and controls.
    By now you should have the default bookmarks back and maybe the bookmarks work and will save new bookmarks, try it whilst still in safe mode, before going back to try in ordinary mode. If it works in safe mode but not in ordinary mode you probably have some add-on managing to cause problems
    If you still have problems and bookmarks will not save see [[bookmarks not saved]] that probably indicates corrupt places.sqlite &/or localstore.rdf the linked article explains how to find and delete them.

Maybe you are looking for

  • File Recovery from a fresh Partition

    I was running out of space on my main partition - so I deleted my windows 8 partition which I hadn't used in months, and formatted it as ext4. Mounted it to a temporary location - moved the bitcoin blockchain over from my home partition (and apparent

  • IDVD quiting, stopping, crashing.

    One month into a project and I was on the last day, ready to add music files and poof, program crashes. I spent 9 hours yesterday reading and no answers. It is a large project (reflections black) with only 2 menu buttons on the main page...slideshows

  • "System Group" in SOA Suite 11g

    Everything looks good while upgrading ESB of FW 10g to Mediator of 11g. But seems there is no "Service Group" concept, which is introduced in ESB for projects hierarchy. Does anybody know any similar ideas in FW 11g? What I want is to group projects

  • My mac goes into spin mode everytime I open a document or application

    My macbook pro couldn't find my Gmail account even after I entered the correct password.  It was the same for my iCloud account. I then upgraded to the Mavericks 10.9.3 and it didn't help. I also get the spinning wheel when I open a file or applicati

  • Locally resize a picture

    These characters are not of equal size. They were not evenlly space, but can be cut and paste to move. My question is: how will you locally resize a picture?