You are on page 1of 3

Custom Container: Use the SAP Custom Container to build a control into an area on a screen or

subscreen. You define the area occupied by the control in the Screen Painter.

Use the SAP Docking Container to attach one or more areas to a screen . You can attach an area
to any or all of the four edges of the screen (top, bottom, left, or right). The screen is made
smaller to accommodate the docking container. You can detach the docking container from the
screen (floating) and reattach it.

Docking container :

The behavior of the areas in the container is determined by the sequence in which they are
initialized. Docking Containers are attached to the screen from the inside out. This means that
when you create a second container, it is attached to the edge of the screen, and the container that
was already there is pushed outwards. From a purely technical point of view, you can attach any
number of docking containers to a screen. However, remember that using too many can make
your application confusing for the user.

CLASS LCL_SERVICE DEFINITION.


PUBLIC SECTION.
DATA NUMBER TYPE I VALUE 100.
METHODS: SET_NUMBER.
ENDCLASS.

CLASS LCL_SERVICE IMPLEMENTATION.


METHOD SET_NUMBER.
* So if the class and method contains the variable with the same name the
n priority is given to the local one.
DATA NUMBER TYPE I VALUE 200.
WRITE:'VALUE=',NUMBER.
* To access the class variable in the method which already contains a loc
al variable with the same
* name ME keyword is used which always points to the Current calling Objec
t of the class.
WRITE: 'VALUE = ',ME->NUMBER.
ENDMETHOD.

NOTE1.

Create a program and define the constructor in both the super and sub class. Constructor is always
executed form the super class to the Sub class in OO concept. So if the object of the Sub class is
created, then constructor of the sub class is called first and within this sub class constructor method
using the SUPER keyword the super class constructor should be called other wise we ll receive a
compile time error. So mostly SUPER keyword is used in Inheritance concept where we have same
method in both the SUPER & SUB class.
NOTE2.

ok_code acts just as a temporary variable that stores the value of sy-ucomm.

When user interacts with the screen elements, the function code that you have assigned is filled
in the sy-ucomm field which is turn gets reflected in OK_CODE.

In your ABAP programs, you should work with the OK_CODE field instead of SY-UCOMM.
There are two reasons for this: Firstly, the ABAP program has full control over fields declared
within it, and secondly, you should never change the value of an ABAP system field. However,
you should also always initialize the OK_CODE field in an ABAP program for the following
reason:

In the same way that the OK_CODE field in the ABAP program and the system field SY-
UCOMM receive the contents of the corresponding screen fields in the PAI event, their contents
are also assigned to the OK_CODE screen field and system field SYST-UCOMM in the PBO
event. Therefore, you must clear the OK_CODE field in the ABAP program to ensure that the
function code of a screen is not already filled in the PBO event with an unwanted value. This is
particularly important when the next PAI event can be triggered with an empty function code
(for example, using ENTER). Empty function codes do not affect SY-UCOMM or the
OK_CODE field, and consequently, the old field contents are transported.

What are the different types of Variables in HANA?


A Single Value
B Interval
C Range
All of the above
Question 6 Explanation:
The following types of Variables are supported: Single Value: Use this to apply a filter to a
Single Value. Interval: Use this where you want the user to specify a set start and end to a
selected Interval. Range: Use this when you want the end user to be able to use operators such as
“Greater Than” or “Less Than”.

Select option in alv ida

Parameter in alv ida

Fieldcatalog in alv ida

Sub total in alv ida

Create tcode for alv ida


Created report for product detail using ALV with IDA on SAP HANA using method CREATE of class
CL_SALV_GUI_TABLE_IDA. Data is extracted from table SNWD_PD.

You might also like