Case Study Global Class
Case Study Global Class
Business Requirement:
To create a global class and display the customer details using global class.
To have a very simple scenario on this, Lets enter customer
Solution:
Go to se24 Tcode
Author: Nageswar
Page 1
02/tt/jjjj
Press Save button .Then we can view the scree like this
Author: Nageswar
Page 2
02/tt/jjjj
Author: Nageswar
Page 3
02/tt/jjjj
Author: Nageswar
Page 4
02/tt/jjjj
Go to methods tab and double click on the method GET_DATA and provide the bellow logic.
method GET_DATA .
SELECT KUNNR
LAND1
NAME1
ORT01
FROM KNA1 INTO TABLE IT_KNA1
WHERE KUNNR BETWEEN S_KUNNR_LOW AND S_KUNNR_HIGH.
endmethod.
Author: Nageswar
Page 5
02/tt/jjjj
Author: Nageswar
Page 6
02/tt/jjjj
Author: Nageswar
Page 7
02/tt/jjjj
Author: Nageswar
Page 8
02/tt/jjjj
Author: Nageswar
Page 9
02/tt/jjjj
Author: Nageswar
Page 10
02/tt/jjjj
Execute it.
Output:
Author: Nageswar
Page 11
02/tt/jjjj