Get class Instance, and then get hers attributes

Hi Gurus,
i'm new to ABAP Object,
creating an a BSP whit MVC controller i've try to implement the class controller,
but on a method of it i want to get instance of the class parents:
the class that i implement is an extension of CL_BSP_CONTROLLER2.
In this class in the method DO_REQUEST ( for example ) i try to get the instance of the class
parent ( and i got it! ) using this syntax:
  data: Parent type ref to IF_BSP_DISPATCHER,   " type take from attribute M_PARENT of the class
Parent = ME->M_PARENT.
In debug i see that 'Parent'  get rightly the class parent instance but than i want do this:
(i want get the sub controller of the main contoller 'parent', in debug i can see everything fine)
   SubController = Parent->GET_ATTRIBUTE(LEFT_CONTROLLER).
But the compiler say that the class instance 'Parent' has no methods and no attribute.
i've try other syntax like:
    call METHOD Parent_>GET_ATTRIBUTE
        IMPORTING
     LEFT_CONTROLLER)
  call METHOD ME->M_PARENT->GET_CONTROLLER
   EXPORTING
     CONTROLLER_ID = 'search'
   IMPORTING
     CONTROLLER_INSTANCE = Parent2
No one work!
How can i do?
Here screnshot of that i see in debug mode, and that i want get:
http://img190.imageshack.us/i/1debugscreen.jpg/
http://img10.imageshack.us/i/2debugscreen.jpg/
Thanks in advance,
Davide

