<?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 create Abap function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502329#M565508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a ABAP function that can take in value and update the value into the custom database table. How do i do it? Is there any step by step procedure material?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the day, i would like create a web service of the function and allow the developer using Interactive form to pass the value into the web service and update the database table. How do i accomplish that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback is very much appreciated. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 02:40:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-12T02:40:19Z</dc:date>
    <item>
      <title>How to create Abap function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502329#M565508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a ABAP function that can take in value and update the value into the custom database table. How do i do it? Is there any step by step procedure material?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the day, i would like create a web service of the function and allow the developer using Interactive form to pass the value into the web service and update the database table. How do i accomplish that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your feedback is very much appreciated. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 02:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502329#M565508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T02:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Abap function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502330#M565509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Refer to the following links&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 03:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502330#M565509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T03:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Abap function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502331#M565510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable feedback. Well, do you have any code sample to supply for the above situation? Or do you have any simple material which take in a parameter and do a insert statement of data into database table and return a "Success" message as a output parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Rayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 07:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502331#M565510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T07:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Abap function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502332#M565511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First it would be a good idea to create a function group at SE80, only select fuction group in the combo and define a name to it.&lt;/P&gt;&lt;P&gt;Then, go to SE37 and create your function.&lt;/P&gt;&lt;P&gt;The function, if I understood correctly, needs to receive data and input (or modify?) entries in a Z table. For this, you need to define how this data will be received and if there will be more than one entry at a time (if will receive a table or a workarea or even a sequence of entries for every field), and create the relative Importing data.&lt;/P&gt;&lt;P&gt;If you receive a table, just use the following code, consider E_RESULT a Exporting parameter for confirmation of the action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT (or MODIFY) dbtab FROM TABLE ITAB.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  E_RESULT = 'OK'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;  E_RESULT = 'ER'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you receive from a workarea consider this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT (or MODIFY) dbtab FROM E_DATA.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;  E_RESULT = 'OK'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;  E_RESULT = 'ER'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you receive the data from every field, you will need to create a workarea at your function and set the data you receive in the respective fields then you do the last code (above one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-abap-function/m-p/2502332#M565511</guid>
      <dc:creator>hermanoclaro</dc:creator>
      <dc:date>2007-07-12T13:51:36Z</dc:date>
    </item>
  </channel>
</rss>

