<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display note using CL_GOS_DOCUMENT_SERVICE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902988#M376738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've recently written the following demo program, which may be of some help to you.&lt;/P&gt;&lt;P&gt;My default values are for a particular service notification that I was testing with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YJNM_DISPLAY_GOS_NOTES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt; p_botype like borident-objtype default 'BUS2080', " e.g. 'BUS2012'&lt;/P&gt;&lt;P&gt; p_bo_id  like borident-objkey  default '000200000591'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  is_object  type sibflporb,&lt;/P&gt;&lt;P&gt;  et_links   type obl_t_link,&lt;/P&gt;&lt;P&gt;  et_links_s type obl_s_link ,&lt;/P&gt;&lt;P&gt;  icx_obl_parameter_error type ref to cx_obl_parameter_error,&lt;/P&gt;&lt;P&gt;  icx_obl_internal_error  type ref to cx_obl_internal_error,&lt;/P&gt;&lt;P&gt;  icx_obl_model_error     type ref to cx_obl_model_error,&lt;/P&gt;&lt;P&gt;  header_row  type solisti1,&lt;/P&gt;&lt;P&gt;  content_row type solisti1,&lt;/P&gt;&lt;P&gt;  object_header  like table of header_row,&lt;/P&gt;&lt;P&gt;  object_content like table of content_row,&lt;/P&gt;&lt;P&gt;  document_data type sofolenti1,&lt;/P&gt;&lt;P&gt;  subline  like content_row,&lt;/P&gt;&lt;P&gt;  subline_fragment like subline-line,&lt;/P&gt;&lt;P&gt;  subline_temp like subline,&lt;/P&gt;&lt;P&gt;  sublines like table of subline,&lt;/P&gt;&lt;P&gt;  all_sublines like table of subline,&lt;/P&gt;&lt;P&gt;  document_id type sofOlenti1-doc_id,&lt;/P&gt;&lt;P&gt;  exception_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;find the links to where the notes are stored&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  is_object-instid = p_bo_id.&lt;/P&gt;&lt;P&gt;  is_object-typeid = p_botype.&lt;/P&gt;&lt;P&gt;  is_object-catid  = 'BO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try.&lt;/P&gt;&lt;P&gt;    call method cl_binary_relation=&amp;gt;read_links_of_binrel&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        is_object    = is_object&lt;/P&gt;&lt;P&gt;        ip_relation  = 'NOTE'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        et_links     = et_links.&lt;/P&gt;&lt;P&gt;    catch cx_obl_parameter_error into icx_obl_parameter_error.&lt;/P&gt;&lt;P&gt;      exception_string = icx_obl_parameter_error-&amp;gt;get_longtext( ).&lt;/P&gt;&lt;P&gt;    catch cx_obl_internal_error into icx_obl_internal_error  .&lt;/P&gt;&lt;P&gt;      exception_string = icx_obl_internal_error-&amp;gt;get_longtext( ).&lt;/P&gt;&lt;P&gt;    catch cx_obl_model_error into icx_obl_model_error.&lt;/P&gt;&lt;P&gt;     exception_string = icx_obl_model_error-&amp;gt;get_longtext( ).&lt;/P&gt;&lt;P&gt;    endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use the links to where the notes are stored&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort et_links by utctime.&lt;/P&gt;&lt;P&gt;  loop at et_links into et_links_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the data for a note&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    refresh all_sublines.&lt;/P&gt;&lt;P&gt;    document_id = et_links_s-instid_b .&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SO_DOCUMENT_READ_API1'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DOCUMENT_ID                      = document_id&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        DOCUMENT_DATA                    = document_data&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        OBJECT_HEADER                    = object_header&lt;/P&gt;&lt;P&gt;        OBJECT_CONTENT                   = object_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display a header for the note&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  format reset.&lt;/P&gt;&lt;P&gt;    skip.&lt;/P&gt;&lt;P&gt;    format color col_heading.&lt;/P&gt;&lt;P&gt;    write: / document_data-obj_descr,&lt;/P&gt;&lt;P&gt;           / 'Created by:',&lt;/P&gt;&lt;P&gt;             document_data-creat_name,&lt;/P&gt;&lt;P&gt;             document_data-creat_fnam,&lt;/P&gt;&lt;P&gt;             'Last changed:',&lt;/P&gt;&lt;P&gt;             document_data-chang_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;interpret and display the note contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    format reset.&lt;/P&gt;&lt;P&gt;    clear subline_fragment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EOL (end of line) in the table object_content has nothing to do&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with EOL for the note.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The table object_content is just a stream of characters - including&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;embedded CRLFs (carriage return &amp;amp; line feed) - that happens to be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;255-character rows.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at object_content into content_row.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;split content row at embedded CRLFs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      split content_row-line&lt;/P&gt;&lt;P&gt;        at cl_abap_char_utilities=&amp;gt;cr_lf into table sublines.&lt;/P&gt;&lt;P&gt;      loop at sublines into subline.&lt;/P&gt;&lt;P&gt;        read table sublines into subline_temp index sy-tabix.&lt;/P&gt;&lt;P&gt;        at first.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;subline_fragment from end of previous content_row needs to be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;stuck on to the first subline of this content_row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          concatenate subline_fragment subline_temp-line&lt;/P&gt;&lt;P&gt;            into subline_temp-line.&lt;/P&gt;&lt;P&gt;          endat.&lt;/P&gt;&lt;P&gt;        at last.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;final subline may not be a complete line of the note -&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so save it to use with beginning of next content_row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          subline_fragment = subline_temp-line.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;          endat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if we reach here, subline_temp will be a complete note-line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        append subline_temp to all_sublines.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    subline-line = subline_fragment.&lt;/P&gt;&lt;P&gt;    append subline to all_sublines.&lt;/P&gt;&lt;P&gt;    loop at all_sublines into subline.&lt;/P&gt;&lt;P&gt;        write: / subline-line.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2007 15:48:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-02T15:48:20Z</dc:date>
    <item>
      <title>Display note using CL_GOS_DOCUMENT_SERVICE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902987#M376737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to read notes captured using method DISPLAY_NOTE in class CL_GOS_DOCUMENT_SERVICE. I'm not sure what are the correct contents parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS_OBJECT : OBJKEY = ?&lt;/P&gt;&lt;P&gt;                    OBJTYPE = ?&lt;/P&gt;&lt;P&gt;                    LOGSYS = ?&lt;/P&gt;&lt;P&gt;IP_NOTE = ?&lt;/P&gt;&lt;P&gt;IP_DISP_HTML   = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the values in table SRGBTBREL, but that gives me a short dump: "Short text of error message:                                  &lt;/P&gt;&lt;P&gt;Relationship NOTE Can No Longer Be Used with this Interface".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 08:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902987#M376737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Display note using CL_GOS_DOCUMENT_SERVICE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902988#M376738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've recently written the following demo program, which may be of some help to you.&lt;/P&gt;&lt;P&gt;My default values are for a particular service notification that I was testing with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YJNM_DISPLAY_GOS_NOTES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt; p_botype like borident-objtype default 'BUS2080', " e.g. 'BUS2012'&lt;/P&gt;&lt;P&gt; p_bo_id  like borident-objkey  default '000200000591'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  is_object  type sibflporb,&lt;/P&gt;&lt;P&gt;  et_links   type obl_t_link,&lt;/P&gt;&lt;P&gt;  et_links_s type obl_s_link ,&lt;/P&gt;&lt;P&gt;  icx_obl_parameter_error type ref to cx_obl_parameter_error,&lt;/P&gt;&lt;P&gt;  icx_obl_internal_error  type ref to cx_obl_internal_error,&lt;/P&gt;&lt;P&gt;  icx_obl_model_error     type ref to cx_obl_model_error,&lt;/P&gt;&lt;P&gt;  header_row  type solisti1,&lt;/P&gt;&lt;P&gt;  content_row type solisti1,&lt;/P&gt;&lt;P&gt;  object_header  like table of header_row,&lt;/P&gt;&lt;P&gt;  object_content like table of content_row,&lt;/P&gt;&lt;P&gt;  document_data type sofolenti1,&lt;/P&gt;&lt;P&gt;  subline  like content_row,&lt;/P&gt;&lt;P&gt;  subline_fragment like subline-line,&lt;/P&gt;&lt;P&gt;  subline_temp like subline,&lt;/P&gt;&lt;P&gt;  sublines like table of subline,&lt;/P&gt;&lt;P&gt;  all_sublines like table of subline,&lt;/P&gt;&lt;P&gt;  document_id type sofOlenti1-doc_id,&lt;/P&gt;&lt;P&gt;  exception_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;find the links to where the notes are stored&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  is_object-instid = p_bo_id.&lt;/P&gt;&lt;P&gt;  is_object-typeid = p_botype.&lt;/P&gt;&lt;P&gt;  is_object-catid  = 'BO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try.&lt;/P&gt;&lt;P&gt;    call method cl_binary_relation=&amp;gt;read_links_of_binrel&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        is_object    = is_object&lt;/P&gt;&lt;P&gt;        ip_relation  = 'NOTE'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        et_links     = et_links.&lt;/P&gt;&lt;P&gt;    catch cx_obl_parameter_error into icx_obl_parameter_error.&lt;/P&gt;&lt;P&gt;      exception_string = icx_obl_parameter_error-&amp;gt;get_longtext( ).&lt;/P&gt;&lt;P&gt;    catch cx_obl_internal_error into icx_obl_internal_error  .&lt;/P&gt;&lt;P&gt;      exception_string = icx_obl_internal_error-&amp;gt;get_longtext( ).&lt;/P&gt;&lt;P&gt;    catch cx_obl_model_error into icx_obl_model_error.&lt;/P&gt;&lt;P&gt;     exception_string = icx_obl_model_error-&amp;gt;get_longtext( ).&lt;/P&gt;&lt;P&gt;    endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use the links to where the notes are stored&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort et_links by utctime.&lt;/P&gt;&lt;P&gt;  loop at et_links into et_links_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the data for a note&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    refresh all_sublines.&lt;/P&gt;&lt;P&gt;    document_id = et_links_s-instid_b .&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SO_DOCUMENT_READ_API1'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DOCUMENT_ID                      = document_id&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        DOCUMENT_DATA                    = document_data&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        OBJECT_HEADER                    = object_header&lt;/P&gt;&lt;P&gt;        OBJECT_CONTENT                   = object_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display a header for the note&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  format reset.&lt;/P&gt;&lt;P&gt;    skip.&lt;/P&gt;&lt;P&gt;    format color col_heading.&lt;/P&gt;&lt;P&gt;    write: / document_data-obj_descr,&lt;/P&gt;&lt;P&gt;           / 'Created by:',&lt;/P&gt;&lt;P&gt;             document_data-creat_name,&lt;/P&gt;&lt;P&gt;             document_data-creat_fnam,&lt;/P&gt;&lt;P&gt;             'Last changed:',&lt;/P&gt;&lt;P&gt;             document_data-chang_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;interpret and display the note contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    format reset.&lt;/P&gt;&lt;P&gt;    clear subline_fragment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EOL (end of line) in the table object_content has nothing to do&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with EOL for the note.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The table object_content is just a stream of characters - including&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;embedded CRLFs (carriage return &amp;amp; line feed) - that happens to be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;255-character rows.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at object_content into content_row.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;split content row at embedded CRLFs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      split content_row-line&lt;/P&gt;&lt;P&gt;        at cl_abap_char_utilities=&amp;gt;cr_lf into table sublines.&lt;/P&gt;&lt;P&gt;      loop at sublines into subline.&lt;/P&gt;&lt;P&gt;        read table sublines into subline_temp index sy-tabix.&lt;/P&gt;&lt;P&gt;        at first.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;subline_fragment from end of previous content_row needs to be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;stuck on to the first subline of this content_row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          concatenate subline_fragment subline_temp-line&lt;/P&gt;&lt;P&gt;            into subline_temp-line.&lt;/P&gt;&lt;P&gt;          endat.&lt;/P&gt;&lt;P&gt;        at last.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;final subline may not be a complete line of the note -&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so save it to use with beginning of next content_row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          subline_fragment = subline_temp-line.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;          endat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if we reach here, subline_temp will be a complete note-line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        append subline_temp to all_sublines.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    subline-line = subline_fragment.&lt;/P&gt;&lt;P&gt;    append subline to all_sublines.&lt;/P&gt;&lt;P&gt;    loop at all_sublines into subline.&lt;/P&gt;&lt;P&gt;        write: / subline-line.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 15:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902988#M376738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T15:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Display note using CL_GOS_DOCUMENT_SERVICE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902989#M376739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether while selecting from srgbtbrel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  i_objectd-objtype = 'YNOTE'.    &amp;lt;&amp;lt; GOS object name
  i_objectd-logsys  = 'BO'.
  i_objectd-objkey  = inumber.    &amp;lt;&amp;lt; document number 

  if not i_objectd-objkey is initial.
    select * from srgbtbrel                " Get GOS Link
             into table i_srgbtbrel
             where instid_a eq i_objectd-objkey
               and typeid_a eq i_objectd-objtype
               and catid_a eq i_objectd-logsys
               and reltype eq 'NOTE'.   &amp;lt;&amp;lt; relationship type will be NOTE    
    if sy-subrc eq 0.
      clear : i_objectd-logsys.
      create object i_attsrv.
      loop at i_srgbtbrel.
        i_borident-objkey =  i_srgbtbrel-instid_b.
        call method i_attsrv-&amp;gt;display_note
          exporting
            is_object     = i_objectd
            ip_note        = i_borident-objkey
            ip_disp_html = ' '.
      endloop.
    endif.
  endif. .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 16:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902989#M376739</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-02T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Display note using CL_GOS_DOCUMENT_SERVICE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902990#M376740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your helpful input. It helped solve my problem &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-note-using-cl-gos-document-service/m-p/1902990#M376740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T14:59:40Z</dc:date>
    </item>
  </channel>
</rss>

