<?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: Change BOR-Object by code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863650#M1886905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas? Please, someone &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1103/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 06:41:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-01-26T06:41:58Z</dc:date>
    <item>
      <title>Change BOR-Object by code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863649#M1886904</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 need to change a BOR-Business object and the object does not have a method to do exactly what I want. The requirements I have are, that I, if possible, do not change any business objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I can directly read attributes and their values and invoke methods by using the FM SWO_INVOKE after I got an instance using SWO_CREATE. What I am searching for is a way to edit the attributes in a similar way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried up to now is to use SWO_INVOKE as well with parameters:&lt;/P&gt;&lt;P&gt;- Access: P&lt;/P&gt;&lt;P&gt;- Object: An instance I got using SWO_CREATE&lt;/P&gt;&lt;P&gt;- Verb: The attribute name&lt;/P&gt;&lt;P&gt;- Tables: The attribute with the new value and its properties like length and type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I try this, I get the message that the object does not support the given verb. I am not sure whether I am calling it wrong or if an edit operation is not supported? Maybe another FM can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 16:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863649#M1886904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change BOR-Object by code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863650#M1886905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas? Please, someone &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1103/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 06:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863650#M1886905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change BOR-Object by code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863651#M1886906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tired calling the function module SWO_QUERY_VERBS to see which verbs are supported by the BOR object?&lt;/P&gt;&lt;P&gt;Besides that, if the object doesn't have a method to perform you requirements I'd always recommend to extend. This will result in better maintainable code compared to "misusing" existing methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863651#M1886906</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2015-01-26T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change BOR-Object by code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863652#M1886907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to analyze this problem the OO way?&lt;/P&gt;&lt;P&gt;(Creating a new class, give original BO as a superclass, adapt class, create new BO, let's play.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863652#M1886907</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-01-26T07:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change BOR-Object by code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863653#M1886908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally solved it by using a child BOR-Object, the inheritance was what I was looking for - even if the "No programming"-restriction does not hold completely. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863653#M1886908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T07:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change BOR-Object by code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863654#M1886909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, SWO_QUERY_VERBS is a FM i tried. The attribute I want to change appears in the list. That is why I guess that the problem is the combination between verb and access mode (P / Change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extending is something I also thought about, here I will try Raymonds approach as that sounds promising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-bor-object-by-code/m-p/10863654#M1886909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T07:39:35Z</dc:date>
    </item>
  </channel>
</rss>

