<?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 Example of BAPI use in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916105#M58155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I need help while I can not find the ecample of use BAPI SWX_GET_MANAGER. Where I need to loocking for?&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2005 09:13:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-31T09:13:27Z</dc:date>
    <item>
      <title>Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916105#M58155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I need help while I can not find the ecample of use BAPI SWX_GET_MANAGER. Where I need to loocking for?&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 09:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916105#M58155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T09:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916106#M58156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do a where used list and find out how it is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my search resulted in this FM being used in one include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"MWS20000081HO01"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 09:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916106#M58156</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-05-31T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916107#M58157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja&lt;/P&gt;&lt;P&gt;Would u like to explain mi that more detail? I am unfortunately novice in SAP:(&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 10:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916107#M58157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T10:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916108#M58158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the documentation for this FM is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find out how it is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to transaction se 38&lt;/P&gt;&lt;P&gt;enter program name "MWS20000081HO01" and click display and within that look for this FM where is it used and see how the program uses this FM. That should give you a pointer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 10:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916108#M58158</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-05-31T10:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916109#M58159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find any BAPI but yes a Function Module exist with the name SWX_GET_MANAGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rememeber BAPI name starts with BAPI_*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a function module which can used within methods/"role determination FMs", called in workflows / tasks to get the Manager of a user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if you will pass the your information , it will select your manager's information from the organisational structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is used to derive the role / manager for approval workflows. e.g Leave Approval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ram Manohar Tiwari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2005 16:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916109#M58159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-31T16:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916110#M58160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I try to use this function&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa_actor like swhactor,
      it_actor like table of swhactor,
      wa_cont like swcont,
      it_cont like table of swcont.

clear it_actor.
clear it_cont.
wa_actor-otype = otype. "that is set to US or P
wa_actor-objid = pernr. "that is set to personal number  or uname
append wa_actor to it_actor.

CALL FUNCTION 'SWX_GET_MANAGER'
  TABLES
    ACTOR_TAB          = it_actor
    AC_CONTAINER       = it_cont
* EXCEPTIONS
*   NOBODY_FOUND       = 1
*   OTHERS             = 2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the result is always message: 'There is no chief pisition for .' That is possible wrong input but i dont know why should I the parameters senden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Bogdan Rokosa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2005 11:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916110#M58160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-01T11:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916111#M58161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the solution:)&lt;/P&gt;&lt;P&gt;I have tried parameter via result table send - that was my error &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everybody.&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Bogdan Rokosa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2005 12:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916111#M58161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-01T12:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Example of BAPI use</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916112#M58162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are getting 'No chief position' because there seems to be no Organization structure. Org structures are defined using transaction &amp;lt;b&amp;gt;PPOMA.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Warm Regards.&lt;/P&gt;&lt;P&gt;Pras Durafe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2005 13:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-of-bapi-use/m-p/916112#M58162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-01T13:41:49Z</dc:date>
    </item>
  </channel>
</rss>

