<?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: Get attachment list items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801993#M1311863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GTREN thanks for this program but it dump with this message :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relationship ATTA Can No Longer Be Used with this Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A module was called to read object relationships. The relationship types transferred to the interface can only be accessed in connection with CL_BINARY_RELATION class, because the model datea has been converted to a new relationship service. A conversion of the read calls is also part of this conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2009 12:16:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-26T12:16:31Z</dc:date>
    <item>
      <title>Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801988#M1311858</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;in transaction ME21N (or ME22N &amp;amp; ME23N), i created some notes with Generic Object Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in ABAP i would like to get back items of this list. Can you send me an ABAP example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 09:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801988#M1311858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T09:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801989#M1311859</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;You can use fm READ_TEXT as per my yesterday's post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you face any problem using READ_TEXT? Let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems your problem is not resolved as I could not see your today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil Salekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 09:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801989#M1311859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801990#M1311860</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;absolutely my problem is not resolved. FM READ_TEXT is not use for note result from GOS. Do you know GOS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 09:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801990#M1311860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801991#M1311861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use read_text FM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
*     CLIENT                        = SY-MANDT
      id                            = id
      language                      = language
      name                          = name
      object                        = object
*     ARCHIVE_HANDLE                = 0
*     LOCAL_CAT                     = ' '
*   IMPORTING
*     HEADER                        = HEADER
    TABLES
      lines                         = lines
*   EXCEPTIONS
*     ID                            = 1
*     LANGUAGE                      = 2
*     NAME                          = 3
*     NOT_FOUND                     = 4
*     OBJECT                        = 5
*     REFERENCE_CHECK               = 6
*     WRONG_ACCESS_TO_ARCHIVE       = 7
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for id,language,name,object  give the textname in t-code so10 and click on display and there &lt;/P&gt;&lt;P&gt;goto-&amp;gt;header to get information about id,language,name,object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks &amp;amp; Reagrds,&lt;/P&gt;&lt;P&gt;Sateesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 10:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801991#M1311861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T10:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801992#M1311862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like following&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS P_EBELN LIKE EKKO-EBELN.
DATA : GS_OBJECT   TYPE          SIBFLPORB,
       GT_LINKS    TYPE TABLE OF OBL_S_LINK,
       GS_LINKS    TYPE          OBL_S_LINK,
       GS_FOLDERID TYPE          SOODK,
       GS_OBJECTID TYPE          SOODK,
       GS_NOTE_HD  TYPE          SOOD2,
       GT_NOTE_LN  TYPE TABLE OF SOLI WITH HEADER LINE.
GS_OBJECT-INSTID = P_EBELN.
GS_OBJECT-TYPEID = 'BUS2012'.
GS_OBJECT-CATID  = 'BO'.
TRY.
    CALL METHOD CL_BINARY_RELATION=&amp;gt;READ_LINKS_OF_BINREL
      EXPORTING
        IS_OBJECT    = GS_OBJECT
        IP_RELATION  = 'NOTE'
      IMPORTING
        ET_LINKS     = GT_LINKS
*      ET_ROLES     =
        .
  CATCH CX_OBL_PARAMETER_ERROR .
  CATCH CX_OBL_INTERNAL_ERROR .
  CATCH CX_OBL_MODEL_ERROR .
ENDTRY.
LOOP AT GT_LINKS INTO GS_LINKS.
  GS_FOLDERID = GS_LINKS-INSTID_B+00(17).
  GS_OBJECTID = GS_LINKS-INSTID_B+17(17).
  CALL FUNCTION 'SO_OBJECT_READ'
    EXPORTING
*   FILTER                           =
      FOLDER_ID                        = GS_FOLDERID
*   FORWARDER                        =
      OBJECT_ID                        = GS_OBJECTID
*   OWNER                            =
*   F_MAILER                         = ' '
 IMPORTING
*   OBJECT_FL_DISPLAY                =
    OBJECT_HD_DISPLAY                = GS_NOTE_HD
*   OBJECT_RC_DISPLAY                =
 TABLES
    OBJCONT                          = GT_NOTE_LN[]
