<?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: changing option in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739612#M900079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/d1/801ece454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/d1/801ece454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Changing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Values that act as import and export parameters simultaneously. The original value of a changing parameter is transferred from the calling program to the function module. The function module can alter the initial value and send it back to the calling program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 15:02:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-25T15:02:47Z</dc:date>
    <item>
      <title>changing option in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739610#M900077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  plz explain the role or importance of changing option in function module SE37&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 14:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739610#M900077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: changing option in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739611#M900078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing&lt;/P&gt;&lt;P&gt;Contains a list of the formal parameters that are used both to pass data to and receive data from a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 15:00:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739611#M900078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T15:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: changing option in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739612#M900079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/d1/801ece454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/d1/801ece454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Changing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Values that act as import and export parameters simultaneously. The original value of a changing parameter is transferred from the calling program to the function module. The function module can alter the initial value and send it back to the calling program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 15:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739612#M900079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: changing option in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739613#M900080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;Changing parameters is nothing but &lt;STRONG&gt;Call by reference&lt;/STRONG&gt; i.e U can pass the values to the Fm as input, U can modify the data inside FM and all the changes done in side the FM to these parameters will be reflected even after FM execution is completed. Same thing applies to TABLES parameter also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 15:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739613#M900080</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-04-25T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: changing option in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739614#M900081</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;changing &lt;/P&gt;&lt;P&gt;all the things the r specified under changing signefies that when thias code is executed this things will be get changed from there previous state or last saved &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;snehi chouhan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 11:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 15:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739614#M900081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: changing option in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739615#M900082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this example it had the usage of the changing option..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the using will input the value to the perform and do some prosses and output some value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERNR               TYPE P0001-PERNR                           Personnel Number                   &lt;/P&gt;&lt;P&gt;PLANS               TYPE P0001-PLANS                           Position                           &lt;/P&gt;&lt;P&gt;ORGEH               TYPE P0001-ORGEH                           Organizational Unit                &lt;/P&gt;&lt;P&gt;DATE                TYPE SY-DATUM       SY-DATUM               Date and time, current (applic     &lt;/P&gt;&lt;P&gt;PLVAR               TYPE PLOG-PLVAR     '01'                   Plan Version                       &lt;/P&gt;&lt;P&gt;ISTAT               TYPE PLOG-ISTAT     '1'                    Planning Status                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANAGER	TYPE	ZHMSS_MANAGER	Structure for manager for MSS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NO_PERNR_PLANS_ORGEH_SPEC     No pernr, position or org unit specified &lt;/P&gt;&lt;P&gt; NO_EXIST_PLANS                Position does not exist                  &lt;/P&gt;&lt;P&gt; INVALID_PLANS                 Position invalid                         &lt;/P&gt;&lt;P&gt; NO_EXIST_ORGEH                Org unit does not exist                  &lt;/P&gt;&lt;P&gt; NO_EXIST_PERNR                Personnel number does not exist          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function z_get_orgunit_manager_info.&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(PERNR) TYPE  P0001-PERNR OPTIONAL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(PLANS) TYPE  P0001-PLANS OPTIONAL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ORGEH) TYPE  P0001-ORGEH OPTIONAL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(DATE) TYPE  SY-DATUM DEFAULT SY-DATUM&lt;/P&gt;&lt;P&gt;*"     REFERENCE(PLVAR) TYPE  PLOG-PLVAR DEFAULT '01'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ISTAT) TYPE  PLOG-ISTAT DEFAULT '1'&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(MANAGER) TYPE  ZHMSS_MANAGER&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NO_PERNR_PLANS_ORGEH_SPEC&lt;/P&gt;&lt;P&gt;*"      NO_EXIST_PLANS&lt;/P&gt;&lt;P&gt;*"      INVALID_PLANS&lt;/P&gt;&lt;P&gt;*"      NO_EXIST_ORGEH&lt;/P&gt;&lt;P&gt;*"      NO_EXIST_PERNR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if pernr is initial and&lt;/P&gt;&lt;P&gt;     plans is initial and&lt;/P&gt;&lt;P&gt;     orgeh is initial.&lt;/P&gt;&lt;P&gt;    raise no_pernr_plans_orgeh_spec.&lt;/P&gt;&lt;P&gt;  endif."pernr is initial and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not pernr is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if pernr cn '0123456789'.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- See if pernr exists&lt;/P&gt;&lt;P&gt;    call function 'P_EMPLOYEE_CHECKEXISTENCE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              object_id          = pernr&lt;/P&gt;&lt;P&gt;              date               = date&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              employee_not_found = 01.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      raise no_exist_pernr.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Obtain pernr position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              pernr           = pernr&lt;/P&gt;&lt;P&gt;              infty           = c_infty_0001&lt;/P&gt;&lt;P&gt;              begda           = date&lt;/P&gt;&lt;P&gt;              endda           = date&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;              subrc           = g_retcd&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              infty_tab       = i0001&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              infty_not_found = 01&lt;/P&gt;&lt;P&gt;              others          = 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      describe table i0001 lines g_lines.&lt;/P&gt;&lt;P&gt;      if g_lines &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        read table i0001 index 1.&lt;/P&gt;&lt;P&gt;*-- Got position now find org unit&lt;/P&gt;&lt;P&gt;        perform zf_proc_get_om_objects tables i_objects&lt;/P&gt;&lt;P&gt;                                       using c_otype_position&lt;/P&gt;&lt;P&gt;                                             i0001-plans&lt;/P&gt;&lt;P&gt;                                             plvar&lt;/P&gt;&lt;P&gt;                                             c_rsign_a&lt;/P&gt;&lt;P&gt;                                             c_relat_003&lt;/P&gt;&lt;P&gt;                                             istat&lt;/P&gt;&lt;P&gt;                                             date&lt;/P&gt;&lt;P&gt;                                             date&lt;/P&gt;&lt;P&gt;                                             c_otype_orgunit&lt;/P&gt;&lt;P&gt;                                    changing g_retcd.&lt;/P&gt;&lt;P&gt;        if g_retcd eq 0.&lt;/P&gt;&lt;P&gt;          read table i_objects index 1.&lt;/P&gt;&lt;P&gt;          g_orgeh = i_objects-sobid(8).&lt;/P&gt;&lt;P&gt;        endif. "g_retcd eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif. "g_lines &amp;gt; 0. for i0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.  "sy-subrc eq 0 hr_read_infotype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  elseif not plans is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if plans co '9' or&lt;/P&gt;&lt;P&gt;       plans co '0'.&lt;/P&gt;&lt;P&gt;      raise invalid_plans.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'RH_READ_OBJECT'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              plvar     = plvar&lt;/P&gt;&lt;P&gt;              otype     = c_otype_position&lt;/P&gt;&lt;P&gt;              objid     = plans&lt;/P&gt;&lt;P&gt;              istat     = istat&lt;/P&gt;&lt;P&gt;              begda     = date&lt;/P&gt;&lt;P&gt;              endda     = date&lt;/P&gt;&lt;P&gt;              langu     = sy-langu&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              not_found = 1&lt;/P&gt;&lt;P&gt;              others    = 2.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      raise no_exist_plans.&lt;/P&gt;&lt;P&gt;      exit.&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;*-- Find org unit&lt;/P&gt;&lt;P&gt;    perform zf_proc_get_om_objects tables i_objects&lt;/P&gt;&lt;P&gt;                                   using c_otype_position&lt;/P&gt;&lt;P&gt;                                         plans&lt;/P&gt;&lt;P&gt;                                         plvar&lt;/P&gt;&lt;P&gt;                                         c_rsign_a&lt;/P&gt;&lt;P&gt;                                         c_relat_003&lt;/P&gt;&lt;P&gt;                                         istat&lt;/P&gt;&lt;P&gt;                                         date&lt;/P&gt;&lt;P&gt;                                         date&lt;/P&gt;&lt;P&gt;                                         c_otype_orgunit&lt;/P&gt;&lt;P&gt;                                changing g_retcd.&lt;/P&gt;&lt;P&gt;    if g_retcd eq 0.&lt;/P&gt;&lt;P&gt;      read table i_objects index 1.&lt;/P&gt;&lt;P&gt;      g_orgeh = i_objects-sobid(8).&lt;/P&gt;&lt;P&gt;    endif."g_retcd eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  elseif not orgeh is initial.&lt;/P&gt;&lt;P&gt;    call function 'RH_READ_OBJECT'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              plvar     = plvar&lt;/P&gt;&lt;P&gt;              otype     = c_otype_orgunit&lt;/P&gt;&lt;P&gt;              objid     = orgeh&lt;/P&gt;&lt;P&gt;              istat     = istat&lt;/P&gt;&lt;P&gt;              begda     = date&lt;/P&gt;&lt;P&gt;              endda     = date&lt;/P&gt;&lt;P&gt;              langu     = sy-langu&lt;/P&gt;&lt;P&gt;              CHECK_STRU_AUTH   = space              "ASikaria, 10/15&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              not_found = 1&lt;/P&gt;&lt;P&gt;              others    = 2.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      raise no_exist_orgeh.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    g_orgeh = orgeh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif. "not pernr is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not g_orgeh is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    manager-orgeh = g_orgeh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Got org unit now find manager&lt;/P&gt;&lt;P&gt;    perform zf_proc_get_om_objects tables i_objects&lt;/P&gt;&lt;P&gt;                                   using c_otype_orgunit&lt;/P&gt;&lt;P&gt;                                         manager-orgeh&lt;/P&gt;&lt;P&gt;                                         plvar&lt;/P&gt;&lt;P&gt;                                         c_rsign_b&lt;/P&gt;&lt;P&gt;                                         c_relat_012&lt;/P&gt;&lt;P&gt;                                         istat&lt;/P&gt;&lt;P&gt;                                         date&lt;/P&gt;&lt;P&gt;                                         date&lt;/P&gt;&lt;P&gt;                                         c_otype_position&lt;/P&gt;&lt;P&gt;                                changing g_retcd.&lt;/P&gt;&lt;P&gt;    if g_retcd eq 0.&lt;/P&gt;&lt;P&gt;      read table i_objects index 1.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        manager-plans = i_objects-sobid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'Z_GET_POSITION_HOLDER'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;P&gt;                  plans              = manager-plans&lt;/P&gt;&lt;P&gt;                  plvar              = plvar&lt;/P&gt;&lt;P&gt;                  istat              = istat&lt;/P&gt;&lt;P&gt;                  date               = date&lt;/P&gt;&lt;P&gt;             importing&lt;/P&gt;&lt;P&gt;                  pernr              = manager-pernr&lt;/P&gt;&lt;P&gt;             exceptions&lt;/P&gt;&lt;P&gt;                  position_not_exist = 1&lt;/P&gt;&lt;P&gt;                  position_invalid   = 2&lt;/P&gt;&lt;P&gt;                  others             = 3.&lt;/P&gt;&lt;P&gt;        if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          clear: manager-pernr.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if not manager-pernr is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- BOC RTDK902962&lt;/P&gt;&lt;P&gt;*-- Obtained formatted name&lt;/P&gt;&lt;P&gt;          clear: i0001.&lt;/P&gt;&lt;P&gt;          refresh: i0001.&lt;/P&gt;&lt;P&gt;          call function 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                    pernr           = manager-pernr&lt;/P&gt;&lt;P&gt;                    infty           = c_infty_0001&lt;/P&gt;&lt;P&gt;                    begda           = date&lt;/P&gt;&lt;P&gt;                    endda           = date&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                    subrc           = g_retcd&lt;/P&gt;&lt;P&gt;               tables&lt;/P&gt;&lt;P&gt;                    infty_tab       = i0001&lt;/P&gt;&lt;P&gt;               exceptions&lt;/P&gt;&lt;P&gt;                    infty_not_found = 1&lt;/P&gt;&lt;P&gt;                    others          = 2.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            read table i0001 index 1.&lt;/P&gt;&lt;P&gt;            if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;              manager-ename = i0001-ename.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- EOC RTDK902962&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Obtain pernr information&lt;/P&gt;&lt;P&gt;*- Get 0002 data&lt;/P&gt;&lt;P&gt;          clear: i0002.&lt;/P&gt;&lt;P&gt;          refresh: i0002.&lt;/P&gt;&lt;P&gt;          call function 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                    pernr           = manager-pernr&lt;/P&gt;&lt;P&gt;                    infty           = c_infty_0002&lt;/P&gt;&lt;P&gt;                    begda           = date&lt;/P&gt;&lt;P&gt;                    endda           = date&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                    subrc           = g_retcd&lt;/P&gt;&lt;P&gt;               tables&lt;/P&gt;&lt;P&gt;                    infty_tab       = i0002&lt;/P&gt;&lt;P&gt;               exceptions&lt;/P&gt;&lt;P&gt;                    infty_not_found = 1&lt;/P&gt;&lt;P&gt;                    others          = 2.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            read table i0002 index 1.&lt;/P&gt;&lt;P&gt;            if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;              manager-inits = i0002-inits.&lt;/P&gt;&lt;P&gt;              manager-vorna = i0002-vorna.&lt;/P&gt;&lt;P&gt;              manager-nachn = i0002-nachn.&lt;/P&gt;&lt;P&gt;              manager-midnm = i0002-midnm.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Get 0105 data&lt;/P&gt;&lt;P&gt;          clear: i0105.&lt;/P&gt;&lt;P&gt;          refresh: i0105.&lt;/P&gt;&lt;P&gt;          call function 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                    pernr           = manager-pernr&lt;/P&gt;&lt;P&gt;                    infty           = c_infty_0105&lt;/P&gt;&lt;P&gt;                    begda           = date&lt;/P&gt;&lt;P&gt;                    endda           = date&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                    subrc           = g_retcd&lt;/P&gt;&lt;P&gt;               tables&lt;/P&gt;&lt;P&gt;                    infty_tab       = i0105&lt;/P&gt;&lt;P&gt;               exceptions&lt;/P&gt;&lt;P&gt;                    infty_not_found = 1&lt;/P&gt;&lt;P&gt;                    others          = 2.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            describe table i0105 lines g_lines.&lt;/P&gt;&lt;P&gt;            if g_lines &amp;gt; 0.&lt;/P&gt;&lt;P&gt;*- SAP usrid&lt;/P&gt;&lt;P&gt;              loop at i0105 where subty = c_0105_usrid_subty.&lt;/P&gt;&lt;P&gt;                manager-usrid = i0105-usrid.&lt;/P&gt;&lt;P&gt;              endloop.&lt;/P&gt;&lt;P&gt;*- Email address&lt;/P&gt;&lt;P&gt;*// not sure where email is going to be stored but assume it is subtype&lt;/P&gt;&lt;P&gt;*// 0010&lt;/P&gt;&lt;P&gt;              loop at i0105 where subty = c_0105_email_subty.&lt;/P&gt;&lt;P&gt;                manager-email = i0105-usrid_long.&lt;/P&gt;&lt;P&gt;              endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            endif. "g_lines &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          endif."sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif. "not manager-pernr is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif. "sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif."g_retcd eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif. "not g_orgeh is initial.&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;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;zposition holder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLANS	TYPE	PLOG-OBJID	                     	Object ID&lt;/P&gt;&lt;P&gt;PLVAR	TYPE	PLOG-PLVAR	'01'	Plan Version&lt;/P&gt;&lt;P&gt;ISTAT	TYPE	PLOG-ISTAT	'1'	Planning Status&lt;/P&gt;&lt;P&gt;DATE	TYPE	SY-DATUM	SY-DATUM	Date and time, current (application server) date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERNR               TYPE      P0001-PERNR                 Personnel Number                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSITION_NOT_EXIST            Position does not exist                  &lt;/P&gt;&lt;P&gt;POSITION_INVALID              Invalid position                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function z_get_position_holder.&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(PLANS) TYPE  PLOG-OBJID&lt;/P&gt;&lt;P&gt;*"     REFERENCE(PLVAR) TYPE  PLOG-PLVAR DEFAULT '01'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ISTAT) TYPE  PLOG-ISTAT DEFAULT '1'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(DATE) TYPE  SY-DATUM DEFAULT SY-DATUM&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(PERNR) TYPE  P0001-PERNR&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      POSITION_NOT_EXIST&lt;/P&gt;&lt;P&gt;*"      POSITION_INVALID&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if plans cn '0123456789'.&lt;/P&gt;&lt;P&gt;    raise position_invalid.&lt;/P&gt;&lt;P&gt;  endif."plans cn '0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if plans co '9'.  "default position&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'RH_READ_OBJECT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            plvar     = plvar&lt;/P&gt;&lt;P&gt;            otype     = c_otype_position&lt;/P&gt;&lt;P&gt;            objid     = plans&lt;/P&gt;&lt;P&gt;            begda     = date&lt;/P&gt;&lt;P&gt;            endda     = date&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            not_found = 01&lt;/P&gt;&lt;P&gt;            others    = 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    raise position_not_exist.&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;    perform zf_proc_get_om_objects tables i_objects&lt;/P&gt;&lt;P&gt;                                   using c_otype_position&lt;/P&gt;&lt;P&gt;                                         plans&lt;/P&gt;&lt;P&gt;                                         plvar&lt;/P&gt;&lt;P&gt;                                         c_rsign_a&lt;/P&gt;&lt;P&gt;                                         c_relat_008&lt;/P&gt;&lt;P&gt;                                         istat&lt;/P&gt;&lt;P&gt;                                         date&lt;/P&gt;&lt;P&gt;                                         date&lt;/P&gt;&lt;P&gt;                                         c_otype_pernr&lt;/P&gt;&lt;P&gt;                                changing g_retcd.&lt;/P&gt;&lt;P&gt;    if g_retcd eq 0.&lt;/P&gt;&lt;P&gt;      sort i_objects by begda descending. "get earliest rec&lt;/P&gt;&lt;P&gt;      read table i_objects index 1.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        pernr = i_objects-sobid(8).&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif. "g_retcd eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif. "sy-subrc ne 0.&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;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 15:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-option-in-function-module/m-p/3739615#M900082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T15:22:05Z</dc:date>
    </item>
  </channel>
</rss>

