Professional Documents
Culture Documents
Interview Questions
Interview Questions
Interview Questions
Static Method
Static methods are defined using the CLASS-METHODS statement. They
are called only once, when the program is started, irrespective to the class
instance, and don’t get reinitialized throughout the execution of the
program. They can access only static attributes and can trigger only static
events of the class. They can be directly accessed by the class name itself.
Syntax to call a static method:
CALL METHOD class_name => static_method(..).
It can access all attributes of a class. It can access only static attribute of a class.
////////////////////////////////////////////////////////////////
ASSOCIATIONS are kind of Joins to fetch data from multiple tables on Join Conditions but these are ‘JOINS
ON-DEMAND’ i.e. they will only be triggered when user would access the required data which needs the
Association of tables. For example, your CDS view has 4 Associations configured and user is fetching data for
only 2 tables, the ASSOICATION on other 2 tables will not be triggered and the system would return the
results quickly, so it enables really high turn-around time as compared to regular SQL JOINS.
Cardinality concept is not new and holds the same concept with CDS views as well. There are 4 types of
Cardinality possible based on the data and relationship in the tables joined;
0..1
0..n or 0..*
1..0
1..n or 1..*
/////////////////////////////////////////////////////////////////////