Interfaces and defining Generics

This could be a sophisticated question. At least it drives me crazy. ;)
We define the following generic class:
public class Generic2 <E extends TestClass & TestInterface> {
     public E getTheGenericType() {
          return null;
}So it is assured that E is is of type 'TestClass' AND from type 'TestInterface', right?
Now I could use Generic2 like this:
Generic2 myGen = new Generic2<TestDataClass>();
TestClass test =  myGen.getTheGenericType();That works fine! Also it should be possible to define:
TestInterface inter = myGen.getTheGenericType();But this line generates the compiler-error:
Type mismatch: cannot convert from TestClass to TestInterface
Can somebody please explain what's going wrong here?

The compiler is correct. When you use
Generic2 myGenthe type of the myGen will be raw type Generic2, but not a generic type (JLS 4.8). As declared in JLS
The type of a constructor (�8.8), instance method (�8.8, �9.4), or non-static field (�8.3) M of a raw type C that is not inherited from its superclasses or superinterfaces is the erasure of its type in the generic declaration corresponding to C. The type of a static member of a raw type C is the same as its type in the generic declaration corresponding to C.
And, from JLS 4.6
The erasure of a type variable (�4.4) is the erasure of its leftmost bound.
So, when method getTheGenericType is used in the context of raw type, it have return type "erasure of E", which is "leftmost bound", i.e. TestClass. And TestClass does not implements TestInterface, which leads to type mistmatch.
But when myGen is declared as instance of generic type (like Generic2<TestDataClass> or Generic2<?>), then all compiles fine (because return type of getTheGenericType is E (not TestClass, as was in the case of the row type), and E implements TestInterface, as declared in the E bound).
See the following code:
public class Test {
     static interface TestInterface {
     static class TestClass {
     static class Generic2 <E extends TestClass & TestInterface> {
          public E getTheGenericType() {
               return null;
     class TestDataClass extends TestClass implements TestInterface {
     public static void main(String [] args) {
          //this declaration lead to compilation error
          //Generic2 myGen = new Generic2<TestDataClass>();
          //and this declaration does not
          //Generic2<TestDataClass> myGen = new Generic2<TestDataClass>();
          //and this does not too
          Generic2<?> myGen = new Generic2<TestDataClass>();
          TestClass test = myGen.getTheGenericType();
          TestInterface inter = myGen.getTheGenericType();
}The first declaration (commented) gives type mistmatch, but both other compiles filne.
P.S. JLS is "Java Language Specification, 3rd edition"

Similar Messages

  • WM/PP interface and use of WM in manufacturing

    Gurus,
    Can someone please share the detailed config for WM/PP interface and the generic scenarios for the use of WM in manufacturing sites?
    Please provide building blocks and detailed configuration description
    I understand the use and high level use of WM in manufacturing but i need a detailed step by step config and te use of LP transactions in WM/PP and the usual RF transactions.
    A quick reply will be appreciated.
    Regards
    Kiran Yarlagadda

    HI Kiran
    The main master data for PP interface with Wm are
    1. Production supply area
    2. Control cycles.
    In the defination of production supply area with repect to plant we attach the WMstorage location from which back flushing should occur.
    Secndly the control cycle , in combination of  Plant, Materail and Production supply area attach the storage type  and Bin from which the materials need to be picked for back flushing
    Coming to configuration : Main thing is type of staging in combination of plant & production supply area
    and assignment of production scheduling profile to plant where u can define the about TR and time of batch creation like so.
    Coming to the flow
    The from production version  get the routing and in turn work centers
    To work centers we attach the production supply area and in turn  WM storage location n storage type .
    Please let me know if you need further details

  • Error in CLR: InvalidOperationException - The current type is an interface and cannot be constructed. Are you missing a type mapping?

    Hi, I'm trying to execute a .NET assembly's method from SQL Server 2012 Express, but I'm stuck with this error calling the sp:
    Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type ISymmetricCryptoProvider, key "TripleDESCryptoServiceProvider" ---> Microsoft.Practices.Unity.ResolutionFailedException:
    Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider", name = "TripleDESCryptoServiceProvider".
    Exception occurred while: while resolving.
    Exception is: InvalidOperationException - The current type, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider, is an interface and cannot be constructed. Are you missing a type mapping?
    At the time of the exception, the container was:
      Resolving Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider,TripleDESCryptoServiceProvider
     ---> System.InvalidOperationException: The current type, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider, is an interface and cannot be constructed. Are you missing a type mapping?
    System.InvalidOperationException:
       en Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForAttemptingToConstructInterface(IBuilderContext context)
       en BuildUp_Microsoft.Practices.EnterpriseLibrary.Security
    Microsoft.Practices.ServiceLocation.ActivationException:
       en Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
       en Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService](String key)
       en Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.GetSymmetricCryptoProvider(String symmetricInstance)
       en Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64)
       en ...
    Is there any limitation by design for Interface instantiation from CLR database?
    Any help I will appreciate, thanks a million!!

