2006 Jun 08 12:34 PM
Hi all,
I'd like to access the personal notes of a BOR object and read their content into an internal table. How can I determine the notes of an object and read their content? I didn't see any suitable methods in the classes such as CL_GOS_DOCUMENT_SERVICE. Thanks for any help!
Stefan
2006 Jun 11 1:22 PM
use the following code to get the personal note details of a object
ls_relopt-sign = 'I'.
ls_relopt-option = 'EQ'.
ls_relopt-low = 'PNOT'.
append ls_relopt to lt_relopt.
try.
call method cl_binary_relation=>read_links_of_binrels
exporting
is_object = ls_object
ip_logsys = lp_logsys
it_relation_options = lt_relopt
ip_role = 'GOSAPPLOBJ' "#EC NOTEXT
importing
et_links = lt_links
.
catch cx_obl_parameter_error .
catch cx_obl_internal_error .
catch cx_obl_model_error .
endtry.
Regards
Raja
Hi all,
I'd like to access the personal notes of a BOR object and read their content into an internal table. How can I determine the notes of an object and read their content? I didn't see any suitable methods in the classes such as CL_GOS_DOCUMENT_SERVICE. Thanks for any help!
Stefan
2006 Jun 09 4:05 PM
Function Module Read_text can be used to read notes of a text object.
CALL FUNCTION 'READ_TEXT'
EXPORTING OBJECT = SELECTIONS-TDOBJECT
NAME = SELECTIONS-TDNAME
ID = SELECTIONS-TDID
LANGUAGE = SELECTIONS-TDSPRAS
IMPORTING HEADER = THEAD
TABLES LINES = LINES
EXCEPTIONS OTHERS = 1.
You can find object, text name and id of personal notes by viewing "Menu->Header Info" of personal notes.
2006 Jun 11 1:22 PM
use the following code to get the personal note details of a object
ls_relopt-sign = 'I'.
ls_relopt-option = 'EQ'.
ls_relopt-low = 'PNOT'.
append ls_relopt to lt_relopt.
try.
call method cl_binary_relation=>read_links_of_binrels
exporting
is_object = ls_object
ip_logsys = lp_logsys
it_relation_options = lt_relopt
ip_role = 'GOSAPPLOBJ' "#EC NOTEXT
importing
et_links = lt_links
.
catch cx_obl_parameter_error .
catch cx_obl_internal_error .
catch cx_obl_model_error .
endtry.
Regards
Raja
2006 Jun 13 10:26 AM
It worked, thank you very much!
After method cl_binary_relation=>read_links_of_binrels, I called function module SO_OBJECT_READ.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |