<?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 Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904967#M55939</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;thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the debugger in a copy of prod, and in DEV&lt;/P&gt;&lt;P&gt;and the data being sent to the function module is the same in both cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is why it doesn't make sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2005 23:02:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-27T23:02:34Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904965#M55937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the function module I'm using the bet the benefit coverage amount for an employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form coverage_reg_basic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if pnp-sw-found eq 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: ee_benefit_data like rpbeneedat,&lt;/P&gt;&lt;P&gt;          covam  like T74FC-COVAM,&lt;/P&gt;&lt;P&gt;          salary like p0008-ansal,&lt;/P&gt;&lt;P&gt;          error_table like rpbenerr occurs 0,&lt;/P&gt;&lt;P&gt;          rule like t74fc,&lt;/P&gt;&lt;P&gt;          currency like t5ud3-curre,&lt;/P&gt;&lt;P&gt;          bcove like t74fb-bcove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;2. get bcove&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select bcove from t74fb into bcove&lt;/P&gt;&lt;P&gt;      where barea = p0168-barea and bplan = p0168-bplan.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if not bcove is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Get employee data into the structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'HR_BEN_READ_EE_BENEFIT_DATA'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                PERNR           = pernr-pernr&lt;/P&gt;&lt;P&gt;                DATUM           = v_begda&lt;/P&gt;&lt;P&gt;                REACTION        = 'N'&lt;/P&gt;&lt;P&gt;                ENDDA           = v_endda&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                EE_BENEFIT_DATA = ee_benefit_data&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                ERROR_TABLE     = error_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_BEN_GET_PLAN_COVERAGE'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                EE_BENEFIT_DATA   = ee_benefit_data&lt;/P&gt;&lt;P&gt;                BPLAN             = p0168-bplan&lt;/P&gt;&lt;P&gt;                BCOVE             = bcove&lt;/P&gt;&lt;P&gt;                ADDNO             = p0168-addno&lt;/P&gt;&lt;P&gt;                DATUM             = v_begda&lt;/P&gt;&lt;P&gt;                SALARY_OVERRIDE   = p0168-salov&lt;/P&gt;&lt;P&gt;                COVERAGE_OVERRIDE = p0168-covov&lt;/P&gt;&lt;P&gt;                DESIRED_CURRE     = 'CAD'&lt;/P&gt;&lt;P&gt;                REACTION          = 'D'&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                COVERAGE_RULE     = rule&lt;/P&gt;&lt;P&gt;                COVERAGE_SALARY   = salary&lt;/P&gt;&lt;P&gt;                COVERAGE_AMOUNT   = covam&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                ERROR_TABLE       = error_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      v_cov = covam.&lt;/P&gt;&lt;P&gt;      wa_results_totals-reg_cov = v_cov.&lt;/P&gt;&lt;P&gt;      clear v_cov.&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;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works perfect in my DEV client put when I transport it to the Production client, the function module always results in 0 for the salary and covam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway ideas on what could be different across instances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 19:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904965#M55937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-27T19:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904966#M55938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jamie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using relevant transactions in SAP, you must first check the data in SAP whether what you are trying to retrieve is already there in production or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all HR tables are client specific. In your case, most likely the issue is that production does not have the data matching the conditions that you are sending via function module call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check via SAP screens (in DEV and in production) the data that you want - and you will get the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 21:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904966#M55938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-27T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904967#M55939</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;thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the debugger in a copy of prod, and in DEV&lt;/P&gt;&lt;P&gt;and the data being sent to the function module is the same in both cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is why it doesn't make sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 23:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904967#M55939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-27T23:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904968#M55940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked the contents of the error table returned by the function modules for any errors? May be it is related to authorization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2005 02:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904968#M55940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-28T02:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904969#M55941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the contents of the error table, nothing in it, as if the function module ran fine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a feeling it is a currency issue, because the salary isn't coming back either, and this is why the coverage amount is not coming back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2005 18:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/904969#M55941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-28T18:39:36Z</dc:date>
    </item>
  </channel>
</rss>