*   OBJHEAD                          =
*   OBJPARA                          =
*   OBJPARB                          =
 EXCEPTIONS
   ACTIVE_USER_NOT_EXIST            = 1
   COMMUNICATION_FAILURE            = 2
   COMPONENT_NOT_AVAILABLE          = 3
   FOLDER_NOT_EXIST                 = 4
   FOLDER_NO_AUTHORIZATION          = 5
   OBJECT_NOT_EXIST                 = 6
   OBJECT_NO_AUTHORIZATION          = 7
   OPERATION_NO_AUTHORIZATION       = 8
   OWNER_NOT_EXIST                  = 9
   PARAMETER_ERROR                  = 10
   SUBSTITUTE_NOT_ACTIVE            = 11
   SUBSTITUTE_NOT_DEFINED           = 12
   SYSTEM_FAILURE                   = 13
   X_ERROR                          = 14
   OTHERS                           = 15
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  WRITE:/ 'TITLE :' ,GS_NOTE_HD-OBJDES.
  LOOP AT GT_NOTE_LN.
    WRITE:/ GT_NOTE_LN-LINE.
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 10:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801992#M1311862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T10:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801993#M1311863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GTREN thanks for this program but it dump with this message :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relationship ATTA Can No Longer Be Used with this Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A module was called to read object relationships. The relationship types transferred to the interface can only be accessed in connection with CL_BINARY_RELATION class, because the model datea has been converted to a new relationship service. A conversion of the read calls is also part of this conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 12:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801993#M1311863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801994#M1311864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok try like following&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS P_EBELN LIKE EKKO-EBELN.

DATA : GS_OBJECT   TYPE          SIBFLPORB,
       GS_FOLDERID TYPE          SOODK,
       GS_OBJECTID TYPE          SOODK,
       GS_NOTE_HD  TYPE          SOOD2,
       GT_NOTE_LN  TYPE TABLE OF SOLI WITH HEADER LINE,
       GT_SRGBTBREL TYPE TABLE OF SRGBTBREL,
       GS_SRGBTBREL TYPE          SRGBTBREL.


GS_OBJECT-INSTID = P_EBELN.
GS_OBJECT-TYPEID = 'BUS2012'.
GS_OBJECT-CATID  = 'BO'.
SELECT * FROM SRGBTBREL
    APPENDING CORRESPONDING FIELDS OF TABLE  GT_SRGBTBREL
        WHERE INSTID_A = GS_OBJECT-INSTID
          and TYPEID_A = GS_OBJECT-TYPEID
          and CATID_A  = GS_OBJECT-CATID
          and RELTYPE  = 'NOTE'.
LOOP AT GT_SRGBTBREL INTO GS_SRGBTBREL.
  GS_FOLDERID = GS_SRGBTBREL-INSTID_B+00(17).
  GS_OBJECTID = GS_SRGBTBREL-INSTID_B+17(17).
  CALL FUNCTION 'SO_OBJECT_READ'
    EXPORTING
*   FILTER                           =
      FOLDER_ID                        = GS_FOLDERID
*   FORWARDER                        =
      OBJECT_ID                        = GS_OBJECTID
*   OWNER                            =
*   F_MAILER                         = ' '
 IMPORTING
*   OBJECT_FL_DISPLAY                =
    OBJECT_HD_DISPLAY                = GS_NOTE_HD
*   OBJECT_RC_DISPLAY                =
 TABLES
    OBJCONT                          = GT_NOTE_LN[]
*   OBJHEAD                          =
*   OBJPARA                          =
*   OBJPARB                          =
 EXCEPTIONS
   ACTIVE_USER_NOT_EXIST            = 1
   COMMUNICATION_FAILURE            = 2
   COMPONENT_NOT_AVAILABLE          = 3
   FOLDER_NOT_EXIST                 = 4
   FOLDER_NO_AUTHORIZATION          = 5
   OBJECT_NOT_EXIST                 = 6
   OBJECT_NO_AUTHORIZATION          = 7
   OPERATION_NO_AUTHORIZATION       = 8
   OWNER_NOT_EXIST                  = 9
   PARAMETER_ERROR                  = 10
   SUBSTITUTE_NOT_ACTIVE            = 11
   SUBSTITUTE_NOT_DEFINED           = 12
   SYSTEM_FAILURE                   = 13
   X_ERROR                          = 14
   OTHERS                           = 15
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  WRITE:/ 'TITLE :' ,GS_NOTE_HD-OBJDES.
  LOOP AT GT_NOTE_LN.
    WRITE:/ GT_NOTE_LN-LINE.
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 13:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801994#M1311864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get attachment list items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801995#M1311865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great !! Thanks a lot GTREN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 15:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-attachment-list-items/m-p/5801995#M1311865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T15:08:14Z</dc:date>
    </item>
  </channel>
</rss>

