Singleton concept

Hi
  Please anybody explain me about singleton concept in abap objects,
Thanks n Regards
vijay

Just to elaborate on what Sesh mentioned, A Singleton class is one that can only be instantiated once during the runtime of a program. Typical examples would be Classes that provide services(Persistance), or classes that provide resource pools(BADI Adapters, Shared Connections, etc.)
Since normal classes can be instantiated any number of times,
CLASS lcl_normal DEFINITION.
  PUBLIC SECTION.
    DATA: v type i.
    METHODS: disp_v.
ENDCLASS.
CLASS lcl_normal IMPLEMENTATION.
  METHOD disp_v.
    WRITE:/ v.
  ENDMETHOD.
ENDCLASS.
*__Report Code__*
DATA: r1 TYPE REF TO lcl_normal,
          r2 TYPE REF TO lcl_normal.
CREATE OBJECT r1.
r1->v = 10.
CREATE OBJECT r2. "Possible because class is not singleton
r2->v = 20.
r1->disp_v( ).
r2->disp_v( ). " Also possible
If we have to redesign the above class to make it singleton, in other words, irrespective of how many times the program uses the class, only a single shared instance will be reused, we have to prevent the class from being reinstantiated, we start by preventing calls to the constructor from outside of the class, ie: Only the class itself can create it's own instance!!
CLASS lcl_singleton DEFINITION CREATE PRIVATE.
Next step, now that calling programs cannot "CREATE OBJECT" our class, we provide an alternative to this...
CLASS lcl_singleton DEFINITION CREATE PRIVATE.
   PUBLIC SECTION.
      CLASS-DATA: singleton TYPE REF TO lcl_singleton READ-ONLY.
      DATA: v type i.
      CLASS-METHODS: class_constructor.
      METHODS: disp_v.
ENDCLASS.
CLASS lcl_singleton IMPLEMENTATION.
  METHOD class_constructor.
     CREATE OBJECT singleton. "Can be executed only once
  ENDMETHOD.
  METHOD disp_v.
    WRITE:/ v.
  ENDMETHOD.
ENDCLASS.
*__Report Code__*
DATA: r1 TYPE REF TO lcl_singleton,
          r2 TYPE REF TO lcl_singleton.
*Create object r1 not possible!
r1 = lcl_singleton=>singleton. " The only way to retrieve an instance
r2 = lcl_singleton=>singleton.
r1->v = 10.
r1->disp_v( ).
r2->disp_v( ). "Will also print 10
And that's how it goes !
Regards,
Dushyant Shetty
P.S. Did not get the time to syntax-check, please check before using code !