    Bob, thanks for your response.. Yes, the code works fine outside of SQLCLR. This is the class I'm trying to instantiate, I'm using it to envolve Cryptographer, an Enterprise Library 5.0 class actually, so I have no control to test it without referring the
    interface.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Practices.EnterpriseLibrary.Security.Cryptography;
    using System.Security.Cryptography;
    using Microsoft.SqlServer.Server;
    using System.Data.SqlTypes;
    namespace Cars.UtileriasGlobales.Helpers
        /// <summary>
        /// Clase que permite encriptar y desencriptar cadenas de textos utilizando
        /// TripleDESCryptoServiceProvider de Enterprise Library 5.0
        /// </summary>
        public static class Cryptography
            #region Metodos
            [SqlProcedure]
            public static void DesencriptarSQLServer(SqlString cadena, out SqlString cadenaDesencriptada)
                cadenaDesencriptada = !String.IsNullOrEmpty(cadena.ToString()) ? Cryptographer.DecryptSymmetric("TripleDESCryptoServiceProvider", cadena.ToString().Replace(" ", "+"))
    : String.Empty;
            #endregion
    I have collected all the dependent assemblies in one directory 'C:\migrate', so the create assembly finish ok. This is the script to create the assembly I'm using:
    sp_configure 'clr enable', 1
    GO
    RECONFIGURE
    GO
    ALTER DATABASE cars SET TRUSTWORTHY ON
    GO
    CREATE ASSEMBLY CryptographyEntLib5
    AUTHORIZATION dbo
    FROM 'C:\migrate\Cars.UtileriasGlobales.dll'
    WITH PERMISSION_SET = UNSAFE
    GO
    CREATE PROCEDURE usp_Desencriptar
    @cadena nvarchar(200),
    @cadenaDesencriptada nvarchar(MAX) OUTPUT
    AS EXTERNAL NAME CryptographyEntLib5.[Cars.UtileriasGlobales.Helpers.Cryptography].DesencriptarSQLServer
    GO
    DECLARE @msg nvarchar(MAX)
    EXEC usp_Desencriptar 'Kittu And Tannu',@msg output
    PRINT @msg

  • Soap sender adpater issue missing sender interface and namespace in the msg

    Hi Expert,
    I got a problem when try to using soap sender adapter.
    Here is the sceanrio:
    Http web service client call ---PI soap sender adapter -some routing data-business system inbound.
    Sytem information:
    SAP_ABA     700     0019     SAPKA70019     Cross-Application Component
    SAP_BASIS     700     0019     SAPKB70019     SAP Basis Component
    PI_BASIS     2005_1_700     0019     SAPKIPYJ7J     PI_BASIS 2005_1_700
    ST-PI     2008_1_700     0001     SAPKITLRD1     SAP Solution Tools Plug-In
    SAP_BW     700     0021     SAPKW70021     SAP NetWeaver BI 7.0
    ST-A/PI     01L_BCO700     0000          -     Servicetools for other App./Netweaver 04
    Here is my problem. I use soapui trigger a test msg to PI system. But in the sxmb_moni, only sender service is there.
    The sender interface and sender namespace is missing. And the msg has error called: :INTERFACE_REGISTRATION_ERROR.
    Which means I do not have a inbound interface to process the msg.
    But I suppose to redirect the msg to business system.
    Here is the configuration:
    reciever determination: soap sender service, soap outbound interface, soap interface namespace --> reciever business sytem.
    Interface ditermination: soap sender service, soap interface --> receiver interface, receiver namespace.
    Sender agreement: soap service, soap itnerface --- soap communication channel
    receiver agreement, soap service---> receiver sevice, receiver interface, reciever namespace  and reciever cummunication channel
    define of soap sender adapter:
    soap sernder, with use encoded header and use query string checked and qos as exactly once.
    Anyone has any idea here? Many thanks! And most strange thing is yesterday it works and today it failed.
    Please kindly help here.
    Thanks a lot,
    Leon

