<?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 Function location in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-location/m-p/3303559#M791072</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;Is there is any function module or BAPI for function location hierarchy (PM).Actually my requirement is to show all the function locations of a specified user as a hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 06:51:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T06:51:12Z</dc:date>
    <item>
      <title>Function location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-location/m-p/3303559#M791072</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;Is there is any function module or BAPI for function location hierarchy (PM).Actually my requirement is to show all the function locations of a specified user as a hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-location/m-p/3303559#M791072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-location/m-p/3303560#M791073</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;try this code for Fn. Location---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zpm_functional_location_upload&lt;/P&gt;&lt;P&gt;       NO STANDARD PAGE HEADING&lt;/P&gt;&lt;P&gt;       LINE-SIZE 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Standard Include for Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INCLUDE bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for Upload Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF i_fun_loc OCCURS 0,&lt;/P&gt;&lt;P&gt;        strno(040),             " Fun Location Label&lt;/P&gt;&lt;P&gt;        tplkz(005),             " StrIndicator&lt;/P&gt;&lt;P&gt;        fltyp(001),             " Fun Location Category&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;General Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        pltxt(040),             " Description&lt;/P&gt;&lt;P&gt;        eqart(010),             " Object Type&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Location Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        swerk(004),             " Maintenance Plant&lt;/P&gt;&lt;P&gt;        msgrp(008),             " Room&lt;/P&gt;&lt;P&gt;        beber(003),             " Plant Section&lt;/P&gt;&lt;P&gt;        abckz(001),             " ABC indicator&lt;/P&gt;&lt;P&gt;        eqfnr(030),             " Sort Field&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Organization data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        bukrs(004),             " Company Code&lt;/P&gt;&lt;P&gt;        kostl(010),             " Cost Center&lt;/P&gt;&lt;P&gt;        iwerk(004),             " Planning Plant&lt;/P&gt;&lt;P&gt;        ingrp(003),             " Planner Group&lt;/P&gt;&lt;P&gt;        gewrk(008),             " Main Work Center&lt;/P&gt;&lt;P&gt;        wergw(004),             " Plant(Work Center)&lt;/P&gt;&lt;P&gt;        rbnr(009),              " Catalog Profile&lt;/P&gt;&lt;P&gt;      END OF i_fun_loc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Variables &amp;amp; Constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONSTANTS : c_x             VALUE 'X'.  " Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: p_file LIKE ibipparms-path.  " Filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At selection-screen on Value Request for file Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the F4 Values for the File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      program_name  = syst-cprog&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name     = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the BDC Session&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload the File into internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = p_file&lt;/P&gt;&lt;P&gt;      filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = i_fun_loc&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_error        = 1&lt;/P&gt;&lt;P&gt;      invalid_table_width     = 2&lt;/P&gt;&lt;P&gt;      invalid_type            = 3&lt;/P&gt;&lt;P&gt;      no_batch                = 4&lt;/P&gt;&lt;P&gt;      unknown_error           = 5&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 6&lt;/P&gt;&lt;P&gt;      OTHERS                  = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload the Data from Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT i_fun_loc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMILO0' '1110'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'IFLOS-STRNO'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'IFLOS-STRNO'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-strno.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'RILO0-TPLKZ'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-tplkz.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'IFLO-FLTYP'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-fltyp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;General Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMILO0' '2100'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=T\02'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'IFLO-PLTXT'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-pltxt.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ITOB-EQART'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-EQART'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-eqart.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Location Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMILO0' '2100'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=T\03'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ITOB-EQFNR'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-SWERK'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-swerk.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-MSGRP'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-msgrp.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-BEBER'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-beber.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-ABCKZ'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-abckz.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-EQFNR'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-eqfnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Organization Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMILO0' '2100'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=BU'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-BUKRS'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-bukrs.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-KOSTL'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-kostl.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ITOB-RBNR'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-IWERK'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-iwerk.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-INGRP'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-ingrp.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOBATTR-GEWRK'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-gewrk.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOBATTR-WERGW'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-wergw.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'ITOB-RBNR'&lt;/P&gt;&lt;P&gt;                                  i_fun_loc-rbnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call The Transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM bdc_transaction USING 'IL01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close the BDC Session&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM close_group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-location/m-p/3303560#M791073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:57:15Z</dc:date>
    </item>
  </channel>
</rss>