Similar Messages

  • JNDI lookup and Singletons

    Hi there,
    I am doing some tests on Glassfish v3 and new EJB 3.1 features. I've migrated some beans I previously had to bind to the web layer and now I can have in the EJB layer thanks to the new Singleton concept. The problem is that I don't know if I can get them with a JNDI lookup as I do with session beans. In Glassfish log I only see entries about JNDI names for the SSBs, not for the Singletons.
    Are they visible in the JNDI naming system? How can I know the names? (I am migrating from JBoss 5.1 so I am also a bit new to Glassfish)
    I cannot do a Dependency injection @EJB as I am using struts2 actions. I can only use JNDI (not right?) :-)
    Thanks for any help,
    Ignacio

    Hi there,
    I am doing some tests on Glassfish v3 and new EJB 3.1 features. I've migrated some beans I previously had to bind to the web layer and now I can have in the EJB layer thanks to the new Singleton concept. The problem is that I don't know if I can get them with a JNDI lookup as I do with session beans. In Glassfish log I only see entries about JNDI names for the SSBs, not for the Singletons.
    Are they visible in the JNDI naming system? How can I know the names? (I am migrating from JBoss 5.1 so I am also a bit new to Glassfish)
    I cannot do a Dependency injection @EJB as I am using struts2 actions. I can only use JNDI (not right?) :-)
    Thanks for any help,
    Ignacio

  • OOP's ABAP

    Hi,
    I want to know under which scenario Singleton concept has to be implemented?

    HI,
    You will use SINGLETON when you need to have only once instance of class , For example a  SHOPPING CATALOG where everyone should see the same list of objects, in that case you willl store this instance as singleton so that the changes one makes are evident to others as soon as possible.
    IN SAP if you use STATIC To implement singleton then it is SINGLETON for the user for the session, if you want single instance across the application you have to use shared objects.
    Regards,
    Sesh
    Message was edited by:
            Seshatalpasai Madala

  • What is Supply Function, use of Supply function?

    Hi Guru's,
    Can you give a definition or description of Supply Function, and what is the use?
    Thanks,
    Pradeep.

    Hi Pradeep,
    Okay, conceptually you have understood it, that is good
    Hope you have also, visited this link
    Supply function with singleton concept | Webdynpro ABAP
    Then let us have a simple example to understand how it works.
    Let us say we have  parent node PNODE & child node CNODE
    PNODE node has 2 records and for each record CNODE has 3 records
    Whenever the data of PNODE is bound/changed, the supply function of CNODE executes. Hence, you are able to get the control during initialization.
    Now, if you have set the lead selection at line 2, i.e.  there is change to context PNODE, hence the supply function of CNODE triggers and it gets the reference of 2nd record in PARENT_ELEMENT inside supply function and based on this the child node data can be populated.
    Even, if you refresh node PNODE using method lo_pnode->INVALIDATE( ), the supply function of CNODE triggers.
    Hence, whenever there is change at PARENT'S context node, the supply function of its child node(s) gets called.
    Hope it gives little light on the supply function's  practical usage.
    Regards,
    Rama

  • Allow to create, only two objects for a class

    Hi,
    This question is asked in my interview. In singleton concept only one object is created, likewise only two objects are created for a class.
    For that i have write a code like this,
    public class OnlyTwoObjects {
         private static OnlyTwoObjects a1;
         private static OnlyTwoObjects a2;
         public static int n = 0;
         public static OnlyTwoObjects getInstance() {
              if (a1 == null) {
                   a1 = new OnlyTwoObjects();
                   return a1;
              } else if (a2 == null) {
                   a2 = new OnlyTwoObjects();
                   return a2;
              } else if (n == 1) {
                   return a1;
              } else if (n == 2) {
                   return a2;
              return null;
    } But they told this is not good way to do this.
    I don't know how to do this, if any body knows kindly let me know.

    vijay wrote:
    But i will explain my code, in that code we are allowed to create only two objects, Maximum. Understood.
    suppose both objects are created, then i will ask which object you need first or second, this is decided using the variable n if it is 1 then it will return the first object and it is 2 it will return the second object. sorry i didn't explain this in my previous post.This is your approach. Is this the requirement as well? Is it necessary that the user decide on which instance (first or second) is returned?Even if it was the requirement that the user decides which instance (first or second) is returned, with the original proposed implementation, the user only gets to decide which instance after calling getInstance() twice. If he calls getInstance() with n=2 when a1 is still null, he still gets a1. If he calls getInstance with n=1 when a2 is still null but a1 is non-null, then he gets a2. As is, he always gets a1 on the first call, a2 on the second call, and after that gets null unless he has set n to 1 or 2. (This explanation ignores any multi-threading issues that may come into play. This explanation is for a single thread.)

  • Questions reg Looping through a Node inside a Currently Selected Node.

    i have the following context structure in my WD application.
    Parent Customer Node  A<Cardinality 1.n & Selection 1.n & Singleton True>
          Child Addresses Node B<Cardinality 1.n & Selection 1.n & Singleton True>
                  Child Attribute B.City
          Child Attribute A.Name
          Child Attribute A.Age
    For the currently selected Parent Customer Element, i want to read the all the addresses this customer has. How to read all the addresses of the customer and loop through it & show it.
    Any inputs are appreciated.

    Hello Saravanan,
    Please use the Singleton Concept.
    Refer the following links.
    http://help.sap.com/saphelp_nwce711core/helpdata/en/47/be673f79c8296fe10000000a42189b/frameset.htm
    http://wiki.sdn.sap.com/wiki/display/WDJava/SupplyFunctionin+Webdynpro
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60086bd5-9301-2b10-6f97-a14366a5602b/
    if you have doubt in implementation then let us know.
    Regards
    Nizamudeen SM

  • Disable RAC Cache Fusion in 10r2

    Hi all,
    is it possible to disable the Oracle Cache Fusion in Oracle Database 10.2.0.4 Database ?
    Regards,

    I think it is nonsense to think about disabling cache fusion. and it is almost not possible. On the other hand, how can RAC work without this feature ? How can you imagine the work of your RAC system without global synchronization between nodes ???
    Regarding to singleton concept which is mentioned by guys, it means that the idea here is concentrating the database service which your application uses on one node, so mostly your application will be served by this node, which means the roundtrip between instances will be low. You can think about this state just like you are working with single instance database, as here cache synchronization overhead is almost eliminated. Basically RAC itself also does remastering of resources, based on workload dynamically, but remember that if your database service is served by several instances, your connections could be directed to both of them and in inpredictable fashion, based on load balansing goal to be exact.
    Besides all of this, there are several wait event classes spesific for RAC and corresponding views for them. you can explore them and find the idea about which wait classes are bottleneck.

  • Concept behind Cardinality, Singleton property?

    hi,
          will anyone explain me the concept of cardinality, singleton & Initialize lead selection properties of noce. by example... when i need to set singleton /Initialize lead selection  property true / fasle for perticular node...
    suppose i am having node structure like this ..
                     CLAIM                                   Node1
                            CLAIMITEM                    Node2
                                     EXPENSETYPE    Node3 ...  Comes under node2
                                          key      
                                          value
                                    Claimid                attribute.. Comes under node2
                                    Description          attribute.. Comes under node2
                                    Amount               attribute.. Comes under node2
    if Node CLAIMITEM is bind to table on view....having 4 column ,
    first as dropdown by index bind to EXPENSETYPE value...
    second as inputfield bind to Claimid....
    third as inputfield bind to Description....
    fourth as inputfield bind to Amount....
    table is having multiple rows so Node CLAIMITEM must have cardinality 0...N
    what abt others...
    please dont give me any link which is alreay on sdn...
    jst try to explain me how does it go and why if possible ..
    thanks
    saurin shah

    Hi Saurin,
    Please check this Article which explains in detail about Context,cardinality and singleton properties with examples.I hope it will help you.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60730016-dbba-2a10-8f96-9754a865b814

  • Singleton, Concurrency and Performance

    Dear all,
    Below is part of the code of my Singleton ServiceLocator:
    public class ServiceLocator {
        private InitialContext ic;
        private Map cache;
        private static ServiceLocator me;
        static {
          try {
            me = new ServiceLocator();
          } catch(ServiceLocatorException se) {
            System.err.println(se);
            se.printStackTrace(System.err);
        private ServiceLocator() throws ServiceLocatorException  {
          try {
            ic = new InitialContext();
            cache = Collections.synchronizedMap(new HashMap());
          } catch (NamingException ne) {
                throw new ServiceLocatorException(ne);
          } catch (Exception e) {
                throw new ServiceLocatorException(e);
        public static ServiceLocator getInstance() {
          return me;
        public EJBLocalHome getLocalHome(String jndiHomeName) throws ServiceLocatorException {
          EJBLocalHome home = null;
          try {
            if (cache.containsKey(jndiHomeName)) {
                home = (EJBLocalHome) cache.get(jndiHomeName);
            } else {        
                home = (EJBLocalHome) ic.lookup(jndiHomeName);
                cache.put(jndiHomeName, home);
           } catch (NamingException ne) {
                throw new ServiceLocatorException(ne);
           } catch (Exception e) {
                throw new ServiceLocatorException(e);
           return home;
    I 've some questions concerning the concept of Singleton:
    1. Assume using the code above. If 2 threads access the getInstance method at the same time, is that one of the thread will get the instance and the other thread will get null or queued up and wait?
    2. If the answer of question #1 is positive, can we conclude that Singleton will lower the performance of web application which needs high concurrency?
    3. Should we create a pool of ServiceLocators instead of making it Singleton?
    4. For EJBs looking up EJBs, why we should not use Singleton ServiceLocator?
    Thanks in advance.
    Jerry.

    I 've some questions concerning the concept of
    Singleton:
    1. Assume using the code above. If 2 threads access
    the getInstance method at the same time, is that one
    of the thread will get the instance and the other
    thread will get null or queued up and wait?If I read correctly your code, your initialize the singleton instance statically (beforehand).
    The first thread that invokes getInstance will be somehow "queued up" while the VM loads and initializes the ServiceLocator class (including executing the static block that initializes the singleton instance).
    Afterwards, for the lifetime of this VM, all subsequent threads that will invoke getInstance will undergo no penalty, as no synchronization is involved.
    Well-known threading issues involving singleton access (search "Double-checked locking") appear only with code that wants to perform "lazy loading" without synchronization.
    Performance issues (or supposed performance issues) incurred by synchronization only occur to code that uses synchronized blocks or methods, obviously.
    2. If the answer of question #1 is positive, can we
    conclude that Singleton will lower the performance of
    web application which needs high concurrency?First, I woudn't worry too much about it prematurely.
    Next, if this singleton happens to be a performance bottleneck, it wouldn't be in the getInstance but merely in your access to the synchronized collection (which, by the way, does not prevent an EJBLOcalHome to be looked up and inserted twice :o)
    But I sincerely doubt it could be anything measurable.
    So go ahead with a plain simple singleton this way. If you happen to hit a performance problem, profile it and come back with the results.
    3. Should we create a pool of ServiceLocators instead
    of making it Singleton?You need to pool objects when their methods use up a lot of serial time.
    Here I really think the getLocalHome will be fast enough to not matter compared to everything else (DB access, file access, network latency, your business logic,...).
    If if it did, there would be other means (read-write lock) to lower the serial cost.
    Moreover, pooling your locator would divide your cache efficiency (hits/hits+misses) by the number of instances...
    >
    4. For EJBs looking up EJBs, why we should not use
    Singleton ServiceLocator??

  • How to implement a singleton class across apps in a managed server}

    Hi ,
    I tried implementing a singleton class , and then invoking the same in a filter class.
    Both are then deployed as a web app (war file) in a managed server.
    I created a similar app , deployed the same as another app in the same managed server .
    I have a logger running which logs the singleton instances as well.
    But am getting two instances of the singleton class in the two apps - not the same .
    I was under the impression that , a singleton is loaded in the class loader level , and since all apps under the same managed server used the same JVM , singleton will only get initialized once.
    Am i missing something here ? or did i implement it wrong..?
    public class Test
       private static Test ref ;
       private DataSource X; 
       static int Y;
       long Z ;  
       private Test ()
          // Singleton
           Z= 100 ;
       public static synchronized Test getinstance()  throws NamingException, SQLException
          if(ref == null)
             ref = new Test() ;        
             InitialContext ic = new InitialContext();
             ref.X = (DataSource)ic.lookup ("jdbc/Views");
          return ref ;       
       public Object clone()throws CloneNotSupportedException
           throw new CloneNotSupportedException();
       public int sampleMethod (int X) throws SQLException
    public final class Filter implements Filter
         public void doFilter(ServletRequest request, ServletResponse response,FilterChain chain) throws IOException, ServletException
              try
                   Test ref = Test.getinstance();
                   log.logNow(ref.toString());
    }Edited by: Tom on Dec 8, 2010 2:45 PM
    Edited by: Tom on Dec 8, 2010 2:46 PM

    Tom wrote:
    Hi ,
    I tried implementing a singleton class , and then invoking the same in a filter class.
    Both are then deployed as a web app (war file) in a managed server.
    I created a similar app , deployed the same as another app in the same managed server .
    I have a logger running which logs the singleton instances as well.
    But am getting two instances of the singleton class in the two apps - not the same .Two apps = two instances.
    Basically by definition.
    >
    I was under the impression that , a singleton is loaded in the class loader level , and since all apps under the same managed server used the same JVM , singleton will only get initialized once. A class is loaded by a class loader.
    Any class loader that loads a class, by definition loads the class.
    A VM can have many class loaders. And far as I know every JEE server in existance that anyone uses, uses class loaders.
    And finally there might be a problem with the architecture/design of a JEE system which has two applications but which is trying to solve it with a singleton. That suggests a there might be concept problem with understanding what an "app" is in the first place.

  • Singleton Vs Static Class

    Hi,
    Kindly excuse if my question annoys anyone in the forum.
    Compared to a singleton class we can always have a class and all methods as static?
    Wouldnt that be the same as Singleton.
    Also looking at Runtime class, its a Singleton. Just thinking if Runtime class could be a class with this static methods instead of making the constructor private .

    I thought I read somewhere that however you implement your singletons, client code shouldn't break if later you decide that you don't need/want a singleton for that class anymore.I agree with that principle.
    This requires that the client code never calls the getInstance() method, and the best way to make sure of that is that the client code does not depend on the singleton class, but on an interface that the singleton class implements.
    (Speaking for myself, I can assure you that I never thought that deeply about it, but continuing...)I have thought a lot about Singletons, specifically when contemplating flaying myself alive for putting them prematurely where they weren't really needed (not to mention some of my colleagues' choice, for fear my message would deserve editing out by moderators).
    I have come to the conclusion that Singleton is overhyped, probably because it's one of the simplest patterns, and the first one people are taught as a way to illustrate the very concept of "design pattern". And overused because it feels so natural to use the first and simplest pattern one has learnt.
    I'm not claiming Singleton has no merits (I used to claim that on this forums). I'm claiming most usages I've seen of Singleton were not based on a careful consideration of the real merits.
    If we implement our singletons (who have state) as "static classes", aren't we violating this?Ah, OK, I get it now: if someday you need to have several copies of the states with different values, you could always "de-singletonize" the singleton, with minimal impact for properly-written client-code, as you point out, whereas you couldn't justas easily "de-staticize" the static calls.
    Indeed that's an argument when evaluating whether making a method static: it statically (1) binds the client code to the implementation class.
    (1) not a pun, merely the very justification for the term static as a keyword.
    J.

  • Can a object created using static keyword be recreated? Singleton Pattern

    Hi All
    To implement a Singleton I can use the following code
    public Singleton {
    private Singleton(){
    private static final s_instance = new Singleton();
    public Singleton getInstance(){
    return s_instance;
    Now if the Class Singleton gets unloaded during a program execution and again get loaded won't s_instance be recreated? If my question is correct this would lead to be leading to a new Singleton class instance with all the original variables.
    Having answered the above question if I lazily initialize my Singleton using the following code won't the above problem still occur.
    public Singleton {
    private Singleton(){}
    private final volatile Singleton s_instance = null;
    public Singleton () {
    if(s_instance != null) {
    synchronized (s_instance) {
    s_instance = new Singleton();
    return s_instance;
    Having answered all the above questions what is the best way to write a Singleton?

    Would the class get unloaded even if the Singleton object has some valid/reachable references pointing to it?
    On a different note, will all the objects/instances of a class get destroyed if the class gets unloaded.That's the other way round, really: instances cannot be garbage-collected as long as they are strongly reachable (at least one reference pointing to them), and classes cannot be unloaded as long as such an instance exists.
    To support tschodt's point, see the JVM specifications: http://java.sun.com/docs/books/jvms/second_edition/html/Concepts.doc.html#32202
    *2.17.8 Unloading of Classes and Interfaces*
    A class or interface may be unloaded if and only if its class loader is unreachable. The bootstrap class loader is always reachable; as a result, system classes may never be unloaded.
    Will the same case (Custom ClassLoader getting unloaded) occur if I write the singleton using the code wherein we lazily initialize the Singleton (and actually create a Singleton instance rather than it being a Class/static variable).You should check the meaning of this vocabulary ("object", "instance", "reference"): http://download.oracle.com/javase/tutorial/java/javaOO/summaryclasses.html
    The difference between the lazy vs eager initializations is the time when an instance is created. Once it is created, it will not be garbage collected as long as it is reachable.
    Now I'm wondering, whether being referenced by a static attribute of a class guarantees being reachabe. I'm afraid not (see the JLS definition of reachable: http://java.sun.com/docs/books/jls/third_edition/html/execution.html#44762). That is, again, unless the class has been loaded by the system class loader.

  • "requires unreachable" warning emitted when using static variables and the singleton pattern

    I'm implementing code contracts on an existing code base and I've come across this situation in a few places. Wherever we have additional logic with code contracts where a singleton instance is instantiated, all code contracts emit a "reference use
    unreached", or "requires unreachable" warning.
    The code below demonstrates this.
    static string instance = null;
    static string InstanceGetter()
    if (instance == null)
    instance = "initialized";
    AdditionalLogic(instance); // requires unreachable warning on this line
    return instance;
    static void AdditionalLogic(string str)
    Contract.Requires(str != null);
    Console.WriteLine(str);

    Would the class get unloaded even if the Singleton object has some valid/reachable references pointing to it?
    On a different note, will all the objects/instances of a class get destroyed if the class gets unloaded.That's the other way round, really: instances cannot be garbage-collected as long as they are strongly reachable (at least one reference pointing to them), and classes cannot be unloaded as long as such an instance exists.
    To support tschodt's point, see the JVM specifications: http://java.sun.com/docs/books/jvms/second_edition/html/Concepts.doc.html#32202
    *2.17.8 Unloading of Classes and Interfaces*
    A class or interface may be unloaded if and only if its class loader is unreachable. The bootstrap class loader is always reachable; as a result, system classes may never be unloaded.
    Will the same case (Custom ClassLoader getting unloaded) occur if I write the singleton using the code wherein we lazily initialize the Singleton (and actually create a Singleton instance rather than it being a Class/static variable).You should check the meaning of this vocabulary ("object", "instance", "reference"): http://download.oracle.com/javase/tutorial/java/javaOO/summaryclasses.html
    The difference between the lazy vs eager initializations is the time when an instance is created. Once it is created, it will not be garbage collected as long as it is reachable.
    Now I'm wondering, whether being referenced by a static attribute of a class guarantees being reachabe. I'm afraid not (see the JLS definition of reachable: http://java.sun.com/docs/books/jls/third_edition/html/execution.html#44762). That is, again, unless the class has been loaded by the system class loader.

  • Singleton retuns Sync. Object ?

    Hii experts there !
    Investigating deeply on best ways of synchronizing web apps with peer reviews...suspect something here.
    Singleton returns instance of one and only one object to all callers...well and good.
    If many callers calls getInstance() of that class (say, I put this method to capture the unique object), it simply returns that object with one line of code...+return object;+ (rest of things taken care to ensure singleton behavior)
    Concept here is that the object returned is not thread safe thus, I guess.
    Many callers after getting same object calls a method inside ( not explicitly synchronized ) will start their own way leading to dirty reads...for example, first caller sets all variables of this object and just before calling Place Order on back-end system, other caller may overwrite atleast some of values, creates panic thus!!!
    Correct me if wrong, trying to figure out several optimal ways to synchronize critical functionalities like placing order(s) with lesser amount of direct synchronized
    Appreciate any references.
    Thanks.

    Suitable conclusion I think, Thanks.
    I want to be helpful to the young programmers like me getting their hands on with enterprise programming techniques by providing guidelines on the the optimal ways of designing bigger web - system that carries out transactions like Placing Orders, Updating Bids etc.
    any ideal method ? references (books and web-links) would be appreciated.
    As you said, Factory is better, it gives each client its own independent track, thus no chances for
    overlaps and collisions...but has to maintain huge stack for whole objects.
    Even here, we become answerable while ordering is needed; for example
    Client #1 added Item #1 in cart, qyantity as 7 out of available 10.
    He spends little more time, on way of adding other materials as well.
    Meantime, client #2 added Item #1 in cart, qyantity as 9 out of available 10.
    Both will place the order, raising conflict.
    Do we need to build any offline mechanism to notify these clients to do it on any other way ?
    Is there any methodology that suggests or guides how to maintain this balance
    (if it adds couple of scenarios, it will be a wonderful references).
    Thanks much !!!

  • Per-request singleton

    I am coming from the .NET world and am relatively new to Java web apps. A construct I have found very useful in .NET is having a class that acts as a singleton to provide services to other classes on a per-request basis. In other words, for the purposes of that request the class is a singleton. I would use it, for example, to signal the beginning and end of a SQL transaction. .NET has the concept of "thread-static", which means that a member variable can be declared static on a per-thread (or per-request) basis. I cannot simply declare an variable "static" in Java because it would be available to all simultaneous requests, which would be an error. Is there a way of doing this in Java?
    Thanks,
    Kevin

    This is definitely the Java part of what I need. Thanks! Now, the remaining part is to figure out the - I assume javax part, which allows me to insert code that is executed at the beginning of a request and at the end. I assume there is some javax class that I need to extend, or an interface I must implement in order to get this. The ServletContextListener class allows me to hook into web app startup and shutdown, but not each request.
    Kevin

Maybe you are looking for

  • How do I change the default color (gray) that 'Edit - Find' uses?

    When I search for a key word in a PDF file viewed in Safari web page using Edit -> Find  It defaults to highlighting the text it finds in light gray which is very hard to see. I would like to change the highlight color to something much easier to see

  • Get Contents of TextEdit Document Only Copies Filename to Clipboard

    I'm using the following workflow but instead of the TextEdit contents getting copied to the clipboard, the filename gets copied instead. So the output looks like: /Users/username/Desktop/tns1.txt Is there a way to copy the contents to the clipboard?

  • Something is wrong with my preview in the column layout of the Open dialog

    I can't figure out why this is happening.  I try and resize the preview pane but can't seem to make it happen.  Ideas?

  • Deployment error in Visual Composer

    Hi, While deploying a model in SAP Newtweaver visual composer , I get the following error . Can anyone how to fix this error? Portal Request Failed: (WD deployment failed. Consult log file for details) Also, how do I access the log file? regards, sub

  • Function Group CJPN

    Hi Gurus,        I am using a WBS field for which I am extracting data from R/3.But I see that in the conversion routine CONVERSION_EXIT_ABPSP_OUTPUT , CONVERSION_EXIT_KONPR_OUTPUT this function module is missing.Can I know any SAP note regarding thi