<?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 Filtering Lookup Values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211571#M1910957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been getting fantastic support here, and was able to create a pretty generic lookup values/texts mechanism which is currently being used for Trip / Travel Expanses PR05 but should be good for many other areas, as it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only think I couldn't fully figure out is how to filter the values from the different CheckTables programatically, to what you would see as a user if you logon to Net Weaver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a generic way to do that programatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, on Trip Management there's this field MOREI, which looks suspicious to be the one to filter values based on. I read in this forum that this value is the provision variant, is that the right value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If yes, then how do I get the &lt;SPAN style="font-size: 13.3333px;"&gt;MOREI value for a specific employee number? (programatically from a table or RFC/BAPI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2. If that's not the right direction, then how do I get only values which are valid for the specific Trip creation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Itzik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 17:46:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-09-11T17:46:30Z</dc:date>
    <item>
      <title>Filtering Lookup Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211571#M1910957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been getting fantastic support here, and was able to create a pretty generic lookup values/texts mechanism which is currently being used for Trip / Travel Expanses PR05 but should be good for many other areas, as it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only think I couldn't fully figure out is how to filter the values from the different CheckTables programatically, to what you would see as a user if you logon to Net Weaver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a generic way to do that programatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, on Trip Management there's this field MOREI, which looks suspicious to be the one to filter values based on. I read in this forum that this value is the provision variant, is that the right value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If yes, then how do I get the &lt;SPAN style="font-size: 13.3333px;"&gt;MOREI value for a specific employee number? (programatically from a table or RFC/BAPI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2. If that's not the right direction, then how do I get only values which are valid for the specific Trip creation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Itzik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 17:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211571#M1910957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-11T17:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Lookup Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211572#M1910958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know whether it is right direction or not to get the MOREI from the employee number BUT I guess the MOREI (trip provision variant) is not directly related to the Employee number only (can get the values using Employee number and Trip number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there could be multiple MOREI values for one employee. Here is the table to get: PTRV_HEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg query: select * from ptrv_head&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table lt_ptrv_head&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where pernr = lv_pernr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " and reinr = lv_reinr. ( If you want only values for employee and trip number )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the where used list of the data elements pernr_d and morei to get all the tables where it has been used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 19:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211572#M1910958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-11T19:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Lookup Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211573#M1910959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chandra, thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to find a way to filter looku values, that's done as part of trip creation process and therefore, there's no Trip ID yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We understand that MOREI is filtering the values in the different Travel related tables such as T706S which are the values and texts for Travel Schema. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP function &lt;A href="http://www.sapdatasheet.org/abap/func/pa_trv_get_pernr_morei.html" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;" title="Determine Morei, lang., Molga for specified pers.no., key date"&gt;PA_TRV_GET_PERNR_MOREI&lt;/A&gt; is what we need as it should get the right value per employee ID, however, since we are using RFC this one is not applicable for us remotely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any remote enabled capability which matched &lt;A href="http://www.sapdatasheet.org/abap/func/pa_trv_get_pernr_morei.html" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;" title="Determine Morei, lang., Molga for specified pers.no., key date"&gt;PA_TRV_GET_PERNR_MOREI&lt;/A&gt;? if not, which tables should we query top get this info?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Itzik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2015 15:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-lookup-values/m-p/11211573#M1910959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-12T15:45:05Z</dc:date>
    </item>
  </channel>
</rss>