Hi Pawan,
classes ref to CL_BSP_CONTROLLER2 like my controller class, have an attribute
M_PARENT type IF_BSP_DISPATCHER.
If the class is a subclass of an main class it has the M_PARENT attribute containing the instance of the parent class,
i can see in debug mode ( here example: http://img40.imageshack.us/img40/1648/3debugscreen.jpg )
i can get this attribute:
  data: Parent type ref to IF_BSP_DISPATCHER,   " type take from attribute M_PARENT of the class
Parent = ME->M_PARENT.
but  the interface IF_BSP_DISPATCHER has no attribute and no method defined, and if i declare 'Parent' as type ref to
CL_BSP_CONTROLLER2 the compiler return error
      <=>      "The type of "PARENT" cannot be converted to the type of "ME->M_PARENT". "
Davide

Similar Messages

  • Have an ipod and then got the wife an iphone4. all passwords are screwed up. she can not access playstore cuz she doesn't have password. i can not get find any help on how to get or update a password for the ipod. and then get her a separate password for

    have an ipod and then got the wife an iphone4. all passwords are screwed up. she can not access playstore cuz she doesn't have password. i can not get find any help on how to get or update a password for the ipod. and then get her a separate password for her iphone. we need to save her photos, music, etc to ? icloud and the phone stuff to verizon cloud? so when she gets her new Iphone6 she can have all her "stuff" back on the new phone. hope this makes sense. please offer suggestions here or at [email protected] thanks for your help!

    Oh no! I'm sorry to see there's a lot of confusion here and data shared, x-rayDon. We can definitely work to fix. This happens when two devices share the same Apple ID, so she will need to reset hers. She can do so by assessing this link Apple - My Apple ID. You will need to decide who will keep the account if want separate Apple IDs since purchases cannot be shared unless you do Family Sharing.
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • Getting Class instance of a class

    Dear Friends,
    I need to get Class instance of a class in my project. Inorder to use the reflection API 's the package name of the class is needed , but it may not be available Only available thing is the name of the class file and the location where that file is existing .
    Please suggest some method to get Class instance in this situation.
    Shaiju.P

    You can create a ClassLoader of your own. There's a simplified example in this thread (reply number 6):
    http://forum.java.sun.com/thread.jsp?thread=538836&forum=31

  • While installing latest update I lost ability to open Itunes.  Getting "runtime error" and then next box says error 1114.  Tried uninstalling and reinstalling and does not work.  Getting same error.  Very frustrating.

    Cannot open Itunes after trying to install latest update.  Getting runtime error and then error 1114.  Tried uninstalling and reinstalling and still getting same error.  How do I fix this.  Very frustrating!

    Hi there,
    Earlier iTunes (and supporting applications) need to be completely uninstalled before you can install the new version. Here's the complete Apple info on this: http://support.apple.com/kb/HT1923
    Mobile device application will most likely fail to uninstall, so you would need to visit its location(s) and manually delete the files then folder(s). The location of the folders is documented in this link from Apple.
    It's a pain, but it should work.

  • Firefox connects to google-analytics for some sites, and then gets stuck, and I can never get onto the site. How do I prevent Firefox from connecting to google-analytics? I use XP with service pak 3 in English

    Firefox connects to google-analytics for some sites,when i click on links in websites or emails and then gets stuck, and I can never get onto the site. Or opens a new bower behind the one i'm usind that's blank i don't even know it's there untill i close the one i'm using. How do I prevent Firefox from connecting to google-analytics? Or opening a blank bowser behind the one i'm using. I use XP with service pak 3 in English
    == This happened ==
    A few times a week
    == a couple months ago

    I got the same issue.
    I go on a website and all the sudden another window pops up with "results.google-analytics.com" or "search.google-analytics.com". It has often ads for other sites for example. black single dating site
    how can I can I stop that from happening again?
    I didn't download or do anything, just visit websites, that I visit on a regular basis.
    OS: Windows XP
    Firefox Version: 3.6.6

  • Will not share Imovie with Idvd. Gets so far and then a box saying Unable  to prepare project for publishing because an error occured (-41)

    Cannot SHARE project from IMovie to Idvd. Gets so far and then a box with a message saying Unable to prepare project for publishing because an error occured (-41).

    Bengt is as always entirely correct, but another meaning of error -41 is that you have chosen the wrong encoding setting for the length of video you have:
    iDVD encoding settings:
    http://support.apple.com/kb/HT1502?viewlocale=en_US
    Short version:
    Best Performance is for videos of up to 60 minutes
    Best Quality is for videos of up to 120 minutes
    Professional Quality is also for up to 120 minutes but even higher quality (and takes much longer)
    That was for single-layer DVDs. Double these numbers for dual-layer DVDs.
    Professional Quality: The Professional Quality option uses advanced two-pass technology to encode your video (The first pass determines which parts of the movie can be given greater compresson without quality loss and which parts can’t.  The second pass then encodes those different parts accordingly) , resulting in the best quality of video possible on your burned DVD. You can select this option regardless of your project’s duration (up to 2 hours of video for a single-layer disc and 4 hours for a double-layer disc). Because Professional Quality encoding is time-consuming (requiring about twice as much time to encode a project as the High Quality option, for example) choose it only if you are not concerned about the time taken.
    In both cases the maximum length includes titles, transitions and effects etc. Allow about 15 minutes for these.
    You can use the amount of video in your project as a rough determination of which method to choose. If your project has an hour or less of video (for a single-layer disc), choose Best Performance. If it has between 1 and 2 hours of video (for a single-layer disc), choose High Quality. If you want the best possible encoding quality for projects that are up to 2 hours (for a single-layer disc), choose Professional Quality. This option takes about twice as long as the High Quality option, so select it only if time is not an issue for you.
    Use the Capacity meter in the Project Info window (choose Project > Project Info) to determine how many minutes of video your project contains.
    NOTE: With the Best Performance setting, you can turn background encoding off by choosing Advanced > “Encode in Background.” The checkmark is removed to show it’s no longer selected. Turning off background encoding can help performance if your system seems sluggish.
    And whilst checking these settings in iDVD Preferences, make sure that the settings for NTSC/PAL and DV/DV Widescreen are also what you want.
    http://support.apple.com/kb/HT1502?viewlocale=en_US

  • I have a Macbook Pro that I have just renewed and transferred over my old hard drive (also from a Macbook Pro). Now when I turn on the computer and ITunes opens I get error (-50) and then error 5002 when I try to sign in to ITunes Store - Help!

    I have a Macbook Pro that I have just renewed and transferred over my old hard drive (also from a Macbook Pro). Now when I turn on the computer and ITunes opens I get error (-50) and then error 5002 when I try to sign in to ITunes Store - Help!
    My dealer has tried and failed (twice) to correct this and I have tried deleting the two items in the Itunes folder but no luck!

    were you able to get help on this?  I need help on error 5002 as well.  thank you

  • Why does my camera get purple streaks and then freezes

    why does my camera get purple streaks and then freezes

    My friend and I both work in a hospital and we go in out of signal continuously through out the day.  Our problem is so bad that by mid afternoon our phone batteries are down to 20% as the phone is continuously searching for signal.  Im on EE and their only advice was to reset the network settings, thats fine when you only have to do it once but Im doing it up to 20 times in 1 day.  It makes me hate my iphone for the first time in 5 years.

  • SQL help, how to group by column A and then get top frequency of column B?

    Assuming the following table, operation represents each kind of transaction operation
    table operation employee other column c
    '<' id1
    '<' id1
    '<' id2
    '*' id3
    '/' id1
    question, for each operation, which employee do the most? which employee do the 2nd most?
    I thought I need to group by operation first, and then get the frequency of employee, and get the top 1 or top 2 frequency highest.
    But I am stuct, and do not know how to write the sql.

    998408 wrote:
    Assuming the following table, operation represents each kind of transaction operation
    table operation employee other column c
    '<' id1
    '<' id1
    '<' id2
    '*' id3
    '/' id1
    question, for each operation, which employee do the most? which employee do the 2nd most?
    I thought I need to group by operation first, and then get the frequency of employee, and get the top 1 or top 2 frequency highest.
    But I am stuct, and do not know how to write the sql.Welcome to OTN. Ops! posted in wrong forum. Just post in {forum:id=75}. Before posting there close this thread marking as answered.
    If someone's response is helpful or correct, please mark it accordingly.*

  • When trying to get new messages, keep getting asked for password and then get "operation couldn't be completed. (MFMessager error domain error 1032)-Why?

    When trying to get new messages, keep getting asked for password and then get "operation couldn't be completed. (MFMessager error domain error 1032)-Why?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    We can't know anything. You have not provided any useful details like system information or the install logs.
    Mylenium

  • My project won't open... It says "locating media" and then gets stuck. What do I do?

    My project won't open... It says "locating media" and then gets stuck. What do I do?

    try starting a new project and importing your project using the media browser. if that doesn't work just import the sequences from the project via media browser.

  • After hibernation, when trying to login to MacBook Air, it does not accept my password. I have to shut off and then get prompted with the following: Mac OS X wants to use the "login" keychain. I put in the password there and it works. any suggestions?

    after hibernation, when trying to login to MacBook Air, it does not accept my password. I have to shut off and then get prompted with the following: Mac OS X wants to use the "login" keychain. I put in the password there and it works. any suggestions?

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • My ipad mini 2 gets blue screen and then keep restarting over and over again problem

    My ipad mini 2 gets blue screen and then keep restarting over and over again problem. I tried to restore to the factory setting but it was not successful to fix the problem. Sometimes I could not even restore. How can I do with this kind of problem?
    I'm very frustrated now. Please help me!

    I have the same issue and have not found a way to fix it yet. I cant even down grade back to 8.2 because it wont stay on long enough.

  • I updated my iPhone 5 yesterday to iOS 8.1.3, now the touch screen isn't responding, keeps opening aps and then get stuck.

    I updated my iPhone 5 yesterday to iOS 8.1.3, now the touch screen isn't responding, keeps opening aps and then get stuck.  Can't hang up after making a call.  Can't close messages.  Have I done something wrong?

    Good day catjono,
    If you are having an issue with your iPhone's touchscreen not responding, I would suggest that you troubleshoot using the steps in this article - 
    If the screen on your iPhone, iPad, or iPod touch doesn't respond to touch - Apple Support
    Thanks for using Apple Support Communities.
    Safe computing,
    Brett L 

Maybe you are looking for

  • Hard Drive filling up: SubmitDiagInfo, /private/var & log issues

    This topic is part question, part help for people I've seen having a similar problem in other threads. My issue is different enough from the other issues, that I wanted to post it as a separate topic. I've had about 24GB of available space for weeks

  • How can I download an older version of iBooks?

    I want to use iBooks on my (old) 2nd gen ipod touch. I bought a book for it. When I try to download, of course, the latest version is not compatible...but it asks me if I want to download an older version. I say yes. The greyed-out icon appears, "wai

  • ITunes U video content shows in Movies app

    Hi, The iPod touch doesn't seem to properly handle iTunes U content. The most notable and annoying aspect of this is the iTunes U videos which are on my iPod. They show up in the "Movies" app alongside my actual (theatrical or self-produced) movie fi

  • Getting the best from

    I know this is called an MP3 forum but we should remember that Creative are producing "windows" products which support WMA as well. WMA is always improving (MP3 is stuck). Well I have been trying to make WMA files "I" find acceptable. I wasn't happy

  • Problem with iPhoto11 order (photobook)

    Good morning,I bought 2 picture books, but I had some problems with iPhoto.. it gaves me an error message for two times. I was charged the amount of euro 86,02€ on my credit card, but I never received an order confirmation. So, how can I request a re