To Create a Custom Text Editor we will be using below Function Module: 'TERM_CONTROL_EDIT'.
Just copy paste below code in code editor and then Save, Check and Activate.
DATA: BEGIN OF textlines OCCURS 0,
text(132) TYPE c,
END OF textlines.
*--FM for custom text editor
CALL FUNCTION 'TERM_CONTROL_EDIT'
EXPORTING
titel = 'Demo for Custom Text Editor' "title
TABLES
textlines = textlines[]
EXCEPTIONS
user_cancelled = 1
OTHERS = 2.
Save check and activate your code and press F8.
To display title for your custom text editor pass text to Exporting parameter titel.
Whatever you are going to write in text editor will be saved in internal table textlines[].
Just copy paste below code in code editor and then Save, Check and Activate.
DATA: BEGIN OF textlines OCCURS 0,
text(132) TYPE c,
END OF textlines.
*--FM for custom text editor
CALL FUNCTION 'TERM_CONTROL_EDIT'
EXPORTING
titel = 'Demo for Custom Text Editor' "title
TABLES
textlines = textlines[]
EXCEPTIONS
user_cancelled = 1
OTHERS = 2.
Save check and activate your code and press F8.
To display title for your custom text editor pass text to Exporting parameter titel.
Whatever you are going to write in text editor will be saved in internal table textlines[].
No comments:
Post a Comment