<?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: CUSTOM FUNCTION MODULE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579864#M589863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2007 06:32:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-31T06:32:03Z</dc:date>
    <item>
      <title>CUSTOM FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579862#M589861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sorry to repeat my question again. i had a scenario where i had to create custom idoc for catsdb database table which includes four fields as&lt;/P&gt;&lt;P&gt;          1. pernr&lt;/P&gt;&lt;P&gt;          2. workdate &lt;/P&gt;&lt;P&gt;          3. LSTAR &lt;/P&gt;&lt;P&gt;          4. COUNTER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created it and had send to another application server successfully. now my requirement is update the data of idoc in database tables of receiver application server. for this i created FM, process code..........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont know what to code in FM of receiver application server. the functionality of this FM is what details it  gets from idoc it should take it and update to its tables [receiver side]. for this i created a custom FM. please give code for updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if suggestions are highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579862#M589861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOM FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579863#M589862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any way  you would be  getting the data   as  import paramenters with  this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1. pernr
2. workdate 
3. LSTAR 
4. COUNTER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so  create   above  fields  as import  parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
itab1     like   your   sending internal table.

then  ,

data :  itab1  like   line  of  table  pa0001   occurs  0.

select  * from  pa0305    into  table   itab1 .

loop at itab1 .
if  itab1-pernr  ne  pernr  .

itab1-pernr  = pernr  .
itab1-LSTAR  =  LSTAR  .

Append  itab1 .
endloop.

update   pa0305  from   itab1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;similarly for the workdate  &amp;amp;COUNTER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward   points if it is usefull....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 08:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579863#M589862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T08:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOM FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579864#M589863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 06:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module/m-p/2579864#M589863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T06:32:03Z</dc:date>
    </item>
  </channel>
</rss>

