<?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: Function module in abap hr in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831380#M921289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnaks a  lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2008 14:18:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-26T14:18:48Z</dc:date>
    <item>
      <title>Function module in abap hr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831378#M921287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends &lt;/P&gt;&lt;P&gt; i am new to abap.....i was given a funtion module to work on.. here i  am sending the req...can any one plz tell how to write code for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is recivel of IBG bank account number. only 2 banks hsbc(Bank code = 7232)&lt;/P&gt;&lt;P&gt;lenght 4 and ocbc(bank code = 7339)lenght 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing parameters criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Name      Data element    datatype  type   description&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;IM_Bankkey       bankl          char(15)    import  bank key&lt;/P&gt;&lt;P&gt;IM_bankactno     bankn          char(18)    import   bank acc no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting Parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Name      Data element    datatype  type   description&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;ex_ibgbankacct   n/a             char(16)  epxort return parameter&lt;/P&gt;&lt;P&gt;e_errormsg       n/a             char(20)  export return parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract bank code from im_bankkey&lt;/P&gt;&lt;P&gt;extract 4 characters of im_bankkey into im_bankcd and process the following step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if ocbc bank(bank code = 7339) and hsbc bank (Bank code = 7232)&lt;/P&gt;&lt;P&gt;then truncate the 1st 2nd 3rd digits of im_bankacctno&lt;/P&gt;&lt;P&gt;ex_ibgbankacct = truncated im_bankacctno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex_ibgbankacct = im_bankactno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if(end of chk for bank code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex_ibgbankact = extract from 1st to 16 character of ex_ibgbankacct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me to write the code????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2008 11:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831378#M921287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-24T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function module in abap hr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831379#M921288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Purnima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the code like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ztest440.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(IM_BANKKEY) TYPE  BANKL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(IM_BANKACTNO) TYPE  BANKN&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(EX_IBGBANKACCT) TYPE  CHAR16&lt;/P&gt;&lt;P&gt;*"     REFERENCE(E_ERRORMSG) TYPE  CHAR20&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : im_bankcd TYPE char4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  im_bankcd = im_bankkey+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF im_bankcd EQ '7339' OR&lt;/P&gt;&lt;P&gt;     im_bankcd EQ '7232'.&lt;/P&gt;&lt;P&gt;    ex_ibgbankacct = im_bankactno+3(15).&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    ex_ibgbankacct = im_bankactno+0(16).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve your problem.&lt;/P&gt;&lt;P&gt;Reward if it is helpfull..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 09:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831379#M921288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function module in abap hr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831380#M921289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnaks a  lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 14:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap-hr/m-p/3831380#M921289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T14:18:48Z</dc:date>
    </item>
  </channel>
</rss>

