General issue with class declaration

Hi all,
Iam very new to OO programming.
can any one tell as how i should call a CLASS
FOR FM , i know we use click pattern and give the required FM name and it would bring up the code in the editor and we have to pass the necessary parameters
but how should i call a class , is there a way to call it or do i need to write the code manually
say when i code like this does that mean it has been typed  or just called like a FM
If its called like FM , let me know how its called
CALL METHOD cl_gui_frontend_services=>file_open_dialog
     EXPORTING
       window_title            = 'Select file for download'
       default_extension       = '.txt'
       initial_directory       =  'C:\'
     CHANGING
       file_table              = li_filetable
       rc                      = lv_return
     EXCEPTIONS
       file_open_dialog_failed = 1
       cntl_error              = 2
       error_no_gui            = 3
       OTHERS                  = 4
Thanks

Hi,
Sorry ... I am in SAP 4.7 and ECC 5.0.
I am not sure whether is available in 4.6C (i am afraid you need to type by yourself).
When you click on Pattern button (SE38), system should display an option for  AABAP Object Patterns (4.7) and ABAP Object Patterns (ECC 5.0).
Then you click on OK button in order to see another selection for OO Statement Pattern (new popup window). In here, you should see Call Method selection and others.
Regards,
Ferry Lianto

Similar Messages

  • Performance issues with class loader on Windows server

    We are observing some performance issues in our application. We are Using weblogic 11g with Java6 on a windows 2003 server
    The thread dumps indicate many threads are waiting in queue for the native file methods:
    "[ACTIVE] ExecuteThread: '106' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
         java.io.WinNTFileSystem.getBooleanAttributes(Native Method)
         java.io.File.exists(Unknown Source)
         weblogic.utils.classloaders.ClasspathClassFinder.getFileSource(ClasspathClassFinder.java:398)
         weblogic.utils.classloaders.ClasspathClassFinder.getSourcesInternal(ClasspathClassFinder.java:347)
         weblogic.utils.classloaders.ClasspathClassFinder.getSource(ClasspathClassFinder.java:316)
         weblogic.application.io.ManifestFinder.getSource(ManifestFinder.java:75)
         weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
         weblogic.application.utils.CompositeWebAppFinder.getSource(CompositeWebAppFinder.java:71)
         weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
         weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
         weblogic.utils.classloaders.CodeGenClassFinder.getSource(CodeGenClassFinder.java:33)
         weblogic.utils.classloaders.GenericClassLoader.findResource(GenericClassLoader.java:210)
         weblogic.utils.classloaders.GenericClassLoader.getResourceInternal(GenericClassLoader.java:160)
         weblogic.utils.classloaders.GenericClassLoader.getResource(GenericClassLoader.java:182)
         java.lang.ClassLoader.getResourceAsStream(Unknown Source)
         javax.xml.parsers.SecuritySupport$4.run(Unknown Source)
         java.security.AccessController.doPrivileged(Native Method)
         javax.xml.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
         javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
         javax.xml.parsers.FactoryFinder.find(Unknown Source)
         javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
         org.ajax4jsf.context.ResponseWriterContentHandler.<init>(ResponseWriterContentHandler.java:48)
         org.ajax4jsf.context.ViewResources$HeadResponseWriter.<init>(ViewResources.java:259)
         org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:445)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
         org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
    On googling this seems to be an issue with java file handling on windows servers and I couldn't find a solution yet. Any recommendation or pointer is appreciated

    Hi shubhu,
    I just analyzed your partial Thread Dump data, the problem is that the ajax4jsf framework ResponseWriterContentHandler triggers internally a new instance of the DocumentBuilderFactory; every time; triggering heavy IO contention because of Class loader / JAR file search operations.
    Too many of these IO operations under heavy load will create excessive contention and severe performance degradation; regardless of the OS you are running your JVM on.
    Please review the link below and see if this is related to your problem.. This is a known issue in JBOSS JIRA when using RichFaces / ajaxJSF.
    https://issues.jboss.org/browse/JBPAPP-6166
    Regards,
    P-H
    http://javaeesupportpatterns.blogspot.com/

  • Issue with class loading -  Java concurrent Program

    Hi ,
    We are facing a strange issue for one of our customer.
    Scenario :
    We have a Java Concurrent Program (A.java ) which refers another Java class (B.java) , we modified the file B.java for a fix and created a patch. after applying the patch and bouncing the apache ,we found that B.java is loaded the old version of the class file.
    We asked them to restart the concurrent manager and related services, still we see that old version of B.java is loaded. (confirmed by adding code throwing exception - throw new Exception from a specific line and found that its not getting thrown at run-time)
    Any clue on this?.
    Thanks
    Joseph George

    Deployed this file both tier - Database server tier and Application server tier.
    I have face same issue, Concurrent program not picking file application server tier. its picking file from database server tier.
    Thanks, Avaneesh

  • General issues with N96

    Wondering if someone might be able to help me out with some of the below on my N96 (new firmware installed)... haha be prepared, it's long..
    PHOTO GALLERY:
    1) occasionally, the phone seems to scramble the pics and names/dates in my gallery (ie: it shows the name/date of one item, yet the pic does not match it - but if you go to edit it, the correct pic comes up. And if you try to rename it, then it shows the new name, but with a different pic. and it goes round in circles..)
    Note this also happens with the preinstalled pics.
    2) When I connect it to Mass Storage on the PC, every single photo shows as screwed up (the colours are all blurred, some are corrupted, some come up like negatives etc. this includes the preinstalled ones)
    I have bluetoothed a number fo photo's to my n73 and connected that to Pc and the photo's come out perfectly.
    I have also deleted all the photo's and put them all back in again which seems to fix problem (1) above (for a while), but not problem (2).
    TURNING ON/OFF DELETES DATA:
    3) sometimes when I turn the phone off (just to reboot occasionally, or if it hangs and I have no choice) it deletes all my messages (yes I have checked the settings to see where the messages have been stored), and it also makes some of my pics and vids corrupted/invalid, rendering them no longer able to view.
    MUSIC PLAYER:
    was playing one minute, then all of a sudden there were no songs available, but they are still playable in music manager.
    I've read discussions on this and am yet to try the fixes, but this is just another one of my issues. Will try them soon.
    MASS STORAGE ON PC:
    There appear to be a number of files/sub-folders which contain corrupted/unable to delete data. These folders I know should not be there (there are some in my images, video, and music folders) and they're names are all in what looks like "wingdings". Is this what is screwing up my applications? and if so how do I get rid of them?
    I know that reformatting the mass storage will probably fix all of this, but I'm hoping I won't have to get to that point haha, i know this sounds like a whole buinch of whinging, but really it's not - I'd just like to see these main things work cos the errors seem strange. So long as my calling and tetxting doesn't pack up I'm still relatively happy and the phone is awesome when everythings working.
    Solved!
    Go to Solution.

    Hiya! That's what someone else said to me as well...
    Funny thing is that I've never just pulled the battery out without shutting off first (never had to cos for some reason the on/off button is the only thing that still works when the phone is frozen...), and even when connected to PC, I always use the "safely remove hardware" thing at the bottom right hand corner of the PC.
    And as for the photo's (the preinstalled ones) when I first plugged my phone into Mass storage (before I had stored any other photo's inside) they were already showing up screwed..
    But I guess there's no harm doing a reformat so I'll give that a go later
    Will it delete applications like Ngage and Office and everything? I don't have a memory card to back up my stuff to... and i'm not sure if I trust "Mass storage-PC" to do it.

  • Issue with classes to send email

    Hi guyz,
    My requirement is to send smartform as an email as attachment in pdf format  , I done it using function module SO_NEW_DOCUMENT_ATT_SEND_API1 , but the  problem of using that is I cannot change senders email id. so now I chose the option to use classes , I have a code to send email with data in the email body, I also need to add smartform as an attachment in pdf format to email.How to get this...please advise...
    Thanks in advance
    Regards
    Edited by: BrightSide on Jan 7, 2010 10:45 AM

    after   CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    CALL METHOD l_email->set_subject
          EXPORTING
            subject = v_subject.
    *   Set the message
        CALL METHOD l_email->set_message
          EXPORTING
            text = i_content
            type = zcl_email_message=>doc_type_text.
        CALL METHOD l_email->add_attachment
          EXPORTING
            contents_bin = i_attach_raw
            name         = lv_name
            type         = 'BIN'.
          CALL METHOD l_email->add_to
            EXPORTING
              address = i_rec.  " fill i_rec with email id's u want to send the email.
    *   Send the e-mail.
        CALL METHOD l_email->send
          EXPORTING
            commit_work = space
          EXCEPTIONS
            send_error  = 1
            OTHERS      = 2.

  • Privilege issues with iTunes and General issues with lion.

    My compter frooze this eventually lead to my reinstalling lion from Time Machine. This has lead to several major problems firstly my iphoto library missing, also when I connect iPhone. I get an error telling met "This computer is no longer authorized for apps that are installed on iphone ....... Would like to autorize  this computer for items purchased from the iTunes Stores..." then it said would you like to authorise. I clicked yes. Then I get a error message. About directory not found or correct permission. I can not even deauthorise and other authorise. I think I have  permission problem.
    Further issues is that other user's data has been deleted. i had drag and drop itunes folder in order to get back their downloads. The music appears in itunes and historic purhases on itunes. But when you try and re dowmload the later the user has permission. I checked get info on finder but everything appears fine, i need help!!!

    Launch the Terminal 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.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    ls -lT /Users/Shared/SC\ Info
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • General issues with opening pdfs

    For the last year I have had a few people (usually the same ones)  tell me they can't open the pdfs I send them. While most other people can open the identical pdf, these few other  people can't. I'm sure this is a huge problem to solve...people may not have the latest version of Reader, or they may be trying to open it in a browser that is not supported. But usually the complaint I get is that the file is corrupted and can't be opened. I've tried to help them by telling them to update to the latest version of Reader, and they say they have and still can't open it. Again, others on the same email I sent CAN open it, so it's probably not something that I'm doing to corrupt the file.
    The latest example is a pdf that was created from my HP Officejet Pro L6500 when I scanned a document to pdf, I copied it from the printer's SD card over the network connection, and emailed it through Outlook to the recipient. She couldn't open it. got the message:
    The file "[filename].pdf" could not be opened.
    It may be damaged or use a file format that Preview doesn't recognize.
    Here's what I would suggest to help: Adobe, please create an engine on the Acrobat website that people can drag and drop a pdf file to and the engine will examine the file and tell them if it's OK, corrupted, what version it is, and maybe even allow them to save it to an older version of Acrobat if necessary. Seems like that could really help all around.
    Thanks for listening.
    Tom O'Brien
    Scotts Valley, CA

    tobrien871-2 wrote:
    The file "[filename].pdf" could not be opened.
    It may be damaged or use a file format that Preview doesn't recognize.
    That message indicates that the user was using Mac's Preview application, NOT Adobe Acrobat or Reader.

  • Issue with declaring variable

    I am developing a multiuser application in flash, using smartfox server and as 2.0, but i am having an issue with defining/declaring a variable/object/array, and then accessing it. I am attempting to define "curMap" (whether it be a variable, array, object, whatever works) within the following function, as the returned array from the server, "resObj". This works fine as long as i only call up "curMap" WITHIN this function(as you see in the  line :  r_txt.text = curMap;)  however whenever I try to call up "curMap" on the frame coding, outside the function, it comes back as undefined, or typically nothing.  Any Ideas as to how to properly do/assign this? I have tried various things(such as _root., _global, or defining the var "curMap" outside the function) with no luck.
    Here is my Code:
    smartfox.onExtensionResponse = function(resObj:Object, type:String)
            if (type == "xml")
                    if (resObj._cmd == "getMap")
                        curMap = resObj.db[0];
                        r_txt.text = curMap;
                    }else if (resObj._cmd == "getSurr"){
                     surrMap = resObj.db;
                     b_txt.text = surrMap[0];
    thanks

    ahhh! yup that fixes it, thanks!

  • Issues With CS4 Installation on Win 8?

    I purchased CS4 (Web Premium) on  disc several years ago, and it has been working fine on my  Win XP computer ever since. The Adobe software has all the current  updates, though I am using the CS4 version of Acrobat Pro (9.xx) rather  than a more recent (free) version of Reader.,
    Unfortunately,  my computer's hard drive has fried, and I just purchased a new Windows 8  machine, which will arrive shortly.  I am trying to determine:
    1. Are there any general issues with CS4 installation on Win 8 that I should know about in advance?
    2. Are there specific procedures (de-activation?) that I need to follow BEFORE attempting the installation on the new computer?
    3. Other than specific user issues, are there problems with CS4 versus Windows 8 that I would not encounter with Windows 7.
    I  enhance photos and create web sites for a living, so the CS4  installation is mission-critical. I am hoping I did not make a mistake  in ordering a Win 8 machine...
    Thanks for any and all insights.

    OK, fair enough. Maybe someone who has actually experienced this situation (CS4 --> Win 8 machine) might see this and offer some tips to avoid hassles. But I will try the install as soon as I get the new machine and post any ensuing issues/problems here.
    As for de-activation of the previous installation on the XP machine, that is now impossible, as the hard-drive is fried. Unless there is a way to de-activate an installation some other way (without actually opening the programs).  That said, I AM able to access files on the fried harddrive, so if there is a specific file that controls de-activation, I could access it on the old machine.  However, I may not be able to actually RUN said file on that machine, but can copy it to a stick and move it elsewhere. So, any thoughts on deactivation of an installation on a deceased computer?

  • Class loading issue with JDK 1.5

    I have recently loaded JDK 1.5 on a laptop that previously had version 1.3. The java code I need to run stopped working and I getget a java.lang.NoClassDefFoundError. I am logging the classpath and I see the jar file with the offending class is there.
    I checked my pathing even, since I know java will have a problem with slashes at the beginning of the path when it is called via command line. But all my pathing is absolute.
    In the code, I am using C to start up the JVM and then use JNI to communicate between java and C. Because of this complexity, I have searched the forums for problems with JNI and JDK 1.5. I found a case where turning off the JIT compilation kept the JVM from crashing for some users having issues with 1.5, but this approach did not work for me. Not too surprising, though, since this is really a classloading issue.
    Where do I go next? Anyone else having this problem?

    [http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html]
    Reminder: Cryptographic implementations in the Sun JDK are distributed through several different providers
    ("Sun", "SunJSSE", "SunJCE", "SunRsaSign")
    for both historical reasons and by the types of services provided.
    General purpose applications SHOULD NOT request cryptographic services from specific providers. That is:
        getInstance("...", "SunJCE");  // not recommended
         vs.
        getInstance("...");            // recommended
    Otherwise, applications are tied to specific providers which may not be available on other Java implementations.
    They also might not be able to take advantage of available optimized providers (for example, hardware
    accelerators via PKCS11 or native OS implementations such as Microsoft's MSCAPI) that have a
    higher preference order than the specific requested provider.

  • Performance issue with editing classes in 2011

    Maybe this is just an install issue, but....
    In LV 2011, if I attempt to edit the data of an established class (i.e. it has accessors, etc) then I get the Windows 7 whirling cursor indicating that the class is updating; sometimes this takes several minutes for the changes to be applied while other times the system just hangs and I eventually have to kill LV thus creating a hideously time wasting cycle in where I once again attempt to make changes to the class, it hangs, ad infinitum.  Has anyone else seen this?  Is there a work around?
    Cheers, Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

    No.  I am saying that this is not associated with a project.  A class does not have to be associated with a project.  If you open a .lvclass file you will get a window that looks like a library window where, similar to the library, everything contained in the class namespace will be found.
    I am running LV 2011 on a 32-bit Windows 7 machine with a dual core i5 (2.53 GHz) and 4 Gb of ram.  Performance wise, I am having no issues with any other aspects of LV 2011 (strike that - it does seem to crash more than I desire).  As I said in the above post, this seems to be an issue only when I am trying to change things such as names in a space other than the properties dialog box. 
    I suspect this might be associated with the installation, but I am not positive.  I have attached two classes if you are interested in playing with them.  Basically, I was only trying to change the type and name of the variable tscan in the SMPS class (I included the CPC class due to the dependency of the SMPS, but I am afraid there may be some other dependencies that I can not immediately see).
    Cheers, m
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC
    Attachments:
    DMA Proj.zip ‏506 KB

  • Issue with general settings

    Hi
    Has anyone had an issue with general settings where by you go into settings and then select 'general' and the phone dumps you back to the main screen. This happens every time and I now can not chnage a large number of settings. I have just updated with the latest operating system and it still has not fixed the issue.
    Any help would be appreciated.

    The next step is to restore your phone from your most recent backup, followed by syncing your iTunes content back to your phone. If that doesn't work, you'll have to restore as a new device in iTunes, but try restoring from backup first.

  • Issue with GregorianCalendar class

    Hi I'm having issues with the GregorianCalender class. I am trying to enable daylight savings time but it doesn't seem to be working properly for. As a test I have taken the difference of time (in milliseconds) between a date where daylight savings causes a shift in time (April 4, 2004 for example). The two sample dates I have chosen are April 5, 2004 and April 4, 2004, ideally the time difference should be 23 hrs (since one hour is lost due to daylight savings) but I am getting 24hrs. I have a sample program in C++ which gives me the correct answer so I know the result am I getting here is wrong. Anybody have any suggestions?
    String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
         if (ids.length == 0)
         System.exit(0);
         // create a Pacific Standard Time time zone
         SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
         // set up rules for daylight savings time
         pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 60 * 60 * 1000, true);
         pdt.setEndRule(Calendar.OCTOBER, 31, Calendar.SUNDAY, 60 * 60 * 1000, false);
         pdt.setDSTSavings( 60*60*1000 );
         GregorianCalendar cal = new GregorianCalendar(2004, 4, 4);
         GregorianCalendar cal1 = new GregorianCalendar(2007, 4, 5);
         cal1.setTimeZone ( pdt );
         cal.setTimeZone( pdt );
    //This values is incorrect
         long diff = cal1.getTimeInMillis() - cal.getTimeInMillis();     
    //I have also tried the following
    String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
         if (ids.length == 0)
         System.exit(0);
         // create a Pacific Standard Time time zone
         SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
         // set up rules for daylight savings time
         pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 60 * 60 * 1000, true);
         pdt.setEndRule(Calendar.OCTOBER, 31, Calendar.SUNDAY, 60 * 60 * 1000, false);
         pdt.setDSTSavings( 60*60*1000 );
         GregorianCalendar cal = new GregorianCalendar(pdt);
         GregorianCalendar cal1 = new GregorianCalendar(pdt);
         cal1.set(2004, 4, 5 );
         cal.set( 2004, 4, 4 );
    //This values is incorrect
         long diff = cal1.getTimeInMillis() - cal.getTimeInMillis();     
    Thanks

    There may be any of several issues:
    Daylight savings time moves from year to year. Maybe last year, it was not on the same week number.
    Daylight savings time officially occurs at 2am. Java date's default to midnight if explicitly initialized. So, try calculating from after 2-3 am, depending on which way time was shifted.- Saish
    "My karma ran over your dogma." - Anon

  • Having issues with picture messaging get told to go to settings, then general, then network then cellular  data network. my problem is there is no such option my  phone is a 3gs

    having issues with MMS messaging instruction for setup,  are to gotto settings, then general, then network then cellular data network.My problem is there is no cellular data network optiion on this page have tried resetting phone , no good .Help.

    That option does not exist depending on who the carrier is.
    Who is the carrier?  Are they a supported carrier?
    Have you tried Settings > General > Reset > Reset Network Settings?

  • JNDI issue with OracleOCIConnectionPool class

    I have recently installed the Oracle 9i client on a Solaris 8 server to take advantage of the OCI connection pool. I have succesfully created and used the pooling class. I am able to bind the OCI Pool with JNDI without any problems, however, when I perform a lookup on the OCI pool name, I do not seem to get the same object back that is bound. It appears that a new pool is created with every lookup. I know this becuase I watch the open sessions on my oracle server increase by OCIpool.minSize after every call to the context lookup. The server that I am using is Jrun4 and the code is as follows:
    OracleOCIConnectionPool ocipool = new OracleOCIConnectionPool();
    ocipool.setPoolConfig(poolProp);
    initialContext.bind("ociPool", ocipool);
    //at this point there are 5 existing sessions
    OracleOCIConnectionPool newPool = initialContext.lookup("ociPool"));
    //at this point there are 10 existing sessions
    System.out.println( initialContext.lookup("ociPool"));
    //at this point there are 15 existing sessions
    I am completely lost as to why the sessions continue to grow. I have never had this issue with JNDI before. It appears that a new OracleOCIConnectionPool is being created with each lookup, instead of the original pool being used. Any insight is greatly appreciated.

    Hello ,
    Development class/Package is used to save a group of related objects .
    For ex: All MM reports can  use ZMM_XXXX dev class ....
    So check  the module in which u r report / table or Object comes into and provide the respecitve dev class.
    U can also check in TDEVC table to find out the related dev class  .
    Regards

