<?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 How to get element container? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124597#M986175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get the element container 'ReqReq'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Begin code&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DATA: v_reqreq TYPE swf_object.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SWW_WI_CONTAINER_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      wi_id                    = p_wi_id&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      wi_container_handle      = v_wi_container_handle_task&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      container_does_not_exist = 1&lt;/P&gt;&lt;P&gt;      read_failed              = 2&lt;/P&gt;&lt;P&gt;      OTHERS                   = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;swf_get_element v_wi_container_handle_task 'ReqReq' v_reqreq.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;swf_get_property v_reqreq 'RequirementRequest' v_sc_number.&lt;/P&gt;&lt;P&gt;*End code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the bolded sentence is not working correctly, the sy-subrc is set 1. Debugging the sentence appear a type conflict:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt; *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The element 'ReqReq' at container is declared as &lt;STRONG&gt;BO Object type BOR BUS2121&lt;/STRONG&gt;. How can I get the element container? In which moment should I indicate that the object type is BUS2121? Is correct to declare the variable 'v_reqreq' as type 'swf_object'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the 'RequirementRequest' property is neither get correctly since the 'ReqReq' element is not get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 16:43:25 GMT</pubDate>
    <dc:creator>alonso_valenzue</dc:creator>
    <dc:date>2008-07-09T16:43:25Z</dc:date>
    <item>
      <title>How to get element container?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124597#M986175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get the element container 'ReqReq'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Begin code&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DATA: v_reqreq TYPE swf_object.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SWW_WI_CONTAINER_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      wi_id                    = p_wi_id&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      wi_container_handle      = v_wi_container_handle_task&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      container_does_not_exist = 1&lt;/P&gt;&lt;P&gt;      read_failed              = 2&lt;/P&gt;&lt;P&gt;      OTHERS                   = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;swf_get_element v_wi_container_handle_task 'ReqReq' v_reqreq.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;swf_get_property v_reqreq 'RequirementRequest' v_sc_number.&lt;/P&gt;&lt;P&gt;*End code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the bolded sentence is not working correctly, the sy-subrc is set 1. Debugging the sentence appear a type conflict:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt; *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The element 'ReqReq' at container is declared as &lt;STRONG&gt;BO Object type BOR BUS2121&lt;/STRONG&gt;. How can I get the element container? In which moment should I indicate that the object type is BUS2121? Is correct to declare the variable 'v_reqreq' as type 'swf_object'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the 'RequirementRequest' property is neither get correctly since the 'ReqReq' element is not get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 16:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124597#M986175</guid>
      <dc:creator>alonso_valenzue</dc:creator>
      <dc:date>2008-07-09T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get element container?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124598#M986176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call SWW_WI_CONT_READ_SINGLE_OBJECT in order to get object key then call SWW_WI_READ_CONTAINERS_OF_OBJ to read attributes of object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124598#M986176</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2008-08-22T09:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get element container?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124599#M986177</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;Use function module SAP_WAPI_READ_CONTAINER, it will return a simple name-value pair table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have more luck with this type of question in the workflow forum. although this one is called ABAP Objects, it refers more to ABAP objects in the class sense rather than BOR objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 16:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-element-container/m-p/4124599#M986177</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2008-08-22T16:11:18Z</dc:date>
    </item>
  </channel>
</rss>

