Why does GET_STATIC_ATTRIBUTES or SET_STATIC_ATTRIBUTES change lead selecti

I loop over all elements of a context node, and change some attributes.
The code looks like this:
      LOOP AT lt_element_list INTO lo_el_element.
        lo_el_element->get_static_attributes( IMPORTING static_attributes = ls_element ).
        ls_element-created_by_name  = get_user_name( iv_user_id = ls_element-created_by ).
        ls_element-changed_by_name  = get_user_name( iv_user_id = ls_element-changed_by ).
        lo_el_element->set_static_attributes( EXPORTING static_attributes = ls_element ).
      ENDLOOP.
This coding seems to change the the lead selection of the context node, which leads to problems somewhere else.
Why does it change the lead selection and how can I prevent it?

hi daniel.....
         i dont think there is a need for looping in this manner.
         you just get all the values of a node into an internal table.
         and then loop the internal table an make changes in it.
         then clear the node and pass this currently changed internal table into the node.
          the lead selection changes because you are setting the attribute and it might be stored in index 1 or the to the index where the lead selection is referred to. this might be your problem.
---regards,
   alex b justin

Similar Messages

  • Why does the menu option change to "save as" after I select the print button?

    why does the menu option change to "save as" after I select the print button?

    >>The print command is selected in the File pull down menu, the print menu page pops up, I can then select my networked printer (which incidentally is confirmed to work with other software), the print command is in the bottom right hand corner and finally after depressing this print button a "save as" pop-up menu appears and then it only re-saves the file. Is this an issue with the pdf reader install?  

  • Why does my mouse pointer change from a hand to a downward facing arrow sometimes?

    why does my mouse pointer change from a hand to a downward facing arrow sometimes?

    the-edmeister, you are a genious. I went to "view" then "toolbars" and de-selected "yahoo toolbar" and then moved the curser over my firefox page and it now works completely including the problem area (the top 3 cm of each screen). Thank you, thank you, thank you, thank you, thank you, thank you. You have no idea how good I feel know on this otherwise cold, windy and rainy day.

  • Why does the elements 13 change resolution when going into the editor -- it is huge and unusable

    why does the elements 13 change resolution when going into the editor? -- it is huge and unusable

    Many mysteries...
    Which is your OS version ?
    Your screen is 1920 by 1080 pixels.
    The problem appeared after having worked normally.
    When we select a picture from the organizer (album) and click on the edit button.  The editor software changes the entire computer resolution from 1920 x 1080 to   640 x 480 (very unusable).
    That's not clear for me: did you click on the 'Edit' button on the bottom right part of the organizer, or did you use the menu or the right click popup menu to open the editor? In the second case, you are in the editor workspace.
    We tried right clicking on the Elements 13 icon, select properties and under compatibility we made sure that "run in 640 x 480 screen resolution" was de-selected, and it was.    Cannot find any properties window for the editor?  
    The editor has its properties in the 'Edit/preferences' menu, but there is nothing about resolution there.
    Just to be sure : when you are in the organizer with the left 'Folders' panel shown, you highlight one of those pictures to edit. Then you right click and choose to "go to folder". Do the images are shown as 'offline' ? If that is the case, the original are on an external drive which is not connected, and what you are seeing is a 'preview' copy on your computer with 640 x 480 resolution.

  • Why does Lion KEEP reversing changes you make in address book and other applications without your consent and without wanting it to??? Plus address book will NOT import old address book contacts from Snow Lepoard 10.6 and keep them.  This Lion OXS 7 is ..

    Why does Lion KEEP reversing changes you make in address book and other applications without your consent and without wanting it to??? Plus address book will NOT import old address book contacts from Snow Lepoard 10.6 and keep them.  This Lion OXS 7 is .. becoming very frustrating ... it will NOT keep changes made in the Address Book and it has destroyed my contacts which I only have electronically since 10.4 in my address book. I am NOT happy with this OS7 it has a lot of issues and faults.  How can one stop automatic reversing of data when inputting???
    Please help! 
    Wished I NEVER upgraded to this Lion!!!
    Carmelo

    Relax. Your address book database is corrupted.
    If you are syncing your Contacts with MobileMe or something else, disable it for now.
    Backup your address book by going to File>Export>Address Book Archive.
    Quit Address Book.
    Open your Library by holding down the Option (alt) key while selecting the Go menu in Finder. Select Library. Navigate into your Application Support/AddressBook folder and delete the addressbook-v22.abcddb file.
    Open Address Book. It will recreate the database from the raw data.
    See how that works. If it is ok, then reenable syncing and see how that works.

  • Why does right clinking on link and selecting open in new tab does not work?

    Why does right clinking on link and selecting open in new tab does not work?
    It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Why does iPhoto shuts down when I select Info with an image selected.

    Why does iPhoto shut down when I select Info with an image selected.

    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    LN

  • Why does my delete icon change to undelete in my tool bar?

    Why does my delete icon change to undelete in my tool bar?

    Hello, what App or where is this happening exactly?

  • Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    That's probably a broken display profile. The conversion from Library's Adobe RGB is different than the conversion from Develop's linear ProPhoto, so if there's a problem with the display profile it can show up this way.
    Recalibrate, or if you don't have a calibrator use sRGB. If your monitor is a wide gamut model use Adobe RGB.
    Assuming Windows, change it in Control Panel > Color Management > Devices, and relaunch Lightroom so that it can pick up the new profile at startup:

  • Why does my font/text change when I switch from Classic 3D to Ray traced 3D in After Effects?

    My font/text changes when I switch from Classic 3D to Ray traced 3D. Why is it doing this? Also, I cant get the font/txt to look the same after I switch from Classic to Ray traced. How can I get it to look the same?

    I am pretty new to After Effects so I hope it's not my inexperience that's causing the problem. (It probably is)
    I just updated to the most current version of AE.
    I am on a mac pro late 2013 12GB 6 core. Running OSX 10.9.4
    Okay so after looking at it a little closer, I think the color is what mostly changes. The first screenshot is the what the text look like with Classic 3D and the second screenshot is what it looks like after I change it to Ray traced 3D. Also under the "Mode" section..the pull down that says "Normal" disappears. I'm wondering why the font color is changing?

  • WD:ABAP  change lead selection

    Hi all,
    I  need to change the lead selection according to a particular table column.  The lead selection is set to the first row of the table.  The table has some input fields which already contain values.  If the user changes the value of the input field in any row, the lead selection has to be changed to that row of the table without having to select that row.  I wrote the code in  onEnter event of the table, but it is returning the values of the first row that has the lead selection.  How do I change it? It would be helpful if u could please post the code too.
    Thanks,
    Sravanthi

    Hi,
    You can change it in ModifyView method. You can use setLeadSelection method.
    Regards,
    Parminder

  • Change lead selection in dropdown by key

    Hi,
    I am using dropdown by key in one of my application.
    I am getting some values by calling a FM.FM
    returning me a table . My context for the dropdown is from the structure of the table.
    --drpplan(node)
      ---code -(attribute)
      -- desc-(attribute)
    I am binding the values from the table to the node info and to code attribute to populate the dropdown by key.
    It is working fine.
    My requirement is when user selects some thing from dropdown corresponding description should show in a textview.
    If I used a dropdown by key I know I dnt have write any code for this as the lead selection autometically changes. How to do this in dropdown by key.
    I konw I can write in the onselect method, call the FM again and read the table  with sected key and set the value.
    But in this approch I am calling FM twice hitting the db again.
    Is there any other way out. ?
    Thanks,
    Prosun

    u can store the data in an internal table when the FM is 1st called.
    And retrieve the describtion at  selection event.

  • Why does the zoom keep changing in Photoshop CS6?

    Hi,
    I have just recently bought photoshop, When I use the magnifier, it sometimes zooms on the left mouse button and zooms out on the right mouse button. Other times it dosn't do this. Why does it keep changing and how do I get it to stay on L/R button zoom? 
    I have just created my new site that has many English teachers on Skype All this was done using Photoshop cs6 but I had the problem with the zoom the whole time!!
    Please help me with this annoyance!

    Other times it dosn't do this.
    That’s a bit vague and you do not provide a lot of information, please read
    http://forums.adobe.com/message/4587299#4587299

  • WDS-Why does my rate keep changing?

    I have a WDS network with one remote base station. So I expect the ability of the throughput to be cut by 25%. Thats no big deal to me cause the possible rate is 54 with my g devices and a 25%cut in ability is well above the 7Mbps we are buying.
    My question. In Airport utility/Advanced/Wireless Clients I see the rate of the Main Base Station is 54. But the rate of the Remote Base Station is sometimes 48 or 36 or 24. Why does it change?
    Paging Bob Timmons

    Oops, right. Sorry my first post was wrong, the WDS reduces throughput by half with each relay or remote.
    Thanks for responding Bob. This one may just have to be a mystery.

  • Why does my Ipad start changing screens and sites randomly on it's own frequently?

    Why does my Ipad suddenly start changing screens and sites randomly on it's own?  It's like it spazzes out rather frequently for no apparent reson.

    It's hard to say why, but try rebooting the device by pressing and holding the on/off and home buttons simultaneously until the screen goes blank and you see the apple logo. It should take about 10-15 seconds to reboot. See if this stops it.

Maybe you are looking for