custom activex control in sap gui
TRANSCRIPT
-
7/25/2019 Custom ActiveX Control in SAP GUI
1/17
Custom ActiveXControl in SAP GUI
A STEP BY STEP GUIDE
DR. KEREM KOSEOGU
!"#$
-
7/25/2019 Custom ActiveX Control in SAP GUI
2/17
Table of Contents
ActiveX Development in .NET.....................................................3
ActiveX Registration.................................................................7ActiveX Wrapper in SAP............................................................
Application in SAP...................................................................!!
%tt&'(()erem.)oseo*lu.in+o
!
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
3/17
ActiveX Develo&ment in .,ET
Cre-te ne cl-ss li/r-r0 &ro1ect.
O&en Assem/l0In+o.cs -n2 m-)e sure t%-t t%e -ssem/l0 is Com3isi/le.
Ri*%t clic) t%e &ro1ect4 select 5Pro&erties6. On t%e Buil2 t-/4 ensure t%-t5Re*ister +or COM intero&6 is selecte2.
%tt&'(()erem.)oseo*lu.in+o
7
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
4/17
Ri*%t clic) t%e &ro1ect4 select A22 User Control -n2 *ive it - me-nin*+uln-me.
%tt&'(()erem.)oseo*lu.in+o
8
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
5/17
Pre&-re t%e GUI o+ 0our ActiveX control. 9ere is - sim&le GUI cont-inin* -
te:t/o:'
;it%in t%e cl-ss
-
7/25/2019 Custom ActiveX Control in SAP GUI
6/17
De ?orms &ro1ect.
%tt&'(()erem.)oseo*lu.in+o
@
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
7/17
Buil2 t%e &ro1ect in 5Rele-se6 mo2e.
ActiveX Re*istr-tion
Once 0ou /uil2 t%e &ro1ect4 0ou ill %-ve - .D
-
7/25/2019 Custom ActiveX Control in SAP GUI
8/17
C%-nces -re4 0our SAPGUI mi*%t /e -n 7!/it -&&lic-tion. In t%-t c-se4 0ounee2 to &ut t%e D
-
7/25/2019 Custom ActiveX Control in SAP GUI
9/17
Ensure t%-t t%e cl-ss is in%erite2 +rom CGUICO,TRO.
In t%is cl-ss4 0ou nee2 to rite - r-&&er ABAP met%o2 +or e-c% .,ETmet%o2 &ro&ert0 in 0our ActiveX control.
9ere -re t%e source co2e o+ t%ose met%o2s4 %ic% ill *ive 0ou -n i2e-
-/out -ccessin* &ro&erties met%o2s.
%tt&'(()erem.)oseo*lu.in+o
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
10/17
You -lso nee2 - constructor4 %ic% ill /-sic-ll0 cont-in t%e n-me o+ 0ourcontrol %ic% -s *iven in .,ET. As t%e met%o2 si*n-ture4 0ou c-n t-)eover %-tever -s &rovi2e2 /0 t%e su&ercl-ss.
%tt&'(()erem.)oseo*lu.in+o
#"
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
11/17
A&&lic-tion in SAP
In t%is
-
7/25/2019 Custom ActiveX Control in SAP GUI
12/17
9ere is t%e minimum co2e re=uire2 to run t%e ActiveX control'
%tt&'(()erem.)oseo*lu.in+o
#!
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
13/17
An2 voil-L %ere is t%e result'
%tt&'(()erem.)oseo*lu.in+o
#7
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
14/17
?or some inter-ction4 0ou c-n -22 - user comm-n2 routine'
,o4 t%e /uttons or) too'
%tt&'(()erem.)oseo*lu.in+o
#8
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
15/17
%tt&'(()erem.)oseo*lu.in+o
#$
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
16/17
%tt&'(()erem.)oseo*lu.in+o
#@
http://kerem.koseoglu.info/http://kerem.koseoglu.info/ -
7/25/2019 Custom ActiveX Control in SAP GUI
17/17
%tt&'(()erem )oseo*lu in+o
#F
http://kerem.koseoglu.info/http://kerem.koseoglu.info/