Maybe you are looking for

  • Buttons not working within movieclip inside scrollpane

    hey I have a couple buttons that work outside of the ScrollPane but dont work within it. This is my exact code, how do i get them to work? scrollPane.source = myContent; scrollPane.setSize(173,500); K1Button.addEventListener(MouseEvent.CLICK, playVid

  • PS CS3 crashes when opening preferences - performance

    Help required Using CS3 on a vista 64 bit, 8gb ram, tons of storage. Screen whites out when trying to access the performance box. Have reduced the number of font, cleared cache no change. I believe this is an old problem, I sorted it out early last y

  • Can't get past the Blue Screen!

    I have a Mac ibook G4 and it was just working fine last night. Then the screen frooze, I restarted it, and now it will not go past the blue screen. It is capable of safe booting though when I hold the shift button down during start up. Since I've alw

  • Ship to(partner fun - WE) address detail during user exit.

    Hi All, I am doing changes in user exit - MV45AFZZ Now I can get address no. for ship to in XVBPA table and get the address detail. But if some one changed the value manualy how could I find the new value. Mean is there any internal table which I cou

  • Unable to update iPhone apps

    I'm running an iPhone 5c and I've not yet updated to iOS 8.1 For the past two weeks, if I try to update any app through the App Store, clicking on "update" just opens the app and the update doesn't happen. Anyone got any fixes for this? I'd appreciat