Bu yazımda text editor nasıl yapılır konusundan bahsetmek istiyorum.
( E : In this article, I would like to talk about how the text editor is made. )
Text editor ile ilgili demo programın kodunu Github hesabımda paylaştım.
( E : I shared the code of the demo program for the text editor on my Github account. )
ZDEV_R_TEXT_EDITOR programından kodlara erişebilirsiniz.
( E : You can access the codes from the ZDEV_R_TEXT_EDITOR program. )
🔹 Öncelikle text editor için bir ekran oluşturmamız gerekmektedir.
( E : First we need to create a screen for the text editor. )
🔹 Ardından ekranda "TEXTEDITOR"
adında bir custom control oluşturalım.
( E : Then let's create a custom control called "TEXTEDITOR" on the screen. )
🔹"GET" ve "SET" isimli iki buton oluşturalım. GET butonuna tıklandığında get_text_as_r3table metodu ile text editore yazılan metni bir internal table içinde geri döndürme işlemini yapacağız. SET butonuna tıklandığında set_text_as_r3table metodu ile internal table'ı text editore gönderme işlemini yapacağız.
( E : Let's create two buttons named "GET" and "SET". When the GET button is clicked, we will return the typed text in an internal table with the get_text_as_r3table method. When the SET button is clicked, we will send the internal table to the text editor with the set_text_as_r3table method. )
Demo programa ait ekran görüntüsü aşağıdaki gibidir.
( E : The screenshot of the demo program is as follows. )
Teşekkürler. 😊
Thank you. 😊
Hilal KARAGÖZLÜ
SAP ABAP Consultant
Yorumlar
Yorum Gönder