<?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: Access to a Linked objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987902#M705615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand your question correctly you are wanting to parse an XML document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the ABAP iXML library at &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also other ways of doing this so you might find better ways depending on what you are wanting to achieve. Simple Transformations are a really easy way to convert XML to ABAP data structures and back again. Look at &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 21:49:35 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2007-10-29T21:49:35Z</dc:date>
    <item>
      <title>Access to a Linked objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987901#M705614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all.&lt;/P&gt;&lt;P&gt;This is my program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  swc_object LIKE obj_record.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  bor_case    TYPE swc_object,&lt;/P&gt;&lt;P&gt;  container_tab  TYPE STANDARD TABLE OF swcont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BEGIN OF swo_return.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE swotreturn.&lt;/P&gt;&lt;P&gt;DATA END OF swo_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bor_case-header = 'OBJH'.&lt;/P&gt;&lt;P&gt;bor_case-type   = 'SWO '.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWO_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    objtype = 'SCASE'&lt;/P&gt;&lt;P&gt;    objkey  = 'DC0D01F2748C4EF196E7001321075C6D'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    object  = bor_case-handle&lt;/P&gt;&lt;P&gt;    return  = swo_return.&lt;/P&gt;&lt;P&gt;IF swo_return-code NE 0.&lt;/P&gt;&lt;P&gt;  bor_case-handle = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWO_INVOKE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    access     = 'C'&lt;/P&gt;&lt;P&gt;    object     = bor_case-handle&lt;/P&gt;&lt;P&gt;    verb       = 'DISPLAY'&lt;/P&gt;&lt;P&gt;    persistent = ' '&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    return     = swo_return&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    container  = container_tab.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;When I executed it I can see the business object with a document. This object contains a Linked Object (XML file).&lt;/P&gt;&lt;P&gt;I need to retrieve a field of this XML by code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this link appears the linked object that I refer.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9c5ee290-0201-0010-0e99-bcbc04273e44" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9c5ee290-0201-0010-0e99-bcbc04273e44&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 16:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987901#M705614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T16:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Access to a Linked objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987902#M705615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand your question correctly you are wanting to parse an XML document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the ABAP iXML library at &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also other ways of doing this so you might find better ways depending on what you are wanting to achieve. Simple Transformations are a really easy way to convert XML to ABAP data structures and back again. Look at &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 21:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987902#M705615</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-10-29T21:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Access to a Linked objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987903#M705616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Graham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is how obtain the document (linked object). I have used the method get_linked_objects but the result is empty (view code). Can somebody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  swc_object LIKE obj_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  bor_case    TYPE swc_object,&lt;/P&gt;&lt;P&gt;  container_tab  TYPE STANDARD TABLE OF swcont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BEGIN OF swo_return.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE swotreturn.&lt;/P&gt;&lt;P&gt;DATA END OF swo_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bor_case-header = 'OBJH'.&lt;/P&gt;&lt;P&gt;bor_case-type   = 'SWO '.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWO_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    objtype = 'SCASE'&lt;/P&gt;&lt;P&gt;    objkey  = 'DC0D01F2748C4EF196E7001321075C6D'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    object  = bor_case-handle&lt;/P&gt;&lt;P&gt;    return  = swo_return.&lt;/P&gt;&lt;P&gt;IF swo_return-code NE 0.&lt;/P&gt;&lt;P&gt;  bor_case-handle = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_ref_if_scmg_case_api TYPE REF TO if_scmg_case_api,&lt;/P&gt;&lt;P&gt;      case_type TYPE scmgcase_type,&lt;/P&gt;&lt;P&gt;      tty_namevalueasstring TYPE ty_namevalueasstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_scmg_case_api=&amp;gt;read_case_type&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    im_case_guid = 'DC0D01F2748C4EF196E7001321075C6D'&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    re_case_type = case_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_scmg_case_api=&amp;gt;if_scmg_case_api~create&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    im_case_type          = case_type&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   im_check_authority    = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    im_case_guid          = 'DC0D01F2748C4EF196E7001321075C6D'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   im_with_path          = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   im_path_template      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   im_update_task        = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   im_close_after_commit = SPACE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    re_case               = l_ref_if_scmg_case_api&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    failed                = 1&lt;/P&gt;&lt;P&gt;    no_authority          = 2&lt;/P&gt;&lt;P&gt;    path_creation_failed  = 3&lt;/P&gt;&lt;P&gt;    others                = 4.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;  CALL METHOD l_ref_if_scmg_case_api-&amp;gt;get_linked_objects&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      im_bor_object_type = 'SCASE'&lt;/P&gt;&lt;P&gt;    RECEIVING&lt;/P&gt;&lt;P&gt;      re_objects         = tty_namevalueasstring&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      failed             = 1&lt;/P&gt;&lt;P&gt;      others             = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 17:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-a-linked-objects/m-p/2987903#M705616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T17:51:49Z</dc:date>
    </item>
  </channel>
</rss>

