Code: Alles auswählen.
DATA: application_handle LIKE obj_record,
selection_handle TYPE obj_record,
fields_handle LIKE obj_record.
" Handle des aktiven Dokuments
CALL METHOD document_proxy_ex->get_document_handle
EXPORTING
no_flush = 'X'
IMPORTING
handle = document_handle
retcode = retcode.
" Handle der Applikation
GET PROPERTY OF document_handle-obj 'Application' = application_handle.
CHECK sy-subrc = 0.
" Handle von "Selection"
GET PROPERTY OF application_handle 'Selection' = selection_handle.
CHECK sy-subrc = 0.
GET PROPERTY OF selection_handle 'Fields' = fields_handle.
CHECK sy-subrc = 0.
CALL METHOD OF selection_handle 'TypeText'
EXPORTING
#1 = 'BIN DA! '.
CALL METHOD OF selection_handle 'InsertBreak'
Exporting
#1 = 6.
Code: Alles auswählen.
CALL METHOD OF fields_handle 'Add'
EXPORTING
#1 = ???.
" #2 = 40.
" #3 = 'test'.
Code: Alles auswählen.
GET PROPERTY OF handle_selection 'Range' = lo_range.