    Hi guys,
    thanks for the input.
    Hi Sven,
    I have input default interface and namespace.
    Hi sivasakthi,
    Regarding mistype, it may happen, I will do it again right away.
    And the URL is generated by the wsdl toolkit in the directory.
    I marked use encoded header and query string in the communication channel.
    I will generate the wsdl again and test it again.
    Regarding URL(endpoint of web service):
    http://hostname:50000/XISOAPAdapter/MessageServlet?channel=:AGSSAL_SOAP:AGSSAL_SOAP_CC&version=3.0&Sender.Service=AGSSAL_SOAP&Interface=urn:a1s_saplivelinkcontent.service.sap.com^MI_O_AS_DELIVERNOTIFY_SOAP
    Again thanks for you guys help.
    Best regards,
    Leon

  • Need information about interfaces and namespaces in actionscript 3.0

    Hi,
    I need information about actionscript interfaces and
    namespaces, I'm preparing for ACE for Flash CS3 and I need to learn
    about this subjects and I can not find resources or simple examples
    that make these subjects understandable.
    Anybody can help me!
    Thanks a lot.

    Interfaces (cont.)
    Perhaps the most useful feature of interfaces is that you not
    only can define the data type but also method signature of the
    class that implements this interface. In other words, interface can
    define and enforce what methods class MUST implement. This is very
    useful when classes are branching in packages and team of
    developers works on a large application among others.
    The general syntax for an Interface with method signatures is
    written the following way:
    package{
    public interface InterfaceName {
    // here we specify the methods that will heave to be
    implemented
    function method1 (var1:dataType,
    var2:datType,…):returnType;
    function method2 (var1:dataType,
    var2:datType,…):returnType;
    To the previous example:
    package{
    public interface IQualified {
    function method1 ():void;
    function method2 ():int;
    Let’s write a class that implements it.
    If I just write:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    public function ClassOne(){}
    I will get a compilation error that states that I did not
    implement required by the interface methods.
    Now let’s implement only one method:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    private function method1():void{
    return;
    public function ClassOne(){}
    I will get the error again because I implemented only one out
    of two required methods.
    Now let’s implement all of them:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    private function method1():void{
    return;
    private function method2():int{
    return 4;
    public function ClassOne(){}
    Now everything works OK.
    Now let’s screw with return datatypes. I attempt to
    return String instead of void in method1 in ClassOne:
    private function method1():String{
    return “blah”;
    I am getting an error again – Interface requires that
    the method1 returns void.
    Now let’s attempt to pass something into the method1:
    private function method1(obj:MovieClip):void{
    return;
    Oops! An error again. Interface specified that the function
    doesn’t accept any parameters.
    Now rewrite the interface:
    package{
    public interface IQualified {
    function method1 (obj:MovieClip):void;
    function method2 ():int;
    Now compiler stops complaining.
    But, if we revert the class back to:
    private function method1():void{
    return;
    compiler starts complaining again because we don’t pass
    any parameters into the function.
    The point is that interface is sort of a set of rules. In a
    simple language, if it is stated:
    public class ClassOne implements IQualified
    it says: “I, class ClassOne, pledge to abide by all the
    rules that IQualified has established and I will not function
    correctly if I fail to do so in any way. (IMPORTANT) I can do more,
    of course, but NOT LESS.”
    Of course the class that implements an interface can have
    more that number of methods the corresponding interface requires
    – but never less.
    MORE means that in addition to any number of functions it can
    implement as many interfaces as it is desired.
    For instance, I have three interfaces:
    package{
    public interface InterfaceOne {
    function method1 ():void;
    function method2 ():int;
    package{
    public interface InterfaceTwo {
    function method3 ():void;
    package{
    public interface InterfaceThree{
    function method4 ():void;
    If our class promises to implement all three interface it
    must have all four classes in it’s signature:
    package{
    public class ClassOne extends DisplayObject implements
    InterfaceOne, InterfaceTwi, InterfaceThree{
    private function method1():void{return;}
    private function method2():int{return 4;}
    private function method3():void{return;}
    private function method4():void{return;}
    public function ClassOne(){}
    Hope it helps.

  • SAP IDOC's, interfaces and BAPI's

    Hi i am new to SD, can anyone give me documentation or reading material for SAP IDOC's, interfaces and BAPI's .
    Help would be greatly appreciated.
    Thanking you

    Hi Reddy,
    Very general question, I don't think you will find the answer in one document.
    BAPIs are normal function modules, with predefined input and output structures to perform standard business transactions.
    IDOCs are standardised interface documents to transfer data.
    Once the IDOC is read, it almost always calls a BAPI to perform the business transaction.
    Therefore start with reading about BAPIs since you will definately have to master those when starting to work on interfaces.
    There are hundreds of BAPIs so best is to start with a specific process, example sales order create or material master create.
    Try transaction BAPI, this lists most of the BAPIs and contains excellent documentation.
    Thanks for your points,
    Filip

  • ENHANCED INTERFACE AND RECEIVER DETERMINATION

    1)what is the use of enhanced interface determination and enhanced receiver determination and in scenarios we will use them and in what conditions ,and what differentiates it from standard interface/reciever determination?

    1. <b>Standard receiver determination</b> to specify the receivers of the message (and optionally routing conditions) manually.You can specify receiver parties and receiver services. To specify the receiver in more detail, you have the following options:
    &#9679;     Select the receiver from the Integration Directory
    &#9679;     Specify a constant value for the receiver
    1.2You also have the option of specifying the conditions to be applied when forwarding a message to the receiver(s) in a receiver determination.
    Generally, a condition relates to the contents of a message; if a specified condition is fulfilled for a particular payload element (the corresponding element has a certain value, for example), then the message is forwarded to the specified receiver(s).
    <b>Enhanced receiver determination</b> to have a mapping program determine the receivers of the message dynamically at runtimeInstead of creating the receivers in the receiver determination manually, you assign a mapping to the receiver determination and this returns a list of receivers at runtime.
    A typical usage case is if you do not yet know the names of the receivers at configuration time. In this case, you can define a mapping program, for example, which reads a list of receivers from a table or from the payload of the message at runtime.
    2.<b>Standard Interface Determination</b> :You can specify to which inbound interface at the receiver the message is to be sent at runtime. You also have the option of specifying a mapping and (when multiple inbound interfaces are defined) a condition for each inbound interface.
    2.1 n an enhanced interface determination, you do not enter the inbound interfaces manually, but first select a multi-mapping. You get the inbound interfaces from the target interfaces of the multi-mapping. The inbound interfaces are determined at runtime during the mapping step.
    You typically use an enhanced interface determination if the source message has an element with occurrence 0 ... unbounded (for multiple items of a data record) and you want multiple messages (for the individual items) to be generated at runtime.
    for receiver determination try this link also
    http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
    Regards,
    Mandeep Virk
    *Reward if Helpful*

  • Interfaces and methods with complex object

    In all the examples I have, the methods of an interface use only basic java datatypes (int, Character, ..)
    I want to pass a Vector that represents a list of objects from one of my own classes to an interface method.
    class Myclass ...
    private String p1;
    private int p2;
    myInterfaceMethod(..., Vector list, ...)
    // list is a vector of Myclass objects
    How do I know about Myclass when implementing the interface and how do I access p1 and p2 ?

    You can use any kind of "complex" object in your interface methods, all of them are objects at last.
    The other question seems to be a misunderstanding of interface implementation. When u "implement" an interface in a class, all that JVM does is to check that you actualy have one method (with code inside its body) for each method you defined previously in the interface.
    Think of an interface as a contract signed by a class. It's forced to implement each method definied in you interface. So, as the method is defined inside the class, you can access any data member of the class without doing anything "special". Do u catch it?

  • BI4.1 html interface and calendar input

    Hi,
    i'm facing a strange issue with my BI4.1 SP2 Platform.
    I'm using the HTML webintelligence interface and i want to define a query with a condition on a date object
    - Source database is sqlserver
    - Driver used is OLE_DB
    When i activate the calendar object to register my input date, it generates a MM/DD/YYYY date format in the query panel but as a SQL it tries to convert it in DD/MM/YYYY format.
    If i select 26 of march 2014 i then get an error because the application tries to generate the date as 03 of month 26 2014...
    Actually the format proposed in the query panel via the calendar object differs from the format generated as SQL...
    I'm ok with the SQL part because i'm french and it respects me local settings.
    I'm not ok with the calendar interface because i would like it to propose me with date in french format, e.g. DD/MM/YYYY
    Do you know how i can influence the date format in the calendar input object?
    Thanks
    Xavier

    Hi,
    I hope that these links still can useful for you
    http://www.rgagnon.com/javadetails/java-0175.html
    http://www.htmlcodetutorial.com/applets/_APPLET_MAYSCRIPT.html

  • Interfaces and type checking

    this is a stupid question but if i implement an interface its constructor would assign the objects that have been used as its arguments to the instance variables these objects are the
    classes that implement that interface, the constructor knows nothing about these objects only that they sure to work because they implement that interface.
    does this bypass typechecking because the object passed to the interface have implemented that interface or am i way off.
    sorry if this is hard to understand but im a bit confused.

    I'm beyond a bit confused... I'm a lot confused.
    An interface just defines the "controls"... accelerate, brake, turn.
    A class implements that interface... com.ford.Truck implements std.trans.Drivable, as does com.gmh.Car (barely;-)... note also that the car and the truck are manufactured by independent (indeed competing) organisations, and that the Interface is defined by an imaginary international transport standards body.
    The interface allows different classes to be manipulated by their common "standard" interface... so if (motorway.isBlocked) {
      // there's a prang on the motorway, so stop everything (cars, trucks & bikes).
      for (Drivable vehicle : motorway.getTraffic()) {
        vehicle.brake(Drivable.MAXIMUM_BRAKING);
    }Hope that helps.
    Edited by: corlettk on Jan 21, 2008 1:43 PM

  • Interface and Inheritence Differences

    Hi, I'm new to java and have only a little experience with programming languages.
    I can't seem to figure out what the differences and uses are for Inherited classes and interfaces.
    I understand Interfaces set a list of methods and variables that must exist in implemented classes and that Super classes can define a default method.
    What i want to understand is why I would use an interface rather than just extending a Super class.
    Thanks.

    oneplatformtorulethemall wrote:
    What i want to understand is why I would use an interface rather than just extending a Super class.Two important reasons:
    * completely unrelated classes (from different class hierarchies) can implement the same interface and need not have the same super class
    * a class can implement more than one interface at once, while it can have only one super class
    I might suggest that you don't care too much about that right now. Real understanding of the "why" can only come after you've used it for a while. Trying to understand the exact reasoning of this decision while you haven't used it a lot is probably pretty hard.

  • Interface and adapter??

    could anyone tell me how to choose between using an interface and adapter for an event handler??

    > could anyone tell me how to choose between using an
    interface and adapter for an event handler??
    Example from the KeyAdapter API:
    "Extend this class to create a KeyEvent listener and override the methods for the events of interest. (If you implement the KeyListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.) "
    It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.
    Java� API Specifications
    Java� 1.5 JDK Javadocs

  • Help with interface and abstract

    Hi all
    what is the difference between an interface and an abstract class??

    Suppose if you want to implement all the methods we usually use the interface. if you define a method in the interface you must provide the implementation for this interface in the implementation class.
    In case of abstract, we can have both the abstract and non -abstract methods. Means abstract class can have the methods with the implementations defined in that class and abstract methods which needs to be implemented for the sub classes.

  • When to use interface and when Abstract Class?

    In a recent interview I was asked "When to use interface and when Abstract Class?" Explain with an example.
    Also in what situations a class should be made final(real time example)

    Interface is a pure contract with no implementation. Typically used to define a communication contract between two different sub-systems. Example EJB home interface. This also allows the design to change as long as the contract is met.
    Abstract class is when there exists a lot of common functionality already known and can be coded. However, a few unknowns exists (typically about data) for which abstract methods need to be defined and implemented by the sub class.
    Example: Consider a workflow engine. A great example for abstract class. The workflow process has lot of common code that is independent of the workflow type (vendor flow, contract flow, payment flow etc). However, certain decisions on the route to take will depend on value of data being submitted. So the base class will define a abstract Data getData() method and proceed assuming data will come. The implementing subclass will provide the actual logic for getting the data.
    Also see the "Template" design pattern.
    Note: To some extent the common code design drives the behavior of the abstract methods. So if the design changes then so "might" the behavior expected from the abstract methods.

  • Diffrence between a Interface and a abstract class?

    Hi OO ABAP Gurus
    Please clear below point to me.
    Diffrence between a Interface and a abstract class?
    Many thanks
    Sandeep Sharma..

    Hi
    Abstract classes
    Abstract classes are normally used as an incomplete blueprint for concrete (that is, non-abstract) subclasses, for example to define a uniform interface.
    Classes with at least one abstract method are themselves abstract.
    Static methods and constructors cannot be abstract.
    You can specify the class of the instance to be created explicitly: CREATE OBJECT <RefToAbstractClass> TYPE <NonAbstractSubclassName>.
    Abstarct classes themselves can’t be instantiated ( althrough their subclasses can)
    Reference to abstract classes can refer to instance of subclass
    Abstract (instance) methods are difined in the class , but not implemented
    They must be redefined in subclasses
    CLASS LC1 DEFINAITION ABSTARCT
    PUBLIC SECTION
    METHODS ESTIMATE ABSTARCT IMPORTING…
    ENDCLASS.
    Interfaces
    Interfaces only describe the external point of contact of a class (protocols), they do not contain any implementation.
    Interfaces are usually defined by a user. The user describes in the interface which services (technical and semantic) it needs in order to carry out a task.
    The user never actually knows the providers of these services, but communicates with them through the interface.
    In this way the user is protected from actual implementations and can work in the same way with different classes/objects, as long as they provide the services required. This is known as polymorphism with interfaces.
    Interfaces features
    INTERFACE I_COUNTER.
    METHODS: SET_COUNTER IMPORTING VALUE(SET_VALUE) TYPE I,           INCREMENT_COUNTER, ENDINTERFACE.
    CLASS C_COUNTER1 DEFINITION.   PUBLIC SECTION.
        INTERFACES I_COUNTER.
      PRIVATE SECTION.
        DATA COUNT TYPE I.
    ENDCLASS.
    CLASS C_COUNTER1 IMPLEMENTATION.
      METHOD I_COUNTER~SET_COUNTER.
        COUNT = SET_VALUE.
      ENDMETHOD.
      METHOD I_COUNTER~INCREMENT_COUNTER.
        ADD 1 TO COUNT.
      ENDMETHOD.
    ENDCLASS.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10535251&messageID=2902116
    Regards
    Kiran

Maybe you are looking for

  • Adobe Application Manager: Fehlercode U43M1D207

    Ich habe eine Testversion der Adobe Creative Cloud 6 auf einem Windows-7-System installiert. Es wurden alle Komponenten korrekt installiert. Auch die Updates auf die neuesten Versionen funktionierten. Bei 2 Komponenten gibt es jedoch Probleme, es kom

  • How to add hotkey(Ctrl+VK) to a button?

    Hi buddies, I've added a button to a panel, and used setMnemonic(KeyEvent.VK_R)to set a hotkey Alt+R for triggering the button event. However, the requirement is changed, now, I need to use 'Ctrl+R' as the hotkey for the button. Will you please give

  • Big bug in NW-PI-731, JDBC-adapter losing data

    Hi, we recognized a big bug in NW-PI-731 SPS07, processing data with JDBC_xxxx_SENDER, sometimes it occurs, that for example, from 13974 documents should be processed, but only a part of 13137 documents are processed successfully, but 837 documents a

  • Sap installment payment without percent

    Dear all I understand the setting of installment payment with percentage. But now our client want to determine the AR amount for each term manually, means they want to input amount for each term, not be divided by SAP automaticlly by fixed percentage

  • Incomplete Messages in Inbox

    I keep receiving emails which have no message as displayed in the inbox. If I click on "Forward", the entire message appears. This happens about 10 percent of the time. Not a big problem, but mystifying. Header information is complete - just no messa