Skip to Content
author's profile photo Former Member
Former Member

Reading personal notes from generic object service

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 11, 2006 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2006 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.