<?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 Using ABAP Objects in ABAP Development Process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135793#M1708982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you think about the integration of ABAP objects in the development process?&lt;/P&gt;&lt;P&gt;Why do I ask this question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In lots of object based programming languages and frameworks the class / objects play a central part in the development process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you want to use your classes / objects for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1) Data Presentation in Dialogs &lt;/P&gt;&lt;P&gt;2) Provide Functionality for external usage (Webservices, RestFul Services, RMI)&lt;/P&gt;&lt;P&gt;3) Storing Data (Persistence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is vey easy to handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume that we have a class "Partner" with the attribute "name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; You want to show / manipulate the "Partner-name" via a dialog input-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in Java Server Faces you can directly use the class for the presentation of data via the Expression language&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h:inputText value="#{Partner.name}"&amp;gt;&amp;lt;/h:inputText&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WebDynPro for ABAP, you have to make a data binding between the dialog input field and a context elements for storing the data.&lt;/P&gt;&lt;P&gt;But it is not possible to directly use the class partner in the data context. In consequence you have to write a mechanism to synchonize the data between your class partner and the the data representation (ABAP Structure for example)&amp;nbsp; in the data-context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; In my opinion the integration of ABAP objects for using it in WebDynPro Views could be better, if there would be a possibility to use objects in data contexts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume you have a class "Math" with several (static) methods "add", "sub", "multiply",&amp;nbsp; "divide"&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you want to "generate" a Service, so that external partners can use the funktions "add", "sub",....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In java EE6 for example you just have to add annotions @WebService, @GET@Path in front of your class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you have to do in ABAP objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coud not find a direct way for providing the methods as a service. Is there a way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did write a wrapping "Remote Function" for each method &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens to possible class based exceptions? (For example Division To Zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I wrap such a method, do I have to migrate the possible class based exceptions back to functional exceptions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; In my opinion there is a poor support for reaching ABAP object functionality behind WebServices / Restful Services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(There also is no support for Remote Method Invocation in ABAP. The solution is also to use a RFC-Wrapper !)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever tried to use the persistent object service (object-relational-mapping) in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about it? Is it easy to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 07:58:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-29T07:58:52Z</dc:date>
    <item>
      <title>Using ABAP Objects in ABAP Development Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135793#M1708982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you think about the integration of ABAP objects in the development process?&lt;/P&gt;&lt;P&gt;Why do I ask this question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In lots of object based programming languages and frameworks the class / objects play a central part in the development process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you want to use your classes / objects for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1) Data Presentation in Dialogs &lt;/P&gt;&lt;P&gt;2) Provide Functionality for external usage (Webservices, RestFul Services, RMI)&lt;/P&gt;&lt;P&gt;3) Storing Data (Persistence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is vey easy to handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume that we have a class "Partner" with the attribute "name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; You want to show / manipulate the "Partner-name" via a dialog input-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in Java Server Faces you can directly use the class for the presentation of data via the Expression language&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h:inputText value="#{Partner.name}"&amp;gt;&amp;lt;/h:inputText&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WebDynPro for ABAP, you have to make a data binding between the dialog input field and a context elements for storing the data.&lt;/P&gt;&lt;P&gt;But it is not possible to directly use the class partner in the data context. In consequence you have to write a mechanism to synchonize the data between your class partner and the the data representation (ABAP Structure for example)&amp;nbsp; in the data-context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; In my opinion the integration of ABAP objects for using it in WebDynPro Views could be better, if there would be a possibility to use objects in data contexts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume you have a class "Math" with several (static) methods "add", "sub", "multiply",&amp;nbsp; "divide"&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you want to "generate" a Service, so that external partners can use the funktions "add", "sub",....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In java EE6 for example you just have to add annotions @WebService, @GET@Path in front of your class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you have to do in ABAP objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coud not find a direct way for providing the methods as a service. Is there a way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did write a wrapping "Remote Function" for each method &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens to possible class based exceptions? (For example Division To Zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I wrap such a method, do I have to migrate the possible class based exceptions back to functional exceptions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; In my opinion there is a poor support for reaching ABAP object functionality behind WebServices / Restful Services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(There also is no support for Remote Method Invocation in ABAP. The solution is also to use a RFC-Wrapper !)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever tried to use the persistent object service (object-relational-mapping) in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about it? Is it easy to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 07:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135793#M1708982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-29T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using ABAP Objects in ABAP Development Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135794#M1708983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to comment on your points :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;You want to show / manipulate the "Partner-name" via a dialog input-field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I do agree that coding the same in webdynpro for abap takes more effort thn doing it in JSF .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;As the coding in Webdynpro is more towards server side where each action on client triggers the server ( this is damn slow ) But To put it in Model View controller architecture it serves the purpose.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Well Context attributes are it self abap object internally and webdynpro framework handles it.so ur comments does make sense here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Fully agree with you without the help of RFC wrapper or Webservices you cant use ABAP objects directly as services.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Usage of persistence object is good only when you have lots of updates or create operatines needs to be done.else Be happy with DB tables + normal classes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice discussion would req. more experts to comments on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;~Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 09:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135794#M1708983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-19T09:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using ABAP Objects in ABAP Development Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135795#M1708984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for telling me your opinion to my discussion:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really a little bit disappointed, that there is no more reaction on my discussion because I believe, that there is a lot of potential to make ABAP a much better developer platform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not only the discussion about the integration of ABAP Objects in the development process that could by better. There are also themes like "Isn't it possibile to write a new renderer for WebDynPro ABAP with the aim to generate surfaces for Mobile Clients?". Or the themes "refactoring in ABAP", "code-completion", "ABAP code parsing", ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is obviously few interest by the SAP and there experts to encourage this discussion;-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 10:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-objects-in-abap-development-process/m-p/9135795#M1708984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-19T10:07:43Z</dc:date>
    </item>
  </channel>
</rss>

